Home
last modified time | relevance | path

Searched refs:rect (Results 26 – 50 of 199) sorted by relevance

12345678

/openbmc/qemu/ui/
H A Dsdl2-2d.c36 SDL_Rect rect; in sdl2_2d_update() local
46 rect.x = x; in sdl2_2d_update()
47 rect.y = y; in sdl2_2d_update()
48 rect.w = w; in sdl2_2d_update()
49 rect.h = h; in sdl2_2d_update()
51 SDL_UpdateTexture(scon->texture, &rect, in sdl2_2d_update()
/openbmc/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()
/openbmc/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()
/openbmc/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 Dvga16fb.c846 u32 dx = rect->dx, width = rect->width; in vga_8planes_fillrect()
906 if (!rect->width || !rect->height || rect->dx > vxres || rect->dy > vyres) in vga16fb_fillrect()
912 x2 = rect->dx + rect->width; in vga16fb_fillrect()
913 y2 = rect->dy + rect->height; in vga16fb_fillrect()
916 width = x2 - rect->dx; in vga16fb_fillrect()
922 height = y2 - rect->dy; in vga16fb_fillrect()
923 width = rect->width/8; in vga16fb_fillrect()
926 dst = info->screen_base + (rect->dx/8) + rect->dy * info->fix.line_length; in vga16fb_fillrect()
928 switch (rect->rop) { in vga16fb_fillrect()
933 setcolor(rect->color); in vga16fb_fillrect()
[all …]
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()
555 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_WIDTH1, (rect->width >> 8)); 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()
565 dbg_blit("(solidfill) pseudo_palette[%d] = %d\n", rect->color, fg); in s1d13xxxfb_bitblt_solidfill()
567 fg = rect->color; in s1d13xxxfb_bitblt_solidfill()
[all …]
/openbmc/linux/drivers/video/fbdev/core/
H A Dsysfillrect.c233 void sys_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in sys_fillrect() argument
236 unsigned long width = rect->width, height = rect->height; in sys_fillrect()
247 fg = ((u32 *) (p->pseudo_palette))[rect->color]; in sys_fillrect()
249 fg = rect->color; in sys_fillrect()
255 dst_idx += rect->dy*p->fix.line_length*8+rect->dx*bpp; in sys_fillrect()
265 switch (rect->rop) { in sys_fillrect()
295 switch (rect->rop) { in sys_fillrect()
H A Dcfbfillrect.c278 void cfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in cfb_fillrect() argument
281 unsigned long width = rect->width, height = rect->height; in cfb_fillrect()
292 fg = ((u32 *) (p->pseudo_palette))[rect->color]; in cfb_fillrect()
294 fg = rect->color; in cfb_fillrect()
300 dst_idx += rect->dy*p->fix.line_length*8+rect->dx*bpp; in cfb_fillrect()
312 switch (rect->rop) { in cfb_fillrect()
342 switch (rect->rop) { in cfb_fillrect()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/hyperv/
H A Dhyperv_drm_modeset.c24 struct drm_rect *rect) in hyperv_blit_to_vram_rect() argument
33 iosys_map_incr(&dst, drm_fb_clip_offset(fb->pitches[0], fb->format, rect)); in hyperv_blit_to_vram_rect()
34 drm_fb_memcpy(&dst, fb->pitches, vmap, fb, rect); in hyperv_blit_to_vram_rect()
141 struct drm_rect rect; in hyperv_pipe_update() local
143 if (drm_atomic_helper_damage_merged(old_state, state, &rect)) { in hyperv_pipe_update()
144 hyperv_blit_to_vram_rect(state->fb, &shadow_plane_state->data[0], &rect); in hyperv_pipe_update()
145 hyperv_update_dirt(hv->hdev, &rect); in hyperv_pipe_update()
H A Dhyperv_drm_proto.c141 struct rect { struct
149 struct rect rect[1]; member
351 int hyperv_update_dirt(struct hv_device *hdev, struct drm_rect *rect) in hyperv_update_dirt() argument
366 msg.dirt.rect[0].x1 = rect->x1; in hyperv_update_dirt()
367 msg.dirt.rect[0].y1 = rect->y1; in hyperv_update_dirt()
368 msg.dirt.rect[0].x2 = rect->x2; in hyperv_update_dirt()
369 msg.dirt.rect[0].y2 = rect->y2; in hyperv_update_dirt()
/openbmc/linux/drivers/media/i2c/
H A Dtvp5150.c80 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 …]
H A Dov772x.c413 struct v4l2_rect rect; member
525 .rect = {
535 .rect = {
1083 ((win->rect.top & 1) << HREF_VSTART_SHIFT) | in ov772x_set_params()
1084 ((win->rect.left & 3) << HREF_HSTART_SHIFT) | in ov772x_set_params()
1173 sel->r.width = priv->win->rect.width; in ov772x_get_selection()
1174 sel->r.height = priv->win->rect.height; in ov772x_get_selection()
1191 mf->width = priv->win->rect.width; in ov772x_get_fmt()
1192 mf->height = priv->win->rect.height; in ov772x_get_fmt()
1216 mf->width = win->rect.width; in ov772x_set_fmt()
[all …]
H A Dimx296.c770 struct v4l2_rect rect; in imx296_set_selection() local
779 rect.left = clamp(ALIGN(sel->r.left, 4), 0, in imx296_set_selection()
781 rect.top = clamp(ALIGN(sel->r.top, 4), 0, in imx296_set_selection()
788 rect.width = min_t(unsigned int, rect.width, in imx296_set_selection()
789 IMX296_PIXEL_ARRAY_WIDTH - rect.left); in imx296_set_selection()
790 rect.height = min_t(unsigned int, rect.height, in imx296_set_selection()
795 if (rect.width != crop->width || rect.height != crop->height) { in imx296_set_selection()
801 format->width = rect.width; in imx296_set_selection()
802 format->height = rect.height; in imx296_set_selection()
805 *crop = rect; in imx296_set_selection()
[all …]
H A Dmt9v032.c564 struct v4l2_rect rect; in mt9v032_set_selection() local
575 rect.top = clamp(ALIGN(sel->r.top + 1, 2) - 1, in mt9v032_set_selection()
585 rect.width = min_t(unsigned int, in mt9v032_set_selection()
586 rect.width, MT9V032_PIXEL_ARRAY_WIDTH - rect.left); in mt9v032_set_selection()
587 rect.height = min_t(unsigned int, in mt9v032_set_selection()
588 rect.height, MT9V032_PIXEL_ARRAY_HEIGHT - rect.top); in mt9v032_set_selection()
593 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9v032_set_selection()
600 __format->width = rect.width; in mt9v032_set_selection()
601 __format->height = rect.height; in mt9v032_set_selection()
609 *__crop = rect; in mt9v032_set_selection()
[all …]
/openbmc/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-lite.c590 rect = &sink->rect; in fimc_lite_subdev_try_fmt()
892 sel->r = f->rect; in fimc_lite_g_selection()
921 sel->r = rect; in fimc_lite_s_selection()
923 f->rect = rect; in fimc_lite_s_selection()
1108 sink->rect.top = 0; in fimc_lite_subdev_set_fmt()
1110 source->rect = sink->rect; in fimc_lite_subdev_set_fmt()
1138 sel->r = f->rect; in fimc_lite_subdev_get_selection()
1148 __func__, f->rect.left, f->rect.top, f->rect.width, in fimc_lite_subdev_get_selection()
1173 f->rect = sel->r; in fimc_lite_subdev_set_selection()
1182 __func__, f->rect.left, f->rect.top, f->rect.width, in fimc_lite_subdev_set_selection()
[all …]
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()
260 cfg |= (f->rect.top << 16) | f->rect.left; in flite_hw_set_dma_window()
/openbmc/qemu/hw/display/
H A Dqxl-logger.c130 static void qxl_log_rect(QXLRect *rect) in qxl_log_rect() argument
133 rect->right - rect->left, in qxl_log_rect()
134 rect->bottom - rect->top, in qxl_log_rect()
135 rect->left, rect->top); in qxl_log_rect()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_blit.c262 struct drm_rect *rect = &diff->rect; in vmw_adjust_rect() local
264 rect->x1 = min_t(int, rect->x1, offs); in vmw_adjust_rect()
265 rect->x2 = max_t(int, rect->x2, offs + 1); in vmw_adjust_rect()
266 rect->y1 = min_t(int, rect->y1, diff->line); in vmw_adjust_rect()
267 rect->y2 = max_t(int, rect->y2, diff->line + 1); in vmw_adjust_rect()
/openbmc/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()
/openbmc/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)
/openbmc/linux/Documentation/driver-api/media/
H A Dv4l2-rect.rst3 V4L2 rect helper functions
6 .. kernel-doc:: include/media/v4l2-rect.h
/openbmc/linux/drivers/staging/media/ipu3/
H A Dipu3-css-params.c1799 css_pipe->rect[IPU3_CSS_RECT_BDS].height; in imgu_css_cfg_acc_stripe()
1806 css_pipe->rect[IPU3_CSS_RECT_BDS].width; in imgu_css_cfg_acc_stripe()
1821 css_pipe->rect[IPU3_CSS_RECT_BDS].width; in imgu_css_cfg_acc_stripe()
1829 (css_pipe->rect[IPU3_CSS_RECT_BDS].width in imgu_css_cfg_acc_stripe()
1851 css_pipe->rect[IPU3_CSS_RECT_BDS].height; in imgu_css_cfg_acc_stripe()
1864 css_pipe->rect[IPU3_CSS_RECT_GDC].width; in imgu_css_cfg_acc_stripe()
1866 css_pipe->rect[IPU3_CSS_RECT_GDC].height; in imgu_css_cfg_acc_stripe()
1934 css_pipe->rect[IPU3_CSS_RECT_BDS].height; in acc_bds_per_stripe_data()
2299 css_pipe->rect[IPU3_CSS_RECT_BDS].width; in imgu_css_cfg_acc()
2312 css_pipe->rect[IPU3_CSS_RECT_BDS].width; in imgu_css_cfg_acc()
[all …]

12345678