Home
last modified time | relevance | path

Searched refs:rect (Results 1 – 25 of 113) sorted by relevance

12345

/linux-3.4.99/arch/tile/kernel/
Dhardwall.c59 static void hardwall_add_proc(struct hardwall_info *rect);
60 static void hardwall_remove_proc(struct hardwall_info *rect);
225 struct hardwall_info *rect; in do_hardwall_trap() local
240 list_for_each_entry(rect, &rectangles, list) { in do_hardwall_trap()
241 if (contains(rect, x, y)) in do_hardwall_trap()
250 BUG_ON(&rect->list == &rectangles); in do_hardwall_trap()
257 if (rect->teardown_in_progress) { in do_hardwall_trap()
272 rect->teardown_in_progress = 1; in do_hardwall_trap()
280 list_for_each_entry(p, &rect->task_head, thread.hardwall_list) { in do_hardwall_trap()
281 BUG_ON(p->thread.hardwall != rect); in do_hardwall_trap()
[all …]
/linux-3.4.99/drivers/video/sis/
Dsis_accel.c318 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 …]
/linux-3.4.99/drivers/media/video/
Dmt9t031.c78 struct v4l2_rect rect; /* Sensor window */ member
210 struct v4l2_rect *rect, u16 xskip, u16 yskip) in mt9t031_set_params() argument
236 rect->left &= ~1; in mt9t031_set_params()
239 rect->left &= ~3; in mt9t031_set_params()
242 rect->left = rect->left > roundup(MT9T031_COLUMN_SKIP, 6) ? in mt9t031_set_params()
243 (rect->left / 6) * 6 : roundup(MT9T031_COLUMN_SKIP, 6); in mt9t031_set_params()
246 rect->top &= ~1; in mt9t031_set_params()
249 xskip, yskip, rect->width, rect->height, rect->left, rect->top); in mt9t031_set_params()
271 rect->left, rect->top); in mt9t031_set_params()
278 ret = reg_write(client, MT9T031_COLUMN_START, rect->left); in mt9t031_set_params()
[all …]
Dmt9m111.c210 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 …]
Dmt9m001.c96 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 …]
Dov6650.c200 struct v4l2_rect rect; /* sensor cropping window */ member
441 a->c = priv->rect; in ov6650_g_crop()
450 struct v4l2_rect *rect = &a->c; in ov6650_s_crop() local
456 rect->left = ALIGN(rect->left, 2); in ov6650_s_crop()
457 rect->width = ALIGN(rect->width, 2); in ov6650_s_crop()
458 rect->top = ALIGN(rect->top, 2); in ov6650_s_crop()
459 rect->height = ALIGN(rect->height, 2); in ov6650_s_crop()
460 soc_camera_limit_side(&rect->left, &rect->width, in ov6650_s_crop()
462 soc_camera_limit_side(&rect->top, &rect->height, in ov6650_s_crop()
465 ret = ov6650_reg_write(client, REG_HSTRT, rect->left >> 1); in ov6650_s_crop()
[all …]
Dtvp5150.c39 struct v4l2_rect rect; member
745 decoder->rect.height = TVP5150_V_MAX_525_60; in tvp5150_s_std()
747 decoder->rect.height = TVP5150_V_MAX_OTHERS; in tvp5150_s_std()
846 f->width = decoder->rect.width; in tvp5150_mbus_fmt()
847 f->height = decoder->rect.height; in tvp5150_mbus_fmt()
860 struct v4l2_rect rect = a->c; in tvp5150_s_crop() local
866 __func__, rect.left, rect.top, rect.width, rect.height); in tvp5150_s_crop()
872 rect.left = clamp(rect.left, 0, TVP5150_MAX_CROP_LEFT); in tvp5150_s_crop()
873 rect.width = clamp(rect.width, in tvp5150_s_crop()
874 TVP5150_H_MAX - TVP5150_MAX_CROP_LEFT - rect.left, in tvp5150_s_crop()
[all …]
Dmt9v022.c117 struct v4l2_rect rect; /* Sensor window */ member
221 struct v4l2_rect rect = a->c; in mt9v022_s_crop() local
226 rect.width = ALIGN(rect.width, 2); in mt9v022_s_crop()
227 rect.height = ALIGN(rect.height, 2); in mt9v022_s_crop()
231 soc_camera_limit_side(&rect.left, &rect.width, in mt9v022_s_crop()
234 soc_camera_limit_side(&rect.top, &rect.height, in mt9v022_s_crop()
242 rect.height + mt9v022->y_skip_top + 43); in mt9v022_s_crop()
245 rect.height + mt9v022->y_skip_top + 43); in mt9v022_s_crop()
249 ret = reg_write(client, MT9V022_COLUMN_START, rect.left); in mt9v022_s_crop()
251 ret = reg_write(client, MT9V022_ROW_START, rect.top); in mt9v022_s_crop()
[all …]
Dsh_mobile_ceu_camera.c141 struct v4l2_rect rect; member
1000 static int client_g_rect(struct v4l2_subdev *sd, struct v4l2_rect *rect);
1067 struct v4l2_rect rect; in sh_mobile_ceu_get_formats() local
1079 ret = client_g_rect(sd, &rect); in sh_mobile_ceu_get_formats()
1121 cam->rect = rect; in sh_mobile_ceu_get_formats()
1122 cam->subrect = rect; in sh_mobile_ceu_get_formats()
1214 static int client_g_rect(struct v4l2_subdev *sd, struct v4l2_rect *rect) in client_g_rect() argument
1224 *rect = crop.c; in client_g_rect()
1233 *rect = cap.defrect; in client_g_rect()
1241 struct v4l2_rect *rect = &cam->rect, *subrect = &cam->subrect; in update_subrect() local
[all …]
Dmt9v032.c410 crop->rect = *__mt9v032_get_pad_crop(mt9v032, fh, crop->pad, in mt9v032_get_crop()
422 struct v4l2_rect rect; in mt9v032_set_crop() local
427 rect.left = clamp(ALIGN(crop->rect.left + 1, 2) - 1, in mt9v032_set_crop()
430 rect.top = clamp(ALIGN(crop->rect.top + 1, 2) - 1, in mt9v032_set_crop()
433 rect.width = clamp(ALIGN(crop->rect.width, 2), in mt9v032_set_crop()
436 rect.height = clamp(ALIGN(crop->rect.height, 2), in mt9v032_set_crop()
440 rect.width = min(rect.width, MT9V032_PIXEL_ARRAY_WIDTH - rect.left); in mt9v032_set_crop()
441 rect.height = min(rect.height, MT9V032_PIXEL_ARRAY_HEIGHT - rect.top); in mt9v032_set_crop()
445 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9v032_set_crop()
451 __format->width = rect.width; in mt9v032_set_crop()
[all …]
Dmt9m032.c410 crop->rect = *__mt9m032_get_pad_crop(sensor, fh, crop->which); in mt9m032_get_pad_crop()
423 struct v4l2_rect rect; in mt9m032_set_pad_crop() local
436 rect.left = clamp(ALIGN(crop->rect.left, 2), MT9M032_COLUMN_START_MIN, in mt9m032_set_pad_crop()
438 rect.top = clamp(ALIGN(crop->rect.top, 2), MT9M032_ROW_START_MIN, in mt9m032_set_pad_crop()
440 rect.width = clamp(ALIGN(crop->rect.width, 2), MT9M032_COLUMN_SIZE_MIN, in mt9m032_set_pad_crop()
442 rect.height = clamp(ALIGN(crop->rect.height, 2), MT9M032_ROW_SIZE_MIN, in mt9m032_set_pad_crop()
445 rect.width = min(rect.width, MT9M032_PIXEL_ARRAY_WIDTH - rect.left); in mt9m032_set_pad_crop()
446 rect.height = min(rect.height, MT9M032_PIXEL_ARRAY_HEIGHT - rect.top); in mt9m032_set_pad_crop()
450 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9m032_set_pad_crop()
455 format->width = rect.width; in mt9m032_set_pad_crop()
[all …]
Dmt9t001.c319 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 …]
Dmt9p031.c506 crop->rect = *__mt9p031_get_pad_crop(mt9p031, fh, crop->pad, in mt9p031_get_crop()
518 struct v4l2_rect rect; in mt9p031_set_crop() local
523 rect.left = clamp(ALIGN(crop->rect.left, 2), MT9P031_COLUMN_START_MIN, in mt9p031_set_crop()
525 rect.top = clamp(ALIGN(crop->rect.top, 2), MT9P031_ROW_START_MIN, in mt9p031_set_crop()
527 rect.width = clamp(ALIGN(crop->rect.width, 2), in mt9p031_set_crop()
530 rect.height = clamp(ALIGN(crop->rect.height, 2), in mt9p031_set_crop()
534 rect.width = min(rect.width, MT9P031_PIXEL_ARRAY_WIDTH - rect.left); in mt9p031_set_crop()
535 rect.height = min(rect.height, MT9P031_PIXEL_ARRAY_HEIGHT - rect.top); in mt9p031_set_crop()
539 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9p031_set_crop()
545 __format->width = rect.width; in mt9p031_set_crop()
[all …]
Dsh_vou.c72 struct v4l2_rect rect; member
446 struct v4l2_rect *rect = &vou_dev->rect; in sh_vou_configure_geometry() local
459 frame_out_height = rect->height / 2; in sh_vou_configure_geometry()
460 frame_out_top = rect->top / 2; in sh_vou_configure_geometry()
484 dsr_h = rect->width + rect->left; in sh_vou_configure_geometry()
490 rect->left, frame_out_top, dsr_h, dsr_v); in sh_vou_configure_geometry()
495 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 …]
/linux-3.4.99/drivers/video/savage/
Dsavagefb_accel.c65 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()
/linux-3.4.99/drivers/video/mb862xx/
Dmb862xxfb_accel.c257 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 …]
/linux-3.4.99/drivers/video/console/
Dtileblit.c37 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()
/linux-3.4.99/drivers/media/video/et61x251/
Det61x251_core.c1077 et61x251_set_crop(struct et61x251_device* cam, struct v4l2_rect* rect) in et61x251_set_crop() argument
1080 u16 fmw_sx = (u16)(rect->left - s->cropcap.bounds.left + in et61x251_set_crop()
1082 fmw_sy = (u16)(rect->top - s->cropcap.bounds.top + in et61x251_set_crop()
1084 fmw_length = (u16)(rect->width), in et61x251_set_crop()
1085 fmw_height = (u16)(rect->height); in et61x251_set_crop()
1110 struct v4l2_rect* rect; in et61x251_init() local
1118 rect = &(s->cropcap.defrect); in et61x251_init()
1122 rect = &(s->_rect); in et61x251_init()
1125 err += et61x251_set_scale(cam, rect->width / s->pix_format.width); in et61x251_init()
1126 err += et61x251_set_crop(cam, rect); in et61x251_init()
[all …]
/linux-3.4.99/drivers/gpu/drm/nouveau/
Dnv50_fbcon.c33 nv50_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in nv50_fbcon_fillrect() argument
41 ret = RING_SPACE(chan, rect->rop == ROP_COPY ? 7 : 11); in nv50_fbcon_fillrect()
45 if (rect->rop != ROP_COPY) { in nv50_fbcon_fillrect()
52 OUT_RING(chan, ((uint32_t *)info->pseudo_palette)[rect->color]); in nv50_fbcon_fillrect()
54 OUT_RING(chan, rect->color); in nv50_fbcon_fillrect()
56 OUT_RING(chan, rect->dx); in nv50_fbcon_fillrect()
57 OUT_RING(chan, rect->dy); in nv50_fbcon_fillrect()
58 OUT_RING(chan, rect->dx + rect->width); in nv50_fbcon_fillrect()
59 OUT_RING(chan, rect->dy + rect->height); in nv50_fbcon_fillrect()
60 if (rect->rop != ROP_COPY) { in nv50_fbcon_fillrect()
Dnvc0_fbcon.c33 nvc0_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in nvc0_fbcon_fillrect() argument
41 ret = RING_SPACE(chan, rect->rop == ROP_COPY ? 7 : 11); in nvc0_fbcon_fillrect()
45 if (rect->rop != ROP_COPY) { in nvc0_fbcon_fillrect()
52 OUT_RING (chan, ((uint32_t *)info->pseudo_palette)[rect->color]); in nvc0_fbcon_fillrect()
54 OUT_RING (chan, rect->color); in nvc0_fbcon_fillrect()
56 OUT_RING (chan, rect->dx); in nvc0_fbcon_fillrect()
57 OUT_RING (chan, rect->dy); in nvc0_fbcon_fillrect()
58 OUT_RING (chan, rect->dx + rect->width); in nvc0_fbcon_fillrect()
59 OUT_RING (chan, rect->dy + rect->height); in nvc0_fbcon_fillrect()
60 if (rect->rop != ROP_COPY) { in nvc0_fbcon_fillrect()
/linux-3.4.99/drivers/video/
Dwmt_ge_rops.c49 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()
Dhitfb.c125 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()
/linux-3.4.99/drivers/media/video/sn9c102/
Dsn9c102_core.c1603 static int sn9c102_set_crop(struct sn9c102_device* cam, struct v4l2_rect* rect) in sn9c102_set_crop() argument
1606 u8 h_start = (u8)(rect->left - s->cropcap.bounds.left), in sn9c102_set_crop()
1607 v_start = (u8)(rect->top - s->cropcap.bounds.top), in sn9c102_set_crop()
1608 h_size = (u8)(rect->width / 16), in sn9c102_set_crop()
1609 v_size = (u8)(rect->height / 16); in sn9c102_set_crop()
1631 struct v4l2_rect* rect; in sn9c102_init() local
1639 rect = &(s->cropcap.defrect); in sn9c102_init()
1642 rect = &(s->_rect); in sn9c102_init()
1645 err += sn9c102_set_scale(cam, rect->width / s->pix_format.width); in sn9c102_init()
1646 err += sn9c102_set_crop(cam, rect); in sn9c102_init()
[all …]
/linux-3.4.99/drivers/video/matrox/
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);
326 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_fillrect() argument
329 switch (rect->rop) { in matroxfb_fillrect()
331 …_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, in matroxfb_fillrect()
394 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_cfb4_fillrect() argument
397 switch (rect->rop) { in matroxfb_cfb4_fillrect()
399 …_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, in matroxfb_cfb4_fillrect()
/linux-3.4.99/drivers/video/nvidia/
Dnv_accel.c316 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()

12345