Home
last modified time | relevance | path

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

12

/Linux-v5.15/drivers/media/pci/bt8xx/
Dbtcx-risc.c84 struct v4l2_clip *clips, unsigned int n) in btcx_screen_clips() argument
88 clips[n].c.left = 0; in btcx_screen_clips()
89 clips[n].c.top = 0; in btcx_screen_clips()
90 clips[n].c.width = -win->left; in btcx_screen_clips()
91 clips[n].c.height = win->height; in btcx_screen_clips()
96 clips[n].c.left = swidth - win->left; in btcx_screen_clips()
97 clips[n].c.top = 0; in btcx_screen_clips()
98 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
99 clips[n].c.height = win->height; in btcx_screen_clips()
104 clips[n].c.left = 0; in btcx_screen_clips()
[all …]
Dbtcx-risc.h21 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);
Dbttv-driver.c2122 struct v4l2_clip *clips = NULL; in setup_window_lock() local
2138 size = sizeof(*clips)*(n+4); in setup_window_lock()
2139 clips = kmalloc(size,GFP_KERNEL); in setup_window_lock()
2140 if (NULL == clips) in setup_window_lock()
2143 memcpy(clips, win->clips, sizeof(struct v4l2_clip) * n); in setup_window_lock()
2148 &win->w, clips, n); in setup_window_lock()
2149 btcx_sort_clips(clips,n); in setup_window_lock()
2155 btcx_align(&win->w, clips, n, 3); in setup_window_lock()
2158 btcx_align(&win->w, clips, n, 1); in setup_window_lock()
2167 kfree(fh->ov.clips); in setup_window_lock()
[all …]
Dbttvp.h172 struct v4l2_clip *clips; member
/Linux-v5.15/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ioctl.c173 struct drm_vmw_rect *clips = NULL; in vmw_present_ioctl() local
192 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_ioctl()
193 if (clips == NULL) { in vmw_present_ioctl()
199 ret = copy_from_user(clips, clips_ptr, num_clips * sizeof(*clips)); in vmw_present_ioctl()
226 clips, num_clips); in vmw_present_ioctl()
236 kfree(clips); in vmw_present_ioctl()
251 struct drm_vmw_rect *clips = NULL; in vmw_present_readback_ioctl() local
269 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_readback_ioctl()
270 if (clips == NULL) { in vmw_present_readback_ioctl()
276 ret = copy_from_user(clips, clips_ptr, num_clips * sizeof(*clips)); in vmw_present_readback_ioctl()
[all …]
Dvmwgfx_kms.h417 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,
Dvmwgfx_ldu.c553 struct drm_clip_rect *clips, in vmw_kms_ldu_do_bo_dirty() argument
570 for (i = 0; i < num_clips; i++, clips += increment) { in vmw_kms_ldu_do_bo_dirty()
572 cmd[i].body.x = clips->x1; in vmw_kms_ldu_do_bo_dirty()
573 cmd[i].body.y = clips->y1; in vmw_kms_ldu_do_bo_dirty()
574 cmd[i].body.width = clips->x2 - clips->x1; in vmw_kms_ldu_do_bo_dirty()
575 cmd[i].body.height = clips->y2 - clips->y1; in vmw_kms_ldu_do_bo_dirty()
Dvmwgfx_kms.c1008 struct drm_clip_rect *clips, in vmw_framebuffer_bo_dirty() argument
1021 clips = &norect; in vmw_framebuffer_bo_dirty()
1033 clips, num_clips, increment); in vmw_framebuffer_bo_dirty()
1051 struct drm_clip_rect *clips, in vmw_framebuffer_bo_dirty_ext() argument
1059 color, clips, num_clips); in vmw_framebuffer_bo_dirty_ext()
1062 clips, num_clips); in vmw_framebuffer_bo_dirty_ext()
1735 struct drm_vmw_rect *clips, in vmw_kms_generic_present() argument
1738 return vmw_kms_sou_do_surface_dirty(dev_priv, vfb, NULL, clips, in vmw_kms_generic_present()
1750 struct drm_vmw_rect *clips, in vmw_kms_present() argument
1757 ret = vmw_kms_stdu_surface_dirty(dev_priv, vfb, NULL, clips, in vmw_kms_present()
[all …]
Dvmwgfx_scrn.c1125 struct drm_clip_rect *clips, in vmw_kms_sou_do_surface_dirty() argument
1165 ret = vmw_kms_helper_dirty(dev_priv, framebuffer, clips, vclips, in vmw_kms_sou_do_surface_dirty()
1241 struct drm_clip_rect *clips, in vmw_kms_sou_do_bo_dirty() argument
1272 ret = vmw_kms_helper_dirty(dev_priv, framebuffer, clips, vclips, in vmw_kms_sou_do_bo_dirty()
Dvmwgfx_stdu.c680 struct drm_clip_rect *clips, in vmw_kms_stdu_dma() argument
732 ret = vmw_kms_helper_dirty(dev_priv, vfb, clips, vclips, in vmw_kms_stdu_dma()
855 struct drm_clip_rect *clips, in vmw_kms_stdu_surface_dirty() argument
883 ret = vmw_kms_update_proxy(srf, clips, num_clips, inc); in vmw_kms_stdu_surface_dirty()
898 ret = vmw_kms_helper_dirty(dev_priv, framebuffer, clips, vclips, in vmw_kms_stdu_surface_dirty()
/Linux-v5.15/drivers/media/common/
Dbtcx-risc.h23 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);
/Linux-v5.15/drivers/gpu/drm/qxl/
Dqxl_draw.c129 struct drm_clip_rect *clips, in qxl_draw_dirty_fb() argument
160 clips->x1 += dumb_shadow_offset; in qxl_draw_dirty_fb()
161 clips->x2 += dumb_shadow_offset; in qxl_draw_dirty_fb()
163 left = clips->x1; in qxl_draw_dirty_fb()
164 right = clips->x2; in qxl_draw_dirty_fb()
165 top = clips->y1; in qxl_draw_dirty_fb()
166 bottom = clips->y2; in qxl_draw_dirty_fb()
169 for (i = 1, clips_ptr = clips + inc; in qxl_draw_dirty_fb()
243 clips_ptr = clips; in qxl_draw_dirty_fb()
/Linux-v5.15/drivers/gpu/drm/
Ddrm_damage_helper.c108 unsigned int color, struct drm_clip_rect *clips, in drm_atomic_helper_dirtyfb() argument
132 if (clips) { in drm_atomic_helper_dirtyfb()
146 convert_clip_rect_to_rect(clips, rects, num_clips, inc); in drm_atomic_helper_dirtyfb()
231 iter->clips = (struct drm_rect *)drm_plane_get_damage_clips(state); in drm_atomic_helper_damage_iter_init()
240 if (!iter->clips || !drm_rect_equals(&state->src, &old_state->src)) { in drm_atomic_helper_damage_iter_init()
241 iter->clips = NULL; in drm_atomic_helper_damage_iter_init()
277 *rect = iter->clips[iter->curr_clip]; in drm_atomic_helper_damage_iter_next()
Ddrm_atomic.c591 struct drm_mode_rect *clips; in drm_atomic_plane_check() local
663 clips = __drm_plane_get_damage_clips(new_plane_state); in drm_atomic_plane_check()
668 if (clips->x1 >= clips->x2 || in drm_atomic_plane_check()
669 clips->y1 >= clips->y2 || in drm_atomic_plane_check()
670 clips->x1 < 0 || in drm_atomic_plane_check()
671 clips->y1 < 0 || in drm_atomic_plane_check()
672 clips->x2 > fb_width || in drm_atomic_plane_check()
673 clips->y2 > fb_height) { in drm_atomic_plane_check()
675 plane->base.id, plane->name, clips->x1, in drm_atomic_plane_check()
676 clips->y1, clips->x2, clips->y2); in drm_atomic_plane_check()
[all …]
Ddrm_framebuffer.c699 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()
/Linux-v5.15/include/drm/
Ddrm_damage_helper.h58 const struct drm_rect *clips; member
71 unsigned int color, struct drm_clip_rect *clips,
Ddrm_framebuffer.h99 unsigned color, struct drm_clip_rect *clips,
/Linux-v5.15/drivers/gpu/drm/vboxvideo/
Dvbox_mode.c283 struct drm_mode_rect *clips; in vbox_primary_atomic_update() local
292 clips = drm_plane_get_damage_clips(new_state); in vbox_primary_atomic_update()
300 for (i = 0; i < num_clips; ++i, ++clips) { in vbox_primary_atomic_update()
304 cmd_hdr.x = (s16)clips->x1; in vbox_primary_atomic_update()
305 cmd_hdr.y = (s16)clips->y1; in vbox_primary_atomic_update()
306 cmd_hdr.w = (u16)clips->x2 - clips->x1; in vbox_primary_atomic_update()
307 cmd_hdr.h = (u16)clips->y2 - clips->y1; in vbox_primary_atomic_update()
/Linux-v5.15/drivers/media/pci/saa7134/
Dsaa7134-video.c625 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()
1279 if (!f->fmt.win.clips) { in saa7134_g_fmt_vid_overlay()
1288 memcpy(&f->fmt.win.clips[i].c, &dev->clips[i].c, in saa7134_g_fmt_vid_overlay()
1358 if (f->fmt.win.clips == NULL) in saa7134_try_fmt_vid_overlay()
1391 if (f->fmt.win.clips == NULL) in saa7134_s_fmt_vid_overlay()
[all …]
/Linux-v5.15/drivers/media/v4l2-core/
Dv4l2-compat-ioctl32.c50 compat_caddr_t clips; /* actually struct v4l2_clip32 * */ member
68 .clips = (void __force *)compat_ptr(w32.clips), in get_v4l2_window32()
77 p64->clips = NULL; in get_v4l2_window32()
92 .clips = (uintptr_t)p64->clips, in put_v4l2_window32()
99 if (copy_to_user(p32, &w32, offsetof(struct v4l2_window32, clips)) || in put_v4l2_window32()
/Linux-v5.15/drivers/staging/vc04_services/bcm2835-camera/
Dbcm2835-camera.h142 (win_fmt)->clips, (win_fmt)->clipcount, \
/Linux-v5.15/include/media/drv-intf/
Dsaa7146_vv.h82 struct v4l2_clip clips[16]; member
/Linux-v5.15/drivers/media/common/saa7146/
Dsaa7146_hlp.c366 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()
/Linux-v5.15/Documentation/userspace-api/media/v4l/
Ddev-overlay.rst167 driver clips the window accordingly, or if that is not possible,
187 ``struct v4l2_clip * clips``
204 When the application set the ``clips`` field, this field must
312 undesirable if the driver clips out less pixels than expected,
/Linux-v5.15/drivers/media/test-drivers/vivid/
Dvivid-vid-out.c860 if (clipcount && win->clips) in vidioc_g_fmt_vid_out_overlay()
861 memcpy(win->clips, dev->clips_out, in vidioc_g_fmt_vid_out_overlay()
887 if (win->clipcount && !win->clips) in vidioc_try_fmt_vid_out_overlay()
892 memcpy(dev->try_clips_out, win->clips, in vidioc_try_fmt_vid_out_overlay()
916 memcpy(win->clips, dev->try_clips_out, in vidioc_try_fmt_vid_out_overlay()

12