Home
last modified time | relevance | path

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

1234567

/drivers/video/fbdev/core/
A Dtileblit.c41 rect.fg = fg; in tile_clear()
42 rect.bg = bg; in tile_clear()
43 rect.sx = sx; in tile_clear()
44 rect.sy = sy; in tile_clear()
89 rect.fg = color; in tile_clear_margins()
90 rect.bg = color; in tile_clear_margins()
94 rect.sy = 0; in tile_clear_margins()
97 if (rect.width + rect.sx > vwt) in tile_clear_margins()
98 rect.width = vwt - rect.sx; in tile_clear_margins()
108 if (rect.height + rect.sy > vht) in tile_clear_margins()
[all …]
A Dfb_fillrect.h207 u32 height = rect->height; in fb_fillrect_static()
208 int width = rect->width * bpp; in fb_fillrect_static()
213 if (rect->rop == ROP_XOR) in fb_fillrect_static()
240 u32 height = rect->height; in fb_fillrect_rotating()
241 int width = rect->width * bpp; in fb_fillrect_rotating()
243 if (rect->rop == ROP_XOR) in fb_fillrect_rotating()
265 fb_address_forward(&dst, rect->dy * bits_per_line + rect->dx * bpp); in fb_fillrect()
267 pattern.pixels = pixel_to_pat(bpp, palette ? palette[rect->color] : rect->color); in fb_fillrect()
273 fb_fillrect_rotating(rect, bpp, &dst, &pattern, in fb_fillrect()
276 fb_fillrect_rotating(rect, bpp, &dst, &pattern, in fb_fillrect()
[all …]
/drivers/gpu/drm/tiny/
A Dili9225.c85 unsigned int height = rect->y2 - rect->y1; in ili9225_fb_dirty()
86 unsigned int width = rect->x2 - rect->x1; in ili9225_fb_dirty()
111 x1 = rect->x1; in ili9225_fb_dirty()
112 x2 = rect->x2 - 1; in ili9225_fb_dirty()
113 y1 = rect->y1; in ili9225_fb_dirty()
114 y2 = rect->y2 - 1; in ili9225_fb_dirty()
119 x1 = rect->y1; in ili9225_fb_dirty()
120 x2 = rect->y2 - 1; in ili9225_fb_dirty()
137 y1 = rect->x1; in ili9225_fb_dirty()
138 y2 = rect->x2 - 1; in ili9225_fb_dirty()
[all …]
A Dgm12u320.c97 struct drm_rect rect; member
266 x1 = gm12u320->fb_update.rect.x1; in gm12u320_copy_fb_to_blocks()
267 x2 = gm12u320->fb_update.rect.x2; in gm12u320_copy_fb_to_blocks()
268 y1 = gm12u320->fb_update.rect.y1; in gm12u320_copy_fb_to_blocks()
269 y2 = gm12u320->fb_update.rect.y2; in gm12u320_copy_fb_to_blocks()
418 struct drm_rect *rect = &gm12u320->fb_update.rect; in gm12u320_fb_mark_dirty() local
420 rect->x1 = min(rect->x1, dirty->x1); in gm12u320_fb_mark_dirty()
421 rect->y1 = min(rect->y1, dirty->y1); in gm12u320_fb_mark_dirty()
422 rect->x2 = max(rect->x2, dirty->x2); in gm12u320_fb_mark_dirty()
423 rect->y2 = max(rect->y2, dirty->y2); in gm12u320_fb_mark_dirty()
[all …]
/drivers/gpu/drm/gud/
A Dgud_pipe.c54 struct drm_rect *rect, in gud_xrgb8888_to_r124() argument
68 rect->x1 = ALIGN_DOWN(rect->x1, block_width); in gud_xrgb8888_to_r124()
69 width = drm_rect_width(rect); in gud_xrgb8888_to_r124()
70 height = drm_rect_height(rect); in gud_xrgb8888_to_r124()
104 struct drm_rect *rect) in gud_xrgb8888_to_color() argument
115 rect->x1 = ALIGN_DOWN(rect->x1, block_width); in gud_xrgb8888_to_color()
116 width = drm_rect_width(rect); in gud_xrgb8888_to_color()
119 for (y = rect->y1; y < rect->y2; y++) { in gud_xrgb8888_to_color()
121 sbuf32 += rect->x1; in gud_xrgb8888_to_color()
349 rect.y1 += i * lines; in gud_flush_damage()
[all …]
/drivers/video/fbdev/sis/
A Dsis_accel.c305 void fbcon_sis_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in fbcon_sis_fillrect() argument
318 cfb_fillrect(info, rect); in fbcon_sis_fillrect()
322 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) in fbcon_sis_fillrect()
326 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect->width; in fbcon_sis_fillrect()
327 height = ((rect->dy + rect->height) > vyres) ? (vyres - rect->dy) : rect->height; in fbcon_sis_fillrect()
330 case 8: col = rect->color; in fbcon_sis_fillrect()
333 case 32: col = ((u32 *)(info->pseudo_palette))[rect->color]; in fbcon_sis_fillrect()
340 SiS300SetupForSolidFill(ivideo, col, myrops[rect->rop]); in fbcon_sis_fillrect()
341 SiS300SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect()
347 SiS310SetupForSolidFill(ivideo, col, myrops[rect->rop]); in fbcon_sis_fillrect()
[all …]
/drivers/gpu/drm/
A Ddrm_damage_helper.c273 struct drm_rect *rect) in drm_atomic_helper_damage_iter_next() argument
278 *rect = iter->plane_src; in drm_atomic_helper_damage_iter_next()
314 struct drm_rect *rect) in drm_atomic_helper_damage_merged() argument
320 rect->x1 = INT_MAX; in drm_atomic_helper_damage_merged()
321 rect->y1 = INT_MAX; in drm_atomic_helper_damage_merged()
322 rect->x2 = 0; in drm_atomic_helper_damage_merged()
323 rect->y2 = 0; in drm_atomic_helper_damage_merged()
327 rect->x1 = min(rect->x1, clip.x1); in drm_atomic_helper_damage_merged()
328 rect->y1 = min(rect->y1, clip.y1); in drm_atomic_helper_damage_merged()
329 rect->x2 = max(rect->x2, clip.x2); in drm_atomic_helper_damage_merged()
[all …]
/drivers/gpu/drm/sitronix/
A Dst7571-i2c.c289 size = (rect->x2 - rect->x1) * (rect->y2 - rect->y1) / 8; in st7571_prepare_buffer_monochrome()
301 u32 size = (rect->x2 - rect->x1) * (rect->y2 - rect->y1) / 8; in st7571_prepare_buffer_grayscale()
314 size = (rect->x2 - rect->x1) * (rect->y2 - rect->y1) / 8; in st7571_prepare_buffer_grayscale()
319 size = (rect->x2 - rect->x1) * (rect->y2 - rect->y1) / 4; in st7571_prepare_buffer_grayscale()
331 rect->y1 = round_down(rect->y1, ST7571_PAGE_HEIGHT); in st7571_fb_update_rect_monochrome()
334 for (int y = rect->y1; y < rect->y2; y += ST7571_PAGE_HEIGHT) { in st7571_fb_update_rect_monochrome()
335 for (int x = rect->x1; x < rect->x2; x++) in st7571_fb_update_rect_monochrome()
341 for (int x = rect->x1; x < rect->x2; x++) in st7571_fb_update_rect_monochrome()
357 rect->y1 = round_down(rect->y1, ST7571_PAGE_HEIGHT); in st7571_fb_update_rect_grayscale()
365 x1 = rect->x1; in st7571_fb_update_rect_grayscale()
[all …]
A Dst7586.c121 rect->x1 = rounddown(rect->x1, 3); in st7586_fb_dirty()
122 rect->x2 = roundup(rect->x2, 3); in st7586_fb_dirty()
131 start = rect->x1 / 3; in st7586_fb_dirty()
132 end = rect->x2 / 3; in st7586_fb_dirty()
138 (rect->y1 >> 8) & 0xFF, rect->y1 & 0xFF, in st7586_fb_dirty()
139 (rect->y2 >> 8) & 0xFF, (rect->y2 - 1) & 0xFF); in st7586_fb_dirty()
143 (end - start) * (rect->y2 - rect->y1)); in st7586_fb_dirty()
155 struct drm_rect rect; in st7586_pipe_update() local
165 st7586_fb_dirty(&shadow_plane_state->data[0], fb, &rect, in st7586_pipe_update()
179 struct drm_rect rect = { in st7586_pipe_enable() local
[all …]
/drivers/media/i2c/
A Dmt9m111.c421 __func__, code, rect->width, rect->height, rect->left, rect->top, in mt9m111_setup_geometry()
472 rect.left = clamp(rect.left, MT9M111_MIN_DARK_COLS, in mt9m111_set_selection()
474 (__s32)rect.width); in mt9m111_set_selection()
475 rect.top = clamp(rect.top, MT9M111_MIN_DARK_ROWS, in mt9m111_set_selection()
477 (__s32)rect.height); in mt9m111_set_selection()
484 mt9m111->rect = rect; in mt9m111_set_selection()
510 sel->r = mt9m111->rect; in mt9m111_get_selection()
627 struct v4l2_rect *rect = &mt9m111->rect; in mt9m111_set_fmt() local
647 rect->width = ALIGN(rect->width, 2); in mt9m111_set_fmt()
648 rect->height = ALIGN(rect->height, 2); in mt9m111_set_fmt()
[all …]
A Dmt9m001.c267 rect.height = ALIGN(rect.height, 2); in mt9m001_set_selection()
270 rect.width = ALIGN(rect.width, 2); in mt9m001_set_selection()
271 rect.left = ALIGN(rect.left, 2); in mt9m001_set_selection()
273 rect.width = clamp_t(u32, rect.width, MT9M001_MIN_WIDTH, in mt9m001_set_selection()
275 rect.left = clamp_t(u32, rect.left, MT9M001_COLUMN_SKIP, in mt9m001_set_selection()
278 rect.height = clamp_t(u32, rect.height, MT9M001_MIN_HEIGHT, in mt9m001_set_selection()
280 rect.top = clamp_t(u32, rect.top, MT9M001_ROW_SKIP, in mt9m001_set_selection()
286 mt9m001->rect = rect; in mt9m001_set_selection()
309 sel->r = mt9m001->rect; in mt9m001_get_selection()
354 .r.left = mt9m001->rect.left, in mt9m001_s_fmt()
[all …]
A Dov6650.c475 struct v4l2_rect *rect; in ov6650_get_selection() local
483 rect = &priv->rect; in ov6650_get_selection()
496 sel->r = *rect; in ov6650_get_selection()
506 return width > rect->width >> 1 || height > rect->height >> 1; in is_unscaled_ok()
556 priv->rect.width += priv->rect.left - sel->r.left; in ov6650_set_selection()
557 priv->rect.left = sel->r.left; in ov6650_set_selection()
566 priv->rect.height += priv->rect.top - sel->r.top; in ov6650_set_selection()
567 priv->rect.top = sel->r.top; in ov6650_set_selection()
727 crop = &priv->rect; in ov6650_set_fmt()
1104 priv->rect.width = W_CIF; in ov6650_probe()
[all …]
/drivers/gpu/drm/exynos/
A Dexynos_drm_ipp.c270 task->src.rect.w = task->dst.rect.w = UINT_MAX; in exynos_drm_ipp_task_alloc()
271 task->src.rect.h = task->dst.rect.h = UINT_MAX; in exynos_drm_ipp_task_alloc()
623 if (src->rect.x + src->rect.w > (src->buf.width) || in exynos_drm_ipp_task_check()
624 src->rect.y + src->rect.h > (src->buf.height) || in exynos_drm_ipp_task_check()
625 dst->rect.x + dst->rect.w > (dst->buf.width) || in exynos_drm_ipp_task_check()
626 dst->rect.y + dst->rect.h > (dst->buf.height)) { in exynos_drm_ipp_task_check()
633 if ((!swap && (src->rect.w != dst->rect.w || in exynos_drm_ipp_task_check()
634 src->rect.h != dst->rect.h)) || in exynos_drm_ipp_task_check()
635 (swap && (src->rect.w != dst->rect.h || in exynos_drm_ipp_task_check()
636 src->rect.h != dst->rect.w))) in exynos_drm_ipp_task_check()
[all …]
A Dexynos_drm_fimc.c474 h1 = buf->rect.x; in fimc_set_window()
475 h2 = real_width - buf->rect.w - buf->rect.x; in fimc_set_window()
476 v1 = buf->rect.y; in fimc_set_window()
477 v2 = buf->buf.height - buf->rect.h - buf->rect.y; in fimc_set_window()
480 buf->rect.x, buf->rect.y, buf->rect.w, buf->rect.h, in fimc_set_window()
518 buf->rect.y, buf->rect.w, buf->rect.h); in fimc_src_set_size()
539 EXYNOS_CIIYOFF_VERTICAL(buf->rect.y)); in fimc_src_set_size()
860 buf->rect.y, in fimc_dst_set_size()
861 buf->rect.w, buf->rect.h); in fimc_dst_set_size()
889 cfg = EXYNOS_CITAREA_TARGET_AREA(buf->rect.w * buf->rect.h); in fimc_dst_set_size()
[all …]
/drivers/gpu/drm/virtio/
A Dvirtgpu_plane.c140 uint32_t w = rect->x2 - rect->x1; in virtio_gpu_panic_update_dumb_bo()
141 uint32_t h = rect->y2 - rect->y1; in virtio_gpu_panic_update_dumb_bo()
163 uint32_t w = rect->x2 - rect->x1; in virtio_gpu_update_dumb_bo()
164 uint32_t h = rect->y2 - rect->y1; in virtio_gpu_update_dumb_bo()
301 rect.x1, in virtio_gpu_primary_plane_update()
302 rect.y1, in virtio_gpu_primary_plane_update()
303 rect.x2 - rect.x1, in virtio_gpu_primary_plane_update()
304 rect.y2 - rect.y1); in virtio_gpu_primary_plane_update()
539 rect.x1 = 0; in virtio_panic_flush()
540 rect.y1 = 0; in virtio_panic_flush()
[all …]
/drivers/media/platform/nxp/imx8-isi/
A Dimx8-isi-pipe.c458 struct v4l2_rect *rect; in mxc_isi_pipe_set_fmt() local
493 rect->left = 0; in mxc_isi_pipe_set_fmt()
494 rect->top = 0; in mxc_isi_pipe_set_fmt()
576 sel->r = *rect; in mxc_isi_pipe_get_selection()
585 sel->r = *rect; in mxc_isi_pipe_get_selection()
594 sel->r = *rect; in mxc_isi_pipe_get_selection()
610 struct v4l2_rect *rect; in mxc_isi_pipe_set_selection() local
630 *rect = sel->r; in mxc_isi_pipe_set_selection()
657 *rect = sel->r; in mxc_isi_pipe_set_selection()
662 rect->left = 0; in mxc_isi_pipe_set_selection()
[all …]
/drivers/gpu/ipu-v3/
A Dipu-cpmem.c751 ipu_cpmem_set_resolution(ch, image->rect.width, image->rect.height); in ipu_cpmem_set_image()
758 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
770 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
782 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
794 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
804 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
816 offset = image->rect.left * 2 + in ipu_cpmem_set_image()
829 offset = image->rect.left * 4 + in ipu_cpmem_set_image()
834 offset = image->rect.left * 3 + in ipu_cpmem_set_image()
842 offset = image->rect.left + image->rect.top * pix->bytesperline; in ipu_cpmem_set_image()
[all …]
/drivers/media/platform/qcom/camss/
A Dcamss-vfe.c1419 if (rect->width + rect->left > compose->width) in vfe_try_crop()
1420 rect->left = compose->width - rect->width; in vfe_try_crop()
1425 if (rect->height + rect->top > compose->height) in vfe_try_crop()
1426 rect->top = compose->height - rect->height; in vfe_try_crop()
1429 rect->left += (rect->width & 0xf) >> 1; in vfe_try_crop()
1433 rect->left = 0; in vfe_try_crop()
1438 rect->top = 0; in vfe_try_crop()
1633 sel->r = *rect; in vfe_get_selection()
1692 *rect = sel->r; in vfe_set_selection()
1698 crop.r = *rect; in vfe_set_selection()
[all …]
/drivers/video/fbdev/savage/
A 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()
/drivers/video/fbdev/mb862xx/
A Dmb862xxfb_accel.c249 const struct fb_fillrect *rect) in mb86290fb_fillrect() argument
258 if (!rect->width || !rect->height || rect->dx > vxres in mb86290fb_fillrect()
259 || rect->dy > vyres) in mb86290fb_fillrect()
264 x2 = rect->dx + rect->width; in mb86290fb_fillrect()
265 y2 = rect->dy + rect->height; in mb86290fb_fillrect()
268 width = x2 - rect->dx; in mb86290fb_fillrect()
269 height = y2 - rect->dy; in mb86290fb_fillrect()
272 fg = ((u32 *) (info->pseudo_palette))[rect->color]; in mb86290fb_fillrect()
274 fg = rect->color; in mb86290fb_fillrect()
276 switch (rect->rop) { in mb86290fb_fillrect()
[all …]
/drivers/staging/media/starfive/camss/
A Dstf-isp.c203 struct v4l2_rect *rect; in isp_get_selection() local
216 sel->r = *rect; in isp_get_selection()
222 if (!rect) in isp_get_selection()
225 sel->r = *rect; in isp_get_selection()
240 struct v4l2_rect *rect; in isp_set_selection() local
250 if (!rect) in isp_set_selection()
254 *rect = sel->r; in isp_set_selection()
260 crop.r = *rect; in isp_set_selection()
267 if (!rect) in isp_set_selection()
271 *rect = sel->r; in isp_set_selection()
[all …]
/drivers/media/platform/renesas/
A Dsh_vou.c81 struct v4l2_rect rect; member
421 struct v4l2_rect *rect = &vou_dev->rect; in sh_vou_configure_geometry() local
459 dsr_h = rect->width + rect->left; in sh_vou_configure_geometry()
832 vou_dev->rect.top = vou_dev->rect.left = 0; in sh_vou_s_std()
959 if (rect->width + rect->left > VOU_MAX_IMAGE_WIDTH) in sh_vou_s_selection()
960 rect->left = VOU_MAX_IMAGE_WIDTH - rect->width; in sh_vou_s_selection()
962 if (rect->height + rect->top > img_height_max) in sh_vou_s_selection()
963 rect->top = img_height_max - rect->height; in sh_vou_s_selection()
1248 rect = &vou_dev->rect; in sh_vou_probe()
1253 rect->left = 0; in sh_vou_probe()
[all …]
/drivers/gpu/drm/amd/display/dc/
A Ddc_spl_translate.c19 static void populate_splrect_from_rect(struct spl_rect *spl_rect, const struct rect *rect) in populate_splrect_from_rect() argument
21 spl_rect->x = rect->x; in populate_splrect_from_rect()
22 spl_rect->y = rect->y; in populate_splrect_from_rect()
23 spl_rect->width = rect->width; in populate_splrect_from_rect()
24 spl_rect->height = rect->height; in populate_splrect_from_rect()
26 static void populate_rect_from_splrect(struct rect *rect, const struct spl_rect *spl_rect) in populate_rect_from_splrect() argument
28 rect->x = spl_rect->x; in populate_rect_from_splrect()
29 rect->y = spl_rect->y; in populate_rect_from_splrect()
30 rect->width = spl_rect->width; in populate_rect_from_splrect()
31 rect->height = spl_rect->height; in populate_rect_from_splrect()
[all …]
/drivers/video/fbdev/matrox/
A Dmatroxfb_accel.c108 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect);
110 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect);
329 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_fillrect() argument
332 switch (rect->rop) { in matroxfb_fillrect()
334 …_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, in matroxfb_fillrect()
397 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_cfb4_fillrect() argument
400 switch (rect->rop) { in matroxfb_cfb4_fillrect()
402 …_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, in matroxfb_cfb4_fillrect()
/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_blit.c264 struct drm_rect *rect = &diff->rect; in vmw_adjust_rect() local
266 rect->x1 = min_t(int, rect->x1, offs); in vmw_adjust_rect()
267 rect->x2 = max_t(int, rect->x2, offs + 1); in vmw_adjust_rect()
268 rect->y1 = min_t(int, rect->y1, diff->line); in vmw_adjust_rect()
269 rect->y2 = max_t(int, rect->y2, diff->line + 1); in vmw_adjust_rect()
504 diff->rect.x1 = x_in_bytes / diff->cpp; in vmw_external_bo_copy()
505 diff->rect.y1 = ((dst_offset - x_in_bytes) / dst_stride); in vmw_external_bo_copy()
506 diff->rect.x2 = diff->rect.x1 + width_in_bytes / diff->cpp; in vmw_external_bo_copy()
507 diff->rect.y2 = diff->rect.y1 + height; in vmw_external_bo_copy()

Completed in 53 milliseconds

1234567