/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/ |
H A D | btcx-risc.c | 85 struct v4l2_clip *clips, unsigned int n) in btcx_screen_clips() 89 clips[n].c.left = 0; in btcx_screen_clips() 90 clips[n].c.top = 0; in btcx_screen_clips() 91 clips[n].c.width = -win->left; in btcx_screen_clips() 92 clips[n].c.height = win->height; in btcx_screen_clips() 97 clips[n].c.left = swidth - win->left; in btcx_screen_clips() 98 clips[n].c.top = 0; in btcx_screen_clips() 99 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips() 100 clips[ in btcx_screen_clips() 84 btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win, struct v4l2_clip *clips, unsigned int n) btcx_screen_clips() argument 123 btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, unsigned int n, int mask) btcx_align() argument 155 btcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips) btcx_sort_clips() argument 174 btcx_calc_skips(int line, int width, int *maxy, struct btcx_skiplist *skips, unsigned int *nskips, const struct v4l2_clip *clips, unsigned int nclips) btcx_calc_skips() argument [all...] |
H A D | btcx-risc.h | 21 struct v4l2_clip *clips, unsigned int n); 22 int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, 24 void btcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips); 27 const struct v4l2_clip *clips, unsigned int nclips);
|
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_ioctl.c | 179 struct drm_vmw_rect *clips = NULL; in vmw_present_ioctl() local 198 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_ioctl() 199 if (clips == NULL) { 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() 242 kfree(clips); in vmw_present_ioctl() 257 struct drm_vmw_rect *clips = NULL; in vmw_present_readback_ioctl() local 275 clips in vmw_present_readback_ioctl() [all...] |
H A D | vmwgfx_ldu.c | 321 struct drm_mode_rect *clips, 612 struct drm_mode_rect *clips, in vmw_kms_ldu_do_bo_dirty() 629 for (i = 0; i < num_clips; i++, clips++) { in vmw_kms_ldu_do_bo_dirty() 631 cmd[i].body.x = clips->x1; in vmw_kms_ldu_do_bo_dirty() 632 cmd[i].body.y = clips->y1; in vmw_kms_ldu_do_bo_dirty() 633 cmd[i].body.width = clips->x2 - clips->x1; in vmw_kms_ldu_do_bo_dirty() 634 cmd[i].body.height = clips->y2 - clips->y1; 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.h | 60 * damage clips on display unit @num_hits will be passed to allocate 98 * This is where to populate clips for surface copy/dma or blit commands 435 const struct drm_clip_rect *clips, 511 const struct drm_clip_rect *clips, 521 struct drm_clip_rect *clips, 531 struct drm_clip_rect *clips, 551 struct drm_clip_rect *clips, 563 struct drm_clip_rect *clips,
|
H A D | vmwgfx_kms.c | 1979 struct drm_vmw_rect *clips, in vmw_kms_generic_present() 1982 return vmw_kms_sou_do_surface_dirty(dev_priv, vfb, NULL, clips, in vmw_kms_generic_present() 1994 struct drm_vmw_rect *clips, in vmw_kms_present() 2001 ret = vmw_kms_stdu_surface_dirty(dev_priv, vfb, NULL, clips, in vmw_kms_present() 2007 sid, destX, destY, clips, in vmw_kms_present() 2592 * @clips: A set of struct drm_clip_rect. Either this os @vclips must be NULL. 2594 * @vclips: A set of struct drm_vmw_rect cliprects. Either this or @clips must 2598 * @num_clips: Number of cliprects in the @clips or @vclips array. 2605 const struct drm_clip_rect *clips, in vmw_kms_helper_dirty() 2638 const struct drm_clip_rect *clips_ptr = clips; in vmw_kms_helper_dirty() 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...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/ |
H A D | qxl_draw.c | 125 struct drm_clip_rect *clips, in qxl_draw_dirty_fb() 155 clips->x1 += dumb_shadow_offset; in qxl_draw_dirty_fb() 156 clips->x2 += dumb_shadow_offset; in qxl_draw_dirty_fb() 158 left = clips->x1; in qxl_draw_dirty_fb() 159 right = clips->x2; in qxl_draw_dirty_fb() 160 top = clips->y1; in qxl_draw_dirty_fb() 161 bottom = clips->y2; in qxl_draw_dirty_fb() 164 for (i = 1, clips_ptr = clips + inc; in qxl_draw_dirty_fb() 237 clips_ptr = clips; in qxl_draw_dirty_fb() 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
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_ioctl.c | 263 struct drm_vmw_rect *clips = NULL; in vmw_present_ioctl() local 282 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_ioctl() 283 if (clips == NULL) { 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() 332 kfree(clips); in vmw_present_ioctl() 347 struct drm_vmw_rect *clips = NULL; in vmw_present_readback_ioctl() local 365 clips in vmw_present_readback_ioctl() [all...] |
H A D | vmwgfx_kms.h | 59 * damage clips on display unit @num_hits will be passed to allocate 97 * This is where to populate clips for surface copy/dma or blit commands 417 const struct drm_clip_rect *clips, 500 struct drm_clip_rect *clips, 503 const struct drm_clip_rect *clips, 513 struct drm_clip_rect *clips, 523 struct drm_clip_rect *clips, 543 struct drm_clip_rect *clips, 555 struct drm_clip_rect *clips,
|
H A D | vmwgfx_ldu.c | 545 struct drm_clip_rect *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() 564 cmd[i].body.x = clips->x1; in vmw_kms_ldu_do_bo_dirty() 565 cmd[i].body.y = clips->y1; in vmw_kms_ldu_do_bo_dirty() 566 cmd[i].body.width = clips->x2 - clips->x1; in vmw_kms_ldu_do_bo_dirty() 567 cmd[i].body.height = clips->y2 - clips->y1; 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
|
H A D | vmwgfx_kms.c | 996 struct drm_clip_rect *clips, in vmw_framebuffer_bo_dirty() 1015 clips = &norect; in vmw_framebuffer_bo_dirty() 1027 clips, num_clips, increment); in vmw_framebuffer_bo_dirty() 1046 struct drm_clip_rect *clips, in vmw_framebuffer_bo_dirty_ext() 1053 color, clips, num_clips); in vmw_framebuffer_bo_dirty_ext() 1056 clips, num_clips); in vmw_framebuffer_bo_dirty_ext() 1730 struct drm_vmw_rect *clips, in vmw_kms_generic_present() 1733 return vmw_kms_sou_do_surface_dirty(dev_priv, vfb, NULL, clips, in vmw_kms_generic_present() 1745 struct drm_vmw_rect *clips, in vmw_kms_present() 1752 ret = vmw_kms_stdu_surface_dirty(dev_priv, vfb, NULL, clips, in vmw_kms_present() 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...] |
/kernel/linux/linux-5.10/drivers/media/common/ |
H A D | btcx-risc.h | 23 struct v4l2_clip *clips, unsigned int n); 24 int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, 26 void btcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips); 29 const struct v4l2_clip *clips, unsigned int nclips);
|
/kernel/linux/linux-6.6/drivers/gpu/drm/qxl/ |
H A D | qxl_draw.c | 130 struct drm_clip_rect *clips, in qxl_draw_dirty_fb() 161 clips->x1 += dumb_shadow_offset; in qxl_draw_dirty_fb() 162 clips->x2 += dumb_shadow_offset; in qxl_draw_dirty_fb() 164 left = clips->x1; in qxl_draw_dirty_fb() 165 right = clips->x2; in qxl_draw_dirty_fb() 166 top = clips->y1; in qxl_draw_dirty_fb() 167 bottom = clips->y2; in qxl_draw_dirty_fb() 170 for (i = 1, clips_ptr = clips + inc; in qxl_draw_dirty_fb() 244 clips_ptr = clips; in qxl_draw_dirty_fb() 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
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_damage_helper.c | 52 * ignore damage clips property and in that case driver will do a full plane 53 * update. In case damage clips are provided then it is guaranteed that the area 54 * inside damage clips will be updated to plane. For efficiency driver can do 55 * full update or can update more than specified in damage clips. Since driver 58 * provides damage clips which doesn't encompass the actual damage to 63 * damage clips are not in 16.16 fixed point. Similar to plane src in 64 * framebuffer, damage clips cannot be negative. In damage clip, x1/y1 are 66 * damage clips, it is strongly discouraged. 91 * drm_plane_enable_fb_damage_clips - Enables plane fb damage clips property. 92 * @plane: Plane on which to enable damage clips propert 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_atomic.c | 555 struct drm_mode_rect *clips; in drm_atomic_plane_check() local 631 clips = drm_plane_get_damage_clips(new_plane_state); in drm_atomic_plane_check() 634 /* Make sure damage clips are valid and inside the fb. */ in drm_atomic_plane_check() 636 if (clips->x1 >= clips->x2 || in drm_atomic_plane_check() 637 clips->y1 >= clips->y2 || in drm_atomic_plane_check() 638 clips->x1 < 0 || in drm_atomic_plane_check() 639 clips->y1 < 0 || in drm_atomic_plane_check() 640 clips in drm_atomic_plane_check() [all...] |
H A D | drm_framebuffer.c | 699 struct drm_clip_rect *clips = NULL; in drm_mode_dirtyfb_ioctl() local 723 /* If userspace annotates copy, clips must come in pairs */ in drm_mode_dirtyfb_ioctl() 734 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in drm_mode_dirtyfb_ioctl() 735 if (!clips) { in drm_mode_dirtyfb_ioctl() 740 ret = copy_from_user(clips, clips_ptr, in drm_mode_dirtyfb_ioctl() 741 num_clips * sizeof(*clips)); in drm_mode_dirtyfb_ioctl() 750 clips, num_clips); in drm_mode_dirtyfb_ioctl() 756 kfree(clips); in drm_mode_dirtyfb_ioctl()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_damage_helper.c | 93 * @clips: Dirty region. 94 * @num_clips: Count of clip in clips. 109 unsigned int color, struct drm_clip_rect *clips, in drm_atomic_helper_dirtyfb() 133 if (clips) { in drm_atomic_helper_dirtyfb() 147 convert_clip_rect_to_rect(clips, rects, num_clips, inc); in drm_atomic_helper_dirtyfb() 208 * @state: Plane state from which to iterate the damage clips. 210 * Initialize an iterator, which clips plane damage 233 iter->clips = (struct drm_rect *)drm_plane_get_damage_clips(state); in drm_atomic_helper_damage_iter_init() 244 if (!iter->clips || state->ignore_damage_clips || in drm_atomic_helper_damage_iter_init() 246 iter->clips in drm_atomic_helper_damage_iter_init() 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_atomic.c | 609 struct drm_mode_rect *clips; in drm_atomic_plane_check() local 685 clips = __drm_plane_get_damage_clips(new_plane_state); in drm_atomic_plane_check() 688 /* Make sure damage clips are valid and inside the fb. */ in drm_atomic_plane_check() 690 if (clips->x1 >= clips->x2 || in drm_atomic_plane_check() 691 clips->y1 >= clips->y2 || in drm_atomic_plane_check() 692 clips->x1 < 0 || in drm_atomic_plane_check() 693 clips->y1 < 0 || in drm_atomic_plane_check() 694 clips in drm_atomic_plane_check() [all...] |
H A D | drm_framebuffer.c | 699 struct drm_clip_rect *clips = NULL; in drm_mode_dirtyfb_ioctl() local 723 /* If userspace annotates copy, clips must come in pairs */ in drm_mode_dirtyfb_ioctl() 734 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in drm_mode_dirtyfb_ioctl() 735 if (!clips) { in drm_mode_dirtyfb_ioctl() 740 ret = copy_from_user(clips, clips_ptr, in drm_mode_dirtyfb_ioctl() 741 num_clips * sizeof(*clips)); in drm_mode_dirtyfb_ioctl() 750 clips, num_clips); in drm_mode_dirtyfb_ioctl() 756 kfree(clips); in drm_mode_dirtyfb_ioctl()
|
/kernel/linux/linux-6.6/include/drm/ |
H A D | drm_damage_helper.h | 52 * This structure tracks state needed to walk the list of plane damage clips. 58 const struct drm_rect *clips; member 71 unsigned int color, struct drm_clip_rect *clips,
|
/kernel/linux/linux-5.10/include/drm/ |
H A D | drm_damage_helper.h | 52 * This structure tracks state needed to walk the list of plane damage clips. 58 const struct drm_rect *clips; member 72 unsigned int color, struct drm_clip_rect *clips, 86 * drm_helper_get_plane_damage_clips - Returns damage clips in &drm_rect. 92 * clips are inside fb.
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vboxvideo/ |
H A D | vbox_mode.c | 276 struct drm_mode_rect *clips; in vbox_primary_atomic_update() local 285 clips = drm_plane_get_damage_clips(plane->state); in vbox_primary_atomic_update() 293 for (i = 0; i < num_clips; ++i, ++clips) { in vbox_primary_atomic_update() 297 cmd_hdr.x = (s16)clips->x1; in vbox_primary_atomic_update() 298 cmd_hdr.y = (s16)clips->y1; in vbox_primary_atomic_update() 299 cmd_hdr.w = (u16)clips->x2 - clips->x1; in vbox_primary_atomic_update() 300 cmd_hdr.h = (u16)clips->y2 - clips->y1; in vbox_primary_atomic_update()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/vboxvideo/ |
H A D | vbox_mode.c | 285 struct drm_mode_rect *clips; in vbox_primary_atomic_update() local 294 clips = drm_plane_get_damage_clips(new_state); in vbox_primary_atomic_update() 302 for (i = 0; i < num_clips; ++i, ++clips) { in vbox_primary_atomic_update() 306 cmd_hdr.x = (s16)clips->x1; in vbox_primary_atomic_update() 307 cmd_hdr.y = (s16)clips->y1; in vbox_primary_atomic_update() 308 cmd_hdr.w = (u16)clips->x2 - clips->x1; in vbox_primary_atomic_update() 309 cmd_hdr.h = (u16)clips->y2 - clips->y1; in vbox_primary_atomic_update()
|
/kernel/linux/linux-5.10/drivers/media/pci/saa7134/ |
H A D | saa7134-video.c | 625 static int setup_clipping(struct saa7134_dev *dev, struct v4l2_clip *clips, in setup_clipping() argument 635 col[cols].position = clip_range(clips[i].c.left); in setup_clipping() 638 col[cols].position = clip_range(clips[i].c.left+clips[i].c.width); in setup_clipping() 641 row[rows].position = clip_range(clips[i].c.top / div); in setup_clipping() 644 row[rows].position = clip_range((clips[i].c.top + clips[i].c.height) in setup_clipping() 717 setup_clipping(dev, dev->clips, dev->nclips, in start_preview() 1268 struct v4l2_clip __user *clips = f->fmt.win.clips; in saa7134_g_fmt_vid_overlay() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/vc04_services/bcm2835-camera/ |
H A D | bcm2835-camera.h | 142 (win_fmt)->clips, (win_fmt)->clipcount, \
|