Searched refs:rects (Results 1 - 11 of 11) sorted by relevance
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_kms.c | 40 * Clip @num_rects number of @rects against @clip storing the 41 * results in @out_rects and the number of passed rects in @out_num. 43 static void vmw_clip_cliprects(struct drm_clip_rect *rects, vmw_clip_cliprects() argument 52 int x1 = max_t(int, clip.x1, rects[i].x1); vmw_clip_cliprects() 53 int y1 = max_t(int, clip.y1, rects[i].y1); vmw_clip_cliprects() 54 int x2 = min_t(int, clip.x2, rects[i].x2); vmw_clip_cliprects() 55 int y2 = min_t(int, clip.y2, rects[i].y2); vmw_clip_cliprects() 545 * In order for the clip rects to be correctly scaled do_surface_dirty_sou() 546 * the src and dest rects needs to be the same size. do_surface_dirty_sou() 627 inc = 2; /* skip source rects */ vmw_framebuffer_surface_dirty() 1315 * In order for the clip rects to be correctly scaled vmw_kms_present() 1316 * the src and dest rects needs to be the same size. vmw_kms_present() 1435 /* and cull any rects that misses the crtc */ vmw_kms_readback() 1677 struct drm_vmw_rect *rects) vmw_du_update_layout() 1691 DRM_INFO("(%i, %i %ux%u) ", rects[i].x, rects[i].y, vmw_du_update_layout() 1692 rects[i].w, rects[i].h); vmw_du_update_layout() 1700 du->pref_width = rects[du->unit].w; vmw_du_update_layout() 1701 du->pref_height = rects[du->unit].h; vmw_du_update_layout() 1703 du->gui_x = rects[du->unit].x; vmw_du_update_layout() 1704 du->gui_y = rects[du->unit].y; vmw_du_update_layout() 2030 struct drm_vmw_rect *rects; vmw_kms_update_layout_ioctl() local 2043 rects = kcalloc(arg->num_outputs, sizeof(struct drm_vmw_rect), vmw_kms_update_layout_ioctl() 2045 if (unlikely(!rects)) vmw_kms_update_layout_ioctl() 2048 user_rects = (void __user *)(unsigned long)arg->rects; vmw_kms_update_layout_ioctl() 2049 ret = copy_from_user(rects, user_rects, rects_size); vmw_kms_update_layout_ioctl() 2051 DRM_ERROR("Failed to get rects.\n"); vmw_kms_update_layout_ioctl() 2057 if (rects[i].x < 0 || vmw_kms_update_layout_ioctl() 2058 rects[i].y < 0 || vmw_kms_update_layout_ioctl() 2059 rects[i].x + rects[i].w > mode_config->max_width || vmw_kms_update_layout_ioctl() 2060 rects[i].y + rects[i].h > mode_config->max_height) { vmw_kms_update_layout_ioctl() 2067 vmw_du_update_layout(dev_priv, arg->num_outputs, rects); vmw_kms_update_layout_ioctl() 2070 kfree(rects); vmw_kms_update_layout_ioctl() 1676 vmw_du_update_layout(struct vmw_private *dev_priv, unsigned num, struct drm_vmw_rect *rects) vmw_du_update_layout() argument
|
H A D | vmwgfx_kms.h | 160 struct drm_vmw_rect *rects);
|
H A D | vmwgfx_ioctl.c | 258 DRM_ERROR("Failed to copy clip rects from userspace.\n"); vmw_present_ioctl() 341 DRM_ERROR("Failed to copy clip rects from userspace.\n"); vmw_present_readback_ioctl()
|
/linux-4.1.27/drivers/gpu/drm/qxl/ |
H A D | qxl_draw.c | 285 struct qxl_rect *rects; qxl_draw_dirty_fb() local 352 rects = drawable_set_clipping(qdev, drawable, num_clips, clips_bo); qxl_draw_dirty_fb() 353 if (!rects) qxl_draw_dirty_fb() 379 rects[i].left = clips_ptr->x1; qxl_draw_dirty_fb() 380 rects[i].right = clips_ptr->x2; qxl_draw_dirty_fb() 381 rects[i].top = clips_ptr->y1; qxl_draw_dirty_fb() 382 rects[i].bottom = clips_ptr->y2; qxl_draw_dirty_fb()
|
H A D | qxl_display.c | 500 inc = 2; /* skip source rects */ qxl_framebuffer_surface_dirty()
|
/linux-4.1.27/drivers/media/i2c/ |
H A D | s5k5baf.c | 1442 static void s5k5baf_set_rect_and_adjust(struct v4l2_rect **rects, s5k5baf_set_rect_and_adjust() argument 1449 *rects[first] = *v; s5k5baf_set_rect_and_adjust() 1451 r = rects[i]; s5k5baf_set_rect_and_adjust() 1452 br = rects[i - 1]; s5k5baf_set_rect_and_adjust() 1455 *v = *rects[first]; s5k5baf_set_rect_and_adjust() 1470 struct v4l2_rect **rects; s5k5baf_set_selection() local 1484 rects = (struct v4l2_rect * []) { s5k5baf_set_selection() 1490 s5k5baf_set_rect_and_adjust(rects, rtype, &sel->r); s5k5baf_set_selection() 1494 rects = (struct v4l2_rect * []) { s5k5baf_set_selection() 1513 s5k5baf_set_rect_and_adjust(rects, rtype, &sel->r); s5k5baf_set_selection()
|
/linux-4.1.27/include/uapi/drm/ |
H A D | drm_mode.h | 389 * region specified by the clip rects. The kernel or hardware 399 * where the clip rects are paired in src and dst. The width and 403 * promises that the region specified of the clip rects is filled
|
H A D | vmwgfx_drm.h | 745 * @clips_ptr: Pointer to an array of clip rects cast to an uint64_t. 778 * @clips_ptr: Pointer to an array of clip rects cast to an uint64_t. 803 * @rects: pointer to array of drm_vmw_rect cast to an uint64_t 810 uint64_t rects; member in struct:drm_vmw_update_layout_arg
|
H A D | drm.h | 97 struct drm_clip_rect *rects; member in struct:drm_drawable_info
|
/linux-4.1.27/drivers/media/platform/vivid/ |
H A D | vivid-vid-common.c | 641 /* v4l2_rect helper function: calculate the intersection of two rects */ rect_intersect()
|
/linux-4.1.27/drivers/gpu/drm/savage/ |
H A D | savage_state.c | 1050 * iterations over clip rects. */ savage_bci_cmdbuf()
|
Completed in 289 milliseconds