Home
last modified time | relevance | path

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

1234567891011

/openbmc/linux/include/media/
H A Dvideobuf2-core.h233 struct vb2_queue;
250 struct vb2_queue *vb2_queue; member
432 int (*queue_setup)(struct vb2_queue *q,
436 void (*wait_prepare)(struct vb2_queue *q);
437 void (*wait_finish)(struct vb2_queue *q);
445 int (*prepare_streaming)(struct vb2_queue *q);
446 int (*start_streaming)(struct vb2_queue *q, unsigned int count);
447 void (*stop_streaming)(struct vb2_queue *q);
448 void (*unprepare_streaming)(struct vb2_queue *q);
585 struct vb2_queue { struct
[all …]
H A Dvideobuf2-v4l2.h73 struct vb2_buffer *vb2_find_buffer(struct vb2_queue *q, u64 timestamp);
75 int vb2_querybuf(struct vb2_queue *q, struct v4l2_buffer *b);
85 int vb2_reqbufs(struct vb2_queue *q, struct v4l2_requestbuffers *req);
95 int vb2_create_bufs(struct vb2_queue *q, struct v4l2_create_buffers *create);
119 int vb2_prepare_buf(struct vb2_queue *q, struct media_device *mdev,
145 int vb2_qbuf(struct vb2_queue *q, struct media_device *mdev,
157 int vb2_expbuf(struct vb2_queue *q, struct v4l2_exportbuffer *eb);
183 int vb2_dqbuf(struct vb2_queue *q, struct v4l2_buffer *b, bool nonblocking);
201 int vb2_streamon(struct vb2_queue *q, enum v4l2_buf_type type);
220 int vb2_streamoff(struct vb2_queue *q, enum v4l2_buf_type type);
[all …]
H A Dv4l2-mem2mem.h66 struct vb2_queue q;
150 struct vb2_queue *v4l2_m2m_get_vq(struct v4l2_m2m_ctx *m2m_ctx,
434 struct vb2_queue *q);
444 struct vb2_queue *q);
553 int (*queue_init)(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq));
734 struct vb2_queue *v4l2_m2m_get_src_vq(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_get_src_vq()
745 struct vb2_queue *v4l2_m2m_get_dst_vq(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_get_dst_vq()
/openbmc/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-core.c55 dprintk((vb)->vb2_queue, 2, "call_memop(%d, %s)%s\n", \
57 (vb)->vb2_queue->mem_ops->op ? "" : " (nop)")
61 struct vb2_queue *_q = (vb)->vb2_queue; \
73 struct vb2_queue *_q = (vb)->vb2_queue; \
85 struct vb2_queue *_q = (vb)->vb2_queue; \
117 dprintk((vb)->vb2_queue, 2, "call_vb_qop(%d, %s)%s\n", \
119 (vb)->vb2_queue->ops->op ? "" : " (nop)")
126 err = (vb)->vb2_queue->ops->op ? \
127 (vb)->vb2_queue->ops->op(args) : 0; \
136 if ((vb)->vb2_queue->ops->op) \
[all …]
H A Dvideobuf2-v4l2.c71 dprintk(vb->vb2_queue, 1, in __verify_planes_array()
77 dprintk(vb->vb2_queue, 1, in __verify_planes_array()
145 struct vb2_queue *q = vb->vb2_queue; in __copy_timestamp()
170 if (vb->vb2_queue->allow_zero_bytesused) in vb2_warn_zero_bytesused()
178 struct vb2_queue *q = vb->vb2_queue; in vb2_fill_vb2_v4l2_buffer()
259 if (vb->vb2_queue->allow_zero_bytesused) in vb2_fill_vb2_v4l2_buffer()
302 if (vb->vb2_queue->allow_zero_bytesused) in vb2_fill_vb2_v4l2_buffer()
314 if (!vb->vb2_queue->copy_timestamp || V4L2_TYPE_IS_CAPTURE(b->type)) { in vb2_fill_vb2_v4l2_buffer()
344 static void set_buffer_cache_hints(struct vb2_queue *q, in set_buffer_cache_hints()
366 static int vb2_queue_or_prepare_buf(struct vb2_queue *q, struct media_device *mdev, in vb2_queue_or_prepare_buf()
[all …]
/openbmc/linux/drivers/media/dvb-core/
H A Ddvb_vb2.c29 static int _queue_setup(struct vb2_queue *vq, in _queue_setup()
52 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _buffer_prepare()
69 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _buffer_queue()
80 static int _start_streaming(struct vb2_queue *vq, unsigned int count) in _start_streaming()
88 static void _stop_streaming(struct vb2_queue *vq) in _stop_streaming()
106 static void _dmxdev_lock(struct vb2_queue *vq) in _dmxdev_lock()
114 static void _dmxdev_unlock(struct vb2_queue *vq) in _dmxdev_unlock()
135 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _fill_dmx_buffer()
147 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _fill_vb2_buffer()
165 struct vb2_queue *q = &ctx->vb_q; in dvb_vb2_init()
[all …]
/openbmc/linux/drivers/media/platform/rockchip/rga/
H A Drga-buf.c19 rga_queue_setup(struct vb2_queue *vq, in rga_queue_setup()
40 struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in rga_buf_prepare()
41 struct rga_frame *f = rga_get_frame(ctx, vb->vb2_queue->type); in rga_buf_prepare()
54 struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in rga_buf_queue()
59 static void rga_buf_return_buffers(struct vb2_queue *q, in rga_buf_return_buffers()
76 static int rga_buf_start_streaming(struct vb2_queue *q, unsigned int count) in rga_buf_start_streaming()
91 static void rga_buf_stop_streaming(struct vb2_queue *q) in rga_buf_stop_streaming()
115 struct rga_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in rga_buf_map()
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec.h85 int mtk_vcodec_dec_queue_init(void *priv, struct vb2_queue *src_vq,
86 struct vb2_queue *dst_vq);
93 int vb2ops_vdec_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers,
99 int vb2ops_vdec_start_streaming(struct vb2_queue *q, unsigned int count);
100 void vb2ops_vdec_stop_streaming(struct vb2_queue *q);
/openbmc/linux/include/trace/events/
H A 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),
/openbmc/linux/drivers/staging/media/sunxi/cedrus/
H A Dcedrus_video.c292 struct vb2_queue *vq; in cedrus_s_fmt_vid_cap()
317 struct vb2_queue *vq; in cedrus_s_fmt_vid_out_p()
375 struct vb2_queue *vq; in cedrus_s_fmt_vid_out()
376 struct vb2_queue *peer_vq; in cedrus_s_fmt_vid_out()
431 static int cedrus_queue_setup(struct vb2_queue *vq, unsigned int *nbufs, in cedrus_queue_setup()
454 static void cedrus_queue_cleanup(struct vb2_queue *vq, u32 state) in cedrus_queue_cleanup()
484 struct vb2_queue *vq = vb->vb2_queue; in cedrus_buf_prepare()
507 static int cedrus_start_streaming(struct vb2_queue *vq, unsigned int count) in cedrus_start_streaming()
535 static void cedrus_stop_streaming(struct vb2_queue *vq) in cedrus_stop_streaming()
553 struct cedrus_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in cedrus_buf_queue()
[all …]
/openbmc/linux/drivers/media/test-drivers/vivid/
H A Dvivid-meta-out.c16 static int meta_out_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, in meta_out_queue_setup()
42 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_out_buf_prepare()
68 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_out_buf_queue()
78 static int meta_out_start_streaming(struct vb2_queue *vq, unsigned int count) in meta_out_start_streaming()
106 static void meta_out_stop_streaming(struct vb2_queue *vq) in meta_out_stop_streaming()
116 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_out_buf_request_complete()
H A 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()
120 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_request_complete()
H A Dvivid-meta-cap.c16 static int meta_cap_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, in meta_cap_queue_setup()
42 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_cap_buf_prepare()
68 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_cap_buf_queue()
78 static int meta_cap_start_streaming(struct vb2_queue *vq, unsigned int count) in meta_cap_start_streaming()
106 static void meta_cap_stop_streaming(struct vb2_queue *vq) in meta_cap_stop_streaming()
116 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in meta_cap_buf_request_complete()
H A Dvivid-core.h390 struct vb2_queue vb_vid_cap_q;
392 struct vb2_queue vb_vbi_cap_q;
394 struct vb2_queue vb_meta_cap_q;
396 struct vb2_queue vb_touch_cap_q;
441 struct vb2_queue vb_vid_out_q;
443 struct vb2_queue vb_vbi_out_q;
445 struct vb2_queue vb_meta_out_q;
492 struct vb2_queue vb_sdr_cap_q;
/openbmc/linux/drivers/media/common/saa7146/
H A Dsaa7146_vbi.c220 static int queue_setup(struct vb2_queue *q, in queue_setup()
237 struct vb2_queue *vq = vb->vb2_queue; in buf_queue()
255 struct vb2_queue *vq = vb->vb2_queue; in buf_init()
284 struct vb2_queue *vq = vb->vb2_queue; in buf_cleanup()
290 static void return_buffers(struct vb2_queue *q, int state) in return_buffers()
380 static int start_streaming(struct vb2_queue *q, unsigned int count) in start_streaming()
393 static void stop_streaming(struct vb2_queue *q) in stop_streaming()
/openbmc/linux/drivers/media/pci/bt8xx/
H A Dbttv-vbi.c60 static int queue_setup_vbi(struct vb2_queue *q, unsigned int *num_buffers, in queue_setup_vbi()
78 struct vb2_queue *vq = vb->vb2_queue; in buf_queue_vbi()
98 struct vb2_queue *vq = vb->vb2_queue; in buf_prepare_vbi()
117 struct vb2_queue *vq = vb->vb2_queue; in buf_cleanup_vbi()
124 static int start_streaming_vbi(struct vb2_queue *q, unsigned int count) in start_streaming_vbi()
151 static void stop_streaming_vbi(struct vb2_queue *q) in stop_streaming_vbi()
/openbmc/linux/drivers/media/platform/verisilicon/
H A Dhantro_v4l2.c482 struct vb2_queue *vq; in hantro_update_requires_hold_capture_buf()
507 struct vb2_queue *vq; in hantro_set_fmt_out()
517 struct vb2_queue *peer_vq; in hantro_set_fmt_out()
580 struct vb2_queue *vq; in hantro_set_fmt_cap()
590 struct vb2_queue *peer_vq; in hantro_set_fmt_cap()
688 struct vb2_queue *vq; in vidioc_s_selection()
796 hantro_queue_setup(struct vb2_queue *vq, unsigned int *num_buffers, in hantro_queue_setup()
852 struct vb2_queue *vq = vb->vb2_queue; in hantro_buf_prepare()
881 struct hantro_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in hantro_buf_queue()
884 if (V4L2_TYPE_IS_CAPTURE(vb->vb2_queue->type) && in hantro_buf_queue()
[all …]
/openbmc/linux/drivers/media/v4l2-core/
H A Dv4l2-mem2mem.c123 struct vb2_queue *v4l2_m2m_get_vq(struct v4l2_m2m_ctx *m2m_ctx, in v4l2_m2m_get_vq()
575 struct vb2_queue *vq; in v4l2_m2m_reqbufs()
589 static void v4l2_m2m_adjust_mem_offset(struct vb2_queue *vq, in v4l2_m2m_adjust_mem_offset()
609 struct vb2_queue *vq; in v4l2_m2m_querybuf()
689 struct vb2_queue *q) in v4l2_m2m_update_start_streaming_state()
702 struct vb2_queue *q) in v4l2_m2m_update_stop_streaming_state()
730 struct vb2_queue *q) in v4l2_m2m_force_last_buf_done()
762 struct vb2_queue *vq; in v4l2_m2m_qbuf()
800 struct vb2_queue *vq; in v4l2_m2m_dqbuf()
819 struct vb2_queue *vq; in v4l2_m2m_prepare_buf()
[all …]
/openbmc/linux/drivers/media/pci/cx88/
H A 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()
156 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()
/openbmc/linux/drivers/media/pci/cx23885/
H A Dcx23885-vbi.c114 static int queue_setup(struct vb2_queue *q, in queue_setup()
131 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare()
158 cx23885_free_buffer(vb->vb2_queue->drv_priv, buf); in buffer_finish()
185 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_queue()
217 static int cx23885_start_streaming(struct vb2_queue *q, unsigned int count) in cx23885_start_streaming()
228 static void cx23885_stop_streaming(struct vb2_queue *q) in cx23885_stop_streaming()
/openbmc/linux/drivers/media/usb/au0828/
H A Dau0828-vbi.c21 static int vbi_queue_setup(struct vb2_queue *vq, in vbi_queue_setup()
37 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare()
55 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
/openbmc/linux/drivers/media/usb/em28xx/
H A Dem28xx-vbi.c21 static int vbi_queue_setup(struct vb2_queue *vq, in vbi_queue_setup()
46 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare()
67 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
H A Dem28xx-v4l.h9 int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count);
10 void em28xx_stop_vbi_streaming(struct vb2_queue *vq);
/openbmc/linux/drivers/media/platform/nvidia/tegra-vde/
H A Dv4l2.c83 static int tegra_queue_setup(struct vb2_queue *vq, in tegra_queue_setup()
126 struct vb2_queue *vq = vb->vb2_queue; in __tegra_buf_cleanup()
150 struct vb2_queue *vq = vb->vb2_queue; in tegra_buf_init()
219 struct vb2_queue *vq = vb->vb2_queue; in tegra_buf_prepare()
283 struct tegra_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in tegra_buf_queue()
291 struct tegra_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in tegra_buf_request_complete()
296 static int tegra_start_streaming(struct vb2_queue *vq, unsigned int count) in tegra_start_streaming()
301 static void tegra_stop_streaming(struct vb2_queue *vq) in tegra_stop_streaming()
336 struct vb2_queue *src_vq, in tegra_queue_init()
337 struct vb2_queue *dst_vq) in tegra_queue_init()
[all …]
/openbmc/linux/drivers/media/test-drivers/visl/
H A Dvisl-video.c424 struct vb2_queue *peer_vq; in visl_s_fmt_vid_out()
535 static int visl_queue_setup(struct vb2_queue *vq, in visl_queue_setup()
578 static void visl_queue_cleanup(struct vb2_queue *vq, u32 state) in visl_queue_cleanup()
616 struct vb2_queue *vq = vb->vb2_queue; in visl_buf_prepare()
637 static int visl_start_streaming(struct vb2_queue *vq, unsigned int count) in visl_start_streaming()
667 static void visl_stop_streaming(struct vb2_queue *vq) in visl_stop_streaming()
681 struct visl_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in visl_buf_queue()
688 struct visl_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in visl_buf_request_complete()
705 int visl_queue_init(void *priv, struct vb2_queue *src_vq, in visl_queue_init()
706 struct vb2_queue *dst_vq) in visl_queue_init()
[all …]

1234567891011