Searched refs:top (Results 51 - 75 of 196) sorted by relevance

12345678

/drivers/media/i2c/
H A Dtvp5150.c859 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 Dmt9p031.c405 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 Dmt9t001.c313 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 Dmt9v032.c430 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 Divtvfb.c257 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 Dfimc-m2m.c410 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 Dfimc-capture.c677 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 Dvmwgfx_kms.c63 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 Dcamif-capture.c60 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 Dmixer_video.c374 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 Dvino.c170 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 Dsh_vou.c462 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 Dsaa7134-video.c397 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 DKconfig33 shared-nothing cluster. Needless to say, on top of dual-Primary
/drivers/media/platform/soc_camera/
H A Dsoc_camera_platform.c82 a->c.top = 0;
96 a->bounds.top = 0;
/drivers/media/platform/vivid/
H A Dvivid-vid-cap.c686 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 Dresource.c419 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 Dcbaf.c139 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 Dsecurity.c222 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 Ds5p_mfc_dec.c775 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 Dmt9t031.c83 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 Dgsc-m2m.c435 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 Dqxl_ioctl.c317 .top = update_area->top,
325 update_area->top >= update_area->bottom)
/drivers/media/platform/omap3isp/
H A Disppreview.c1077 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 Dbttvp.h165 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

Completed in 964 milliseconds

12345678