Home
last modified time | relevance | path

Searched refs:clips_ptr (Results 1 – 7 of 7) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/qxl/
Dqxl_draw.c279 struct drm_clip_rect *clips_ptr; in qxl_draw_dirty_fb() local
305 for (i = 1, clips_ptr = clips + inc; in qxl_draw_dirty_fb()
306 i < num_clips; i++, clips_ptr += inc) { in qxl_draw_dirty_fb()
307 left = min_t(int, left, (int)clips_ptr->x1); in qxl_draw_dirty_fb()
308 right = max_t(int, right, (int)clips_ptr->x2); in qxl_draw_dirty_fb()
309 top = min_t(int, top, (int)clips_ptr->y1); in qxl_draw_dirty_fb()
310 bottom = max_t(int, bottom, (int)clips_ptr->y2); in qxl_draw_dirty_fb()
377 clips_ptr = clips; in qxl_draw_dirty_fb()
378 for (i = 0; i < num_clips; i++, clips_ptr += inc) { in qxl_draw_dirty_fb()
379 rects[i].left = clips_ptr->x1; in qxl_draw_dirty_fb()
[all …]
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ioctl.c255 struct drm_vmw_rect __user *clips_ptr; in vmw_present_ioctl() local
264 clips_ptr = (struct drm_vmw_rect __user *)(unsigned long)arg->clips_ptr; in vmw_present_ioctl()
269 if (clips_ptr == NULL) { in vmw_present_ioctl()
282 ret = copy_from_user(clips, clips_ptr, num_clips * sizeof(*clips)); in vmw_present_ioctl()
339 struct drm_vmw_rect __user *clips_ptr; in vmw_present_readback_ioctl() local
347 clips_ptr = (struct drm_vmw_rect __user *)(unsigned long)arg->clips_ptr; in vmw_present_readback_ioctl()
352 if (clips_ptr == NULL) { in vmw_present_readback_ioctl()
365 ret = copy_from_user(clips, clips_ptr, num_clips * sizeof(*clips)); in vmw_present_readback_ioctl()
Dvmwgfx_kms.c1746 const struct drm_clip_rect *clips_ptr = clips; in vmw_kms_helper_dirty() local
1761 for (i = 0; i < num_clips; i++, clips_ptr += increment, in vmw_kms_helper_dirty()
1772 dirty->fb_x = (s32) clips_ptr->x1; in vmw_kms_helper_dirty()
1773 dirty->fb_y = (s32) clips_ptr->y1; in vmw_kms_helper_dirty()
1774 dirty->unit_x2 = (s32) clips_ptr->x2 + dest_x - in vmw_kms_helper_dirty()
1776 dirty->unit_y2 = (s32) clips_ptr->y2 + dest_y - in vmw_kms_helper_dirty()
/linux-4.4.14/drivers/gpu/drm/virtio/
Dvirtgpu_fb.c127 struct drm_clip_rect *clips_ptr; in virtio_gpu_surface_dirty() local
144 for (i = 1, clips_ptr = clips + inc; in virtio_gpu_surface_dirty()
145 i < num_clips; i++, clips_ptr += inc) { in virtio_gpu_surface_dirty()
146 left = min_t(int, left, (int)clips_ptr->x1); in virtio_gpu_surface_dirty()
147 right = max_t(int, right, (int)clips_ptr->x2); in virtio_gpu_surface_dirty()
148 top = min_t(int, top, (int)clips_ptr->y1); in virtio_gpu_surface_dirty()
149 bottom = max_t(int, bottom, (int)clips_ptr->y2); in virtio_gpu_surface_dirty()
/linux-4.4.14/include/uapi/drm/
Dvmwgfx_drm.h763 uint64_t clips_ptr; member
791 uint64_t clips_ptr; member
Ddrm_mode.h430 __u64 clips_ptr; member
/linux-4.4.14/drivers/gpu/drm/
Ddrm_crtc.c3483 struct drm_clip_rect __user *clips_ptr; in drm_mode_dirtyfb_ioctl() local
3499 clips_ptr = (struct drm_clip_rect __user *)(unsigned long)r->clips_ptr; in drm_mode_dirtyfb_ioctl()
3501 if (!num_clips != !clips_ptr) { in drm_mode_dirtyfb_ioctl()
3514 if (num_clips && clips_ptr) { in drm_mode_dirtyfb_ioctl()
3525 ret = copy_from_user(clips, clips_ptr, in drm_mode_dirtyfb_ioctl()