/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_damage_helper.c | 77 uint32_t num_clips, uint32_t src_inc) in convert_clip_rect_to_rect() 79 while (num_clips > 0) { in convert_clip_rect_to_rect() 86 num_clips--; in convert_clip_rect_to_rect() 147 * @num_clips: Count of clip in clips. 150 * during plane update. If num_clips is 0 then this helper will do a full plane 163 unsigned int num_clips) in drm_atomic_helper_dirtyfb() 191 num_clips /= 2; in drm_atomic_helper_dirtyfb() 194 rects = kcalloc(num_clips, sizeof(*rects), GFP_KERNEL); in drm_atomic_helper_dirtyfb() 200 convert_clip_rect_to_rect(clips, rects, num_clips, inc); in drm_atomic_helper_dirtyfb() 202 num_clips * sizeo in drm_atomic_helper_dirtyfb() 75 convert_clip_rect_to_rect(const struct drm_clip_rect *src, struct drm_mode_rect *dest, uint32_t num_clips, uint32_t src_inc) convert_clip_rect_to_rect() argument 160 drm_atomic_helper_dirtyfb(struct drm_framebuffer *fb, struct drm_file *file_priv, unsigned int flags, unsigned int color, struct drm_clip_rect *clips, unsigned int num_clips) drm_atomic_helper_dirtyfb() argument [all...] |
H A D | drm_framebuffer.c | 703 int num_clips; in drm_mode_dirtyfb_ioctl() local 713 num_clips = r->num_clips; in drm_mode_dirtyfb_ioctl() 716 if (!num_clips != !clips_ptr) { in drm_mode_dirtyfb_ioctl() 724 if (flags & DRM_MODE_FB_DIRTY_ANNOTATE_COPY && (num_clips % 2)) { in drm_mode_dirtyfb_ioctl() 729 if (num_clips && clips_ptr) { in drm_mode_dirtyfb_ioctl() 730 if (num_clips < 0 || num_clips > DRM_MODE_FB_DIRTY_MAX_CLIPS) { in drm_mode_dirtyfb_ioctl() 734 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in drm_mode_dirtyfb_ioctl() 741 num_clips * sizeo in drm_mode_dirtyfb_ioctl() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_damage_helper.c | 40 uint32_t num_clips, uint32_t src_inc) in convert_clip_rect_to_rect() 42 while (num_clips > 0) { in convert_clip_rect_to_rect() 49 num_clips--; in convert_clip_rect_to_rect() 94 * @num_clips: Count of clip in clips. 97 * during plane update. If num_clips is 0 then this helper will do a full plane 110 unsigned int num_clips) in drm_atomic_helper_dirtyfb() 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 * sizeo in drm_atomic_helper_dirtyfb() 38 convert_clip_rect_to_rect(const struct drm_clip_rect *src, struct drm_mode_rect *dest, uint32_t num_clips, uint32_t src_inc) convert_clip_rect_to_rect() argument 107 drm_atomic_helper_dirtyfb(struct drm_framebuffer *fb, struct drm_file *file_priv, unsigned int flags, unsigned int color, struct drm_clip_rect *clips, unsigned int num_clips) drm_atomic_helper_dirtyfb() argument [all...] |
H A D | drm_framebuffer.c | 703 int num_clips; in drm_mode_dirtyfb_ioctl() local 713 num_clips = r->num_clips; in drm_mode_dirtyfb_ioctl() 716 if (!num_clips != !clips_ptr) { in drm_mode_dirtyfb_ioctl() 724 if (flags & DRM_MODE_FB_DIRTY_ANNOTATE_COPY && (num_clips % 2)) { in drm_mode_dirtyfb_ioctl() 729 if (num_clips && clips_ptr) { in drm_mode_dirtyfb_ioctl() 730 if (num_clips < 0 || num_clips > DRM_MODE_FB_DIRTY_MAX_CLIPS) { in drm_mode_dirtyfb_ioctl() 734 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in drm_mode_dirtyfb_ioctl() 741 num_clips * sizeo in drm_mode_dirtyfb_ioctl() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_ioctl.c | 183 uint32_t num_clips; in vmw_present_ioctl() local 186 num_clips = arg->num_clips; in vmw_present_ioctl() 189 if (unlikely(num_clips == 0)) in vmw_present_ioctl() 198 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_ioctl() 205 ret = copy_from_user(clips, clips_ptr, num_clips * sizeof(*clips)); in vmw_present_ioctl() 232 clips, num_clips); in vmw_present_ioctl() 260 uint32_t num_clips; in vmw_present_readback_ioctl() local 263 num_clips = arg->num_clips; in vmw_present_readback_ioctl() [all...] |
H A D | vmwgfx_kms.h | 438 int num_clips, 453 uint32_t num_clips); 512 unsigned num_clips, 526 unsigned num_clips, int inc, 533 unsigned int num_clips, int increment, 542 uint32_t num_clips, 556 unsigned num_clips, int inc, 565 uint32_t num_clips,
|
H A D | vmwgfx_scrn.c | 1083 * @num_clips: Number of clip rects in @clips. 1100 unsigned num_clips, int inc, in vmw_kms_sou_do_surface_dirty() 1126 sizeof(SVGASignedRect) * num_clips; in vmw_kms_sou_do_surface_dirty() 1136 dest_x, dest_y, num_clips, inc, in vmw_kms_sou_do_surface_dirty() 1198 * @num_clips: Number of clip rects in @clips. 1213 unsigned num_clips, int increment, in vmw_kms_sou_do_bo_dirty() 1243 num_clips; in vmw_kms_sou_do_bo_dirty() 1245 0, 0, num_clips, increment, &dirty); in vmw_kms_sou_do_bo_dirty() 1313 * @num_clips: Number of clip rects in @vclips. 1324 uint32_t num_clips, in vmw_kms_sou_readback() 1093 vmw_kms_sou_do_surface_dirty(struct vmw_private *dev_priv, struct vmw_framebuffer *framebuffer, struct drm_clip_rect *clips, struct drm_vmw_rect *vclips, struct vmw_resource *srf, s32 dest_x, s32 dest_y, unsigned num_clips, int inc, struct vmw_fence_obj **out_fence, struct drm_crtc *crtc) vmw_kms_sou_do_surface_dirty() argument 1209 vmw_kms_sou_do_bo_dirty(struct vmw_private *dev_priv, struct vmw_framebuffer *framebuffer, struct drm_clip_rect *clips, struct drm_vmw_rect *vclips, unsigned num_clips, int increment, bool interruptible, struct vmw_fence_obj **out_fence, struct drm_crtc *crtc) vmw_kms_sou_do_bo_dirty() argument 1319 vmw_kms_sou_readback(struct vmw_private *dev_priv, struct drm_file *file_priv, struct vmw_framebuffer *vfb, struct drm_vmw_fence_rep __user *user_fence_rep, struct drm_vmw_rect *vclips, uint32_t num_clips, struct drm_crtc *crtc) vmw_kms_sou_readback() argument [all...] |
H A D | vmwgfx_ldu.c | 322 unsigned int num_clips); 613 unsigned int num_clips) in vmw_kms_ldu_do_bo_dirty() 623 fifo_size = sizeof(*cmd) * num_clips; in vmw_kms_ldu_do_bo_dirty() 629 for (i = 0; i < num_clips; i++, clips++) { in vmw_kms_ldu_do_bo_dirty() 609 vmw_kms_ldu_do_bo_dirty(struct vmw_private *dev_priv, struct vmw_framebuffer *framebuffer, unsigned int flags, unsigned int color, struct drm_mode_rect *clips, unsigned int num_clips) vmw_kms_ldu_do_bo_dirty() argument
|
H A D | vmwgfx_kms.c | 1242 * @num_clips: Number of clip rects in @vclips. 1252 uint32_t num_clips) in vmw_kms_readback() 1257 user_fence_rep, vclips, num_clips, in vmw_kms_readback() 1261 user_fence_rep, NULL, vclips, num_clips, in vmw_kms_readback() 1980 uint32_t num_clips) in vmw_kms_generic_present() 1984 num_clips, 1, NULL, NULL); in vmw_kms_generic_present() 1995 uint32_t num_clips) in vmw_kms_present() 2003 num_clips, 1, NULL, NULL); in vmw_kms_present() 2008 num_clips); in vmw_kms_present() 2598 * @num_clips 1247 vmw_kms_readback(struct vmw_private *dev_priv, struct drm_file *file_priv, struct vmw_framebuffer *vfb, struct drm_vmw_fence_rep __user *user_fence_rep, struct drm_vmw_rect *vclips, uint32_t num_clips) vmw_kms_readback() argument 1973 vmw_kms_generic_present(struct vmw_private *dev_priv, struct drm_file *file_priv, struct vmw_framebuffer *vfb, struct vmw_surface *surface, uint32_t sid, int32_t destX, int32_t destY, struct drm_vmw_rect *clips, uint32_t num_clips) vmw_kms_generic_present() argument 1988 vmw_kms_present(struct vmw_private *dev_priv, struct drm_file *file_priv, struct vmw_framebuffer *vfb, struct vmw_surface *surface, uint32_t sid, int32_t destX, int32_t destY, struct drm_vmw_rect *clips, uint32_t num_clips) vmw_kms_present() argument 2603 vmw_kms_helper_dirty(struct vmw_private *dev_priv, struct vmw_framebuffer *framebuffer, const struct drm_clip_rect *clips, const struct drm_vmw_rect *vclips, s32 dest_x, s32 dest_y, int num_clips, int increment, struct vmw_kms_dirty *dirty) vmw_kms_helper_dirty() argument 2759 vmw_kms_update_proxy(struct vmw_resource *res, const struct drm_clip_rect *clips, unsigned num_clips, int increment) vmw_kms_update_proxy() argument [all...] |
H A D | vmwgfx_stdu.c | 532 * @num_clips: Number of clip rects in @clips or @vclips. 548 uint32_t num_clips, in vmw_kms_stdu_readback() 589 0, 0, num_clips, increment, &ddirty.base); in vmw_kms_stdu_readback() 699 * @num_clips: Number of clip rects in @clips. 716 unsigned num_clips, int inc, in vmw_kms_stdu_surface_dirty() 739 ret = vmw_kms_update_proxy(srf, clips, num_clips, inc); in vmw_kms_stdu_surface_dirty() 747 sizeof(SVGA3dCopyBox) * num_clips + in vmw_kms_stdu_surface_dirty() 755 dest_x, dest_y, num_clips, inc, in vmw_kms_stdu_surface_dirty() 542 vmw_kms_stdu_readback(struct vmw_private *dev_priv, struct drm_file *file_priv, struct vmw_framebuffer *vfb, struct drm_vmw_fence_rep __user *user_fence_rep, struct drm_clip_rect *clips, struct drm_vmw_rect *vclips, uint32_t num_clips, int increment, struct drm_crtc *crtc) vmw_kms_stdu_readback() argument 709 vmw_kms_stdu_surface_dirty(struct vmw_private *dev_priv, struct vmw_framebuffer *framebuffer, struct drm_clip_rect *clips, struct drm_vmw_rect *vclips, struct vmw_resource *srf, s32 dest_x, s32 dest_y, unsigned num_clips, int inc, struct vmw_fence_obj **out_fence, struct drm_crtc *crtc) vmw_kms_stdu_surface_dirty() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/ |
H A D | qxl_draw.c | 30 unsigned int num_clips, in alloc_clips() 33 int size = sizeof(struct qxl_clip_rects) + sizeof(struct qxl_rect) * num_clips; in alloc_clips() 42 unsigned int num_clips, in drawable_set_clipping() 52 dev_clips->num_rects = num_clips; in drawable_set_clipping() 55 dev_clips->chunk.data_size = sizeof(struct qxl_rect) * num_clips; in drawable_set_clipping() 126 unsigned int num_clips, int inc, in qxl_draw_dirty_fb() 165 i < num_clips; i++, clips_ptr += inc) { in qxl_draw_dirty_fb() 175 ret = alloc_clips(qdev, release, num_clips, &clips_bo); in qxl_draw_dirty_fb() 211 rects = drawable_set_clipping(qdev, num_clips, clips_bo); in qxl_draw_dirty_fb() 238 for (i = 0; i < num_clips; in qxl_draw_dirty_fb() 28 alloc_clips(struct qxl_device *qdev, struct qxl_release *release, unsigned int num_clips, struct qxl_bo **clips_bo) alloc_clips() argument 41 drawable_set_clipping(struct qxl_device *qdev, unsigned int num_clips, struct qxl_bo *clips_bo) drawable_set_clipping() argument 121 qxl_draw_dirty_fb(struct qxl_device *qdev, struct drm_framebuffer *fb, struct qxl_bo *bo, unsigned int flags, unsigned int color, struct drm_clip_rect *clips, unsigned int num_clips, int inc, uint32_t dumb_shadow_offset) qxl_draw_dirty_fb() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/qxl/ |
H A D | qxl_draw.c | 33 unsigned int num_clips, in alloc_clips() 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() 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() 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; in qxl_draw_dirty_fb() 31 alloc_clips(struct qxl_device *qdev, struct qxl_release *release, unsigned int num_clips, struct qxl_bo **clips_bo) alloc_clips() argument 44 drawable_set_clipping(struct qxl_device *qdev, unsigned int num_clips, struct qxl_bo *clips_bo) drawable_set_clipping() argument 126 qxl_draw_dirty_fb(struct qxl_device *qdev, struct drm_framebuffer *fb, struct qxl_bo *bo, unsigned int flags, unsigned int color, struct drm_clip_rect *clips, unsigned int num_clips, int inc, uint32_t dumb_shadow_offset) qxl_draw_dirty_fb() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_ioctl.c | 267 uint32_t num_clips; in vmw_present_ioctl() local 270 num_clips = arg->num_clips; in vmw_present_ioctl() 273 if (unlikely(num_clips == 0)) in vmw_present_ioctl() 282 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_ioctl() 289 ret = copy_from_user(clips, clips_ptr, num_clips * sizeof(*clips)); in vmw_present_ioctl() 320 clips, num_clips); in vmw_present_ioctl() 350 uint32_t num_clips; in vmw_present_readback_ioctl() local 353 num_clips = arg->num_clips; in vmw_present_readback_ioctl() [all...] |
H A D | vmwgfx_kms.h | 420 int num_clips, 435 uint32_t num_clips); 501 unsigned int num_clips, int increment); 504 unsigned num_clips, 518 unsigned num_clips, int inc, 525 unsigned int num_clips, int increment, 534 uint32_t num_clips, 548 unsigned num_clips, int inc, 557 uint32_t num_clips,
|
H A D | vmwgfx_kms.c | 850 * @num_clips: Number of clip rects in @vclips. 860 uint32_t num_clips) in vmw_kms_readback() 865 user_fence_rep, vclips, num_clips, in vmw_kms_readback() 869 user_fence_rep, NULL, vclips, num_clips, in vmw_kms_readback() 997 unsigned int num_clips) in vmw_framebuffer_bo_dirty() 1013 if (!num_clips) { in vmw_framebuffer_bo_dirty() 1014 num_clips = 1; in vmw_framebuffer_bo_dirty() 1020 num_clips /= 2; in vmw_framebuffer_bo_dirty() 1027 clips, num_clips, increment); in vmw_framebuffer_bo_dirty() 1047 unsigned int num_clips) in vmw_framebuffer_bo_dirty_ext() 855 vmw_kms_readback(struct vmw_private *dev_priv, struct drm_file *file_priv, struct vmw_framebuffer *vfb, struct drm_vmw_fence_rep __user *user_fence_rep, struct drm_vmw_rect *vclips, uint32_t num_clips) vmw_kms_readback() argument 993 vmw_framebuffer_bo_dirty(struct drm_framebuffer *framebuffer, struct drm_file *file_priv, unsigned int flags, unsigned int color, struct drm_clip_rect *clips, unsigned int num_clips) vmw_framebuffer_bo_dirty() argument 1043 vmw_framebuffer_bo_dirty_ext(struct drm_framebuffer *framebuffer, struct drm_file *file_priv, unsigned int flags, unsigned int color, struct drm_clip_rect *clips, unsigned int num_clips) vmw_framebuffer_bo_dirty_ext() argument 1724 vmw_kms_generic_present(struct vmw_private *dev_priv, struct drm_file *file_priv, struct vmw_framebuffer *vfb, struct vmw_surface *surface, uint32_t sid, int32_t destX, int32_t destY, struct drm_vmw_rect *clips, uint32_t num_clips) vmw_kms_generic_present() argument 1739 vmw_kms_present(struct vmw_private *dev_priv, struct drm_file *file_priv, struct vmw_framebuffer *vfb, struct vmw_surface *surface, uint32_t sid, int32_t destX, int32_t destY, struct drm_vmw_rect *clips, uint32_t num_clips) vmw_kms_present() argument 2348 vmw_kms_helper_dirty(struct vmw_private *dev_priv, struct vmw_framebuffer *framebuffer, const struct drm_clip_rect *clips, const struct drm_vmw_rect *vclips, s32 dest_x, s32 dest_y, int num_clips, int increment, struct vmw_kms_dirty *dirty) vmw_kms_helper_dirty() argument 2504 vmw_kms_update_proxy(struct vmw_resource *res, const struct drm_clip_rect *clips, unsigned num_clips, int increment) vmw_kms_update_proxy() argument [all...] |
H A D | vmwgfx_scrn.c | 1117 * @num_clips: Number of clip rects in @clips. 1134 unsigned num_clips, int inc, in vmw_kms_sou_do_surface_dirty() 1160 sizeof(SVGASignedRect) * num_clips; in vmw_kms_sou_do_surface_dirty() 1170 dest_x, dest_y, num_clips, inc, in vmw_kms_sou_do_surface_dirty() 1232 * @num_clips: Number of clip rects in @clips. 1247 unsigned num_clips, int increment, in vmw_kms_sou_do_bo_dirty() 1275 num_clips; in vmw_kms_sou_do_bo_dirty() 1277 0, 0, num_clips, increment, &dirty); in vmw_kms_sou_do_bo_dirty() 1345 * @num_clips: Number of clip rects in @vclips. 1356 uint32_t num_clips, in vmw_kms_sou_readback() 1127 vmw_kms_sou_do_surface_dirty(struct vmw_private *dev_priv, struct vmw_framebuffer *framebuffer, struct drm_clip_rect *clips, struct drm_vmw_rect *vclips, struct vmw_resource *srf, s32 dest_x, s32 dest_y, unsigned num_clips, int inc, struct vmw_fence_obj **out_fence, struct drm_crtc *crtc) vmw_kms_sou_do_surface_dirty() argument 1243 vmw_kms_sou_do_bo_dirty(struct vmw_private *dev_priv, struct vmw_framebuffer *framebuffer, struct drm_clip_rect *clips, struct drm_vmw_rect *vclips, unsigned num_clips, int increment, bool interruptible, struct vmw_fence_obj **out_fence, struct drm_crtc *crtc) vmw_kms_sou_do_bo_dirty() argument 1351 vmw_kms_sou_readback(struct vmw_private *dev_priv, struct drm_file *file_priv, struct vmw_framebuffer *vfb, struct drm_vmw_fence_rep __user *user_fence_rep, struct drm_vmw_rect *vclips, uint32_t num_clips, struct drm_crtc *crtc) vmw_kms_sou_readback() argument [all...] |
H A D | vmwgfx_ldu.c | 546 unsigned int num_clips, int increment) in vmw_kms_ldu_do_bo_dirty() 556 fifo_size = sizeof(*cmd) * num_clips; in vmw_kms_ldu_do_bo_dirty() 562 for (i = 0; i < num_clips; i++, clips += increment) { in vmw_kms_ldu_do_bo_dirty() 542 vmw_kms_ldu_do_bo_dirty(struct vmw_private *dev_priv, struct vmw_framebuffer *framebuffer, unsigned int flags, unsigned int color, struct drm_clip_rect *clips, unsigned int num_clips, int increment) vmw_kms_ldu_do_bo_dirty() argument
|
/kernel/linux/linux-6.6/include/drm/ |
H A D | drm_damage_helper.h | 60 uint32_t num_clips; member 72 unsigned int num_clips);
|
/kernel/linux/linux-5.10/include/drm/ |
H A D | drm_damage_helper.h | 60 uint32_t num_clips; member 73 unsigned int num_clips);
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/drm/ |
H A D | vmwgfx_drm.h | 224 __u32 num_clips; member 229 __u32 num_clips; member
|
/kernel/linux/linux-5.10/include/uapi/drm/ |
H A D | vmwgfx_drm.h | 755 * @num_clips: Number of cliprects given relative to the framebuffer origin, 768 __u32 num_clips; member 786 * @num_clips: Number of cliprects. 794 __u32 num_clips; member
|
/kernel/linux/linux-6.6/include/uapi/drm/ |
H A D | vmwgfx_drm.h | 766 * @num_clips: Number of cliprects given relative to the framebuffer origin, 779 __u32 num_clips; member 797 * @num_clips: Number of cliprects. 805 __u32 num_clips; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/ |
H A D | msm_fb.c | 38 unsigned int num_clips) in msm_framebuffer_dirtyfb() 49 clips, num_clips); in msm_framebuffer_dirtyfb() 35 msm_framebuffer_dirtyfb(struct drm_framebuffer *fb, struct drm_file *file_priv, unsigned int flags, unsigned int color, struct drm_clip_rect *clips, unsigned int num_clips) msm_framebuffer_dirtyfb() argument
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/drm/ |
H A D | vmwgfx_drm.h | 239 __u32 num_clips; member 244 __u32 num_clips; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/drm/ |
H A D | vmwgfx_drm.h | 239 __u32 num_clips; member 244 __u32 num_clips; member
|