Home
last modified time | relevance | path

Searched refs:vb2 (Results 1 – 16 of 16) sorted by relevance

/linux/drivers/media/pci/saa7134/
H A Dsaa7134-vbi.c73 struct saa7134_dmaqueue *dmaq = buf->vb2.vb2_buf.vb2_queue->drv_priv; in buffer_activate()
105 static int buffer_prepare(struct vb2_buffer *vb2) in buffer_prepare() argument
107 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_prepare()
109 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in buffer_prepare()
110 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in buffer_prepare()
111 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0); in buffer_prepare()
119 if (vb2_plane_size(vb2, 0) < size) in buffer_prepare()
122 vb2_set_plane_payload(vb2, 0, size); in buffer_prepare()
148 static int buffer_init(struct vb2_buffer *vb2) in buffer_init() argument
150 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_init()
[all …]
H A Dsaa7134-ts.c67 int saa7134_ts_buffer_init(struct vb2_buffer *vb2) in saa7134_ts_buffer_init() argument
69 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_init()
70 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in saa7134_ts_buffer_init()
71 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in saa7134_ts_buffer_init()
80 int saa7134_ts_buffer_prepare(struct vb2_buffer *vb2) in saa7134_ts_buffer_prepare() argument
82 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_prepare()
83 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in saa7134_ts_buffer_prepare()
85 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in saa7134_ts_buffer_prepare()
86 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0); in saa7134_ts_buffer_prepare()
95 if (vb2_plane_size(vb2, 0) < size) in saa7134_ts_buffer_prepare()
[all …]
H A Dsaa7134-core.c201 return saa7134_buffer_pages(vb2_plane_size(&buf->vb2.vb2_buf, 0)) in saa7134_buffer_startpage()
202 * buf->vb2.vb2_buf.index; in saa7134_buffer_startpage()
208 struct sg_table *dma = vb2_dma_sg_plane_desc(&buf->vb2.vb2_buf, 0); in saa7134_buffer_base()
295 q->curr->vb2.vb2_buf.timestamp = ktime_get_ns(); in saa7134_buffer_finish()
296 q->curr->vb2.sequence = q->seq_nr++; in saa7134_buffer_finish()
297 vb2_buffer_done(&q->curr->vb2.vb2_buf, state); in saa7134_buffer_finish()
361 vb2_buffer_done(&tmp->vb2.vb2_buf, in saa7134_stop_streaming()
H A Dsaa7134.h465 struct vb2_v4l2_buffer vb2; member
830 int saa7134_ts_buffer_init(struct vb2_buffer *vb2);
831 int saa7134_ts_buffer_prepare(struct vb2_buffer *vb2);
/linux/drivers/media/dvb-core/
H A Ddvb_vb2.c355 struct vb2_buffer *vb2 = vb2_get_buffer(q, b->index); in dvb_vb2_querybuf() local
357 if (!vb2) { in dvb_vb2_querybuf()
361 vb2_core_querybuf(&ctx->vb_q, vb2, b); in dvb_vb2_querybuf()
369 struct vb2_buffer *vb2 = vb2_get_buffer(q, exp->index); in dvb_vb2_expbuf() local
372 if (!vb2) { in dvb_vb2_expbuf()
377 ret = vb2_core_expbuf(&ctx->vb_q, &exp->fd, q->type, vb2, in dvb_vb2_expbuf()
392 struct vb2_buffer *vb2 = vb2_get_buffer(q, b->index); in dvb_vb2_qbuf() local
395 if (!vb2) { in dvb_vb2_qbuf()
399 ret = vb2_core_qbuf(&ctx->vb_q, vb2, b, NULL); in dvb_vb2_qbuf()
H A DMakefile7 dvb-vb2-$(CONFIG_DVB_MMAP) := dvb_vb2.o
11 $(dvb-net-y) dvb_ringbuffer.o $(dvb-vb2-y)
/linux/drivers/media/usb/gspca/
H A Dgspca.h149 static inline struct gspca_buffer *to_gspca_buffer(struct vb2_buffer *vb2) in to_gspca_buffer() argument
151 return container_of(vb2, struct gspca_buffer, vb.vb2_buf); in to_gspca_buffer()
/linux/drivers/media/common/videobuf2/
H A DMakefile6 videobuf2-common-objs += vb2-trace.o
H A Dvideobuf2-v4l2.c618 struct vb2_buffer *vb2; in vb2_find_buffer() local
625 vb2 = vb2_get_buffer(q, i); in vb2_find_buffer()
627 if (!vb2) in vb2_find_buffer()
630 if (vb2->copied_timestamp && in vb2_find_buffer()
631 vb2->timestamp == timestamp) in vb2_find_buffer()
632 return vb2; in vb2_find_buffer()
H A Dvideobuf2-core.c2944 struct vb2_buffer *vb2 = vb2_get_buffer(q, i); in __vb2_init_fileio() local
2946 if (!vb2) in __vb2_init_fileio()
2949 ret = vb2_core_qbuf(q, vb2, NULL, NULL); in __vb2_init_fileio()
/linux/include/trace/events/
H A Dvb2.h3 #define TRACE_SYSTEM vb2
/linux/drivers/media/pci/cobalt/
H A Dcobalt-driver.h204 struct cobalt_buffer *to_cobalt_buffer(struct vb2_v4l2_buffer *vb2) in to_cobalt_buffer() argument
206 return container_of(vb2, struct cobalt_buffer, vb); in to_cobalt_buffer()
/linux/drivers/media/usb/dvb-usb/
H A Dcxusb.h155 struct vb2_v4l2_buffer vb2; member
/linux/drivers/media/platform/marvell/
H A Dmcam-core.h36 #error One of the vb2 buffer modes must be selected in the config
/linux/Documentation/admin-guide/media/
H A Dvisl.rst17 to it. It can also dump the contents of the vb2 buffers through a
/linux/Documentation/driver-api/media/
H A Dv4l2-dev.rst76 That way the :ref:`vb2 <vb2_framework>` queuing framework does not have
78 :ref:`vb2 <vb2_framework>` helper functions to check for