Home
last modified time | relevance | path

Searched refs:fbuf (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v5.10/drivers/media/platform/omap/
Domap_voutlib.c44 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop) in omap_vout_default_crop() argument
46 crop->width = (pix->width < fbuf->fmt.width) ? in omap_vout_default_crop()
47 pix->width : fbuf->fmt.width; in omap_vout_default_crop()
48 crop->height = (pix->height < fbuf->fmt.height) ? in omap_vout_default_crop()
49 pix->height : fbuf->fmt.height; in omap_vout_default_crop()
63 int omap_vout_try_window(struct v4l2_framebuffer *fbuf, in omap_vout_try_window() argument
82 try_win.width = (try_win.width < fbuf->fmt.width) ? in omap_vout_try_window()
83 try_win.width : fbuf->fmt.width; in omap_vout_try_window()
84 try_win.height = (try_win.height < fbuf->fmt.height) ? in omap_vout_try_window()
85 try_win.height : fbuf->fmt.height; in omap_vout_try_window()
[all …]
Domap_voutlib.h16 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop);
20 struct v4l2_framebuffer *fbuf,
23 int omap_vout_try_window(struct v4l2_framebuffer *fbuf,
27 struct v4l2_window *win, struct v4l2_framebuffer *fbuf,
31 struct v4l2_framebuffer *fbuf, struct v4l2_rect *crop,
Domap_vout.c625 vout->fbuf.fmt.height = timing->y_res; in vidioc_try_fmt_vid_out()
626 vout->fbuf.fmt.width = timing->x_res; in vidioc_try_fmt_vid_out()
667 vout->fbuf.fmt.height = timing->x_res; in vidioc_s_fmt_vid_out()
668 vout->fbuf.fmt.width = timing->y_res; in vidioc_s_fmt_vid_out()
670 vout->fbuf.fmt.height = timing->y_res; in vidioc_s_fmt_vid_out()
671 vout->fbuf.fmt.width = timing->x_res; in vidioc_s_fmt_vid_out()
690 omap_vout_new_format(&vout->pix, &vout->fbuf, &vout->crop, &vout->win); in vidioc_s_fmt_vid_out()
710 ret = omap_vout_try_window(&vout->fbuf, win); in vidioc_try_fmt_vid_overlay()
730 ret = omap_vout_new_window(&vout->crop, &vout->win, &vout->fbuf, win); in vidioc_s_fmt_vid_overlay()
741 if (vout->fbuf.flags & (V4L2_FBUF_FLAG_CHROMAKEY | in vidioc_s_fmt_vid_overlay()
[all …]
Domap_voutdef.h149 struct v4l2_framebuffer fbuf; member
/Linux-v5.10/include/trace/events/
Dpwc.h16 __field(struct pwc_frame_buf*, fbuf)
24 __entry->fbuf = pdev->fill_buf;
33 __entry->fbuf,
45 __field(struct pwc_frame_buf*, fbuf)
51 __entry->fbuf = pdev->fill_buf;
57 __entry->fbuf,
/Linux-v5.10/drivers/media/usb/pwc/
Dpwc-uncompress.c24 int pwc_decompress(struct pwc_device *pdev, struct pwc_frame_buf *fbuf) in pwc_decompress() argument
31 image = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in pwc_decompress()
33 yuv = fbuf->data + pdev->frame_header_size; /* Skip header */ in pwc_decompress()
46 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress()
51 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, in pwc_decompress()
Dpwc-if.c218 struct pwc_frame_buf *fbuf = pdev->fill_buf; in pwc_frame_complete() local
225 unsigned char *ptr = (unsigned char *)fbuf->data; in pwc_frame_complete()
250 if (fbuf->filled == 4) in pwc_frame_complete()
253 unsigned char *ptr = (unsigned char *)fbuf->data; in pwc_frame_complete()
265 if (fbuf->filled < pdev->frame_total_size) { in pwc_frame_complete()
267 fbuf->filled); in pwc_frame_complete()
269 fbuf->vb.field = V4L2_FIELD_NONE; in pwc_frame_complete()
270 fbuf->vb.sequence = pdev->vframe_count; in pwc_frame_complete()
271 vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in pwc_frame_complete()
350 struct pwc_frame_buf *fbuf = pdev->fill_buf; in pwc_isoc_handler() local
[all …]
Dpwc.h381 int pwc_decompress(struct pwc_device *pdev, struct pwc_frame_buf *fbuf);
/Linux-v5.10/sound/usb/line6/
Dcapture.c84 void line6_capture_copy(struct snd_line6_pcm *line6pcm, char *fbuf, int fsize) in line6_capture_copy() argument
108 line6pcm->in.pos_done * bytes_per_frame, fbuf, in line6_capture_copy()
110 memcpy(runtime->dma_area, fbuf + len * bytes_per_frame, in line6_capture_copy()
120 line6pcm->in.pos_done * bytes_per_frame, fbuf, fsize); in line6_capture_copy()
162 char *fbuf; in audio_in_callback() local
171 fbuf = urb->transfer_buffer + fin->offset; in audio_in_callback()
191 line6pcm->prev_fbuf = fbuf; in audio_in_callback()
199 line6_capture_copy(line6pcm, fbuf, fsize); in audio_in_callback()
Dcapture.h18 extern void line6_capture_copy(struct snd_line6_pcm *line6pcm, char *fbuf,
/Linux-v5.10/drivers/media/platform/
Drcar_fdp1.c720 struct fdp1_field_buffer *fbuf) in fdp1_field_complete() argument
723 if (!fbuf) in fdp1_field_complete()
726 if (fbuf->last_field) in fdp1_field_complete()
727 v4l2_m2m_buf_done(fbuf->vb, VB2_BUF_STATE_DONE); in fdp1_field_complete()
731 struct fdp1_field_buffer *fbuf) in fdp1_queue_field() argument
736 list_add_tail(&fbuf->list, &ctx->fields_queue); in fdp1_queue_field()
744 struct fdp1_field_buffer *fbuf; in fdp1_dequeue_field() local
750 fbuf = list_first_entry_or_null(&ctx->fields_queue, in fdp1_dequeue_field()
752 if (fbuf) in fdp1_dequeue_field()
753 list_del(&fbuf->list); in fdp1_dequeue_field()
[all …]
Drcar_drif.c309 struct rcar_drif_frame_buf *fbuf, *tmp; in rcar_drif_release_queued_bufs() local
313 list_for_each_entry_safe(fbuf, tmp, &sdr->queued_bufs, list) { in rcar_drif_release_queued_bufs()
314 list_del(&fbuf->list); in rcar_drif_release_queued_bufs()
315 vb2_buffer_done(&fbuf->vb.vb2_buf, state); in rcar_drif_release_queued_bufs()
448 struct rcar_drif_frame_buf *fbuf = in rcar_drif_buf_queue() local
454 list_add_tail(&fbuf->list, &sdr->queued_bufs); in rcar_drif_buf_queue()
462 struct rcar_drif_frame_buf *fbuf; in rcar_drif_get_fbuf() local
466 fbuf = list_first_entry_or_null(&sdr->queued_bufs, struct in rcar_drif_get_fbuf()
468 if (!fbuf) { in rcar_drif_get_fbuf()
477 list_del(&fbuf->list); in rcar_drif_get_fbuf()
[all …]
/Linux-v5.10/include/media/
Dvideobuf-core.h124 struct v4l2_framebuffer *fbuf);
177 struct v4l2_framebuffer *fbuf);
/Linux-v5.10/drivers/media/usb/airspy/
Dairspy.c270 struct airspy_frame_buf *fbuf; in airspy_urb_complete() local
293 fbuf = airspy_get_next_fill_buf(s); in airspy_urb_complete()
294 if (unlikely(fbuf == NULL)) { in airspy_urb_complete()
303 ptr = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in airspy_urb_complete()
306 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, len); in airspy_urb_complete()
307 fbuf->vb.vb2_buf.timestamp = ktime_get_ns(); in airspy_urb_complete()
308 fbuf->vb.sequence = s->sequence++; in airspy_urb_complete()
309 vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in airspy_urb_complete()
/Linux-v5.10/Documentation/userspace-api/media/v4l/
Ddev-osd.rst63 struct v4l2_framebuffer fbuf;
67 if (-1 == ioctl(fd, VIDIOC_G_FBUF, &fbuf)) {
92 if (si.smem_start == (unsigned long)fbuf.base)
Duser-func.rst42 vidioc-g-fbuf
/Linux-v5.10/drivers/media/usb/msi2500/
Dmsi2500.c368 struct msi2500_frame_buf *fbuf; in msi2500_isoc_handler() local
410 fbuf = msi2500_get_next_fill_buf(dev); in msi2500_isoc_handler()
411 if (unlikely(fbuf == NULL)) { in msi2500_isoc_handler()
420 ptr = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in msi2500_isoc_handler()
422 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, flen); in msi2500_isoc_handler()
423 vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in msi2500_isoc_handler()
/Linux-v5.10/fs/xfs/libxfs/
Dxfs_ialloc.c272 struct xfs_buf *fbuf; in xfs_ialloc_inode_init() local
333 XBF_UNMAPPED, &fbuf); in xfs_ialloc_inode_init()
338 fbuf->b_ops = &xfs_inode_buf_ops; in xfs_ialloc_inode_init()
339 xfs_buf_zero(fbuf, 0, BBTOB(fbuf->b_length)); in xfs_ialloc_inode_init()
344 free = xfs_make_iptr(mp, fbuf, i); in xfs_ialloc_inode_init()
358 xfs_trans_log_buf(tp, fbuf, ioffset, in xfs_ialloc_inode_init()
372 xfs_trans_inode_alloc_buf(tp, fbuf); in xfs_ialloc_inode_init()
380 xfs_trans_ordered_buf(tp, fbuf); in xfs_ialloc_inode_init()
383 fbuf->b_flags |= XBF_DONE; in xfs_ialloc_inode_init()
384 xfs_buf_delwri_queue(fbuf, buffer_list); in xfs_ialloc_inode_init()
[all …]
/Linux-v5.10/drivers/media/dvb-frontends/
Drtl2832_sdr.c221 struct rtl2832_sdr_frame_buf *fbuf; in rtl2832_sdr_urb_complete() local
244 fbuf = rtl2832_sdr_get_next_fill_buf(dev); in rtl2832_sdr_urb_complete()
245 if (unlikely(fbuf == NULL)) { in rtl2832_sdr_urb_complete()
254 ptr = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in rtl2832_sdr_urb_complete()
257 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, len); in rtl2832_sdr_urb_complete()
258 fbuf->vb.vb2_buf.timestamp = ktime_get_ns(); in rtl2832_sdr_urb_complete()
259 fbuf->vb.sequence = dev->sequence++; in rtl2832_sdr_urb_complete()
260 vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE); in rtl2832_sdr_urb_complete()
/Linux-v5.10/drivers/media/v4l2-core/
Dvideobuf-dma-sg.c501 struct v4l2_framebuffer *fbuf) in __videobuf_iolock() argument
549 if (NULL == fbuf) in __videobuf_iolock()
557 bus = (dma_addr_t)(unsigned long)fbuf->base + vb->boff; in __videobuf_iolock()
Dvideobuf-vmalloc.c156 struct v4l2_framebuffer *fbuf) in __videobuf_iolock() argument
Dvideobuf-dma-contig.c236 struct v4l2_framebuffer *fbuf) in __videobuf_iolock() argument
/Linux-v5.10/drivers/scsi/csiostor/
Dcsio_wr.c1051 struct csio_dma_buf *buf, *fbuf; in csio_wr_process_fl() local
1073 for (n = 0, fbuf = flb.flbufs; ; n++, fbuf++) { in csio_wr_process_fl()
1077 fbuf->paddr = buf->paddr; in csio_wr_process_fl()
1078 fbuf->vaddr = buf->vaddr; in csio_wr_process_fl()
1082 fbuf->len = lastlen; in csio_wr_process_fl()
/Linux-v5.10/drivers/media/pci/bt8xx/
Dbttv-driver.c1612 if (0 != (rc = videobuf_iolock(q,&buf->vb,&btv->fbuf))) in bttv_prepare_buffer()
2154 if (NULL != btv->fbuf.base) in setup_window_lock()
2155 n = btcx_screen_clips(btv->fbuf.fmt.width, btv->fbuf.fmt.height, in setup_window_lock()
2527 *fb = btv->fbuf; in bttv_g_fbuf()
2544 if (unlikely(!btv->fbuf.base)) { in bttv_overlay()
2607 btv->fbuf.base = fb->base; in bttv_s_fbuf()
2608 btv->fbuf.fmt.width = fb->fmt.width; in bttv_s_fbuf()
2609 btv->fbuf.fmt.height = fb->fmt.height; in bttv_s_fbuf()
2611 btv->fbuf.fmt.bytesperline = fb->fmt.bytesperline; in bttv_s_fbuf()
2613 btv->fbuf.fmt.bytesperline = btv->fbuf.fmt.width*fmt->depth/8; in bttv_s_fbuf()
Dbttv-risc.c266 addr = (unsigned long)btv->fbuf.base; in bttv_risc_overlay()
267 addr += btv->fbuf.fmt.bytesperline * ov->w.top; in bttv_risc_overlay()
272 line++, addr += btv->fbuf.fmt.bytesperline) { in bttv_risc_overlay()

12