Searched refs:rects (Results 1 – 10 of 10) sorted by relevance
/drivers/gpu/drm/vboxvideo/ |
D | vbox_main.c | 43 struct drm_clip_rect *rects, in vbox_framebuffer_dirty_rectangles() argument 65 if (rects[i].x1 > crtc_x + mode->hdisplay || in vbox_framebuffer_dirty_rectangles() 66 rects[i].y1 > crtc_y + mode->vdisplay || in vbox_framebuffer_dirty_rectangles() 67 rects[i].x2 < crtc_x || in vbox_framebuffer_dirty_rectangles() 68 rects[i].y2 < crtc_y) in vbox_framebuffer_dirty_rectangles() 71 cmd_hdr.x = (s16)rects[i].x1; in vbox_framebuffer_dirty_rectangles() 72 cmd_hdr.y = (s16)rects[i].y1; in vbox_framebuffer_dirty_rectangles() 73 cmd_hdr.w = (u16)rects[i].x2 - rects[i].x1; in vbox_framebuffer_dirty_rectangles() 74 cmd_hdr.h = (u16)rects[i].y2 - rects[i].y1; in vbox_framebuffer_dirty_rectangles() 91 struct drm_clip_rect *rects, in vbox_user_framebuffer_dirty() argument [all …]
|
D | vbox_drv.h | 152 struct drm_clip_rect *rects,
|
/drivers/gpu/drm/ |
D | drm_damage_helper.c | 167 struct drm_mode_rect *rects = NULL; in drm_atomic_helper_dirtyfb() local 194 rects = kcalloc(num_clips, sizeof(*rects), GFP_KERNEL); in drm_atomic_helper_dirtyfb() 195 if (!rects) { in drm_atomic_helper_dirtyfb() 200 convert_clip_rect_to_rect(clips, rects, num_clips, inc); in drm_atomic_helper_dirtyfb() 202 num_clips * sizeof(*rects), in drm_atomic_helper_dirtyfb() 203 rects); in drm_atomic_helper_dirtyfb() 245 kfree(rects); in drm_atomic_helper_dirtyfb()
|
/drivers/gpu/drm/qxl/ |
D | qxl_draw.c | 141 struct qxl_rect *rects; in qxl_draw_dirty_fb() local 211 rects = drawable_set_clipping(qdev, num_clips, clips_bo); in qxl_draw_dirty_fb() 212 if (!rects) in qxl_draw_dirty_fb() 238 rects[i].left = clips_ptr->x1; in qxl_draw_dirty_fb() 239 rects[i].right = clips_ptr->x2; in qxl_draw_dirty_fb() 240 rects[i].top = clips_ptr->y1; in qxl_draw_dirty_fb() 241 rects[i].bottom = clips_ptr->y2; in qxl_draw_dirty_fb()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_kms.c | 1454 struct drm_rect *rects) in vmw_kms_check_display_memory() argument 1467 (drm_rect_width(&rects[i]) > dev_priv->stdu_max_width || in vmw_kms_check_display_memory() 1468 drm_rect_height(&rects[i]) > dev_priv->stdu_max_height)) { in vmw_kms_check_display_memory() 1474 if (rects[i].x2 > bounding_box.x2) in vmw_kms_check_display_memory() 1475 bounding_box.x2 = rects[i].x2; in vmw_kms_check_display_memory() 1477 if (rects[i].y2 > bounding_box.y2) in vmw_kms_check_display_memory() 1478 bounding_box.y2 = rects[i].y2; in vmw_kms_check_display_memory() 1480 total_pixels += (u64) drm_rect_width(&rects[i]) * in vmw_kms_check_display_memory() 1481 (u64) drm_rect_height(&rects[i]); in vmw_kms_check_display_memory() 1605 struct drm_rect *rects; in vmw_kms_check_topology() local [all …]
|
/drivers/staging/media/ipu3/ |
D | ipu3-v4l2.c | 65 struct v4l2_rect *rects[IPU3_CSS_RECTS] = { NULL }; in imgu_subdev_s_stream() local 106 rects[IPU3_CSS_RECT_EFFECTIVE] = &imgu_sd->rect.eff; in imgu_subdev_s_stream() 107 rects[IPU3_CSS_RECT_BDS] = &imgu_sd->rect.bds; in imgu_subdev_s_stream() 108 rects[IPU3_CSS_RECT_GDC] = &imgu_sd->rect.gdc; in imgu_subdev_s_stream() 110 r = imgu_css_fmt_set(&imgu->css, fmts, rects, pipe); in imgu_subdev_s_stream() 654 struct v4l2_rect *rects[IPU3_CSS_RECTS] = { NULL }; in imgu_fmt() local 707 rects[IPU3_CSS_RECT_EFFECTIVE] = &imgu_sd->rect.eff; in imgu_fmt() 708 rects[IPU3_CSS_RECT_BDS] = &imgu_sd->rect.bds; in imgu_fmt() 709 rects[IPU3_CSS_RECT_GDC] = &imgu_sd->rect.gdc; in imgu_fmt() 713 rects[IPU3_CSS_RECT_GDC]->width = pad_fmt.width; in imgu_fmt() [all …]
|
D | ipu3-css.h | 173 struct v4l2_rect *rects[IPU3_CSS_RECTS], 177 struct v4l2_rect *rects[IPU3_CSS_RECTS],
|
D | ipu3-css.c | 1598 struct v4l2_rect rects[IPU3_CSS_RECTS]) in imgu_css_find_binary() 1721 struct v4l2_rect *rects[IPU3_CSS_RECTS], in imgu_css_fmt_try() 1777 if (rects[i]) { in imgu_css_fmt_try() 1779 rnames[i], rects[i]->width, rects[i]->height); in imgu_css_fmt_try() 1780 r[i].width = rects[i]->width; in imgu_css_fmt_try() 1781 r[i].height = rects[i]->height; in imgu_css_fmt_try() 1860 if (rects[i]) in imgu_css_fmt_try() 1861 *rects[i] = r[i]; in imgu_css_fmt_try() 1877 struct v4l2_rect *rects[IPU3_CSS_RECTS], in imgu_css_fmt_set() 1886 if (rects[i]) in imgu_css_fmt_set() [all …]
|
D | ipu3.c | 435 struct v4l2_rect *rects[IPU3_CSS_RECTS] = { NULL }; in imgu_video_nodes_init() local 465 rects[IPU3_CSS_RECT_EFFECTIVE] = &imgu_pipe->imgu_sd.rect.eff; in imgu_video_nodes_init() 466 rects[IPU3_CSS_RECT_BDS] = &imgu_pipe->imgu_sd.rect.bds; in imgu_video_nodes_init() 467 imgu_css_fmt_set(&imgu->css, fmts, rects, j); in imgu_video_nodes_init()
|
/drivers/media/i2c/ |
D | s5k5baf.c | 1439 static void s5k5baf_set_rect_and_adjust(struct v4l2_rect **rects, in s5k5baf_set_rect_and_adjust() argument 1446 *rects[first] = *v; in s5k5baf_set_rect_and_adjust() 1448 r = rects[i]; in s5k5baf_set_rect_and_adjust() 1449 br = rects[i - 1]; in s5k5baf_set_rect_and_adjust() 1452 *v = *rects[first]; in s5k5baf_set_rect_and_adjust() 1467 struct v4l2_rect **rects; in s5k5baf_set_selection() local 1481 rects = (struct v4l2_rect * []) { in s5k5baf_set_selection() 1487 s5k5baf_set_rect_and_adjust(rects, rtype, &sel->r); in s5k5baf_set_selection() 1491 rects = (struct v4l2_rect * []) { in s5k5baf_set_selection() 1510 s5k5baf_set_rect_and_adjust(rects, rtype, &sel->r); in s5k5baf_set_selection()
|