/drivers/media/i2c/ |
H A D | tvp5150.c | 859 v4l2_dbg(1, debug, sd, "%s left=%d, top=%d, width=%d, height=%d\n", 860 __func__, rect.left, rect.top, rect.width, rect.height); 870 rect.top = clamp(rect.top, 0, TVP5150_MAX_CROP_TOP); 884 hmax - TVP5150_MAX_CROP_TOP - rect.top, 885 hmax - rect.top); 887 tvp5150_write(sd, TVP5150_VERT_BLANKING_START, rect.top); 889 rect.top + rect.height - hmax); 924 a->bounds.top = 0; 1173 core->rect.top [all...] |
H A D | mt9p031.c | 405 ret = mt9p031_write(client, MT9P031_ROW_START, crop->top); 609 rect.top = clamp(ALIGN(crop->rect.top, 2), MT9P031_ROW_START_MIN, 621 MT9P031_PIXEL_ARRAY_HEIGHT - rect.top); 946 crop->top = MT9P031_ROW_START_DEF; 1120 mt9p031->crop.top = MT9P031_ROW_START_DEF;
|
H A D | mt9t001.c | 313 ret = mt9t001_write(client, MT9T001_ROW_START, crop->top); 430 rect.top = clamp(ALIGN(crop->rect.top, 2), 443 MT9T001_PIXEL_ARRAY_HEIGHT - rect.top); 790 crop->top = MT9T001_ROW_START_DEF; 916 mt9t001->crop.top = MT9T001_ROW_START_DEF;
|
H A D | mt9v032.c | 430 ret = regmap_write(map, MT9V032_ROW_START, crop->top); 581 rect.top = clamp(ALIGN(crop->rect.top + 1, 2) - 1, 594 rect.height, MT9V032_PIXEL_ARRAY_HEIGHT - rect.top); 810 crop->top = MT9V032_ROW_START_DEF; 964 mt9v032->crop.top = MT9V032_ROW_START_DEF;
|
/drivers/media/pci/ivtv/ |
H A D | ivtvfb.c | 257 if (ivtv_window->top + ivtv_window->height > osd_height_limit) { 259 ivtv_window->top, ivtv_window->height); 260 ivtv_window->top = osd_height_limit - ivtv_window->height; 270 write_reg((ivtv_window->top << 16) | ivtv_window->left, 0x02a04); 273 write_reg(((ivtv_window->top+ivtv_window->height) << 16) | (ivtv_window->left+ivtv_window->width), 0x02a08); 279 itv->yuv_info.osd_y_offset = ivtv_window->top; 598 ivtv_window.top = var->upper_margin - 1; 1036 start_window.top = osd_upper >= 0 ? osd_upper : ((max_height - start_window.height) / 2); 1050 oi->ivtvfb_defined.upper_margin = start_window.top + 1;
|
/drivers/media/platform/exynos4-is/ |
H A D | fimc-m2m.c | 410 cr->bounds.top = 0; 428 cr->c.top = frame->offs_v; 442 if (cr->c.top < 0 || cr->c.left < 0) { 444 "doesn't support negative values for top & left\n"); 471 /* adjust left/top if cropping rectangle is out of bounds */ 474 if (cr->c.top + cr->c.height > f->o_height) 475 cr->c.top = f->o_height - cr->c.height; 478 cr->c.top = round_down(cr->c.top, fimc->variant->hor_offs_align); 481 cr->c.left, cr->c.top, c [all...] |
H A D | fimc-capture.c | 677 r->left = r->top = 0; 718 /* Adjust left/top if crop/compose rectangle is out of bounds */ 720 r->top = clamp_t(u32, r->top, 0, sink->f_height - r->height); 724 target, r->left, r->top, r->width, r->height, 1293 s->r.top = 0; 1302 s->r.top = f->offs_v; 1314 if (a->left < b->left || a->top < b->top) 1318 if (a->top [all...] |
/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_kms.c | 63 out_rects[k].top = y1; 460 int left, right, top, bottom; local 498 top = clips->y1; 506 top = min_t(int, top, (int)clips_ptr->y1); 516 cmd->body.srcRect.top = top; 523 tmp[i].y1 = clips_ptr->y1 - top; 524 tmp[i].y2 = clips_ptr->y2 - top; 534 clip.y1 = top 1236 int left, right, top, bottom; local [all...] |
/drivers/media/platform/s3c-camif/ |
H A D | camif-capture.c | 60 f->dma_offset.initial = f->rect.top * f->f_width + f->rect.left; 827 out_frame->rect.top = 0; 1023 sel->r.top = 0; 1070 sel->r.left, sel->r.top, sel->r.width, sel->r.height); 1352 crop->top = 0; 1403 sel->r.top = 0; 1409 __func__, crop->left, crop->top, crop->width, 1420 unsigned int top = 2 * r->top; local 1425 * - r->height + 2 * r->top [all...] |
/drivers/media/platform/s5p-tv/ |
H A D | mixer_video.c | 374 s->r.top = geo->src.y_offset; 381 s->r.top = 0; 388 s->r.top = geo->dst.y_offset; 395 s->r.top = 0; 411 if (a->top < b->top) 415 if (a->top + a->height > b->top + b->height) 433 s->r.width, s->r.height, s->r.left, s->r.top); 473 target->y_offset = s->r.top; [all...] |
/drivers/media/platform/ |
H A D | vino.c | 170 unsigned int left, right, top, bottom; member in struct:vino_clipping 423 .top = VINO_CLIPPING_START_ODD_NTSC, 430 .top = VINO_CLIPPING_START_EVEN_NTSC, 445 .top = VINO_CLIPPING_START_ODD_PAL, 452 .top = VINO_CLIPPING_START_EVEN_PAL, 467 .top = VINO_CLIPPING_START_ODD_PAL, 474 .top = VINO_CLIPPING_START_EVEN_PAL, 489 .top = VINO_CLIPPING_START_ODD_D1, 496 .top = VINO_CLIPPING_START_EVEN_D1, 1472 vcs->clipping.top [all...] |
H A D | sh_vou.c | 462 frame_out_top = rect->top / 2; 472 * beyond DSR, specified on the left and top by the VPR register "black 666 if (geo->output.top + best > height_max) 667 geo->output.top = height_max - best; 954 rect->width, rect->height, rect->left, rect->top); 970 if (rect->height + rect->top > img_height_max) 971 rect->top = img_height_max - rect->height; 1036 a->bounds.top = 0; 1041 a->defrect.top = 0; 1325 rect->top [all...] |
/drivers/media/pci/saa7134/ |
H A D | saa7134-video.c | 397 dev->crop_bounds.top = (norm->vbi_v_stop_0+1)*2; 398 dev->crop_defrect.top = norm->video_v_start*2; 400 - dev->crop_bounds.top; 558 v_start = dev->crop_current.top/2; 560 v_stop = (dev->crop_current.top + dev->crop_current.height -1)/2; 665 row[rows].position = clip_range(clips[i].c.top / div); 668 row[rows].position = clip_range((clips[i].c.top + clips[i].c.height) 735 dev->win.w.left, dev->win.w.top, 751 base += dev->ovbuf.fmt.bytesperline * dev->win.w.top; 1644 if (c->top < [all...] |
/drivers/block/drbd/ |
H A D | Kconfig | 33 shared-nothing cluster. Needless to say, on top of dual-Primary
|
/drivers/media/platform/soc_camera/ |
H A D | soc_camera_platform.c | 82 a->c.top = 0; 96 a->bounds.top = 0;
|
/drivers/media/platform/vivid/ |
H A D | vivid-vid-cap.c | 686 compose->top *= factor; 690 compose->top /= factor; 799 sel->r.left = sel->r.top = 0; 858 s->r.top /= factor; 905 s->r.top *= factor; 942 s->r.top *= factor; 947 s->r.top /= factor; 1017 win->w.top = dev->overlay_cap_top; 1050 win->w.top = clamp_t(int, win->w.top, [all...] |
/drivers/infiniband/hw/cxgb4/ |
H A D | resource.c | 419 unsigned start, chunk, top; local 427 top = start + chunk; 429 while (start < top) { 430 chunk = min(top - start + 1, chunk); 437 start, top - start);
|
/drivers/usb/wusbcore/ |
H A D | cbaf.c | 139 void *itr, *top; local 175 top = cbaf->buffer + assoc_size; 179 while (itr < top) { 186 if (top - itr < sizeof(*assoc_request)) { 189 top - itr, sizeof(*assoc_request));
|
H A D | security.c | 222 const void *itr, *top; local 255 top = (void *)secd + result; 256 while (itr < top) { 258 if (top - itr < sizeof(*etd)) { 261 top - itr, sizeof(*etd));
|
/drivers/media/platform/s5p-mfc/ |
H A D | s5p_mfc_dec.c | 775 u32 left, right, top, bottom; local 787 top = s5p_mfc_hw_call(dev->mfc_ops, get_crop_info_v, ctx); 788 bottom = top >> S5P_FIMV_SHARED_CROP_BOTTOM_SHIFT; 789 top = top & S5P_FIMV_SHARED_CROP_TOP_MASK; 791 cr->c.top = top; 793 cr->c.height = ctx->img_height - top - bottom; 795 "w=%d h=%d (r=%d b=%d fw=%d fh=%d\n", left, top, 800 cr->c.top [all...] |
/drivers/media/i2c/soc_camera/ |
H A D | mt9t031.c | 83 unsigned short y_skip_top; /* Lines to skip at the top */ 238 rect->top &= ~1; 241 xskip, yskip, rect->width, rect->height, rect->left, rect->top); 262 dev_dbg(&client->dev, "new physical left %u, top %u\n", 263 rect->left, rect->top); 272 ret = reg_write(client, MT9T031_ROW_START, rect->top); 309 soc_camera_limit_side(&rect.top, &rect.height, 329 a->bounds.top = MT9T031_ROW_SKIP; 787 mt9t031->rect.top = MT9T031_ROW_SKIP;
|
/drivers/media/platform/exynos-gsc/ |
H A D | gsc-m2m.c | 435 if (a->left < b->left || a->top < b->top) 441 if (a->top + a->height > b->top + b->height) 467 s->r.top = 0; 475 s->r.top = frame->crop.top;
|
/drivers/gpu/drm/qxl/ |
H A D | qxl_ioctl.c | 317 .top = update_area->top, 325 update_area->top >= update_area->bottom)
|
/drivers/media/platform/omap3isp/ |
H A D | isppreview.c | 1077 unsigned int slv = prev->crop.top; 1078 unsigned int elv = prev->crop.top + prev->crop.height - 1; 1829 unsigned int top = PREV_MARGIN_TOP; local 1850 top += 2; 1854 /* Restrict left/top to even values to keep the Bayer pattern. */ 1856 crop->top &= ~1; 1859 crop->top = clamp_t(u32, crop->top, top, bottom - PREV_MIN_OUT_HEIGHT); 1863 bottom - crop->top); [all...] |
/drivers/media/pci/bt8xx/ |
H A D | bttvp.h | 165 struct btcx_riscmem top; member in struct:bttv_buffer 173 struct bttv_buffer *top; /* top field buffer */ member in struct:bttv_buffer_set 465 - only the irq handler is supported to touch top + bottom + vcurr */ 502 /* Latest possible end of VBI capturing (= crop[x].rect.top when
|