Home
last modified time | relevance | path

Searched refs:clips (Results 1 – 25 of 32) sorted by relevance

12

/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ioctl.c180 struct drm_vmw_rect *clips = NULL; in vmw_present_ioctl() local
199 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_ioctl()
200 if (clips == NULL) { 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()
243 kfree(clips); in vmw_present_ioctl()
258 struct drm_vmw_rect *clips = NULL; in vmw_present_readback_ioctl() local
276 clips in vmw_present_readback_ioctl()
[all...]
H A Dvmwgfx_kms.h42 * damage clips on display unit @num_hits will be passed to allocate
80 * This is where to populate clips for surface copy/dma or blit commands
377 const struct drm_clip_rect *clips,
443 const struct drm_clip_rect *clips,
453 struct drm_clip_rect *clips,
463 struct drm_clip_rect *clips,
483 struct drm_clip_rect *clips,
495 struct drm_clip_rect *clips,
H A Dvmwgfx_ldu.c304 struct drm_mode_rect *clips,
595 struct drm_mode_rect *clips, in vmw_kms_ldu_do_bo_dirty() argument
612 for (i = 0; i < num_clips; i++, clips++) { in vmw_kms_ldu_do_bo_dirty()
614 cmd[i].body.x = clips->x1; in vmw_kms_ldu_do_bo_dirty()
615 cmd[i].body.y = clips->y1; in vmw_kms_ldu_do_bo_dirty()
616 cmd[i].body.width = clips->x2 - clips->x1; in vmw_kms_ldu_do_bo_dirty()
617 cmd[i].body.height = clips->y2 - clips->y1; in vmw_kms_ldu_do_bo_dirty()
H A Dvmwgfx_kms.c116 * Ignore damage clips if the framebuffer attached to the plane's state in vmw_du_primary_plane_atomic_check()
1073 struct drm_vmw_rect *clips, in vmw_kms_generic_present() argument
1076 return vmw_kms_sou_do_surface_dirty(dev_priv, vfb, NULL, clips, in vmw_kms_generic_present()
1088 struct drm_vmw_rect *clips, in vmw_kms_present() argument
1095 ret = vmw_kms_stdu_surface_dirty(dev_priv, vfb, NULL, clips, in vmw_kms_present()
1101 sid, destX, destY, clips, in vmw_kms_present()
1490 * @clips: A set of struct drm_clip_rect. Either this os @vclips must be NULL.
1492 * @vclips: A set of struct drm_vmw_rect cliprects. Either this or @clips must
1496 * @num_clips: Number of cliprects in the @clips or @vclips array.
1503 const struct drm_clip_rect *clips, in vmw_kms_helper_dirty() argument
[all...]
H A Dvmwgfx_scrn.c573 * its bounding box is filled before iterating over all the clips. So in vmw_sou_surface_post_prepare()
1076 * @clips: Array of clip rects. Either @clips or @vclips must be NULL.
1077 * @vclips: Alternate array of clip rects. Either @clips or @vclips must
1083 * @num_clips: Number of clip rects in @clips.
1084 * @inc: Increment to use when looping over @clips.
1095 struct drm_clip_rect *clips, in vmw_kms_sou_do_surface_dirty() argument
1135 ret = vmw_kms_helper_dirty(dev_priv, framebuffer, clips, vclips, in vmw_kms_sou_do_surface_dirty()
1149 * vmw_sou_bo_fifo_commit - Callback to submit a set of readback clips.
1153 * Commits a previously built command buffer of readback clips
1211 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
[all...]
H A Dvmwgfx_stdu.c464 * This function calculates the bounding box for all the incoming clips.
541 * @clips: Array of clip rects. Either @clips or @vclips must be NULL.
542 * @vclips: Alternate array of clip rects. Either @clips or @vclips must
544 * @num_clips: Number of clip rects in @clips or @vclips.
545 * @increment: Increment to use when looping over @clips or @vclips.
559 struct drm_clip_rect *clips, in vmw_kms_stdu_readback() argument
601 ret = vmw_kms_helper_dirty(dev_priv, vfb, clips, vclips, in vmw_kms_stdu_readback()
705 * @clips: Array of clip rects. Either @clips o
724 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
[all...]
/linux/drivers/gpu/drm/qxl/
H A Dqxl_draw.c130 struct drm_clip_rect *clips, in qxl_draw_dirty_fb() argument
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()
H A Dqxl_display.c409 struct drm_clip_rect *clips, in qxl_framebuffer_surface_dirty() argument
430 clips = &norect; in qxl_framebuffer_surface_dirty()
440 clips, num_clips, inc, 0); in qxl_framebuffer_surface_dirty()
H A Dqxl_drv.h395 struct drm_clip_rect *clips,
/linux/drivers/gpu/drm/
H A Ddrm_damage_helper.c95 * @clips: Dirty region.
96 * @num_clips: Count of clip in clips.
111 unsigned int color, struct drm_clip_rect *clips, in drm_atomic_helper_dirtyfb() argument
135 if (clips) { in drm_atomic_helper_dirtyfb()
149 convert_clip_rect_to_rect(clips, rects, num_clips, inc); in drm_atomic_helper_dirtyfb()
210 * @state: Plane state from which to iterate the damage clips.
212 * Initialize an iterator, which clips plane damage
235 iter->clips = (struct drm_rect *)drm_plane_get_damage_clips(state); in drm_atomic_helper_damage_iter_init()
246 if (!iter->clips || state->ignore_damage_clips || in drm_atomic_helper_damage_iter_init()
248 iter->clips in drm_atomic_helper_damage_iter_init()
[all...]
H A Ddrm_atomic.c606 struct drm_mode_rect *clips; in drm_atomic_plane_check() local
679 clips = __drm_plane_get_damage_clips(new_plane_state); in drm_atomic_plane_check()
682 /* Make sure damage clips are valid and inside the fb. */ in drm_atomic_plane_check()
684 if (clips->x1 >= clips->x2 || in drm_atomic_plane_check()
685 clips->y1 >= clips->y2 || in drm_atomic_plane_check()
686 clips->x1 < 0 || in drm_atomic_plane_check()
687 clips->y1 < 0 || in drm_atomic_plane_check()
688 clips in drm_atomic_plane_check()
[all...]
H A Ddrm_framebuffer.c715 struct drm_clip_rect *clips = NULL; in drm_mode_dirtyfb_ioctl() local
739 /* If userspace annotates copy, clips must come in pairs */ in drm_mode_dirtyfb_ioctl()
750 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in drm_mode_dirtyfb_ioctl()
751 if (!clips) { in drm_mode_dirtyfb_ioctl()
756 ret = copy_from_user(clips, clips_ptr, in drm_mode_dirtyfb_ioctl()
757 num_clips * sizeof(*clips)); in drm_mode_dirtyfb_ioctl()
766 clips, num_clips); in drm_mode_dirtyfb_ioctl()
772 kfree(clips); in drm_mode_dirtyfb_ioctl()
/linux/include/drm/
H A Ddrm_damage_helper.h52 * 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,
H A Ddrm_framebuffer.h100 unsigned color, struct drm_clip_rect *clips,
/linux/drivers/gpu/drm/vboxvideo/
H A Dvbox_mode.c285 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()
/linux/drivers/staging/vc04_services/bcm2835-camera/
H A Dbcm2835-camera.h140 (win_fmt)->clips, (win_fmt)->clipcount, \
/linux/drivers/gpu/drm/msm/
H A Dmsm_fb.c38 unsigned int color, struct drm_clip_rect *clips, in msm_framebuffer_dirtyfb() argument
50 clips, num_clips); in msm_framebuffer_dirtyfb()
/linux/Documentation/userspace-api/media/v4l/
H A Ddev-overlay.rst170 driver clips the window accordingly, or if that is not possible,
190 ``struct v4l2_clip * clips``
209 When the application set the ``clips`` field, this field must
318 undesirable if the driver clips out less pixels than expected,
H A Dv4l2.rst344 Corrected the description of struct v4l2_window clips. New V4L2_STD\_
H A Ddiff-v4l.rst436 :c:type:`v4l2_window`. The ``chromakey``, ``clips``, and
448 In V4L, storing a bitmap pointer in ``clips`` and setting ``clipcount``
/linux/drivers/media/platform/ti/omap/
H A Domap_voutlib.c99 new_win->clips = NULL; in omap_vout_try_window()
/linux/drivers/gpu/drm/omapdrm/
H A Domap_fb.c64 struct drm_clip_rect *clips, in omap_framebuffer_dirty() argument
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm.c5964 * If PSR SU is enabled and damage clips are available, only the regions of the screen
5966 * or if damage clips are not available, the entire screen will be updated.
5970 * (referred to as "damage clips" in DRM nomenclature) that require updating on
5977 * implicitly provide damage clips without any client support via the plane
5991 struct drm_mode_rect *clips; in fill_dc_dirty_rects() local
6008 clips = drm_plane_get_damage_clips(new_plane_state); in fill_dc_dirty_rects()
6018 for (; flip_addrs->dirty_rect_count < num_clips; clips++) in fill_dc_dirty_rects()
6021 clips->x1, clips->y1, in fill_dc_dirty_rects()
6022 clips in fill_dc_dirty_rects()
[all...]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_display.c538 struct drm_clip_rect *clips, unsigned int num_clips) in amdgpu_dirtyfb() argument
544 return drm_atomic_helper_dirtyfb(fb, file, flags, color, clips, in amdgpu_dirtyfb()
/linux/drivers/media/v4l2-core/
H A Dv4l2-ioctl.c1781 p->fmt.win.clips = NULL; in v4l_s_fmt()
1815 p->fmt.win.clips = NULL; in v4l_s_fmt()
1889 p->fmt.win.clips = NULL; in v4l_try_fmt()
1923 p->fmt.win.clips = NULL; in v4l_try_fmt()

12