Home
last modified time | relevance | path

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

12345

/linux/drivers/gpu/drm/
H 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()
284 *rect = iter->clips[iter->curr_clip]; in drm_atomic_helper_damage_iter_next()
287 if (drm_rect_intersect(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()
[all …]
H A Ddrm_client.c444 int drm_client_buffer_flush(struct drm_client_buffer *buffer, struct drm_rect *rect) in drm_client_buffer_flush() argument
449 if (rect) { in drm_client_buffer_flush()
451 .x1 = rect->x1, in drm_client_buffer_flush()
452 .y1 = rect->y1, in drm_client_buffer_flush()
453 .x2 = rect->x2, in drm_client_buffer_flush()
454 .y2 = rect->y2, in drm_client_buffer_flush()
/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.c53 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()
78 drm_fb_xrgb8888_to_gray8(&dst_map, NULL, &vmap, fb, rect, fmtcnv_state); 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()
116 len = drm_format_info_min_pitch(format, 0, width) * drm_rect_height(rect); in gud_xrgb8888_to_color()
118 for (y = rect->y1; y < rect->y2; y++) { in gud_xrgb8888_to_color()
[all …]
/linux/drivers/gpu/drm/sitronix/
H A Dst7586.c115 struct drm_rect *rect, struct drm_format_conv_state *fmtcnv_state) in st7586_fb_dirty() argument
122 rect->x1 = rounddown(rect->x1, 3); in st7586_fb_dirty()
123 rect->x2 = roundup(rect->x2, 3); in st7586_fb_dirty()
125 DRM_DEBUG_KMS("Flushing [FB:%d] " DRM_RECT_FMT "\n", fb->base.id, DRM_RECT_ARG(rect)); in st7586_fb_dirty()
127 ret = st7586_buf_copy(dbidev->tx_buf, src, fb, rect, fmtcnv_state); in st7586_fb_dirty()
132 start = rect->x1 / 3; in st7586_fb_dirty()
133 end = rect->x2 / 3; in st7586_fb_dirty()
139 (rect->y1 >> 8) & 0xFF, rect->y1 & 0xFF, in st7586_fb_dirty()
140 (rect->y2 >> 8) & 0xFF, (rect->y2 - 1) & 0xFF); in st7586_fb_dirty()
144 (end - start) * (rect->y2 - rect->y1)); in st7586_fb_dirty()
[all …]
/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_plane.c136 struct drm_rect *rect) in virtio_gpu_panic_update_dumb_bo() argument
141 uint32_t w = rect->x2 - rect->x1; in virtio_gpu_panic_update_dumb_bo()
142 uint32_t h = rect->y2 - rect->y1; in virtio_gpu_panic_update_dumb_bo()
143 uint32_t x = rect->x1; in virtio_gpu_panic_update_dumb_bo()
144 uint32_t y = rect->y1; in virtio_gpu_panic_update_dumb_bo()
159 struct drm_rect *rect) in virtio_gpu_update_dumb_bo() argument
164 uint32_t w = rect->x2 - rect->x1; in virtio_gpu_update_dumb_bo()
165 uint32_t h = rect->y2 - rect->y1; in virtio_gpu_update_dumb_bo()
166 uint32_t x = rect->x1; in virtio_gpu_update_dumb_bo()
167 uint32_t y = rect->y1; in virtio_gpu_update_dumb_bo()
[all …]
/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_ipp.c271 task->src.rect.w = task->dst.rect.w = UINT_MAX; in exynos_drm_ipp_task_alloc()
272 task->src.rect.h = task->dst.rect.h = UINT_MAX; in exynos_drm_ipp_task_alloc()
297 offsetof(struct exynos_drm_ipp_task, src.rect),
302 offsetof(struct exynos_drm_ipp_task, dst.rect),
498 if (!__size_limit_check(buf->rect.w, lh) || in exynos_drm_ipp_check_size_limits()
499 !__align_check(buf->rect.x, lh->align) || in exynos_drm_ipp_check_size_limits()
500 !__size_limit_check(buf->rect.h, lv) || in exynos_drm_ipp_check_size_limits()
501 !__align_check(buf->rect.y, lv->align)) in exynos_drm_ipp_check_size_limits()
597 ret = exynos_drm_ipp_check_scale_limits(&src->rect, &dst->rect, in exynos_drm_ipp_check_format()
615 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.h, in fimc_set_window()
517 DRM_DEV_DEBUG_KMS(ctx->dev, "x[%d]y[%d]w[%d]h[%d]\n", buf->rect.x, in fimc_src_set_size()
518 buf->rect.y, buf->rect.w, buf->rect.h); in fimc_src_set_size()
524 cfg |= (EXYNOS_CIREAL_ISIZE_WIDTH(buf->rect.w) | in fimc_src_set_size()
525 EXYNOS_CIREAL_ISIZE_HEIGHT(buf->rect.h)); in fimc_src_set_size()
538 cfg = (EXYNOS_CIIYOFF_HORIZONTAL(buf->rect.x) | in fimc_src_set_size()
[all …]
/linux/drivers/video/fbdev/core/
H A Dfb_fillrect.h202 static inline void fb_fillrect_static(const struct fb_fillrect *rect, int bpp, in fb_fillrect_static() argument
206 u32 height = rect->height; in fb_fillrect_static()
207 int width = rect->width * bpp; in fb_fillrect_static()
212 if (rect->rop == ROP_XOR) in fb_fillrect_static()
232 static __always_inline void fb_fillrect_rotating(const struct fb_fillrect *rect, in fb_fillrect_rotating() argument
239 u32 height = rect->height; in fb_fillrect_rotating()
240 int width = rect->width * bpp; in fb_fillrect_rotating()
242 if (rect->rop == ROP_XOR) in fb_fillrect_rotating()
256 static inline void fb_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in fb_fillrect() argument
264 fb_address_forward(&dst, rect->dy * bits_per_line + rect->dx * bpp); in fb_fillrect()
[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/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/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/video/fbdev/
H A Dhitfb.c140 static void hitfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in hitfb_fillrect() argument
142 if (rect->rop != ROP_COPY) in hitfb_fillrect()
143 cfb_fillrect(p, rect); in hitfb_fillrect()
150 hitfb_writew(((u32 *) (p->pseudo_palette))[rect->color], in hitfb_fillrect()
152 hitfb_accel_set_dest(1, rect->dx, rect->dy, rect->width, in hitfb_fillrect()
153 rect->height); in hitfb_fillrect()
156 hitfb_writew(rect->color, HD64461_GRSCR); in hitfb_fillrect()
157 hitfb_accel_set_dest(0, rect->dx, rect->dy, rect->width, in hitfb_fillrect()
158 rect->height); in hitfb_fillrect()
H A Dwmt_ge_rops.h5 const struct fb_fillrect *rect);
18 const struct fb_fillrect *rect) in wmt_ge_fillrect() argument
20 sys_fillrect(p, rect); in wmt_ge_fillrect()
H A Ds1d13xxxfb.c523 s1d13xxxfb_bitblt_solidfill(struct fb_info *info, const struct fb_fillrect *rect) in s1d13xxxfb_bitblt_solidfill() argument
536 dest = ((rect->dy * screen_stride) + (bpp * rect->dx)); in s1d13xxxfb_bitblt_solidfill()
540 rect->dx, rect->dy, screen_stride, dest, in s1d13xxxfb_bitblt_solidfill()
541 rect->width - 1, rect->height - 1); in s1d13xxxfb_bitblt_solidfill()
546 dbg_blit("(solidfill) : rop=%d\n", rect->rop); in s1d13xxxfb_bitblt_solidfill()
554 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_WIDTH0, ((rect->width) & 0x00ff) - 1); in s1d13xxxfb_bitblt_solidfill()
555 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_WIDTH1, (rect->width >> 8)); in s1d13xxxfb_bitblt_solidfill()
558 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_HEIGHT0, ((rect->height) & 0x00ff) - 1); in s1d13xxxfb_bitblt_solidfill()
559 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_HEIGHT1, (rect->height >> 8)); in s1d13xxxfb_bitblt_solidfill()
563 fg = ((u32 *)info->pseudo_palette)[rect->color]; in s1d13xxxfb_bitblt_solidfill()
[all …]
/linux/drivers/media/i2c/
H A Dtvp5150.c80 struct v4l2_rect rect; member
820 decoder->rect.height = TVP5150_V_MAX_525_60; in tvp5150_s_std()
822 decoder->rect.height = TVP5150_V_MAX_OTHERS; in tvp5150_s_std()
1035 return &decoder->rect; in tvp5150_get_pad_crop()
1059 f->width = decoder->rect.width; in tvp5150_fill_fmt()
1060 f->height = decoder->rect.height / 2; in tvp5150_fill_fmt()
1087 struct v4l2_rect *rect) in tvp5150_set_hw_selection() argument
1092 regmap_write(decoder->regmap, TVP5150_VERT_BLANKING_START, rect->top); in tvp5150_set_hw_selection()
1094 rect->top + rect->height - hmax); in tvp5150_set_hw_selection()
1096 rect->left >> TVP5150_CROP_SHIFT); in tvp5150_set_hw_selection()
[all …]
H A Dov772x.c413 struct v4l2_rect rect; member
523 .rect = {
533 .rect = {
977 u32 diff = abs(width - ov772x_win_sizes[i].rect.width) in ov772x_select_win()
978 + abs(height - ov772x_win_sizes[i].rect.height); in ov772x_select_win()
1078 ret = regmap_write(priv->regmap, HSTART, win->rect.left >> 2); in ov772x_set_params()
1081 ret = regmap_write(priv->regmap, HSIZE, win->rect.width >> 2); in ov772x_set_params()
1084 ret = regmap_write(priv->regmap, VSTART, win->rect.top >> 1); in ov772x_set_params()
1087 ret = regmap_write(priv->regmap, VSIZE, win->rect.height >> 1); in ov772x_set_params()
1090 ret = regmap_write(priv->regmap, HOUTSIZE, win->rect.width >> 2); in ov772x_set_params()
[all …]
/linux/drivers/video/fbdev/nvidia/
H A Dnv_accel.c318 void nvidiafb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in nvidiafb_fillrect() argument
327 cfb_fillrect(info, rect); in nvidiafb_fillrect()
332 color = rect->color; in nvidiafb_fillrect()
334 color = ((u32 *) info->pseudo_palette)[rect->color]; in nvidiafb_fillrect()
336 if (rect->rop != ROP_COPY) in nvidiafb_fillrect()
337 NVSetRopSolid(info, rect->rop, ~0); in nvidiafb_fillrect()
343 NVDmaNext(par, (rect->dx << 16) | rect->dy); in nvidiafb_fillrect()
344 NVDmaNext(par, (rect->width << 16) | rect->height); in nvidiafb_fillrect()
348 if (rect->rop != ROP_COPY) in nvidiafb_fillrect()
/linux/tools/perf/ui/gtk/
H A Dbrowser.c18 GdkRectangle rect; in perf_gtk__resize_window() local
28 gdk_screen_get_monitor_geometry(screen, monitor, &rect); in perf_gtk__resize_window()
30 width = rect.width * 3 / 4; in perf_gtk__resize_window()
31 height = rect.height * 3 / 4; in perf_gtk__resize_window()
/linux/drivers/gpu/drm/solomon/
H A Dssd130x.c731 struct drm_rect *rect, u8 *buf, in ssd130x_update_rect() argument
734 unsigned int x = rect->x1; in ssd130x_update_rect()
735 unsigned int y = rect->y1; in ssd130x_update_rect()
736 unsigned int width = drm_rect_width(rect); in ssd130x_update_rect()
737 unsigned int height = drm_rect_height(rect); in ssd130x_update_rect()
835 struct drm_rect *rect, u8 *buf, in ssd132x_update_rect() argument
838 unsigned int x = rect->x1; in ssd132x_update_rect()
839 unsigned int y = rect->y1; in ssd132x_update_rect()
841 unsigned int width = drm_rect_width(rect); in ssd132x_update_rect()
842 unsigned int height = drm_rect_height(rect); in ssd132x_update_rect()
[all …]
/linux/drivers/video/fbdev/aty/
H A Dmach64_accel.c247 void atyfb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in atyfb_fillrect() argument
250 u32 color, dx = rect->dx, width = rect->width, rotation = 0; in atyfb_fillrect()
254 if (!rect->width || !rect->height) in atyfb_fillrect()
257 cfb_fillrect(info, rect); in atyfb_fillrect()
263 color = ((u32 *)(info->pseudo_palette))[rect->color]; in atyfb_fillrect()
265 color = rect->color; in atyfb_fillrect()
284 draw_rect(dx, rect->dy, width, rect->height, par); in atyfb_fillrect()
/linux/drivers/video/fbdev/i810/
H A Di810_accel.c298 void i810fb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in i810fb_fillrect() argument
305 cfb_fillrect(info, rect); in i810fb_fillrect()
310 color = rect->color; in i810fb_fillrect()
312 color = ((u32 *) (info->pseudo_palette))[rect->color]; in i810fb_fillrect()
314 rop = i810fb_rop[rect->rop]; in i810fb_fillrect()
316 dx = rect->dx * par->depth; in i810fb_fillrect()
317 width = rect->width * par->depth; in i810fb_fillrect()
318 dy = rect->dy; in i810fb_fillrect()
319 height = rect->height; in i810fb_fillrect()
/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-lite-reg.c165 cfg |= (f->rect.left << 16) | f->rect.top; in flite_hw_set_window_offset()
169 hoff2 = f->f_width - f->rect.width - f->rect.left; in flite_hw_set_window_offset()
170 voff2 = f->f_height - f->rect.height - f->rect.top; in flite_hw_set_window_offset()
261 cfg |= (f->rect.top << 16) | f->rect.left; in flite_hw_set_dma_window()
/linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DSchedGui.py120 rect = y / (RootFrame.RECT_HEIGHT + RootFrame.RECT_SPACE)
123 if rect < 0 or rect > self.nr_rects - 1 or height > RootFrame.RECT_HEIGHT:
126 return rect
136 rect = self.rect_from_ypixel(y)
137 if rect == -1:
142 self.sched_tracer.mouse_down(rect, t)
/linux/drivers/gpu/drm/tests/
H A Ddrm_rect_test.c432 struct drm_rect rect; member
441 .rect = DRM_RECT_INIT(0, 0, 5, 5),
448 .rect = DRM_RECT_INIT(2, 0, 5, 5),
455 .rect = DRM_RECT_INIT(0, 2, 5, 5),
462 .rect = DRM_RECT_INIT(0, 0, 5, 10),
469 .rect = DRM_RECT_INIT(11, 3, 5, 10),
476 .rect = DRM_RECT_INIT(6, 3, 5, 10),
492 struct drm_rect r = params->rect; in drm_test_rect_rotate()
506 drm_rect_compare(test, &r, &params->rect); in drm_test_rect_rotate_inv()

12345