Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/media/pci/bt8xx/
Dbtcx-risc.c89 struct v4l2_clip *clips, unsigned int n) in btcx_screen_clips() argument
93 clips[n].c.left = 0; in btcx_screen_clips()
94 clips[n].c.top = 0; in btcx_screen_clips()
95 clips[n].c.width = -win->left; in btcx_screen_clips()
96 clips[n].c.height = win->height; in btcx_screen_clips()
101 clips[n].c.left = swidth - win->left; in btcx_screen_clips()
102 clips[n].c.top = 0; in btcx_screen_clips()
103 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
104 clips[n].c.height = win->height; in btcx_screen_clips()
109 clips[n].c.left = 0; in btcx_screen_clips()
[all …]
Dbtcx-risc.h20 struct v4l2_clip *clips, unsigned int n);
21 int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips,
23 void btcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips);
26 const struct v4l2_clip *clips, unsigned int nclips);
Dbttv-driver.c2171 struct v4l2_clip *clips = NULL; in setup_window_lock() local
2187 size = sizeof(*clips)*(n+4); in setup_window_lock()
2188 clips = kmalloc(size,GFP_KERNEL); in setup_window_lock()
2189 if (NULL == clips) in setup_window_lock()
2192 if (copy_from_user(clips,win->clips,sizeof(struct v4l2_clip)*n)) { in setup_window_lock()
2193 kfree(clips); in setup_window_lock()
2201 &win->w, clips, n); in setup_window_lock()
2202 btcx_sort_clips(clips,n); in setup_window_lock()
2208 btcx_align(&win->w, clips, n, 3); in setup_window_lock()
2211 btcx_align(&win->w, clips, n, 1); in setup_window_lock()
[all …]
Dbttvp.h184 struct v4l2_clip *clips; member
Dbttv-risc.c294 skips, &nskips, ov->clips, ov->nclips); in bttv_risc_overlay()
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ioctl.c256 struct drm_vmw_rect *clips = NULL; in vmw_present_ioctl() local
275 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_ioctl()
276 if (clips == NULL) { in vmw_present_ioctl()
282 ret = copy_from_user(clips, clips_ptr, num_clips * sizeof(*clips)); in vmw_present_ioctl()
313 clips, num_clips); in vmw_present_ioctl()
325 kfree(clips); in vmw_present_ioctl()
340 struct drm_vmw_rect *clips = NULL; in vmw_present_readback_ioctl() local
358 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_readback_ioctl()
359 if (clips == NULL) { in vmw_present_readback_ioctl()
365 ret = copy_from_user(clips, clips_ptr, num_clips * sizeof(*clips)); in vmw_present_readback_ioctl()
[all …]
Dvmwgfx_kms.h214 const struct drm_clip_rect *clips,
266 struct drm_clip_rect *clips,
269 const struct drm_clip_rect *clips,
280 struct drm_clip_rect *clips,
289 struct drm_clip_rect *clips,
307 struct drm_clip_rect *clips,
318 struct drm_clip_rect *clips,
Dvmwgfx_kms.c422 struct drm_clip_rect *clips, in vmw_framebuffer_surface_dirty() argument
445 clips = &norect; in vmw_framebuffer_surface_dirty()
456 clips, NULL, NULL, 0, 0, in vmw_framebuffer_surface_dirty()
460 clips, NULL, NULL, 0, 0, in vmw_framebuffer_surface_dirty()
630 struct drm_clip_rect *clips, in vmw_framebuffer_dmabuf_dirty() argument
649 clips = &norect; in vmw_framebuffer_dmabuf_dirty()
661 clips, NULL, num_clips, increment, in vmw_framebuffer_dmabuf_dirty()
666 clips, num_clips, increment, in vmw_framebuffer_dmabuf_dirty()
672 clips, num_clips, increment); in vmw_framebuffer_dmabuf_dirty()
1067 struct drm_vmw_rect *clips, in vmw_kms_generic_present() argument
[all …]
Dvmwgfx_ldu.c459 struct drm_clip_rect *clips, in vmw_kms_ldu_do_dmabuf_dirty() argument
478 for (i = 0; i < num_clips; i++, clips += increment) { in vmw_kms_ldu_do_dmabuf_dirty()
480 cmd[i].body.x = clips->x1; in vmw_kms_ldu_do_dmabuf_dirty()
481 cmd[i].body.y = clips->y1; in vmw_kms_ldu_do_dmabuf_dirty()
482 cmd[i].body.width = clips->x2 - clips->x1; in vmw_kms_ldu_do_dmabuf_dirty()
483 cmd[i].body.height = clips->y2 - clips->y1; in vmw_kms_ldu_do_dmabuf_dirty()
Dvmwgfx_scrn.c473 struct drm_clip_rect clips; in vmw_sou_crtc_page_flip() local
486 clips.x1 = clips.y1 = 0; in vmw_sou_crtc_page_flip()
487 clips.x2 = fb->width; in vmw_sou_crtc_page_flip()
488 clips.y2 = fb->height; in vmw_sou_crtc_page_flip()
492 &clips, 1, 1, in vmw_sou_crtc_page_flip()
496 &clips, NULL, NULL, in vmw_sou_crtc_page_flip()
833 struct drm_clip_rect *clips, in vmw_kms_sou_do_surface_dirty() argument
865 ret = vmw_kms_helper_dirty(dev_priv, framebuffer, clips, vclips, in vmw_kms_sou_do_surface_dirty()
928 struct drm_clip_rect *clips, in vmw_kms_sou_do_dmabuf_dirty() argument
952 ret = vmw_kms_helper_dirty(dev_priv, framebuffer, clips, NULL, in vmw_kms_sou_do_dmabuf_dirty()
Dvmwgfx_stdu.c847 struct drm_clip_rect *clips, in vmw_kms_stdu_dma() argument
878 ret = vmw_kms_helper_dirty(dev_priv, vfb, clips, vclips, in vmw_kms_stdu_dma()
995 struct drm_clip_rect *clips, in vmw_kms_stdu_surface_dirty() argument
1016 ret = vmw_kms_update_proxy(srf, clips, num_clips, inc); in vmw_kms_stdu_surface_dirty()
1030 ret = vmw_kms_helper_dirty(dev_priv, framebuffer, clips, vclips, in vmw_kms_stdu_surface_dirty()
Dvmwgfx_drv.h924 struct drm_vmw_rect *clips,
/linux-4.4.14/drivers/media/common/
Dbtcx-risc.h22 struct v4l2_clip *clips, unsigned int n);
23 int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips,
25 void btcx_sort_clips(struct v4l2_clip *clips, unsigned int nclips);
28 const struct v4l2_clip *clips, unsigned int nclips);
/linux-4.4.14/drivers/gpu/drm/virtio/
Dvirtgpu_fb.c121 struct drm_clip_rect *clips, in virtio_gpu_surface_dirty() argument
133 clips = &norect; in virtio_gpu_surface_dirty()
138 left = clips->x1; in virtio_gpu_surface_dirty()
139 right = clips->x2; in virtio_gpu_surface_dirty()
140 top = clips->y1; in virtio_gpu_surface_dirty()
141 bottom = clips->y2; in virtio_gpu_surface_dirty()
144 for (i = 1, clips_ptr = clips + inc; in virtio_gpu_surface_dirty()
Dvirtgpu_display.c201 struct drm_clip_rect *clips, in virtio_gpu_framebuffer_surface_dirty() argument
207 return virtio_gpu_surface_dirty(virtio_gpu_fb, clips, num_clips); in virtio_gpu_framebuffer_surface_dirty()
Dvirtgpu_drv.h251 struct drm_clip_rect *clips,
/linux-4.4.14/drivers/gpu/drm/qxl/
Dqxl_draw.c270 struct drm_clip_rect *clips, in qxl_draw_dirty_fb() argument
299 left = clips->x1; in qxl_draw_dirty_fb()
300 right = clips->x2; in qxl_draw_dirty_fb()
301 top = clips->y1; in qxl_draw_dirty_fb()
302 bottom = clips->y2; in qxl_draw_dirty_fb()
305 for (i = 1, clips_ptr = clips + inc; in qxl_draw_dirty_fb()
377 clips_ptr = clips; in qxl_draw_dirty_fb()
Dqxl_display.c481 struct drm_clip_rect *clips, in qxl_framebuffer_surface_dirty() argument
502 clips = &norect; in qxl_framebuffer_surface_dirty()
512 clips, num_clips, inc); in qxl_framebuffer_surface_dirty()
Dqxl_drv.h514 struct drm_clip_rect *clips,
/linux-4.4.14/drivers/gpu/drm/udl/
Dudl_fb.c399 struct drm_clip_rect *clips, in udl_user_framebuffer_dirty() argument
420 ret = udl_handle_damage(ufb, clips[i].x1, clips[i].y1, in udl_user_framebuffer_dirty()
421 clips[i].x2 - clips[i].x1, in udl_user_framebuffer_dirty()
422 clips[i].y2 - clips[i].y1); in udl_user_framebuffer_dirty()
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-video.c652 static int setup_clipping(struct saa7134_dev *dev, struct v4l2_clip *clips, in setup_clipping() argument
662 col[cols].position = clip_range(clips[i].c.left); in setup_clipping()
665 col[cols].position = clip_range(clips[i].c.left+clips[i].c.width); in setup_clipping()
668 row[rows].position = clip_range(clips[i].c.top / div); in setup_clipping()
671 row[rows].position = clip_range((clips[i].c.top + clips[i].c.height) in setup_clipping()
744 setup_clipping(dev, dev->clips, dev->nclips, in start_preview()
1237 struct v4l2_clip __user *clips = f->fmt.win.clips; in saa7134_g_fmt_vid_overlay() local
1247 f->fmt.win.clips = clips; in saa7134_g_fmt_vid_overlay()
1248 if (clips == NULL) in saa7134_g_fmt_vid_overlay()
1255 if (copy_to_user(&f->fmt.win.clips[i].c, &dev->clips[i].c, in saa7134_g_fmt_vid_overlay()
[all …]
Dsaa7134.h589 struct v4l2_clip clips[8]; member
/linux-4.4.14/drivers/gpu/drm/exynos/
Dexynos_drm_fb.c104 unsigned color, struct drm_clip_rect *clips, in exynos_drm_fb_dirty() argument
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-vid-out.c853 if (clipcount && win->clips) { in vidioc_g_fmt_vid_out_overlay()
854 if (copy_to_user(win->clips, dev->clips_out, in vidioc_g_fmt_vid_out_overlay()
882 if (win->clipcount && !win->clips) in vidioc_try_fmt_vid_out_overlay()
887 if (copy_from_user(dev->try_clips_out, win->clips, in vidioc_try_fmt_vid_out_overlay()
912 if (copy_to_user(win->clips, dev->try_clips_out, in vidioc_try_fmt_vid_out_overlay()
Dvivid-vid-cap.c1076 if (clipcount && win->clips) { in vidioc_g_fmt_vid_overlay()
1077 if (copy_to_user(win->clips, dev->clips_cap, in vidioc_g_fmt_vid_overlay()
1105 if (win->clipcount && !win->clips) in vidioc_try_fmt_vid_overlay()
1110 if (copy_from_user(dev->try_clips_cap, win->clips, in vidioc_try_fmt_vid_overlay()
1135 if (copy_to_user(win->clips, dev->try_clips_cap, in vidioc_try_fmt_vid_overlay()
/linux-4.4.14/include/media/
Dsaa7146_vv.h82 struct v4l2_clip clips[16]; member
/linux-4.4.14/drivers/media/common/saa7146/
Dsaa7146_hlp.c365 x[i] = vv->ov.clips[i].c.left; in calculate_clipping_registers_rect()
366 y[i] = vv->ov.clips[i].c.top; in calculate_clipping_registers_rect()
367 w[i] = vv->ov.clips[i].c.width; in calculate_clipping_registers_rect()
368 h[i] = vv->ov.clips[i].c.height; in calculate_clipping_registers_rect()
Dsaa7146_video.c791 if (copy_from_user(vv->ov.clips, f->fmt.win.clips, in vidioc_s_fmt_vid_overlay()
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-compat-ioctl32.c43 compat_caddr_t clips; /* actually struct v4l2_clip32 * */ member
64 if (get_user(p, &up->clips)) in get_v4l2_window32()
68 kp->clips = kclips; in get_v4l2_window32()
78 kp->clips = NULL; in get_v4l2_window32()
Dv4l2-ioctl.c302 win->chromakey, win->clipcount, win->clips, in v4l_print_format()
1364 struct v4l2_clip __user *clips = p->fmt.win.clips; in v4l_g_fmt() local
1369 p->fmt.win.clips = clips; in v4l_g_fmt()
/linux-4.4.14/drivers/gpu/drm/msm/
Dmsm_fb.c61 struct drm_clip_rect *clips, unsigned num_clips) in msm_framebuffer_dirty() argument
/linux-4.4.14/drivers/gpu/drm/
Ddrm_crtc.c3484 struct drm_clip_rect *clips = NULL; in drm_mode_dirtyfb_ioctl() local
3519 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in drm_mode_dirtyfb_ioctl()
3520 if (!clips) { in drm_mode_dirtyfb_ioctl()
3525 ret = copy_from_user(clips, clips_ptr, in drm_mode_dirtyfb_ioctl()
3526 num_clips * sizeof(*clips)); in drm_mode_dirtyfb_ioctl()
3535 clips, num_clips); in drm_mode_dirtyfb_ioctl()
3541 kfree(clips); in drm_mode_dirtyfb_ioctl()
/linux-4.4.14/drivers/gpu/drm/omapdrm/
Domap_fb.c125 struct drm_clip_rect *clips, unsigned num_clips) in omap_framebuffer_dirty() argument
/linux-4.4.14/drivers/media/pci/ngene/
Dngene.h602 struct v4l2_clip *clips; member
/linux-4.4.14/drivers/media/pci/zoran/
Dzoran_driver.c1126 struct v4l2_clip __user *clips, in setup_window() argument
1233 (vcp, clips, sizeof(struct v4l2_clip) * clipcount)) { in setup_window()
1752 (struct v4l2_clip __user *)fmt->fmt.win.clips, in zoran_s_fmt_vid_overlay()
/linux-4.4.14/include/drm/
Ddrm_crtc.h181 unsigned color, struct drm_clip_rect *clips,
/linux-4.4.14/include/uapi/linux/
Dvideodev2.h982 struct v4l2_clip __user *clips; member
/linux-4.4.14/drivers/media/platform/
Dfsl-viu.c166 struct v4l2_clip clips[1]; member
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-ioctl.c461 winfmt->clips = NULL; in ivtv_g_fmt_vid_out_overlay()
/linux-4.4.14/drivers/gpu/drm/i915/
Dintel_display.c14268 struct drm_clip_rect *clips, in intel_user_framebuffer_dirty() argument