Home
last modified time | relevance | path

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

1234567

/linux/drivers/gpu/drm/tiny/
H A Dili9225.c81 struct drm_rect *rect, struct drm_format_conv_state *fmtcnv_state) in ili9225_fb_dirty() argument
84 unsigned int height = rect->y2 - rect->y1; in ili9225_fb_dirty()
85 unsigned int width = rect->x2 - rect->x1; in ili9225_fb_dirty()
96 DRM_DEBUG_KMS("Flushing [FB:%d] " DRM_RECT_FMT "\n", fb->base.id, DRM_RECT_ARG(rect)); in ili9225_fb_dirty()
101 ret = mipi_dbi_buf_copy(tr, src, fb, rect, swap, fmtcnv_state); in ili9225_fb_dirty()
110 x1 = rect->x1; in ili9225_fb_dirty()
111 x2 = rect->x2 - 1; in ili9225_fb_dirty()
112 y1 = rect->y1; in ili9225_fb_dirty()
113 y2 = rect->y2 - 1; in ili9225_fb_dirty()
118 x1 = rect->y1; in ili9225_fb_dirty()
[all …]
H A Dst7586.c113 struct drm_rect *rect, struct drm_format_conv_state *fmtcnv_state) in st7586_fb_dirty() argument
120 rect->x1 = rounddown(rect->x1, 3); in st7586_fb_dirty()
121 rect->x2 = roundup(rect->x2, 3); in st7586_fb_dirty()
123 DRM_DEBUG_KMS("Flushing [FB:%d] " DRM_RECT_FMT "\n", fb->base.id, DRM_RECT_ARG(rect)); in st7586_fb_dirty()
125 ret = st7586_buf_copy(dbidev->tx_buf, src, fb, rect, fmtcnv_state); in st7586_fb_dirty()
130 start = rect->x1 / 3; in st7586_fb_dirty()
131 end = rect->x2 / 3; in st7586_fb_dirty()
137 (rect->y1 >> 8) & 0xFF, rect->y1 & 0xFF, in st7586_fb_dirty()
138 (rect->y2 >> 8) & 0xFF, (rect->y2 - 1) & 0xFF); in st7586_fb_dirty()
142 (end - start) * (rect->y2 - rect->y1)); in st7586_fb_dirty()
[all …]
H A Dgm12u320.c98 struct drm_rect rect; member
267 x1 = gm12u320->fb_update.rect.x1; in gm12u320_copy_fb_to_blocks()
268 x2 = gm12u320->fb_update.rect.x2; in gm12u320_copy_fb_to_blocks()
269 y1 = gm12u320->fb_update.rect.y1; in gm12u320_copy_fb_to_blocks()
270 y2 = gm12u320->fb_update.rect.y2; in gm12u320_copy_fb_to_blocks()
415 gm12u320->fb_update.rect = *dirty; in gm12u320_fb_mark_dirty()
419 struct drm_rect *rect = &gm12u320->fb_update.rect; in gm12u320_fb_mark_dirty() local
421 rect->x1 = min(rect in gm12u320_fb_mark_dirty()
556 struct drm_rect rect = { 0, 0, GM12U320_USER_WIDTH, GM12U320_HEIGHT }; gm12u320_pipe_enable() local
576 struct drm_rect rect; gm12u320_pipe_update() local
[all...]
/linux/drivers/gpu/drm/
H A Ddrm_damage_helper.c271 struct drm_rect *rect) in drm_atomic_helper_damage_iter_next() argument
276 *rect = iter->plane_src; in drm_atomic_helper_damage_iter_next()
282 *rect = iter->clips[iter->curr_clip]; in drm_atomic_helper_damage_iter_next()
285 if (drm_rect_intersect(rect, &iter->plane_src)) { in drm_atomic_helper_damage_iter_next()
312 struct drm_rect *rect) in drm_atomic_helper_damage_merged() argument
318 rect->x1 = INT_MAX; in drm_atomic_helper_damage_merged()
319 rect->y1 = INT_MAX; in drm_atomic_helper_damage_merged()
320 rect->x2 = 0; in drm_atomic_helper_damage_merged()
321 rect->y2 = 0; in drm_atomic_helper_damage_merged()
325 rect->x1 = min(rect->x1, clip.x1); in drm_atomic_helper_damage_merged()
[all …]
/linux/drivers/video/fbdev/sis/
H 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 …]
/linux/drivers/gpu/drm/gud/
H 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()
79 drm_fb_xrgb8888_to_gray8(&dst_map, NULL, &vmap, fb, rect, fmtcnv_state); 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()
117 len = drm_format_info_min_pitch(format, 0, width) * drm_rect_height(rect); in gud_xrgb8888_to_color()
119 for (y = rect->y1; y < rect->y2; y++) { in gud_xrgb8888_to_color()
[all …]
/linux/drivers/media/platform/qcom/camss/
H A Dcamss-vfe.c1070 struct v4l2_rect *rect; in vfe_try_format() local
1072 rect = __vfe_get_crop(line, sd_state, which); in vfe_try_format()
1074 fmt->width = rect->width; in vfe_try_format()
1075 fmt->height = rect->height; in vfe_try_format()
1093 struct v4l2_rect *rect, in vfe_try_compose() argument
1100 if (rect->width > fmt->width) in vfe_try_compose()
1101 rect->width = fmt->width; in vfe_try_compose()
1103 if (rect->height > fmt->height) in vfe_try_compose()
1104 rect->height = fmt->height; in vfe_try_compose()
1106 if (fmt->width > rect->width * SCALER_RATIO_MAX) in vfe_try_compose()
[all …]
/linux/drivers/gpu/drm/exynos/
H 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()
296 offsetof(struct exynos_drm_ipp_task, src.rect),
301 offsetof(struct exynos_drm_ipp_task, dst.rect),
497 if (!__size_limit_check(buf->rect.w, lh) || in exynos_drm_ipp_check_size_limits()
498 !__align_check(buf->rect.x, lh->align) || in exynos_drm_ipp_check_size_limits()
499 !__size_limit_check(buf->rect.h, lv) || in exynos_drm_ipp_check_size_limits()
500 !__align_check(buf->rect.y, lv->align)) in exynos_drm_ipp_check_size_limits()
596 ret = exynos_drm_ipp_check_scale_limits(&src->rect, &dst->rect, in exynos_drm_ipp_check_format()
614 if (src->rect.w == UINT_MAX) in exynos_drm_ipp_task_check()
[all …]
H 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 in fimc_set_window()
[all...]
/linux/drivers/media/i2c/
H A Dmt9m111.c233 struct v4l2_rect rect; /* cropping rectangle */ member
381 struct mt9m111_context *ctx, struct v4l2_rect *rect, in mt9m111_setup_rect_ctx() argument
385 int ret = mt9m111_reg_write(client, ctx->reducer_xzoom, rect->width); in mt9m111_setup_rect_ctx()
387 ret = mt9m111_reg_write(client, ctx->reducer_yzoom, rect->height); in mt9m111_setup_rect_ctx()
395 static int mt9m111_setup_geometry(struct mt9m111 *mt9m111, struct v4l2_rect *rect, in mt9m111_setup_geometry() argument
401 ret = reg_write(COLUMN_START, rect->left); in mt9m111_setup_geometry()
403 ret = reg_write(ROW_START, rect->top); in mt9m111_setup_geometry()
406 ret = reg_write(WINDOW_WIDTH, rect->width); in mt9m111_setup_geometry()
408 ret = reg_write(WINDOW_HEIGHT, rect->height); in mt9m111_setup_geometry()
414 rect, width, height); in mt9m111_setup_geometry()
[all …]
H A Dmt9m001.c97 struct v4l2_rect rect; /* Sensor window */ member
197 { MT9M001_COLUMN_START, mt9m001->rect.left }, in mt9m001_apply_selection()
198 { MT9M001_ROW_START, mt9m001->rect.top }, in mt9m001_apply_selection()
199 { MT9M001_WINDOW_WIDTH, mt9m001->rect.width - 1 }, in mt9m001_apply_selection()
201 mt9m001->rect.height + mt9m001->y_skip_top - 1 }, in mt9m001_apply_selection()
256 struct v4l2_rect rect = sel->r; in mt9m001_set_selection() local
267 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()
[all …]
H A Dov6650.c199 struct v4l2_rect rect; /* sensor cropping window */ member
475 struct v4l2_rect *rect; in ov6650_get_selection() local
479 rect = v4l2_subdev_state_get_crop(sd_state, 0); in ov6650_get_selection()
483 rect = &priv->rect; in ov6650_get_selection()
496 sel->r = *rect; in ov6650_get_selection()
504 static bool is_unscaled_ok(int width, int height, struct v4l2_rect *rect) in is_unscaled_ok() argument
506 return width > rect->width >> 1 || height > rect->height >> 1; in is_unscaled_ok()
509 static void ov6650_bind_align_crop_rectangle(struct v4l2_rect *rect) in ov6650_bind_align_crop_rectangle() argument
511 v4l_bound_align_image(&rect->width, 2, W_CIF, 1, in ov6650_bind_align_crop_rectangle()
512 &rect->height, 2, H_CIF, 1, 0); in ov6650_bind_align_crop_rectangle()
[all …]
/linux/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-pipe.c458 struct v4l2_rect *rect; in mxc_isi_pipe_set_fmt() local
486 rect = mxc_isi_pipe_get_pad_compose(pipe, state, in mxc_isi_pipe_set_fmt()
488 rect->width = mf->width; in mxc_isi_pipe_set_fmt()
489 rect->height = mf->height; in mxc_isi_pipe_set_fmt()
491 rect = mxc_isi_pipe_get_pad_crop(pipe, state, in mxc_isi_pipe_set_fmt()
493 rect->left = 0; in mxc_isi_pipe_set_fmt()
494 rect->top = 0; in mxc_isi_pipe_set_fmt()
495 rect->width = mf->width; in mxc_isi_pipe_set_fmt()
496 rect->height = mf->height; in mxc_isi_pipe_set_fmt()
529 rect = mxc_isi_pipe_get_pad_crop(pipe, state, in mxc_isi_pipe_set_fmt()
[all …]
/linux/drivers/gpu/ipu-v3/
H A Dipu-cpmem.c774 ipu_cpmem_set_resolution(ch, image->rect.width, image->rect.height); in ipu_cpmem_set_image()
781 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
783 image->u_offset : U_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
784 image->rect.top) - offset; in ipu_cpmem_set_image()
786 image->v_offset : V_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
787 image->rect.top) - offset; in ipu_cpmem_set_image()
793 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
795 image->u_offset : V_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
796 image->rect.top) - offset; in ipu_cpmem_set_image()
798 image->v_offset : U_OFFSET(pix, image->rect.left, in ipu_cpmem_set_image()
[all …]
/linux/drivers/video/fbdev/savage/
H 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()
/linux/drivers/staging/media/starfive/camss/
H A Dstf-isp.c203 struct v4l2_rect *rect; in isp_get_selection() local
215 rect = v4l2_subdev_state_get_crop(state, sel->pad); in isp_get_selection()
216 sel->r = *rect; in isp_get_selection()
221 rect = v4l2_subdev_state_get_crop(state, sel->pad); 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
249 rect = v4l2_subdev_state_get_crop(state, sel->pad); in isp_set_selection()
250 if (!rect) in isp_set_selection()
254 *rect = sel->r; in isp_set_selection()
[all …]
/linux/drivers/video/fbdev/mb862xx/
H 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 …]
/linux/drivers/video/fbdev/core/
H A 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/drivers/gpu/drm/amd/display/dc/
H A Ddc_spl_translate.c20 static void populate_splrect_from_rect(struct spl_rect *spl_rect, const struct rect *rect) in populate_splrect_from_rect() argument
22 spl_rect->x = rect->x; in populate_splrect_from_rect()
23 spl_rect->y = rect->y; in populate_splrect_from_rect()
24 spl_rect->width = rect->width; in populate_splrect_from_rect()
25 spl_rect->height = rect->height; in populate_splrect_from_rect()
27 static void populate_rect_from_splrect(struct rect *rect, const struct spl_rect *spl_rect) in populate_rect_from_splrect() argument
29 rect->x = spl_rect->x; in populate_rect_from_splrect()
30 rect in populate_rect_from_splrect()
[all...]
/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_plane.c113 struct drm_rect *rect) in virtio_gpu_update_dumb_bo() argument
118 uint32_t w = rect->x2 - rect->x1; in virtio_gpu_update_dumb_bo()
119 uint32_t h = rect->y2 - rect->y1; in virtio_gpu_update_dumb_bo()
120 uint32_t x = rect->x1; in virtio_gpu_update_dumb_bo()
121 uint32_t y = rect->y1; in virtio_gpu_update_dumb_bo()
177 struct drm_rect rect; in virtio_gpu_primary_plane_update() local
196 if (!drm_atomic_helper_damage_merged(old_state, plane->state, &rect)) in virtio_gpu_primary_plane_update()
201 virtio_gpu_update_dumb_bo(vgdev, plane->state, &rect); in virtio_gpu_primary_plane_update()
238 rect.x1, in virtio_gpu_primary_plane_update()
239 rect.y1, in virtio_gpu_primary_plane_update()
[all …]
/linux/drivers/media/platform/renesas/
H A Dsh_vou.c81 struct v4l2_rect rect; member
423 struct v4l2_rect *rect = &vou_dev->rect; in sh_vou_configure_geometry() local
436 frame_out_height = rect->height / 2; in sh_vou_configure_geometry()
437 frame_out_top = rect->top / 2; in sh_vou_configure_geometry()
461 dsr_h = rect->width + rect->left; in sh_vou_configure_geometry()
467 rect->left, frame_out_top, dsr_h, dsr_v); in sh_vou_configure_geometry()
472 sh_vou_reg_ab_write(vou_dev, VOUDPR, (rect->left << 16) | frame_out_top); in sh_vou_configure_geometry()
712 geo.output = vou_dev->rect; in sh_vou_set_fmt_vid_out()
747 vou_dev->rect = geo.output; in sh_vou_set_fmt_vid_out()
834 vou_dev->rect.top = vou_dev->rect.left = 0; in sh_vou_s_std()
[all …]
/linux/drivers/video/fbdev/
H A Dwmt_ge_rops.c44 void wmt_ge_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in wmt_ge_fillrect() argument
53 fg = ((u32 *) (p->pseudo_palette))[rect->color]; in wmt_ge_fillrect()
55 fg = rect->color; in wmt_ge_fillrect()
68 writel(rect->dx, regbase + GE_DESTAREAX_OFF); in wmt_ge_fillrect()
69 writel(rect->dy, regbase + GE_DESTAREAY_OFF); in wmt_ge_fillrect()
70 writel(rect->width - 1, regbase + GE_DESTAREAW_OFF); in wmt_ge_fillrect()
71 writel(rect->height - 1, regbase + GE_DESTAREAH_OFF); in wmt_ge_fillrect()
75 writel(rect->rop == ROP_XOR ? 0x5a : 0xf0, regbase + GE_ROPCODE_OFF); in wmt_ge_fillrect()
/linux/drivers/video/fbdev/matrox/
H A Dmatroxfb_accel.c106 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect);
108 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect);
327 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_fillrect() argument
330 switch (rect->rop) { in matroxfb_fillrect()
332 …_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, in matroxfb_fillrect()
395 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_cfb4_fillrect() argument
398 switch (rect->rop) { in matroxfb_cfb4_fillrect()
400 …_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, in matroxfb_cfb4_fillrect()
/linux/drivers/gpu/drm/vmwgfx/
H 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()
/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-lite.c574 struct v4l2_rect *rect; in fimc_lite_subdev_try_fmt() local
583 rect = v4l2_subdev_state_get_crop(sd_state, in fimc_lite_subdev_try_fmt()
588 rect = &sink->rect; in fimc_lite_subdev_try_fmt()
592 mf->width = rect->width; in fimc_lite_subdev_try_fmt()
593 mf->height = rect->height; in fimc_lite_subdev_try_fmt()
624 struct v4l2_rect *crop_rect = &fimc->inp_frame.rect; in fimc_lite_try_compose()
890 sel->r = f->rect; in fimc_lite_g_selection()
902 struct v4l2_rect rect = sel->r; in fimc_lite_s_selection() local
909 fimc_lite_try_compose(fimc, &rect); in fimc_lite_s_selection()
912 !v4l2_rect_enclosed(&rect, &sel->r)) in fimc_lite_s_selection()
[all …]

1234567