/drivers/media/i2c/soc_camera/ |
D | mt9t031.c | 78 struct v4l2_rect rect; /* Sensor window */ member 202 struct v4l2_rect *rect, u16 xskip, u16 yskip) in mt9t031_set_params() argument 228 rect->left &= ~1; in mt9t031_set_params() 231 rect->left &= ~3; in mt9t031_set_params() 234 rect->left = rect->left > roundup(MT9T031_COLUMN_SKIP, 6) ? in mt9t031_set_params() 235 (rect->left / 6) * 6 : roundup(MT9T031_COLUMN_SKIP, 6); in mt9t031_set_params() 238 rect->top &= ~1; in mt9t031_set_params() 241 xskip, yskip, rect->width, rect->height, rect->left, rect->top); in mt9t031_set_params() 263 rect->left, rect->top); in mt9t031_set_params() 270 ret = reg_write(client, MT9T031_COLUMN_START, rect->left); in mt9t031_set_params() [all …]
|
D | mt9m111.c | 211 struct v4l2_rect rect; /* cropping rectangle */ member 320 struct mt9m111_context *ctx, struct v4l2_rect *rect, in mt9m111_setup_rect_ctx() argument 324 int ret = mt9m111_reg_write(client, ctx->reducer_xzoom, rect->width); in mt9m111_setup_rect_ctx() 326 ret = mt9m111_reg_write(client, ctx->reducer_yzoom, rect->height); in mt9m111_setup_rect_ctx() 334 static int mt9m111_setup_geometry(struct mt9m111 *mt9m111, struct v4l2_rect *rect, in mt9m111_setup_geometry() argument 340 ret = reg_write(COLUMN_START, rect->left); in mt9m111_setup_geometry() 342 ret = reg_write(ROW_START, rect->top); in mt9m111_setup_geometry() 345 ret = reg_write(WINDOW_WIDTH, rect->width); in mt9m111_setup_geometry() 347 ret = reg_write(WINDOW_HEIGHT, rect->height); in mt9m111_setup_geometry() 353 rect, width, height); in mt9m111_setup_geometry() [all …]
|
D | ov6650.c | 200 struct v4l2_rect rect; /* sensor cropping window */ member 449 a->c = priv->rect; in ov6650_g_crop() 458 struct v4l2_rect rect = a->c; in ov6650_s_crop() local 464 rect.left = ALIGN(rect.left, 2); in ov6650_s_crop() 465 rect.width = ALIGN(rect.width, 2); in ov6650_s_crop() 466 rect.top = ALIGN(rect.top, 2); in ov6650_s_crop() 467 rect.height = ALIGN(rect.height, 2); in ov6650_s_crop() 468 soc_camera_limit_side(&rect.left, &rect.width, in ov6650_s_crop() 470 soc_camera_limit_side(&rect.top, &rect.height, in ov6650_s_crop() 473 ret = ov6650_reg_write(client, REG_HSTRT, rect.left >> 1); in ov6650_s_crop() [all …]
|
D | mt9m001.c | 96 struct v4l2_rect rect; /* Sensor window */ member 178 struct v4l2_rect rect = a->c; in mt9m001_s_crop() local 187 rect.height = ALIGN(rect.height, 2); in mt9m001_s_crop() 190 rect.width = ALIGN(rect.width, 2); in mt9m001_s_crop() 191 rect.left = ALIGN(rect.left, 2); in mt9m001_s_crop() 193 soc_camera_limit_side(&rect.left, &rect.width, in mt9m001_s_crop() 196 soc_camera_limit_side(&rect.top, &rect.height, in mt9m001_s_crop() 199 mt9m001->total_h = rect.height + mt9m001->y_skip_top + vblank; in mt9m001_s_crop() 211 ret = reg_write(client, MT9M001_COLUMN_START, rect.left); in mt9m001_s_crop() 213 ret = reg_write(client, MT9M001_ROW_START, rect.top); in mt9m001_s_crop() [all …]
|
D | mt9v022.c | 151 struct v4l2_rect rect; /* Sensor window */ member 277 struct v4l2_rect rect = a->c; in mt9v022_s_crop() local 283 rect.width = ALIGN(rect.width, 2); in mt9v022_s_crop() 284 rect.height = ALIGN(rect.height, 2); in mt9v022_s_crop() 288 soc_camera_limit_side(&rect.left, &rect.width, in mt9v022_s_crop() 291 soc_camera_limit_side(&rect.top, &rect.height, in mt9v022_s_crop() 299 rect.height + mt9v022->y_skip_top + 43); in mt9v022_s_crop() 311 ret = reg_write(client, MT9V022_COLUMN_START, rect.left); in mt9v022_s_crop() 313 ret = reg_write(client, MT9V022_ROW_START, rect.top); in mt9v022_s_crop() 327 rect.width > min_row - min_blank ? in mt9v022_s_crop() [all …]
|
D | ov772x.c | 393 struct v4l2_rect rect; member 492 .rect = { 501 .rect = { 682 u32 diff = abs(width - ov772x_win_sizes[i].rect.width) in ov772x_select_win() 683 + abs(height - ov772x_win_sizes[i].rect.height); in ov772x_select_win() 774 ret = ov772x_write(client, HSTART, win->rect.left >> 2); in ov772x_set_params() 777 ret = ov772x_write(client, HSIZE, win->rect.width >> 2); in ov772x_set_params() 780 ret = ov772x_write(client, VSTART, win->rect.top >> 1); in ov772x_set_params() 783 ret = ov772x_write(client, VSIZE, win->rect.height >> 1); in ov772x_set_params() 786 ret = ov772x_write(client, HOUTSIZE, win->rect.width >> 2); in ov772x_set_params() [all …]
|
/drivers/video/sis/ |
D | sis_accel.c | 318 void fbcon_sis_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in fbcon_sis_fillrect() argument 331 cfb_fillrect(info, rect); in fbcon_sis_fillrect() 335 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) in fbcon_sis_fillrect() 339 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect->width; in fbcon_sis_fillrect() 340 height = ((rect->dy + rect->height) > vyres) ? (vyres - rect->dy) : rect->height; in fbcon_sis_fillrect() 343 case 8: col = rect->color; in fbcon_sis_fillrect() 346 case 32: col = ((u32 *)(info->pseudo_palette))[rect->color]; in fbcon_sis_fillrect() 353 SiS300SetupForSolidFill(ivideo, col, myrops[rect->rop]); in fbcon_sis_fillrect() 354 SiS300SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect() 360 SiS310SetupForSolidFill(ivideo, col, myrops[rect->rop]); in fbcon_sis_fillrect() [all …]
|
/drivers/media/i2c/ |
D | tvp5150.c | 39 struct v4l2_rect rect; member 762 decoder->rect.height = TVP5150_V_MAX_525_60; in tvp5150_s_std() 764 decoder->rect.height = TVP5150_V_MAX_OTHERS; in tvp5150_s_std() 856 f->width = decoder->rect.width; in tvp5150_mbus_fmt() 857 f->height = decoder->rect.height; in tvp5150_mbus_fmt() 870 struct v4l2_rect rect = a->c; in tvp5150_s_crop() local 876 __func__, rect.left, rect.top, rect.width, rect.height); in tvp5150_s_crop() 882 rect.left = clamp(rect.left, 0, TVP5150_MAX_CROP_LEFT); in tvp5150_s_crop() 883 rect.width = clamp(rect.width, in tvp5150_s_crop() 884 TVP5150_H_MAX - TVP5150_MAX_CROP_LEFT - rect.left, in tvp5150_s_crop() [all …]
|
D | mt9t001.c | 319 crop->rect = *__mt9t001_get_pad_crop(mt9t001, fh, crop->pad, in mt9t001_get_crop() 331 struct v4l2_rect rect; in mt9t001_set_crop() local 336 rect.left = clamp(ALIGN(crop->rect.left, 2), in mt9t001_set_crop() 339 rect.top = clamp(ALIGN(crop->rect.top, 2), in mt9t001_set_crop() 342 rect.width = clamp(ALIGN(crop->rect.width, 2), in mt9t001_set_crop() 345 rect.height = clamp(ALIGN(crop->rect.height, 2), in mt9t001_set_crop() 349 rect.width = min(rect.width, MT9T001_PIXEL_ARRAY_WIDTH - rect.left); in mt9t001_set_crop() 350 rect.height = min(rect.height, MT9T001_PIXEL_ARRAY_HEIGHT - rect.top); in mt9t001_set_crop() 354 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9t001_set_crop() 360 __format->width = rect.width; in mt9t001_set_crop() [all …]
|
D | mt9m032.c | 432 crop->rect = *__mt9m032_get_pad_crop(sensor, fh, crop->which); in mt9m032_get_pad_crop() 445 struct v4l2_rect rect; in mt9m032_set_pad_crop() local 458 rect.left = clamp(ALIGN(crop->rect.left, 2), MT9M032_COLUMN_START_MIN, in mt9m032_set_pad_crop() 460 rect.top = clamp(ALIGN(crop->rect.top, 2), MT9M032_ROW_START_MIN, in mt9m032_set_pad_crop() 462 rect.width = clamp(ALIGN(crop->rect.width, 2), MT9M032_COLUMN_SIZE_MIN, in mt9m032_set_pad_crop() 464 rect.height = clamp(ALIGN(crop->rect.height, 2), MT9M032_ROW_SIZE_MIN, in mt9m032_set_pad_crop() 467 rect.width = min(rect.width, MT9M032_PIXEL_ARRAY_WIDTH - rect.left); in mt9m032_set_pad_crop() 468 rect.height = min(rect.height, MT9M032_PIXEL_ARRAY_HEIGHT - rect.top); in mt9m032_set_pad_crop() 472 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9m032_set_pad_crop() 477 format->width = rect.width; in mt9m032_set_pad_crop() [all …]
|
D | mt9v032.c | 450 crop->rect = *__mt9v032_get_pad_crop(mt9v032, fh, crop->pad, in mt9v032_get_crop() 462 struct v4l2_rect rect; in mt9v032_set_crop() local 467 rect.left = clamp(ALIGN(crop->rect.left + 1, 2) - 1, in mt9v032_set_crop() 470 rect.top = clamp(ALIGN(crop->rect.top + 1, 2) - 1, in mt9v032_set_crop() 473 rect.width = clamp(ALIGN(crop->rect.width, 2), in mt9v032_set_crop() 476 rect.height = clamp(ALIGN(crop->rect.height, 2), in mt9v032_set_crop() 480 rect.width = min(rect.width, MT9V032_PIXEL_ARRAY_WIDTH - rect.left); in mt9v032_set_crop() 481 rect.height = min(rect.height, MT9V032_PIXEL_ARRAY_HEIGHT - rect.top); in mt9v032_set_crop() 485 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9v032_set_crop() 491 __format->width = rect.width; in mt9v032_set_crop() [all …]
|
D | mt9p031.c | 545 crop->rect = *__mt9p031_get_pad_crop(mt9p031, fh, crop->pad, in mt9p031_get_crop() 557 struct v4l2_rect rect; in mt9p031_set_crop() local 562 rect.left = clamp(ALIGN(crop->rect.left, 2), MT9P031_COLUMN_START_MIN, in mt9p031_set_crop() 564 rect.top = clamp(ALIGN(crop->rect.top, 2), MT9P031_ROW_START_MIN, in mt9p031_set_crop() 566 rect.width = clamp(ALIGN(crop->rect.width, 2), in mt9p031_set_crop() 569 rect.height = clamp(ALIGN(crop->rect.height, 2), in mt9p031_set_crop() 573 rect.width = min(rect.width, MT9P031_PIXEL_ARRAY_WIDTH - rect.left); in mt9p031_set_crop() 574 rect.height = min(rect.height, MT9P031_PIXEL_ARRAY_HEIGHT - rect.top); in mt9p031_set_crop() 578 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9p031_set_crop() 584 __format->width = rect.width; in mt9p031_set_crop() [all …]
|
/drivers/media/platform/soc_camera/ |
D | sh_mobile_ceu_camera.c | 142 struct v4l2_rect rect; member 996 static int client_g_rect(struct v4l2_subdev *sd, struct v4l2_rect *rect); 1063 struct v4l2_rect rect; in sh_mobile_ceu_get_formats() local 1075 ret = client_g_rect(sd, &rect); in sh_mobile_ceu_get_formats() 1117 cam->rect = rect; in sh_mobile_ceu_get_formats() 1118 cam->subrect = rect; in sh_mobile_ceu_get_formats() 1210 static int client_g_rect(struct v4l2_subdev *sd, struct v4l2_rect *rect) in client_g_rect() argument 1220 *rect = crop.c; in client_g_rect() 1229 *rect = cap.defrect; in client_g_rect() 1237 struct v4l2_rect *rect = &cam->rect, *subrect = &cam->subrect; in update_subrect() local [all …]
|
/drivers/video/savage/ |
D | savagefb_accel.c | 65 void savagefb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in savagefb_fillrect() argument 70 if (!rect->width || !rect->height) in savagefb_fillrect() 74 color = rect->color; in savagefb_fillrect() 76 color = ((u32 *)info->pseudo_palette)[rect->color]; in savagefb_fillrect() 83 BCI_CMD_SET_ROP(cmd, savagefb_rop[rect->rop]); in savagefb_fillrect() 88 BCI_SEND( BCI_X_Y(rect->dx, rect->dy) ); in savagefb_fillrect() 89 BCI_SEND( BCI_W_H(rect->width, rect->height) ); in savagefb_fillrect()
|
/drivers/video/mb862xx/ |
D | mb862xxfb_accel.c | 257 const struct fb_fillrect *rect) in mb86290fb_fillrect() argument 266 if (!rect->width || !rect->height || rect->dx > vxres in mb86290fb_fillrect() 267 || rect->dy > vyres) in mb86290fb_fillrect() 272 x2 = rect->dx + rect->width; in mb86290fb_fillrect() 273 y2 = rect->dy + rect->height; in mb86290fb_fillrect() 276 width = x2 - rect->dx; in mb86290fb_fillrect() 277 height = y2 - rect->dy; in mb86290fb_fillrect() 280 fg = ((u32 *) (info->pseudo_palette))[rect->color]; in mb86290fb_fillrect() 282 fg = rect->color; in mb86290fb_fillrect() 284 switch (rect->rop) { in mb86290fb_fillrect() [all …]
|
/drivers/gpu/drm/qxl/ |
D | qxl_draw.c | 56 const struct qxl_rect *rect, in make_drawable() argument 90 if (rect) in make_drawable() 91 drawable->bbox = *rect; in make_drawable() 138 struct qxl_rect rect; in qxl_draw_opaque_fb() local 154 rect.left = x; in qxl_draw_opaque_fb() 155 rect.right = x + width; in qxl_draw_opaque_fb() 156 rect.top = y; in qxl_draw_opaque_fb() 157 rect.bottom = y + height; in qxl_draw_opaque_fb() 159 ret = make_drawable(qdev, 0, QXL_DRAW_COPY, &rect, &release); in qxl_draw_opaque_fb() 341 struct qxl_rect rect; in qxl_draw_copyarea() local [all …]
|
/drivers/video/console/ |
D | tileblit.c | 37 struct fb_tilerect rect; in tile_clear() local 41 rect.index = vc->vc_video_erase_char & in tile_clear() 43 rect.fg = attr_fgcol_ec(fgshift, vc, info); in tile_clear() 44 rect.bg = attr_bgcol_ec(bgshift, vc, info); in tile_clear() 45 rect.sx = sx; in tile_clear() 46 rect.sy = sy; in tile_clear() 47 rect.width = width; in tile_clear() 48 rect.height = height; in tile_clear() 49 rect.rop = ROP_COPY; in tile_clear() 51 info->tileops->fb_tilefill(info, &rect); in tile_clear()
|
/drivers/gpu/drm/nouveau/ |
D | nvc0_fbcon.c | 30 nvc0_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in nvc0_fbcon_fillrect() argument 37 ret = RING_SPACE(chan, rect->rop == ROP_COPY ? 7 : 11); in nvc0_fbcon_fillrect() 41 if (rect->rop != ROP_COPY) { in nvc0_fbcon_fillrect() 48 OUT_RING (chan, ((uint32_t *)info->pseudo_palette)[rect->color]); in nvc0_fbcon_fillrect() 50 OUT_RING (chan, rect->color); in nvc0_fbcon_fillrect() 52 OUT_RING (chan, rect->dx); in nvc0_fbcon_fillrect() 53 OUT_RING (chan, rect->dy); in nvc0_fbcon_fillrect() 54 OUT_RING (chan, rect->dx + rect->width); in nvc0_fbcon_fillrect() 55 OUT_RING (chan, rect->dy + rect->height); in nvc0_fbcon_fillrect() 56 if (rect->rop != ROP_COPY) { in nvc0_fbcon_fillrect()
|
D | nv50_fbcon.c | 30 nv50_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in nv50_fbcon_fillrect() argument 37 ret = RING_SPACE(chan, rect->rop == ROP_COPY ? 7 : 11); in nv50_fbcon_fillrect() 41 if (rect->rop != ROP_COPY) { in nv50_fbcon_fillrect() 48 OUT_RING(chan, ((uint32_t *)info->pseudo_palette)[rect->color]); in nv50_fbcon_fillrect() 50 OUT_RING(chan, rect->color); in nv50_fbcon_fillrect() 52 OUT_RING(chan, rect->dx); in nv50_fbcon_fillrect() 53 OUT_RING(chan, rect->dy); in nv50_fbcon_fillrect() 54 OUT_RING(chan, rect->dx + rect->width); in nv50_fbcon_fillrect() 55 OUT_RING(chan, rect->dy + rect->height); in nv50_fbcon_fillrect() 56 if (rect->rop != ROP_COPY) { in nv50_fbcon_fillrect()
|
/drivers/media/platform/ |
D | sh_vou.c | 72 struct v4l2_rect rect; member 447 struct v4l2_rect *rect = &vou_dev->rect; in sh_vou_configure_geometry() local 460 frame_out_height = rect->height / 2; in sh_vou_configure_geometry() 461 frame_out_top = rect->top / 2; in sh_vou_configure_geometry() 485 dsr_h = rect->width + rect->left; in sh_vou_configure_geometry() 491 rect->left, frame_out_top, dsr_h, dsr_v); in sh_vou_configure_geometry() 496 sh_vou_reg_ab_write(vou_dev, VOUDPR, (rect->left << 16) | frame_out_top); in sh_vou_configure_geometry() 689 vou_dev->rect.width, vou_dev->rect.height, in sh_vou_s_fmt_vid_out() 717 geo.output = vou_dev->rect; in sh_vou_s_fmt_vid_out() 747 vou_dev->rect = geo.output; in sh_vou_s_fmt_vid_out() [all …]
|
/drivers/media/usb/sn9c102/ |
D | sn9c102_core.c | 1602 static int sn9c102_set_crop(struct sn9c102_device* cam, struct v4l2_rect* rect) in sn9c102_set_crop() argument 1605 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left), in sn9c102_set_crop() 1606 v_start = (u8)(rect->top - s->cropcap.bounds.top), in sn9c102_set_crop() 1607 h_size = (u8)(rect->width / 16), in sn9c102_set_crop() 1608 v_size = (u8)(rect->height / 16); in sn9c102_set_crop() 1630 struct v4l2_rect* rect; in sn9c102_init() local 1638 rect = &(s->cropcap.defrect); in sn9c102_init() 1641 rect = &(s->_rect); in sn9c102_init() 1644 err += sn9c102_set_scale(cam, rect->width / s->pix_format.width); in sn9c102_init() 1645 err += sn9c102_set_crop(cam, rect); in sn9c102_init() [all …]
|
/drivers/video/matrox/ |
D | matroxfb_accel.c | 105 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect); 107 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect); 311 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_fillrect() argument 314 switch (rect->rop) { in matroxfb_fillrect() 316 …_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, … in matroxfb_fillrect() 378 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_cfb4_fillrect() argument 381 switch (rect->rop) { in matroxfb_cfb4_fillrect() 383 …_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, … in matroxfb_cfb4_fillrect()
|
/drivers/video/ |
D | wmt_ge_rops.c | 49 void wmt_ge_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in wmt_ge_fillrect() argument 58 fg = ((u32 *) (p->pseudo_palette))[rect->color]; in wmt_ge_fillrect() 60 fg = rect->color; in wmt_ge_fillrect() 73 writel(rect->dx, regbase + GE_DESTAREAX_OFF); in wmt_ge_fillrect() 74 writel(rect->dy, regbase + GE_DESTAREAY_OFF); in wmt_ge_fillrect() 75 writel(rect->width - 1, regbase + GE_DESTAREAW_OFF); in wmt_ge_fillrect() 76 writel(rect->height - 1, regbase + GE_DESTAREAH_OFF); in wmt_ge_fillrect() 80 writel(rect->rop == ROP_XOR ? 0x5a : 0xf0, regbase + GE_ROPCODE_OFF); in wmt_ge_fillrect()
|
D | hitfb.c | 125 static void hitfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in hitfb_fillrect() argument 127 if (rect->rop != ROP_COPY) in hitfb_fillrect() 128 cfb_fillrect(p, rect); in hitfb_fillrect() 135 fb_writew(((u32 *) (p->pseudo_palette))[rect->color], in hitfb_fillrect() 137 hitfb_accel_set_dest(1, rect->dx, rect->dy, rect->width, in hitfb_fillrect() 138 rect->height); in hitfb_fillrect() 141 fb_writew(rect->color, HD64461_GRSCR); in hitfb_fillrect() 142 hitfb_accel_set_dest(0, rect->dx, rect->dy, rect->width, in hitfb_fillrect() 143 rect->height); in hitfb_fillrect()
|
/drivers/video/nvidia/ |
D | nv_accel.c | 316 void nvidiafb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in nvidiafb_fillrect() argument 325 cfb_fillrect(info, rect); in nvidiafb_fillrect() 330 color = rect->color; in nvidiafb_fillrect() 332 color = ((u32 *) info->pseudo_palette)[rect->color]; in nvidiafb_fillrect() 334 if (rect->rop != ROP_COPY) in nvidiafb_fillrect() 335 NVSetRopSolid(info, rect->rop, ~0); in nvidiafb_fillrect() 341 NVDmaNext(par, (rect->dx << 16) | rect->dy); in nvidiafb_fillrect() 342 NVDmaNext(par, (rect->width << 16) | rect->height); in nvidiafb_fillrect() 346 if (rect->rop != ROP_COPY) in nvidiafb_fillrect()
|