Home
last modified time | relevance | path

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

12345678

/openbmc/qemu/ui/
H A Dvnc-jobs.c100 entry->rect.x = x; in vnc_job_add_rect()
101 entry->rect.y = y; in vnc_job_add_rect()
102 entry->rect.w = w; in vnc_job_add_rect()
103 entry->rect.h = h; in vnc_job_add_rect()
212 trace_vnc_job_clamp_rect(vs, job, rect->x, rect->y, rect->w, rect->h); in vnc_worker_clamp_rect()
217 rect->w = MIN(vs->client_width - rect->x, rect->w); in vnc_worker_clamp_rect()
218 if (rect->w == 0) { in vnc_worker_clamp_rect()
225 rect->h = MIN(vs->client_height - rect->y, rect->h); in vnc_worker_clamp_rect()
230 trace_vnc_job_clamped_rect(vs, job, rect->x, rect->y, rect->w, rect->h); in vnc_worker_clamp_rect()
234 trace_vnc_job_discard_rect(vs, job, rect->x, rect->y, rect->w, rect->h); in vnc_worker_clamp_rect()
[all …]
/openbmc/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()
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()
326 rect->y1 = min(rect->y1, clip.y1); in drm_atomic_helper_damage_merged()
327 rect->x2 = max(rect->x2, clip.x2); in drm_atomic_helper_damage_merged()
[all …]
/openbmc/linux/drivers/gpu/drm/tiny/
H A Dili9225.c84 unsigned int height = rect->y2 - rect->y1; in ili9225_fb_dirty()
85 unsigned int width = rect->x2 - rect->x1; 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()
119 x2 = rect->y2 - 1; in ili9225_fb_dirty()
136 y1 = rect->x1; in ili9225_fb_dirty()
137 y2 = rect->x2 - 1; in ili9225_fb_dirty()
[all …]
H A Dst7586.c112 struct drm_rect *rect) in st7586_fb_dirty() argument
119 rect->x1 = rounddown(rect->x1, 3); in st7586_fb_dirty()
120 rect->x2 = roundup(rect->x2, 3); in st7586_fb_dirty()
124 ret = st7586_buf_copy(dbidev->tx_buf, src, fb, rect); 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
[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()
419 struct drm_rect *rect = &gm12u320->fb_update.rect; in gm12u320_fb_mark_dirty() local
421 rect->x1 = min(rect->x1, dirty->x1); in gm12u320_fb_mark_dirty()
422 rect->y1 = min(rect->y1, dirty->y1); in gm12u320_fb_mark_dirty()
423 rect->x2 = max(rect->x2, dirty->x2); in gm12u320_fb_mark_dirty()
424 rect->y2 = max(rect->y2, dirty->y2); in gm12u320_fb_mark_dirty()
[all …]
/openbmc/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 …]
/openbmc/linux/drivers/gpu/drm/gud/
H A Dgud_pipe.c54 struct drm_rect *rect) in gud_xrgb8888_to_r124() argument
67 rect->x1 = ALIGN_DOWN(rect->x1, block_width); in gud_xrgb8888_to_r124()
68 width = drm_rect_width(rect); in gud_xrgb8888_to_r124()
69 height = drm_rect_height(rect); in gud_xrgb8888_to_r124()
103 struct drm_rect *rect) in gud_xrgb8888_to_color() argument
114 rect->x1 = ALIGN_DOWN(rect->x1, block_width); in gud_xrgb8888_to_color()
115 width = drm_rect_width(rect); in gud_xrgb8888_to_color()
118 for (y = rect->y1; y < rect->y2; y++) { in gud_xrgb8888_to_color()
120 sbuf32 += rect->x1; in gud_xrgb8888_to_color()
340 rect.y1 += i * lines; in gud_flush_damage()
[all …]
/openbmc/qemu/include/ui/
H A Drect.h17 static inline void qemu_rect_init(QemuRect *rect, in qemu_rect_init() argument
21 rect->x = x; in qemu_rect_init()
22 rect->y = y; in qemu_rect_init()
23 rect->width = width; in qemu_rect_init()
24 rect->height = height; in qemu_rect_init()
27 static inline void qemu_rect_translate(QemuRect *rect, in qemu_rect_translate() argument
30 rect->x += dx; in qemu_rect_translate()
31 rect->y += dy; in qemu_rect_translate()
/openbmc/linux/drivers/media/platform/qcom/camss/
H A Dcamss-vfe.c940 if (rect->width + rect->left > compose->width) in vfe_try_crop()
941 rect->left = compose->width - rect->width; in vfe_try_crop()
946 if (rect->height + rect->top > compose->height) in vfe_try_crop()
947 rect->top = compose->height - rect->height; in vfe_try_crop()
950 rect->left += (rect->width & 0xf) >> 1; in vfe_try_crop()
954 rect->left = 0; in vfe_try_crop()
959 rect->top = 0; in vfe_try_crop()
1154 sel->r = *rect; in vfe_get_selection()
1213 *rect = sel->r; in vfe_set_selection()
1219 crop.r = *rect; in vfe_set_selection()
[all …]
/openbmc/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()
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 …]
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.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 …]
/openbmc/linux/drivers/media/i2c/
H A Dmt9m001.c273 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 …]
H A Dmt9m111.c423 __func__, code, rect->width, rect->height, rect->left, rect->top, in mt9m111_setup_geometry()
474 rect.left = clamp(rect.left, MT9M111_MIN_DARK_COLS, in mt9m111_set_selection()
476 (__s32)rect.width); in mt9m111_set_selection()
477 rect.top = clamp(rect.top, MT9M111_MIN_DARK_ROWS, in mt9m111_set_selection()
479 (__s32)rect.height); in mt9m111_set_selection()
486 mt9m111->rect = rect; in mt9m111_set_selection()
512 sel->r = mt9m111->rect; in mt9m111_get_selection()
633 struct v4l2_rect *rect = &mt9m111->rect; in mt9m111_set_fmt() local
653 rect->width = ALIGN(rect->width, 2); in mt9m111_set_fmt()
654 rect->height = ALIGN(rect->height, 2); in mt9m111_set_fmt()
[all …]
H 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()
554 priv->rect.width += priv->rect.left - sel->r.left; in ov6650_set_selection()
555 priv->rect.left = sel->r.left; in ov6650_set_selection()
564 priv->rect.height += priv->rect.top - sel->r.top; in ov6650_set_selection()
565 priv->rect.top = sel->r.top; in ov6650_set_selection()
722 crop = &priv->rect; in ov6650_set_fmt()
1080 priv->rect.width = W_CIF; in ov6650_probe()
[all …]
/openbmc/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()
/openbmc/linux/drivers/media/platform/nxp/imx8-isi/
H 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 …]
/openbmc/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()
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 …]
/openbmc/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 …]
/openbmc/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()
/openbmc/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
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()
240 rect.x2 - rect.x1, in virtio_gpu_primary_plane_update()
[all …]
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/
H A Ddraw.py189 ctx.rectangle(*rect)
192 def draw_rect(ctx, color, rect): argument
194 ctx.rectangle(*rect)
248 ctx.move_to(rect[0] + i, rect[1] + 1)
249 ctx.line_to(rect[0] + i, rect[1] + rect[3] - 1)
264 ctx.move_to(rect[0] + x, rect[1] + 1)
265 ctx.line_to(rect[0] + x, rect[1] + rect[3] - 1)
376 def clip_visible(clip, rect): argument
379 xmin = min (clip[0] + clip[2], rect[0] + rect[2])
380 ymin = min (clip[1] + clip[3], rect[1] + rect[3])
[all …]
/openbmc/linux/include/drm/
H A Ddrm_damage_helper.h46 #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);
/openbmc/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()
/openbmc/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
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 …]
/openbmc/qemu/hw/display/
H A Dqxl-render.c27 static void qxl_blit(PCIQXLDevice *qxl, QXLRect *rect) in qxl_blit() argument
38 rect->left, rect->right, rect->top, rect->bottom); in qxl_blit()
43 src += (qxl->guest_primary.surface.height - rect->top - 1) * in qxl_blit()
46 src += rect->top * qxl->guest_primary.abs_stride; in qxl_blit()
48 dst += rect->top * qxl->guest_primary.abs_stride; in qxl_blit()
49 src += rect->left * qxl->guest_primary.bytes_pp; in qxl_blit()
50 dst += rect->left * qxl->guest_primary.bytes_pp; in qxl_blit()
51 len = (rect->right - rect->left) * qxl->guest_primary.bytes_pp; in qxl_blit()
53 for (i = rect->top; i < rect->bottom; i++) { in qxl_blit()

12345678