Home
last modified time | relevance | path

Searched refs:vb2_queue (Results 1 – 25 of 172) sorted by relevance

1234567

/Linux-v4.19/include/media/
Dvideobuf2-core.h229 struct vb2_queue;
243 struct vb2_queue *vb2_queue; member
385 int (*queue_setup)(struct vb2_queue *q,
389 void (*wait_prepare)(struct vb2_queue *q);
390 void (*wait_finish)(struct vb2_queue *q);
397 int (*start_streaming)(struct vb2_queue *q, unsigned int count);
398 void (*stop_streaming)(struct vb2_queue *q);
509 struct vb2_queue { struct
641 void vb2_discard_done(struct vb2_queue *q);
653 int vb2_wait_for_all_buffers(struct vb2_queue *q);
[all …]
Dvideobuf2-v4l2.h54 int vb2_querybuf(struct vb2_queue *q, struct v4l2_buffer *b);
64 int vb2_reqbufs(struct vb2_queue *q, struct v4l2_requestbuffers *req);
74 int vb2_create_bufs(struct vb2_queue *q, struct v4l2_create_buffers *create);
95 int vb2_prepare_buf(struct vb2_queue *q, struct v4l2_buffer *b);
117 int vb2_qbuf(struct vb2_queue *q, struct v4l2_buffer *b);
128 int vb2_expbuf(struct vb2_queue *q, struct v4l2_exportbuffer *eb);
154 int vb2_dqbuf(struct vb2_queue *q, struct v4l2_buffer *b, bool nonblocking);
172 int vb2_streamon(struct vb2_queue *q, enum v4l2_buf_type type);
191 int vb2_streamoff(struct vb2_queue *q, enum v4l2_buf_type type);
204 int __must_check vb2_queue_init(struct vb2_queue *q);
[all …]
Dv4l2-mem2mem.h68 struct vb2_queue q;
136 struct vb2_queue *v4l2_m2m_get_vq(struct v4l2_m2m_ctx *m2m_ctx,
365 int (*queue_init)(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq));
528 struct vb2_queue *v4l2_m2m_get_src_vq(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_get_src_vq()
539 struct vb2_queue *v4l2_m2m_get_dst_vq(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_get_dst_vq()
Dsoc_camera.h57 struct vb2_queue vb2_vidq;
113 int (*init_videobuf2)(struct vb2_queue *,
387 static inline struct soc_camera_device *soc_camera_from_vb2q(const struct vb2_queue *vq) in soc_camera_from_vb2q()
397 void soc_camera_lock(struct vb2_queue *vq);
398 void soc_camera_unlock(struct vb2_queue *vq);
Dv4l2-mc.h172 int v4l_vb2q_enable_media_source(struct vb2_queue *q);
229 static inline int v4l_vb2q_enable_media_source(struct vb2_queue *q) in v4l_vb2q_enable_media_source()
/Linux-v4.19/drivers/media/common/videobuf2/
Dvideobuf2-core.c55 (vb)->vb2_queue, (vb)->index, #op, \
56 (vb)->vb2_queue->mem_ops->op ? "" : " (nop)")
60 struct vb2_queue *_q = (vb)->vb2_queue; \
72 struct vb2_queue *_q = (vb)->vb2_queue; \
84 struct vb2_queue *_q = (vb)->vb2_queue; \
117 (vb)->vb2_queue, (vb)->index, #op, \
118 (vb)->vb2_queue->ops->op ? "" : " (nop)")
125 err = (vb)->vb2_queue->ops->op ? \
126 (vb)->vb2_queue->ops->op(args) : 0; \
135 if ((vb)->vb2_queue->ops->op) \
[all …]
Dvideobuf2-v4l2.c125 struct vb2_queue *q = vb->vb2_queue; in __copy_timestamp()
151 if (vb->vb2_queue->allow_zero_bytesused) in vb2_warn_zero_bytesused()
157 static int vb2_queue_or_prepare_buf(struct vb2_queue *q, struct v4l2_buffer *b, in vb2_queue_or_prepare_buf()
192 struct vb2_queue *q = vb->vb2_queue; in __fill_v4l2_buffer()
297 struct vb2_queue *q = vb->vb2_queue; in __fill_vb2_buffer()
367 if (vb->vb2_queue->allow_zero_bytesused) in __fill_vb2_buffer()
404 if (vb->vb2_queue->allow_zero_bytesused) in __fill_vb2_buffer()
416 if (!vb->vb2_queue->copy_timestamp || !V4L2_TYPE_IS_OUTPUT(b->type)) { in __fill_vb2_buffer()
464 int vb2_querybuf(struct vb2_queue *q, struct v4l2_buffer *b) in vb2_querybuf()
486 int vb2_reqbufs(struct vb2_queue *q, struct v4l2_requestbuffers *req) in vb2_reqbufs()
[all …]
/Linux-v4.19/drivers/media/platform/rockchip/rga/
Drga-buf.c27 rga_queue_setup(struct vb2_queue *vq, in rga_queue_setup()
48 struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in rga_buf_prepare()
49 struct rga_frame *f = rga_get_frame(ctx, vb->vb2_queue->type); in rga_buf_prepare()
62 struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in rga_buf_queue()
67 static void rga_buf_return_buffers(struct vb2_queue *q, in rga_buf_return_buffers()
84 static int rga_buf_start_streaming(struct vb2_queue *q, unsigned int count) in rga_buf_start_streaming()
99 static void rga_buf_stop_streaming(struct vb2_queue *q) in rga_buf_stop_streaming()
123 struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in rga_buf_map()
/Linux-v4.19/drivers/media/dvb-core/
Ddvb_vb2.c33 static int _queue_setup(struct vb2_queue *vq, in _queue_setup()
56 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _buffer_prepare()
73 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _buffer_queue()
84 static int _start_streaming(struct vb2_queue *vq, unsigned int count) in _start_streaming()
92 static void _stop_streaming(struct vb2_queue *vq) in _stop_streaming()
110 static void _dmxdev_lock(struct vb2_queue *vq) in _dmxdev_lock()
118 static void _dmxdev_unlock(struct vb2_queue *vq) in _dmxdev_unlock()
139 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _fill_dmx_buffer()
152 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _fill_vb2_buffer()
170 struct vb2_queue *q = &ctx->vb_q; in dvb_vb2_init()
[all …]
/Linux-v4.19/include/trace/events/
Dvb2.h12 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
47 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
52 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
57 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
62 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
Dv4l2.h182 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
246 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
251 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
256 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
261 TP_PROTO(struct vb2_queue *q, struct vb2_buffer *vb),
/Linux-v4.19/drivers/media/platform/vivid/
Dvivid-vbi-out.c18 static int vbi_out_queue_setup(struct vb2_queue *vq, in vbi_out_queue_setup()
42 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_prepare()
44 unsigned size = vb->vb2_queue->type == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT ? in vbi_out_buf_prepare()
71 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_queue()
81 static int vbi_out_start_streaming(struct vb2_queue *vq, unsigned count) in vbi_out_start_streaming()
107 static void vbi_out_stop_streaming(struct vb2_queue *vq) in vbi_out_stop_streaming()
Dvivid-vbi-cap.c126 static int vbi_cap_queue_setup(struct vb2_queue *vq, in vbi_cap_queue_setup()
150 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_cap_buf_prepare()
152 unsigned size = vb->vb2_queue->type == V4L2_BUF_TYPE_SLICED_VBI_CAPTURE ? in vbi_cap_buf_prepare()
179 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_cap_buf_queue()
189 static int vbi_cap_start_streaming(struct vb2_queue *vq, unsigned count) in vbi_cap_start_streaming()
215 static void vbi_cap_stop_streaming(struct vb2_queue *vq) in vbi_cap_stop_streaming()
/Linux-v4.19/drivers/media/usb/au0828/
Dau0828-vbi.c33 static int vbi_queue_setup(struct vb2_queue *vq, in vbi_queue_setup()
49 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare()
67 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
/Linux-v4.19/drivers/media/platform/coda/
Dcoda.h181 int (*queue_init)(void *priv, struct vb2_queue *src_vq,
182 struct vb2_queue *dst_vq);
265 int coda_encoder_queue_init(void *priv, struct vb2_queue *src_vq,
266 struct vb2_queue *dst_vq);
267 int coda_decoder_queue_init(void *priv, struct vb2_queue *src_vq,
268 struct vb2_queue *dst_vq);
/Linux-v4.19/drivers/media/pci/cx23885/
Dcx23885-vbi.c124 static int queue_setup(struct vb2_queue *q, in queue_setup()
141 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare()
168 cx23885_free_buffer(vb->vb2_queue->drv_priv, buf); in buffer_finish()
195 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_queue()
227 static int cx23885_start_streaming(struct vb2_queue *q, unsigned int count) in cx23885_start_streaming()
238 static void cx23885_stop_streaming(struct vb2_queue *q) in cx23885_stop_streaming()
/Linux-v4.19/drivers/media/pci/cx88/
Dcx88-vbi.c115 static int queue_setup(struct vb2_queue *q, in queue_setup()
132 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare()
157 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_finish()
169 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_queue()
194 static int start_streaming(struct vb2_queue *q, unsigned int count) in start_streaming()
205 static void stop_streaming(struct vb2_queue *q) in stop_streaming()
/Linux-v4.19/drivers/media/usb/em28xx/
Dem28xx-v4l.h18 int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count);
19 void em28xx_stop_vbi_streaming(struct vb2_queue *vq);
Dem28xx-vbi.c31 static int vbi_queue_setup(struct vb2_queue *vq, in vbi_queue_setup()
56 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare()
77 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
/Linux-v4.19/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_enc.h52 int mtk_vcodec_enc_queue_init(void *priv, struct vb2_queue *src_vq,
53 struct vb2_queue *dst_vq);
Dmtk_vcodec_dec.h83 int mtk_vcodec_dec_queue_init(void *priv, struct vb2_queue *src_vq,
84 struct vb2_queue *dst_vq);
/Linux-v4.19/drivers/media/v4l2-core/
Dv4l2-mem2mem.c119 struct vb2_queue *v4l2_m2m_get_vq(struct v4l2_m2m_ctx *m2m_ctx, in v4l2_m2m_get_vq()
434 struct vb2_queue *vq; in v4l2_m2m_reqbufs()
451 struct vb2_queue *vq; in v4l2_m2m_querybuf()
476 struct vb2_queue *vq; in v4l2_m2m_qbuf()
491 struct vb2_queue *vq; in v4l2_m2m_dqbuf()
501 struct vb2_queue *vq; in v4l2_m2m_prepare_buf()
516 struct vb2_queue *vq; in v4l2_m2m_create_bufs()
526 struct vb2_queue *vq; in v4l2_m2m_expbuf()
536 struct vb2_queue *vq; in v4l2_m2m_streamon()
593 struct vb2_queue *src_q, *dst_q; in v4l2_m2m_poll()
[all …]
/Linux-v4.19/drivers/media/pci/saa7134/
Dsaa7134-ts.c79 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in saa7134_ts_buffer_init()
92 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in saa7134_ts_buffer_prepare()
115 int saa7134_ts_queue_setup(struct vb2_queue *q, in saa7134_ts_queue_setup()
134 int saa7134_ts_start_streaming(struct vb2_queue *vq, unsigned int count) in saa7134_ts_start_streaming()
163 void saa7134_ts_stop_streaming(struct vb2_queue *vq) in saa7134_ts_stop_streaming()
Dsaa7134-vbi.c82 struct saa7134_dmaqueue *dmaq = buf->vb2.vb2_buf.vb2_queue->drv_priv; in buffer_activate()
116 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_prepare()
137 static int queue_setup(struct vb2_queue *q, in queue_setup()
159 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in buffer_init()
/Linux-v4.19/drivers/media/usb/uvc/
Duvc_queue.c77 static int uvc_queue_setup(struct vb2_queue *vq, in uvc_queue_setup()
112 struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue); in uvc_buffer_prepare()
139 struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue); in uvc_buffer_queue()
160 struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue); in uvc_buffer_finish()
168 static int uvc_start_streaming(struct vb2_queue *vq, unsigned int count) in uvc_start_streaming()
188 static void uvc_stop_streaming(struct vb2_queue *vq) in uvc_stop_streaming()

1234567