Searched refs:rect (Results 1 - 25 of 107) sorted by relevance

12345

/drivers/video/
H A Dwmt_ge_rops.h2 const struct fb_fillrect *rect);
H A Dwmt_ge_rops.c49 void wmt_ge_fillrect(struct fb_info *p, const struct fb_fillrect *rect) argument
58 fg = ((u32 *) (p->pseudo_palette))[rect->color];
60 fg = rect->color;
73 writel(rect->dx, regbase + GE_DESTAREAX_OFF);
74 writel(rect->dy, regbase + GE_DESTAREAY_OFF);
75 writel(rect->width - 1, regbase + GE_DESTAREAW_OFF);
76 writel(rect->height - 1, regbase + GE_DESTAREAH_OFF);
80 writel(rect->rop == ROP_XOR ? 0x5a : 0xf0, regbase + GE_ROPCODE_OFF);
H A Dhitfb.c125 static void hitfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect) argument
127 if (rect->rop != ROP_COPY)
128 cfb_fillrect(p, rect);
135 fb_writew(((u32 *) (p->pseudo_palette))[rect->color],
137 hitfb_accel_set_dest(1, rect->dx, rect->dy, rect->width,
138 rect->height);
141 fb_writew(rect->color, HD64461_GRSCR);
142 hitfb_accel_set_dest(0, rect
[all...]
H A Dsysfillrect.c243 void sys_fillrect(struct fb_info *p, const struct fb_fillrect *rect) argument
246 unsigned long width = rect->width, height = rect->height;
257 fg = ((u32 *) (p->pseudo_palette))[rect->color];
259 fg = rect->color;
265 dst_idx += rect->dy*p->fix.line_length*8+rect->dx*bpp;
275 switch (rect->rop) {
305 switch (rect->rop) {
/drivers/video/sis/
H A Dsis_accel.c318 void fbcon_sis_fillrect(struct fb_info *info, const struct fb_fillrect *rect) argument
331 cfb_fillrect(info, rect);
335 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres)
339 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect
[all...]
/drivers/video/savage/
H A Dsavagefb_accel.c65 void savagefb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) argument
70 if (!rect->width || !rect->height)
74 color = rect->color;
76 color = ((u32 *)info->pseudo_palette)[rect->color];
83 BCI_CMD_SET_ROP(cmd, savagefb_rop[rect->rop]);
88 BCI_SEND( BCI_X_Y(rect->dx, rect->dy) );
89 BCI_SEND( BCI_W_H(rect->width, rect
[all...]
/drivers/media/video/
H A Dmt9m111.c210 struct v4l2_rect rect; /* cropping rectangle */ member in struct:mt9m111
320 struct mt9m111_context *ctx, struct v4l2_rect *rect,
324 int ret = mt9m111_reg_write(client, ctx->reducer_xzoom, rect->width);
326 ret = mt9m111_reg_write(client, ctx->reducer_yzoom, rect->height);
334 static int mt9m111_setup_geometry(struct mt9m111 *mt9m111, struct v4l2_rect *rect, argument
340 ret = reg_write(COLUMN_START, rect->left);
342 ret = reg_write(ROW_START, rect->top);
345 ret = reg_write(WINDOW_WIDTH, rect->width);
347 ret = reg_write(WINDOW_HEIGHT, rect->height);
353 rect, widt
319 mt9m111_setup_rect_ctx(struct mt9m111 *mt9m111, struct mt9m111_context *ctx, struct v4l2_rect *rect, unsigned int width, unsigned int height) argument
389 struct v4l2_rect rect = a->c; local
541 struct v4l2_rect *rect = &mt9m111->rect; local
584 struct v4l2_rect *rect = &mt9m111->rect; local
[all...]
H A Dmt9m001.c96 struct v4l2_rect rect; /* Sensor window */ member in struct:mt9m001
178 struct v4l2_rect rect = a->c; local
187 rect.height = ALIGN(rect.height, 2);
190 rect.width = ALIGN(rect.width, 2);
191 rect.left = ALIGN(rect.left, 2);
193 soc_camera_limit_side(&rect.left, &rect
[all...]
H A Dov6650.c200 struct v4l2_rect rect; /* sensor cropping window */ member in struct:ov6650
441 a->c = priv->rect;
450 struct v4l2_rect *rect = &a->c; local
456 rect->left = ALIGN(rect->left, 2);
457 rect->width = ALIGN(rect->width, 2);
458 rect->top = ALIGN(rect->top, 2);
459 rect
517 is_unscaled_ok(int width, int height, struct v4l2_rect *rect) argument
[all...]
H A Dmt9t031.c78 struct v4l2_rect rect; /* Sensor window */ member in struct:mt9t031
208 /* rect is the sensor rectangle, the caller guarantees parameter validity */
210 struct v4l2_rect *rect, u16 xskip, u16 yskip)
222 * Could just do roundup(rect->left, [xy]bin * 2); but this is cheaper.
236 rect->left &= ~1;
239 rect->left &= ~3;
242 rect->left = rect->left > roundup(MT9T031_COLUMN_SKIP, 6) ?
243 (rect->left / 6) * 6 : roundup(MT9T031_COLUMN_SKIP, 6);
246 rect
209 mt9t031_set_params(struct i2c_client *client, struct v4l2_rect *rect, u16 xskip, u16 yskip) argument
307 struct v4l2_rect rect = a->c; local
369 struct v4l2_rect rect = mt9t031->rect; local
[all...]
H A Dtvp5150.c39 struct v4l2_rect rect; member in struct:tvp5150
745 decoder->rect.height = TVP5150_V_MAX_525_60;
747 decoder->rect.height = TVP5150_V_MAX_OTHERS;
846 f->width = decoder->rect.width;
847 f->height = decoder->rect.height;
860 struct v4l2_rect rect = a->c; local
866 __func__, rect.left, rect.top, rect.width, rect
[all...]
H A Dmt9t001.c319 crop->rect = *__mt9t001_get_pad_crop(mt9t001, fh, crop->pad,
331 struct v4l2_rect rect; local
336 rect.left = clamp(ALIGN(crop->rect.left, 2),
339 rect.top = clamp(ALIGN(crop->rect.top, 2),
342 rect.width = clamp(ALIGN(crop->rect.width, 2),
345 rect.height = clamp(ALIGN(crop->rect
[all...]
H A Dmt9v032.c410 crop->rect = *__mt9v032_get_pad_crop(mt9v032, fh, crop->pad,
422 struct v4l2_rect rect; local
427 rect.left = clamp(ALIGN(crop->rect.left + 1, 2) - 1,
430 rect.top = clamp(ALIGN(crop->rect.top + 1, 2) - 1,
433 rect.width = clamp(ALIGN(crop->rect.width, 2),
436 rect.height = clamp(ALIGN(crop->rect
[all...]
H A Dmt9v022.c117 struct v4l2_rect rect; /* Sensor window */ member in struct:mt9v022
221 struct v4l2_rect rect = a->c; local
226 rect.width = ALIGN(rect.width, 2);
227 rect.height = ALIGN(rect.height, 2);
231 soc_camera_limit_side(&rect.left, &rect.width,
234 soc_camera_limit_side(&rect.top, &rect
[all...]
H A Dsh_mobile_ceu_camera.c141 struct v4l2_rect rect; member in struct:sh_mobile_ceu_cam
659 /* rect is guaranteed to not exceed the scaled camera rectangle */
1000 static int client_g_rect(struct v4l2_subdev *sd, struct v4l2_rect *rect);
1067 struct v4l2_rect rect; local
1079 ret = client_g_rect(sd, &rect);
1121 cam->rect = rect;
1122 cam->subrect = rect;
1214 static int client_g_rect(struct v4l2_subdev *sd, struct v4l2_rect *rect) argument
1224 *rect
1241 struct v4l2_rect *rect = &cam->rect, *subrect = &cam->subrect; local
1274 struct v4l2_rect *rect = &crop->c, *cam_rect = &cam_crop->c; local
1527 struct v4l2_rect *rect = &a->c; local
[all...]
H A Dsh_vou.c72 struct v4l2_rect rect; member in struct:sh_vou_device
446 struct v4l2_rect *rect = &vou_dev->rect; local
459 frame_out_height = rect->height / 2;
460 frame_out_top = rect->top / 2;
484 dsr_h = rect->width + rect->left;
490 rect->left, frame_out_top, dsr_h, dsr_v);
495 sh_vou_reg_ab_write(vou_dev, VOUDPR, (rect->left << 16) | frame_out_top);
689 vou_dev->rect
940 struct v4l2_rect *rect = &a->c; local
1311 struct v4l2_rect *rect; local
[all...]
/drivers/video/mb862xx/
H A Dmb862xxfb_accel.c257 const struct fb_fillrect *rect)
266 if (!rect->width || !rect->height || rect->dx > vxres
267 || rect->dy > vyres)
272 x2 = rect->dx + rect->width;
273 y2 = rect->dy + rect->height;
276 width = x2 - rect
256 mb86290fb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) argument
[all...]
/drivers/gpu/drm/nouveau/
H A Dnouveau_fbcon.h44 int nv04_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
48 int nv50_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
53 int nvc0_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect);
H A Dnv50_fbcon.c33 nv50_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect) argument
41 ret = RING_SPACE(chan, rect->rop == ROP_COPY ? 7 : 11);
45 if (rect->rop != ROP_COPY) {
52 OUT_RING(chan, ((uint32_t *)info->pseudo_palette)[rect->color]);
54 OUT_RING(chan, rect->color);
56 OUT_RING(chan, rect->dx);
57 OUT_RING(chan, rect->dy);
58 OUT_RING(chan, rect->dx + rect->width);
59 OUT_RING(chan, rect
[all...]
H A Dnvc0_fbcon.c33 nvc0_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect) argument
41 ret = RING_SPACE(chan, rect->rop == ROP_COPY ? 7 : 11);
45 if (rect->rop != ROP_COPY) {
52 OUT_RING (chan, ((uint32_t *)info->pseudo_palette)[rect->color]);
54 OUT_RING (chan, rect->color);
56 OUT_RING (chan, rect->dx);
57 OUT_RING (chan, rect->dy);
58 OUT_RING (chan, rect->dx + rect->width);
59 OUT_RING (chan, rect
[all...]
/drivers/video/console/
H A Dtileblit.c37 struct fb_tilerect rect; local
41 rect.index = vc->vc_video_erase_char &
43 rect.fg = attr_fgcol_ec(fgshift, vc, info);
44 rect.bg = attr_bgcol_ec(bgshift, vc, info);
45 rect.sx = sx;
46 rect.sy = sy;
47 rect.width = width;
48 rect.height = height;
49 rect.rop = ROP_COPY;
51 info->tileops->fb_tilefill(info, &rect);
[all...]
/drivers/media/video/sn9c102/
H A Dsn9c102_tas5110d.c41 const struct v4l2_rect* rect)
45 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 69,
46 v_start = (u8)(rect->top - s->cropcap.bounds.top) + 9;
40 tas5110d_set_crop(struct sn9c102_device* cam, const struct v4l2_rect* rect) argument
H A Dsn9c102_tas5110c1b.c59 const struct v4l2_rect* rect)
63 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left) + 69,
64 v_start = (u8)(rect->top - s->cropcap.bounds.top) + 9;
58 tas5110c1b_set_crop(struct sn9c102_device* cam, const struct v4l2_rect* rect) argument
/drivers/video/matrox/
H A Dmatroxfb_accel.c105 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) { argument
314 switch (rect->rop) {
316 matroxfb_accel_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, rect->width);
378 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { argument
[all...]
/drivers/media/video/et61x251/
H A Det61x251_core.c1077 et61x251_set_crop(struct et61x251_device* cam, struct v4l2_rect* rect) argument
1080 u16 fmw_sx = (u16)(rect->left - s->cropcap.bounds.left +
1082 fmw_sy = (u16)(rect->top - s->cropcap.bounds.top +
1084 fmw_length = (u16)(rect->width),
1085 fmw_height = (u16)(rect->height);
1110 struct v4l2_rect* rect; local
1118 rect = &(s->cropcap.defrect);
1122 rect = &(s->_rect);
1125 err += et61x251_set_scale(cam, rect->width / s->pix_format.width);
1126 err += et61x251_set_crop(cam, rect);
1779 struct v4l2_rect* rect; local
1982 struct v4l2_rect rect; local
[all...]

Completed in 241 milliseconds

12345