Home
last modified time | relevance | path

Searched refs:num_clips (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ioctl.c184 uint32_t num_clips; in vmw_present_ioctl() local
187 num_clips = arg->num_clips; in vmw_present_ioctl()
190 if (unlikely(num_clips == 0)) in vmw_present_ioctl()
199 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_ioctl()
206 ret = copy_from_user(clips, clips_ptr, num_clips * sizeof(*clips)); in vmw_present_ioctl()
233 clips, num_clips); in vmw_present_ioctl()
261 uint32_t num_clips; in vmw_present_readback_ioctl() local
264 num_clips = arg->num_clips; in vmw_present_readback_ioctl()
267 if (unlikely(num_clips == 0)) in vmw_present_readback_ioctl()
276 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_readback_ioctl()
[all …]
H A Dvmwgfx_kms.h434 int num_clips,
452 uint32_t num_clips);
506 unsigned num_clips,
520 unsigned num_clips, int inc,
527 unsigned int num_clips, int increment,
536 uint32_t num_clips,
550 unsigned num_clips, int inc,
559 uint32_t num_clips,
H A Dvmwgfx_scrn.c1101 unsigned num_clips, int inc, in vmw_kms_sou_do_surface_dirty() argument
1127 sizeof(SVGASignedRect) * num_clips; in vmw_kms_sou_do_surface_dirty()
1137 dest_x, dest_y, num_clips, inc, in vmw_kms_sou_do_surface_dirty()
1214 unsigned num_clips, int increment, in vmw_kms_sou_do_bo_dirty() argument
1244 num_clips; in vmw_kms_sou_do_bo_dirty()
1246 0, 0, num_clips, increment, &dirty); in vmw_kms_sou_do_bo_dirty()
1325 uint32_t num_clips, in vmw_kms_sou_readback() argument
1352 num_clips; in vmw_kms_sou_readback()
1354 0, 0, num_clips, 1, &dirty); in vmw_kms_sou_readback()
H A Dvmwgfx_ldu.c305 unsigned int num_clips);
597 unsigned int num_clips) in vmw_kms_ldu_do_bo_dirty() argument
607 fifo_size = sizeof(*cmd) * num_clips; in vmw_kms_ldu_do_bo_dirty()
613 for (i = 0; i < num_clips; i++, clips++) { in vmw_kms_ldu_do_bo_dirty()
H A Dvmwgfx_kms.c1242 uint32_t num_clips) in vmw_kms_readback() argument
1247 user_fence_rep, vclips, num_clips, in vmw_kms_readback()
1251 user_fence_rep, NULL, vclips, num_clips, in vmw_kms_readback()
1833 uint32_t num_clips) in vmw_kms_generic_present() argument
1837 num_clips, 1, NULL, NULL); in vmw_kms_generic_present()
1848 uint32_t num_clips) in vmw_kms_present() argument
1856 num_clips, 1, NULL, NULL); in vmw_kms_present()
1861 num_clips); in vmw_kms_present()
2303 int num_clips, in vmw_kms_helper_dirty() argument
2346 for (i = 0; i < num_clips; i++, clips_ptr += increment, in vmw_kms_helper_dirty()
H A Dvmwgfx_stdu.c561 uint32_t num_clips, in vmw_kms_stdu_readback() argument
602 0, 0, num_clips, increment, &ddirty.base); in vmw_kms_stdu_readback()
729 unsigned num_clips, int inc, in vmw_kms_stdu_surface_dirty() argument
754 sizeof(SVGA3dCopyBox) * num_clips + in vmw_kms_stdu_surface_dirty()
762 dest_x, dest_y, num_clips, inc, in vmw_kms_stdu_surface_dirty()
H A Dvmwgfx_drv.h1068 uint32_t num_clips);
/linux/drivers/gpu/drm/
H A Ddrm_damage_helper.c40 uint32_t num_clips, uint32_t src_inc) in convert_clip_rect_to_rect() argument
42 while (num_clips > 0) { in convert_clip_rect_to_rect()
49 num_clips--; in convert_clip_rect_to_rect()
110 unsigned int num_clips) in drm_atomic_helper_dirtyfb() argument
138 num_clips /= 2; in drm_atomic_helper_dirtyfb()
141 rects = kcalloc(num_clips, sizeof(*rects), GFP_KERNEL); in drm_atomic_helper_dirtyfb()
147 convert_clip_rect_to_rect(clips, rects, num_clips, inc); in drm_atomic_helper_dirtyfb()
149 num_clips * sizeof(*rects), in drm_atomic_helper_dirtyfb()
234 iter->num_clips = drm_plane_get_damage_clips_count(state); in drm_atomic_helper_damage_iter_init()
247 iter->num_clips = 0; in drm_atomic_helper_damage_iter_init()
[all …]
H A Ddrm_framebuffer.c717 int num_clips; in drm_mode_dirtyfb_ioctl() local
727 num_clips = r->num_clips; in drm_mode_dirtyfb_ioctl()
730 if (!num_clips != !clips_ptr) { in drm_mode_dirtyfb_ioctl()
738 if (flags & DRM_MODE_FB_DIRTY_ANNOTATE_COPY && (num_clips % 2)) { in drm_mode_dirtyfb_ioctl()
743 if (num_clips && clips_ptr) { in drm_mode_dirtyfb_ioctl()
744 if (num_clips < 0 || num_clips > DRM_MODE_FB_DIRTY_MAX_CLIPS) { in drm_mode_dirtyfb_ioctl()
748 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in drm_mode_dirtyfb_ioctl()
755 num_clips * sizeof(*clips)); in drm_mode_dirtyfb_ioctl()
764 clips, num_clips); in drm_mode_dirtyfb_ioctl()
H A Ddrm_atomic.c607 uint32_t num_clips; in drm_atomic_plane_check() local
680 num_clips = drm_plane_get_damage_clips_count(new_plane_state); in drm_atomic_plane_check()
683 while (num_clips > 0) { in drm_atomic_plane_check()
697 num_clips--; in drm_atomic_plane_check()
/linux/drivers/gpu/drm/qxl/
H A Dqxl_draw.c33 unsigned int num_clips, in alloc_clips() argument
36 int size = sizeof(struct qxl_clip_rects) + sizeof(struct qxl_rect) * num_clips; in alloc_clips()
45 unsigned int num_clips, in drawable_set_clipping() argument
57 dev_clips->num_rects = num_clips; in drawable_set_clipping()
60 dev_clips->chunk.data_size = sizeof(struct qxl_rect) * num_clips; in drawable_set_clipping()
131 unsigned int num_clips, int inc, in qxl_draw_dirty_fb() argument
171 i < num_clips; i++, clips_ptr += inc) { in qxl_draw_dirty_fb()
181 ret = alloc_clips(qdev, release, num_clips, &clips_bo); in qxl_draw_dirty_fb()
218 rects = drawable_set_clipping(qdev, num_clips, clips_bo); in qxl_draw_dirty_fb()
245 for (i = 0; i < num_clips; i++, clips_ptr += inc) { in qxl_draw_dirty_fb()
H A Dqxl_display.c410 unsigned int num_clips) in qxl_framebuffer_surface_dirty() argument
428 if (!num_clips) { in qxl_framebuffer_surface_dirty()
429 num_clips = 1; in qxl_framebuffer_surface_dirty()
435 num_clips /= 2; in qxl_framebuffer_surface_dirty()
440 clips, num_clips, inc, 0); in qxl_framebuffer_surface_dirty()
H A Dqxl_drv.h396 unsigned int num_clips, int inc,
/linux/include/drm/
H A Ddrm_damage_helper.h60 uint32_t num_clips; member
72 unsigned int num_clips);
H A Ddrm_framebuffer.h100 unsigned num_clips);
/linux/include/uapi/drm/
H A Dvmwgfx_drm.h780 __u32 num_clips; member
806 __u32 num_clips; member
H A Ddrm_mode.h775 __u32 num_clips; member
/linux/drivers/gpu/drm/msm/
H A Dmsm_fb.c38 unsigned int num_clips) in msm_framebuffer_dirtyfb() argument
49 clips, num_clips); in msm_framebuffer_dirtyfb()
/linux/drivers/gpu/drm/vboxvideo/
H A Dvbox_mode.c286 uint32_t num_clips, i; in vbox_primary_atomic_update() local
295 num_clips = drm_plane_get_damage_clips_count(new_state); in vbox_primary_atomic_update()
297 if (!num_clips) in vbox_primary_atomic_update()
302 for (i = 0; i < num_clips; ++i, ++clips) { in vbox_primary_atomic_update()
/linux/drivers/gpu/drm/omapdrm/
H A Domap_fb.c65 unsigned num_clips) in omap_framebuffer_dirty() argument
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_display.c537 struct drm_clip_rect *clips, unsigned int num_clips) in amdgpu_dirtyfb() argument
544 num_clips); in amdgpu_dirtyfb()
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm.c5704 u32 num_clips; in fill_dc_dirty_rects() local
5721 num_clips = drm_plane_get_damage_clips_count(new_plane_state); in fill_dc_dirty_rects()
5724 if (num_clips && (!amdgpu_damage_clips || (amdgpu_damage_clips < 0 && in fill_dc_dirty_rects()
5729 if (!num_clips || num_clips > DC_MAX_DIRTY_RECTS) in fill_dc_dirty_rects()
5732 for (; flip_addrs->dirty_rect_count < num_clips; clips++) in fill_dc_dirty_rects()
5759 bb_changed, fb_changed, num_clips); in fill_dc_dirty_rects()
5763 if ((num_clips + (bb_changed ? 2 : 0)) > DC_MAX_DIRTY_RECTS) in fill_dc_dirty_rects()
5781 if (num_clips) { in fill_dc_dirty_rects()
5782 for (; i < num_clips; clips++) in fill_dc_dirty_rects()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_fb.c1924 unsigned int num_clips) in intel_user_framebuffer_dirty() argument