/linux/drivers/gpu/drm/tiny/ |
A D | ili9225.c | 82 unsigned int height = rect->y2 - rect->y1; in ili9225_fb_dirty() 83 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 D | st7586.c | 119 rect->x1 = rounddown(rect->x1, 3); in st7586_fb_dirty() 120 rect->x2 = roundup(rect->x2, 3); in st7586_fb_dirty() 129 start = rect->x1 / 3; in st7586_fb_dirty() 130 end = rect->x2 / 3; in st7586_fb_dirty() 136 (rect->y1 >> 8) & 0xFF, rect->y1 & 0xFF, in st7586_fb_dirty() 137 (rect->y2 >> 8) & 0xFF, (rect->y2 - 1) & 0xFF); in st7586_fb_dirty() 141 (end - start) * (rect->y2 - rect->y1)); in st7586_fb_dirty() 153 struct drm_rect rect; in st7586_pipe_update() local 159 st7586_fb_dirty(state->fb, &rect); in st7586_pipe_update() 169 struct drm_rect rect = { in st7586_pipe_enable() local [all …]
|
A D | gm12u320.c | 95 struct drm_rect rect; member 264 x1 = gm12u320->fb_update.rect.x1; in gm12u320_copy_fb_to_blocks() 265 x2 = gm12u320->fb_update.rect.x2; in gm12u320_copy_fb_to_blocks() 266 y1 = gm12u320->fb_update.rect.y1; in gm12u320_copy_fb_to_blocks() 267 y2 = gm12u320->fb_update.rect.y2; in gm12u320_copy_fb_to_blocks() 415 struct drm_rect *rect = &gm12u320->fb_update.rect; in gm12u320_fb_mark_dirty() local 417 rect->x1 = min(rect->x1, dirty->x1); in gm12u320_fb_mark_dirty() 418 rect->y1 = min(rect->y1, dirty->y1); in gm12u320_fb_mark_dirty() 419 rect->x2 = max(rect->x2, dirty->x2); in gm12u320_fb_mark_dirty() 420 rect->y2 = max(rect->y2, dirty->y2); in gm12u320_fb_mark_dirty() [all …]
|
/linux/drivers/gpu/drm/gud/ |
A D | gud_pipe.c | 56 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() 102 struct drm_rect *rect) in gud_xrgb8888_to_color() argument 112 rect->x1 = ALIGN_DOWN(rect->x1, block_width); in gud_xrgb8888_to_color() 113 width = drm_rect_width(rect); in gud_xrgb8888_to_color() 116 for (y = rect->y1; y < rect->y2; y++) { in gud_xrgb8888_to_color() 118 pix32 += rect->x1; in gud_xrgb8888_to_color() 396 rect.y1 += i * lines; in gud_flush_work() [all …]
|
/linux/drivers/gpu/drm/ |
A D | drm_damage_helper.c | 266 struct drm_rect *rect) in drm_atomic_helper_damage_iter_next() argument 271 *rect = iter->plane_src; in drm_atomic_helper_damage_iter_next() 307 struct drm_rect *rect) in drm_atomic_helper_damage_merged() argument 313 rect->x1 = INT_MAX; in drm_atomic_helper_damage_merged() 314 rect->y1 = INT_MAX; in drm_atomic_helper_damage_merged() 315 rect->x2 = 0; in drm_atomic_helper_damage_merged() 316 rect->y2 = 0; in drm_atomic_helper_damage_merged() 320 rect->x1 = min(rect->x1, clip.x1); in drm_atomic_helper_damage_merged() 321 rect->y1 = min(rect->y1, clip.y1); in drm_atomic_helper_damage_merged() 322 rect->x2 = max(rect->x2, clip.x2); in drm_atomic_helper_damage_merged() [all …]
|
/linux/drivers/video/fbdev/sis/ |
A D | sis_accel.c | 305 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/media/platform/qcom/camss/ |
A D | camss-vfe.c | 936 if (rect->width + rect->left > compose->width) in vfe_try_crop() 937 rect->left = compose->width - rect->width; in vfe_try_crop() 942 if (rect->height + rect->top > compose->height) in vfe_try_crop() 943 rect->top = compose->height - rect->height; in vfe_try_crop() 946 rect->left += (rect->width & 0xf) >> 1; in vfe_try_crop() 950 rect->left = 0; in vfe_try_crop() 955 rect->top = 0; in vfe_try_crop() 1150 sel->r = *rect; in vfe_get_selection() 1209 *rect = sel->r; in vfe_set_selection() 1215 crop.r = *rect; in vfe_set_selection() [all …]
|
/linux/drivers/gpu/drm/exynos/ |
A D | exynos_drm_ipp.c | 269 task->src.rect.w = task->dst.rect.w = UINT_MAX; in exynos_drm_ipp_task_alloc() 270 task->src.rect.h = task->dst.rect.h = UINT_MAX; in exynos_drm_ipp_task_alloc() 622 if (src->rect.x + src->rect.w > (src->buf.width) || in exynos_drm_ipp_task_check() 623 src->rect.y + src->rect.h > (src->buf.height) || in exynos_drm_ipp_task_check() 624 dst->rect.x + dst->rect.w > (dst->buf.width) || in exynos_drm_ipp_task_check() 625 dst->rect.y + dst->rect.h > (dst->buf.height)) { in exynos_drm_ipp_task_check() 632 if ((!swap && (src->rect.w != dst->rect.w || in exynos_drm_ipp_task_check() 633 src->rect.h != dst->rect.h)) || in exynos_drm_ipp_task_check() 634 (swap && (src->rect.w != dst->rect.h || in exynos_drm_ipp_task_check() 635 src->rect.h != dst->rect.w))) in exynos_drm_ipp_task_check() [all …]
|
A D | exynos_drm_fimc.c | 474 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 …]
|
/linux/drivers/media/i2c/ |
A D | mt9m111.c | 424 __func__, code, rect->width, rect->height, rect->left, rect->top, in mt9m111_setup_geometry() 475 rect.left = clamp(rect.left, MT9M111_MIN_DARK_COLS, in mt9m111_set_selection() 477 (__s32)rect.width); in mt9m111_set_selection() 478 rect.top = clamp(rect.top, MT9M111_MIN_DARK_ROWS, in mt9m111_set_selection() 480 (__s32)rect.height); in mt9m111_set_selection() 487 mt9m111->rect = rect; in mt9m111_set_selection() 513 sel->r = mt9m111->rect; in mt9m111_get_selection() 634 struct v4l2_rect *rect = &mt9m111->rect; in mt9m111_set_fmt() local 654 rect->width = ALIGN(rect->width, 2); in mt9m111_set_fmt() 655 rect->height = ALIGN(rect->height, 2); in mt9m111_set_fmt() [all …]
|
A D | mt9m001.c | 273 rect.height = ALIGN(rect.height, 2); in mt9m001_set_selection() 276 rect.width = ALIGN(rect.width, 2); in mt9m001_set_selection() 277 rect.left = ALIGN(rect.left, 2); in mt9m001_set_selection() 279 rect.width = clamp_t(u32, rect.width, MT9M001_MIN_WIDTH, in mt9m001_set_selection() 281 rect.left = clamp_t(u32, rect.left, MT9M001_COLUMN_SKIP, in mt9m001_set_selection() 284 rect.height = clamp_t(u32, rect.height, MT9M001_MIN_HEIGHT, in mt9m001_set_selection() 286 rect.top = clamp_t(u32, rect.top, MT9M001_ROW_SKIP, in mt9m001_set_selection() 292 mt9m001->rect = rect; in mt9m001_set_selection() 315 sel->r = mt9m001->rect; in mt9m001_get_selection() 360 .r.left = mt9m001->rect.left, in mt9m001_s_fmt() [all …]
|
A D | ov6650.c | 487 sel->r = priv->rect; in ov6650_get_selection() 516 priv->rect.width += priv->rect.left - sel->r.left; in ov6650_set_selection() 517 priv->rect.left = sel->r.left; in ov6650_set_selection() 522 priv->rect.width = sel->r.width; in ov6650_set_selection() 526 priv->rect.height += priv->rect.top - sel->r.top; in ov6650_set_selection() 527 priv->rect.top = sel->r.top; in ov6650_set_selection() 567 return width > rect->width >> 1 || height > rect->height >> 1; in is_unscaled_ok() 581 .r.left = priv->rect.left + (priv->rect.width >> 1) - in ov6650_s_fmt() 583 .r.top = priv->rect.top + (priv->rect.height >> 1) - in ov6650_s_fmt() 1065 priv->rect.width = W_CIF; in ov6650_probe() [all …]
|
A D | tvp5150.c | 80 struct v4l2_rect rect; member 1035 return &decoder->rect; in tvp5150_get_pad_crop() 1059 f->width = decoder->rect.width; in tvp5150_fill_fmt() 1094 rect->top + rect->height - hmax); in tvp5150_set_hw_selection() 1100 (rect->left + rect->width - TVP5150_MAX_CROP_LEFT) >> in tvp5150_set_hw_selection() 1103 rect->left + rect->width - TVP5150_MAX_CROP_LEFT); in tvp5150_set_hw_selection() 1119 __func__, rect->left, rect->top, rect->width, rect->height); in tvp5150_set_selection() 1122 rect->left = clamp(rect->left, 0, TVP5150_MAX_CROP_LEFT); in tvp5150_set_selection() 1123 rect->top = clamp(rect->top, 0, TVP5150_MAX_CROP_TOP); in tvp5150_set_selection() 1133 TVP5150_H_MAX - rect->left, 1, &rect->height, in tvp5150_set_selection() [all …]
|
/linux/drivers/gpu/ipu-v3/ |
A D | ipu-cpmem.c | 774 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() 793 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 805 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 817 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 827 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 839 offset = image->rect.left * 2 + in ipu_cpmem_set_image() 852 offset = image->rect.left * 4 + in ipu_cpmem_set_image() 857 offset = image->rect.left * 3 + in ipu_cpmem_set_image() 865 offset = image->rect.left + image->rect.top * pix->bytesperline; in ipu_cpmem_set_image() [all …]
|
/linux/drivers/video/fbdev/savage/ |
A 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()
|
/linux/drivers/video/fbdev/core/ |
A D | tileblit.c | 22 struct fb_tilerect rect; in tile_clear() local 26 rect.index = vc->vc_video_erase_char & in tile_clear() 28 rect.fg = attr_fgcol_ec(fgshift, vc, info); in tile_clear() 29 rect.bg = attr_bgcol_ec(bgshift, vc, info); in tile_clear() 30 rect.sx = sx; in tile_clear() 31 rect.sy = sy; in tile_clear() 32 rect.width = width; in tile_clear() 33 rect.height = height; in tile_clear() 34 rect.rop = ROP_COPY; in tile_clear() 36 info->tileops->fb_tilefill(info, &rect); in tile_clear()
|
/linux/drivers/video/fbdev/mb862xx/ |
A D | mb862xxfb_accel.c | 251 const struct fb_fillrect *rect) in mb86290fb_fillrect() argument 260 if (!rect->width || !rect->height || rect->dx > vxres in mb86290fb_fillrect() 261 || rect->dy > vyres) in mb86290fb_fillrect() 266 x2 = rect->dx + rect->width; in mb86290fb_fillrect() 267 y2 = rect->dy + rect->height; in mb86290fb_fillrect() 270 width = x2 - rect->dx; in mb86290fb_fillrect() 271 height = y2 - rect->dy; in mb86290fb_fillrect() 274 fg = ((u32 *) (info->pseudo_palette))[rect->color]; in mb86290fb_fillrect() 276 fg = rect->color; in mb86290fb_fillrect() 278 switch (rect->rop) { in mb86290fb_fillrect() [all …]
|
/linux/drivers/gpu/drm/virtio/ |
A D | virtgpu_plane.c | 111 struct drm_rect *rect) in virtio_gpu_update_dumb_bo() argument 116 uint32_t w = rect->x2 - rect->x1; in virtio_gpu_update_dumb_bo() 117 uint32_t h = rect->y2 - rect->y1; in virtio_gpu_update_dumb_bo() 118 uint32_t x = rect->x1; in virtio_gpu_update_dumb_bo() 119 uint32_t y = rect->y1; in virtio_gpu_update_dumb_bo() 175 struct drm_rect rect; in virtio_gpu_primary_plane_update() local 199 virtio_gpu_update_dumb_bo(vgdev, plane->state, &rect); in virtio_gpu_primary_plane_update() 236 rect.x1, in virtio_gpu_primary_plane_update() 237 rect.y1, in virtio_gpu_primary_plane_update() 238 rect.x2 - rect.x1, in virtio_gpu_primary_plane_update() [all …]
|
/linux/drivers/media/platform/ |
A D | sh_vou.c | 81 struct v4l2_rect rect; member 423 struct v4l2_rect *rect = &vou_dev->rect; in sh_vou_configure_geometry() local 461 dsr_h = rect->width + rect->left; in sh_vou_configure_geometry() 834 vou_dev->rect.top = vou_dev->rect.left = 0; in sh_vou_s_std() 961 if (rect->width + rect->left > VOU_MAX_IMAGE_WIDTH) in sh_vou_s_selection() 962 rect->left = VOU_MAX_IMAGE_WIDTH - rect->width; in sh_vou_s_selection() 964 if (rect->height + rect->top > img_height_max) in sh_vou_s_selection() 965 rect->top = img_height_max - rect->height; in sh_vou_s_selection() 1250 rect = &vou_dev->rect; in sh_vou_probe() 1255 rect->left = 0; in sh_vou_probe() [all …]
|
/linux/drivers/gpu/drm/nouveau/ |
A D | nvc0_fbcon.c | 35 nvc0_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in nvc0_fbcon_fillrect() argument 46 colour = ((uint32_t *)info->pseudo_palette)[rect->color]; in nvc0_fbcon_fillrect() 48 colour = rect->color; in nvc0_fbcon_fillrect() 50 ret = PUSH_WAIT(push, rect->rop == ROP_COPY ? 7 : 9); in nvc0_fbcon_fillrect() 54 if (rect->rop != ROP_COPY) { in nvc0_fbcon_fillrect() 61 PUSH_MTHD(push, NV902D, RENDER_SOLID_PRIM_POINT_SET_X(0), rect->dx, in nvc0_fbcon_fillrect() 62 RENDER_SOLID_PRIM_POINT_Y(0), rect->dy, in nvc0_fbcon_fillrect() 63 RENDER_SOLID_PRIM_POINT_SET_X(1), rect->dx + rect->width, in nvc0_fbcon_fillrect() 64 RENDER_SOLID_PRIM_POINT_Y(1), rect->dy + rect->height); in nvc0_fbcon_fillrect() 66 if (rect->rop != ROP_COPY) { in nvc0_fbcon_fillrect()
|
A D | nv50_fbcon.c | 35 nv50_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in nv50_fbcon_fillrect() argument 46 colour = ((uint32_t *)info->pseudo_palette)[rect->color]; in nv50_fbcon_fillrect() 48 colour = rect->color; in nv50_fbcon_fillrect() 50 ret = PUSH_WAIT(push, rect->rop == ROP_COPY ? 7 : 11); in nv50_fbcon_fillrect() 54 if (rect->rop != ROP_COPY) { in nv50_fbcon_fillrect() 61 PUSH_MTHD(push, NV502D, RENDER_SOLID_PRIM_POINT_SET_X(0), rect->dx, in nv50_fbcon_fillrect() 62 RENDER_SOLID_PRIM_POINT_Y(0), rect->dy, in nv50_fbcon_fillrect() 63 RENDER_SOLID_PRIM_POINT_SET_X(1), rect->dx + rect->width, in nv50_fbcon_fillrect() 64 RENDER_SOLID_PRIM_POINT_Y(1), rect->dy + rect->height); in nv50_fbcon_fillrect() 66 if (rect->rop != ROP_COPY) { in nv50_fbcon_fillrect()
|
/linux/drivers/video/fbdev/ |
A D | wmt_ge_rops.c | 42 void wmt_ge_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in wmt_ge_fillrect() argument 51 fg = ((u32 *) (p->pseudo_palette))[rect->color]; in wmt_ge_fillrect() 53 fg = rect->color; in wmt_ge_fillrect() 66 writel(rect->dx, regbase + GE_DESTAREAX_OFF); in wmt_ge_fillrect() 67 writel(rect->dy, regbase + GE_DESTAREAY_OFF); in wmt_ge_fillrect() 68 writel(rect->width - 1, regbase + GE_DESTAREAW_OFF); in wmt_ge_fillrect() 69 writel(rect->height - 1, regbase + GE_DESTAREAH_OFF); in wmt_ge_fillrect() 73 writel(rect->rop == ROP_XOR ? 0x5a : 0xf0, regbase + GE_ROPCODE_OFF); in wmt_ge_fillrect()
|
A D | hitfb.c | 124 static void hitfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in hitfb_fillrect() argument 126 if (rect->rop != ROP_COPY) in hitfb_fillrect() 127 cfb_fillrect(p, rect); in hitfb_fillrect() 134 fb_writew(((u32 *) (p->pseudo_palette))[rect->color], in hitfb_fillrect() 136 hitfb_accel_set_dest(1, rect->dx, rect->dy, rect->width, in hitfb_fillrect() 137 rect->height); in hitfb_fillrect() 140 fb_writew(rect->color, HD64461_GRSCR); in hitfb_fillrect() 141 hitfb_accel_set_dest(0, rect->dx, rect->dy, rect->width, in hitfb_fillrect() 142 rect->height); in hitfb_fillrect()
|
/linux/drivers/video/fbdev/matrox/ |
A D | matroxfb_accel.c | 106 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/include/drm/ |
A D | drm_damage_helper.h | 46 #define drm_atomic_for_each_plane_damage(iter, rect) \ argument 47 while (drm_atomic_helper_damage_iter_next(iter, rect)) 79 struct drm_rect *rect); 82 struct drm_rect *rect);
|