/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/ |
D | btcx-risc.c | 85 struct v4l2_clip *clips, unsigned int n) in btcx_screen_clips() argument 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[n].c.height = win->height; in btcx_screen_clips() 105 clips[n].c.left = 0; in btcx_screen_clips() [all …]
|
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);
|
D | bttv-driver.c | 2126 struct v4l2_clip *clips = NULL; in setup_window_lock() local 2142 size = sizeof(*clips)*(n+4); in setup_window_lock() 2143 clips = kmalloc(size,GFP_KERNEL); in setup_window_lock() 2144 if (NULL == clips) in setup_window_lock() 2147 if (copy_from_user(clips,win->clips,sizeof(struct v4l2_clip)*n)) { in setup_window_lock() 2148 kfree(clips); in setup_window_lock() 2156 &win->w, clips, n); in setup_window_lock() 2157 btcx_sort_clips(clips,n); in setup_window_lock() 2163 btcx_align(&win->w, clips, n, 3); in setup_window_lock() 2166 btcx_align(&win->w, clips, n, 1); in setup_window_lock() [all …]
|
D | bttvp.h | 172 struct v4l2_clip *clips; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
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 = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_readback_ioctl() 366 if (clips == NULL) { in vmw_present_readback_ioctl() 372 ret = copy_from_user(clips, clips_ptr, num_clips * sizeof(*clips)); in vmw_present_readback_ioctl() [all …]
|
D | vmwgfx_kms.h | 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,
|
D | vmwgfx_ldu.c | 545 struct drm_clip_rect *clips, in vmw_kms_ldu_do_bo_dirty() argument 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()
|
D | vmwgfx_kms.c | 996 struct drm_clip_rect *clips, in vmw_framebuffer_bo_dirty() argument 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() argument 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() argument 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() argument 1752 ret = vmw_kms_stdu_surface_dirty(dev_priv, vfb, NULL, clips, in vmw_kms_present() [all …]
|
D | vmwgfx_scrn.c | 1129 struct drm_clip_rect *clips, in vmw_kms_sou_do_surface_dirty() argument 1169 ret = vmw_kms_helper_dirty(dev_priv, framebuffer, clips, vclips, in vmw_kms_sou_do_surface_dirty() 1245 struct drm_clip_rect *clips, in vmw_kms_sou_do_bo_dirty() argument 1276 ret = vmw_kms_helper_dirty(dev_priv, framebuffer, clips, vclips, in vmw_kms_sou_do_bo_dirty()
|
D | vmwgfx_stdu.c | 675 struct drm_clip_rect *clips, in vmw_kms_stdu_dma() argument 727 ret = vmw_kms_helper_dirty(dev_priv, vfb, clips, vclips, in vmw_kms_stdu_dma() 850 struct drm_clip_rect *clips, in vmw_kms_stdu_surface_dirty() argument 878 ret = vmw_kms_update_proxy(srf, clips, num_clips, inc); in vmw_kms_stdu_surface_dirty() 893 ret = vmw_kms_helper_dirty(dev_priv, framebuffer, clips, vclips, in vmw_kms_stdu_surface_dirty()
|
/kernel/linux/linux-5.10/drivers/media/common/ |
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-5.10/drivers/gpu/drm/qxl/ |
D | qxl_draw.c | 125 struct drm_clip_rect *clips, in qxl_draw_dirty_fb() argument 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_damage_helper.c | 162 unsigned int color, struct drm_clip_rect *clips, in drm_atomic_helper_dirtyfb() argument 186 if (clips) { in drm_atomic_helper_dirtyfb() 200 convert_clip_rect_to_rect(clips, rects, num_clips, inc); in drm_atomic_helper_dirtyfb() 285 iter->clips = drm_helper_get_plane_damage_clips(state); in drm_atomic_helper_damage_iter_init() 294 if (!iter->clips || !drm_rect_equals(&state->src, &old_state->src)) { in drm_atomic_helper_damage_iter_init() 295 iter->clips = NULL; in drm_atomic_helper_damage_iter_init() 331 *rect = iter->clips[iter->curr_clip]; in drm_atomic_helper_damage_iter_next()
|
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() 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->x2 > fb_width || in drm_atomic_plane_check() 641 clips->y2 > fb_height) { in drm_atomic_plane_check() 643 plane->base.id, plane->name, clips->x1, in drm_atomic_plane_check() 644 clips->y1, clips->x2, clips->y2); in drm_atomic_plane_check() [all …]
|
D | drm_framebuffer.c | 699 struct drm_clip_rect *clips = NULL; in drm_mode_dirtyfb_ioctl() local 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-5.10/include/drm/ |
D | drm_damage_helper.h | 58 const struct drm_rect *clips; member 72 unsigned int color, struct drm_clip_rect *clips,
|
D | drm_framebuffer.h | 99 unsigned color, struct drm_clip_rect *clips,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vboxvideo/ |
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-5.10/drivers/media/pci/saa7134/ |
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 1278 f->fmt.win.clips = clips; in saa7134_g_fmt_vid_overlay() 1279 if (clips == NULL) in saa7134_g_fmt_vid_overlay() 1286 if (copy_to_user(&f->fmt.win.clips[i].c, &dev->clips[i].c, in saa7134_g_fmt_vid_overlay() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/vc04_services/bcm2835-camera/ |
D | bcm2835-camera.h | 142 (win_fmt)->clips, (win_fmt)->clipcount, \
|
/kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
D | v4l2-compat-ioctl32.c | 147 compat_caddr_t clips; /* actually struct v4l2_clip32 * */ member 173 return put_user(NULL, &p64->clips); in get_v4l2_window32() 175 if (get_user(p, &p32->clips)) in get_v4l2_window32() 181 if (put_user(kclips, &p64->clips)) in get_v4l2_window32() 213 if (get_user(kclips, &p64->clips)) in put_v4l2_window32() 215 if (get_user(p, &p32->clips)) in put_v4l2_window32()
|
/kernel/linux/linux-5.10/include/media/drv-intf/ |
D | saa7146_vv.h | 82 struct v4l2_clip clips[16]; member
|
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
D | dev-overlay.rst | 163 driver clips the window accordingly, or if that is not possible, 183 ``struct v4l2_clip * clips`` 200 When the application set the ``clips`` field, this field must 313 undesirable if the driver clips out less pixels than expected,
|
/kernel/linux/linux-5.10/drivers/media/common/saa7146/ |
D | saa7146_hlp.c | 366 x[i] = vv->ov.clips[i].c.left; in calculate_clipping_registers_rect() 367 y[i] = vv->ov.clips[i].c.top; in calculate_clipping_registers_rect() 368 w[i] = vv->ov.clips[i].c.width; in calculate_clipping_registers_rect() 369 h[i] = vv->ov.clips[i].c.height; in calculate_clipping_registers_rect()
|
/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/ |
D | vivid-vid-out.c | 860 if (clipcount && win->clips) { in vidioc_g_fmt_vid_out_overlay() 861 if (copy_to_user(win->clips, dev->clips_out, in vidioc_g_fmt_vid_out_overlay() 889 if (win->clipcount && !win->clips) in vidioc_try_fmt_vid_out_overlay() 894 if (copy_from_user(dev->try_clips_out, win->clips, in vidioc_try_fmt_vid_out_overlay() 919 if (copy_to_user(win->clips, dev->try_clips_out, in vidioc_try_fmt_vid_out_overlay()
|