Home
last modified time | relevance | path

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

12

/linux-6.1.9/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 …]
/linux-6.1.9/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ioctl.c179 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 = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_readback_ioctl()
276 if (clips == NULL) { in vmw_present_readback_ioctl()
282 ret = copy_from_user(clips, clips_ptr, num_clips * sizeof(*clips)); in vmw_present_readback_ioctl()
[all …]
Dvmwgfx_kms.h436 const struct drm_clip_rect *clips,
523 struct drm_clip_rect *clips,
526 const struct drm_clip_rect *clips,
536 struct drm_clip_rect *clips,
546 struct drm_clip_rect *clips,
566 struct drm_clip_rect *clips,
578 struct drm_clip_rect *clips,
Dvmwgfx_ldu.c550 struct drm_clip_rect *clips, in vmw_kms_ldu_do_bo_dirty() argument
567 for (i = 0; i < num_clips; i++, clips += increment) { in vmw_kms_ldu_do_bo_dirty()
569 cmd[i].body.x = clips->x1; in vmw_kms_ldu_do_bo_dirty()
570 cmd[i].body.y = clips->y1; in vmw_kms_ldu_do_bo_dirty()
571 cmd[i].body.width = clips->x2 - clips->x1; in vmw_kms_ldu_do_bo_dirty()
572 cmd[i].body.height = clips->y2 - clips->y1; in vmw_kms_ldu_do_bo_dirty()
Dvmwgfx_kms.c1280 struct drm_clip_rect *clips, in vmw_framebuffer_bo_dirty() argument
1293 clips = &norect; in vmw_framebuffer_bo_dirty()
1305 clips, num_clips, increment); in vmw_framebuffer_bo_dirty()
1323 struct drm_clip_rect *clips, in vmw_framebuffer_bo_dirty_ext() argument
1331 color, clips, num_clips); in vmw_framebuffer_bo_dirty_ext()
1334 clips, num_clips); in vmw_framebuffer_bo_dirty_ext()
1981 struct drm_vmw_rect *clips, in vmw_kms_generic_present() argument
1984 return vmw_kms_sou_do_surface_dirty(dev_priv, vfb, NULL, clips, in vmw_kms_generic_present()
1996 struct drm_vmw_rect *clips, in vmw_kms_present() argument
2003 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.c684 struct drm_clip_rect *clips, in vmw_kms_stdu_dma() argument
736 ret = vmw_kms_helper_dirty(dev_priv, vfb, clips, vclips, in vmw_kms_stdu_dma()
859 struct drm_clip_rect *clips, in vmw_kms_stdu_surface_dirty() argument
887 ret = vmw_kms_update_proxy(srf, clips, num_clips, inc); in vmw_kms_stdu_surface_dirty()
902 ret = vmw_kms_helper_dirty(dev_priv, framebuffer, clips, vclips, in vmw_kms_stdu_surface_dirty()
/linux-6.1.9/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-6.1.9/drivers/gpu/drm/qxl/
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()
/linux-6.1.9/drivers/gpu/drm/
Ddrm_damage_helper.c109 unsigned int color, struct drm_clip_rect *clips, in drm_atomic_helper_dirtyfb() argument
133 if (clips) { in drm_atomic_helper_dirtyfb()
147 convert_clip_rect_to_rect(clips, rects, num_clips, inc); in drm_atomic_helper_dirtyfb()
233 iter->clips = (struct drm_rect *)drm_plane_get_damage_clips(state); in drm_atomic_helper_damage_iter_init()
244 if (!iter->clips || !drm_rect_equals(&state->src, &old_state->src)) { in drm_atomic_helper_damage_iter_init()
245 iter->clips = NULL; in drm_atomic_helper_damage_iter_init()
281 *rect = iter->clips[iter->curr_clip]; in drm_atomic_helper_damage_iter_next()
Ddrm_atomic.c600 struct drm_mode_rect *clips; in drm_atomic_plane_check() local
676 clips = __drm_plane_get_damage_clips(new_plane_state); in drm_atomic_plane_check()
681 if (clips->x1 >= clips->x2 || in drm_atomic_plane_check()
682 clips->y1 >= clips->y2 || in drm_atomic_plane_check()
683 clips->x1 < 0 || in drm_atomic_plane_check()
684 clips->y1 < 0 || in drm_atomic_plane_check()
685 clips->x2 > fb_width || in drm_atomic_plane_check()
686 clips->y2 > fb_height) { in drm_atomic_plane_check()
689 plane->base.id, plane->name, clips->x1, in drm_atomic_plane_check()
690 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-6.1.9/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-6.1.9/drivers/gpu/drm/vboxvideo/
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-6.1.9/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()
1276 if (!f->fmt.win.clips) { in saa7134_g_fmt_vid_overlay()
1285 memcpy(&f->fmt.win.clips[i].c, &dev->clips[i].c, in saa7134_g_fmt_vid_overlay()
1355 if (f->fmt.win.clips == NULL) in saa7134_try_fmt_vid_overlay()
1388 if (f->fmt.win.clips == NULL) in saa7134_s_fmt_vid_overlay()
[all …]
/linux-6.1.9/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-6.1.9/drivers/gpu/drm/msm/
Dmsm_fb.c37 unsigned int color, struct drm_clip_rect *clips, in msm_framebuffer_dirtyfb() argument
49 clips, num_clips); in msm_framebuffer_dirtyfb()
/linux-6.1.9/drivers/staging/vc04_services/bcm2835-camera/
Dbcm2835-camera.h140 (win_fmt)->clips, (win_fmt)->clipcount, \
/linux-6.1.9/drivers/staging/media/deprecated/saa7146/common/
Dsaa7146_vv.h82 struct v4l2_clip clips[16]; member
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-6.1.9/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-6.1.9/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