| /OK3568_Linux_fs/kernel/include/media/ |
| H A D | videobuf2-core.h | 229 struct vb2_queue; 246 struct vb2_queue *vb2_queue; member 418 int (*queue_setup)(struct vb2_queue *q, 422 void (*wait_prepare)(struct vb2_queue *q); 423 void (*wait_finish)(struct vb2_queue *q); 431 int (*start_streaming)(struct vb2_queue *q, unsigned int count); 432 void (*stop_streaming)(struct vb2_queue *q); 567 struct vb2_queue { struct 648 static inline bool vb2_queue_allows_cache_hints(struct vb2_queue *q) in vb2_queue_allows_cache_hints() 712 void vb2_discard_done(struct vb2_queue *q); [all …]
|
| H A D | videobuf2-v4l2.h | 81 int vb2_find_timestamp(const struct vb2_queue *q, u64 timestamp, 84 int vb2_querybuf(struct vb2_queue *q, struct v4l2_buffer *b); 94 int vb2_reqbufs(struct vb2_queue *q, struct v4l2_requestbuffers *req); 104 int vb2_create_bufs(struct vb2_queue *q, struct v4l2_create_buffers *create); 128 int vb2_prepare_buf(struct vb2_queue *q, struct media_device *mdev, 154 int vb2_qbuf(struct vb2_queue *q, struct media_device *mdev, 166 int vb2_expbuf(struct vb2_queue *q, struct v4l2_exportbuffer *eb); 192 int vb2_dqbuf(struct vb2_queue *q, struct v4l2_buffer *b, bool nonblocking); 210 int vb2_streamon(struct vb2_queue *q, enum v4l2_buf_type type); 229 int vb2_streamoff(struct vb2_queue *q, enum v4l2_buf_type type); [all …]
|
| H A D | v4l2-mem2mem.h | 66 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); 548 int (*queue_init)(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq)); 715 struct vb2_queue *v4l2_m2m_get_src_vq(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_get_src_vq() 726 struct vb2_queue *v4l2_m2m_get_dst_vq(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_get_dst_vq()
|
| /OK3568_Linux_fs/kernel/drivers/media/common/videobuf2/ |
| H A D | videobuf2-core.c | 55 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 D | videobuf2-v4l2.c | 71 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() 308 if (vb->vb2_queue->allow_zero_bytesused) in vb2_fill_vb2_v4l2_buffer() 320 if (!vb->vb2_queue->copy_timestamp || V4L2_TYPE_IS_CAPTURE(b->type)) { in vb2_fill_vb2_v4l2_buffer() 350 static void set_buffer_cache_hints(struct vb2_queue *q, in set_buffer_cache_hints() 397 static int vb2_queue_or_prepare_buf(struct vb2_queue *q, struct media_device *mdev, in vb2_queue_or_prepare_buf() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/dvb-core/ |
| H A D | dvb_vb2.c | 33 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() 151 struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in _fill_vb2_buffer() 169 struct vb2_queue *q = &ctx->vb_q; in dvb_vb2_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/rga/ |
| H A D | rga-buf.c | 19 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()
|
| /OK3568_Linux_fs/kernel/include/trace/events/ |
| H A D | vb2.h | 12 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),
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/sunxi/cedrus/ |
| H A D | cedrus_video.c | 280 struct vb2_queue *vq; in cedrus_s_fmt_vid_cap() 300 struct vb2_queue *vq; in cedrus_s_fmt_vid_out() 301 struct vb2_queue *peer_vq; in cedrus_s_fmt_vid_out() 387 static int cedrus_queue_setup(struct vb2_queue *vq, unsigned int *nbufs, in cedrus_queue_setup() 410 static void cedrus_queue_cleanup(struct vb2_queue *vq, u32 state) in cedrus_queue_cleanup() 440 struct vb2_queue *vq = vb->vb2_queue; in cedrus_buf_prepare() 463 static int cedrus_start_streaming(struct vb2_queue *vq, unsigned int count) in cedrus_start_streaming() 510 static void cedrus_stop_streaming(struct vb2_queue *vq) in cedrus_stop_streaming() 528 struct cedrus_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in cedrus_buf_queue() 535 struct cedrus_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in cedrus_buf_request_complete() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/test-drivers/vivid/ |
| H A D | vivid-meta-out.c | 16 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 D | vivid-vbi-out.c | 18 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 D | vivid-meta-cap.c | 16 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 D | vivid-core.h | 406 struct vb2_queue vb_vid_cap_q; 408 struct vb2_queue vb_vbi_cap_q; 410 struct vb2_queue vb_meta_cap_q; 412 struct vb2_queue vb_touch_cap_q; 457 struct vb2_queue vb_vid_out_q; 459 struct vb2_queue vb_vbi_out_q; 461 struct vb2_queue vb_meta_out_q; 508 struct vb2_queue vb_sdr_cap_q;
|
| H A D | vivid-vbi-cap.c | 122 static int vbi_cap_queue_setup(struct vb2_queue *vq, in vbi_cap_queue_setup() 146 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_cap_buf_prepare() 148 unsigned size = vb->vb2_queue->type == V4L2_BUF_TYPE_SLICED_VBI_CAPTURE ? in vbi_cap_buf_prepare() 175 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_cap_buf_queue() 185 static int vbi_cap_start_streaming(struct vb2_queue *vq, unsigned count) in vbi_cap_start_streaming() 211 static void vbi_cap_stop_streaming(struct vb2_queue *vq) in vbi_cap_stop_streaming() 221 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_cap_buf_request_complete()
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/hantro/ |
| H A D | hantro_v4l2.c | 403 struct vb2_queue *vq; in hantro_set_fmt_out() 413 struct vb2_queue *peer_vq; in hantro_set_fmt_out() 473 struct vb2_queue *vq; in hantro_set_fmt_cap() 483 struct vb2_queue *peer_vq; in hantro_set_fmt_cap() 574 hantro_queue_setup(struct vb2_queue *vq, unsigned int *num_buffers, in hantro_queue_setup() 630 struct vb2_queue *vq = vb->vb2_queue; in hantro_buf_prepare() 659 struct hantro_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in hantro_buf_queue() 665 static bool hantro_vq_is_coded(struct vb2_queue *q) in hantro_vq_is_coded() 672 static int hantro_start_streaming(struct vb2_queue *q, unsigned int count) in hantro_start_streaming() 713 hantro_return_bufs(struct vb2_queue *q, in hantro_return_bufs() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/cx88/ |
| H A D | cx88-vbi.c | 115 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() 168 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_queue() 193 static int start_streaming(struct vb2_queue *q, unsigned int count) in start_streaming() 204 static void stop_streaming(struct vb2_queue *q) in stop_streaming()
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/cx23885/ |
| H A D | cx23885-vbi.c | 114 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()
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp1/ |
| H A D | common.h | 74 struct vb2_queue buf_queue; 117 static inline struct rkisp1_vdev_node *queue_to_node(struct vb2_queue *q) in queue_to_node() 127 static inline struct vb2_queue *to_vb2_queue(struct file *file) in to_vb2_queue()
|
| /OK3568_Linux_fs/kernel/drivers/media/v4l2-core/ |
| H A D | v4l2-mem2mem.c | 123 struct vb2_queue *v4l2_m2m_get_vq(struct v4l2_m2m_ctx *m2m_ctx, in v4l2_m2m_get_vq() 574 struct vb2_queue *vq; in v4l2_m2m_reqbufs() 588 static void v4l2_m2m_adjust_mem_offset(struct vb2_queue *vq, in v4l2_m2m_adjust_mem_offset() 608 struct vb2_queue *vq; in v4l2_m2m_querybuf() 688 struct vb2_queue *q) in v4l2_m2m_update_start_streaming_state() 701 struct vb2_queue *q) in v4l2_m2m_update_stop_streaming_state() 729 struct vb2_queue *q) in v4l2_m2m_force_last_buf_done() 761 struct vb2_queue *vq; in v4l2_m2m_qbuf() 799 struct vb2_queue *vq; in v4l2_m2m_dqbuf() 818 struct vb2_queue *vq; in v4l2_m2m_prepare_buf() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/au0828/ |
| H A D | au0828-vbi.c | 20 static int vbi_queue_setup(struct vb2_queue *vq, in vbi_queue_setup() 36 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare() 54 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/coda/ |
| H A D | coda.h | 195 int (*queue_init)(void *priv, struct vb2_queue *src_vq, 196 struct vb2_queue *dst_vq); 303 int coda_encoder_queue_init(void *priv, struct vb2_queue *src_vq, 304 struct vb2_queue *dst_vq); 305 int coda_decoder_queue_init(void *priv, struct vb2_queue *src_vq, 306 struct vb2_queue *dst_vq);
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/em28xx/ |
| H A D | em28xx-vbi.c | 31 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()
|
| H A D | em28xx-v4l.h | 18 int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count); 19 void em28xx_stop_vbi_streaming(struct vb2_queue *vq);
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/uvc/ |
| H A D | uvc_queue.c | 72 static int uvc_queue_setup(struct vb2_queue *vq, in uvc_queue_setup() 107 struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue); in uvc_buffer_prepare() 134 struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue); in uvc_buffer_queue() 156 struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue); in uvc_buffer_finish() 164 static int uvc_start_streaming(struct vb2_queue *vq, unsigned int count) in uvc_start_streaming() 185 static void uvc_stop_streaming(struct vb2_queue *vq) in uvc_stop_streaming() 480 struct uvc_video_queue *queue = vb2_get_drv_priv(vb->vb2_queue); in uvc_queue_buffer_complete()
|
| /OK3568_Linux_fs/kernel/drivers/media/platform/sunxi/sun8i-rotate/ |
| H A D | sun8i_rotate.c | 343 struct vb2_queue *vq; in rotate_s_fmt_vid_cap() 363 struct vb2_queue *vq; in rotate_s_fmt_vid_out() 424 static int rotate_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, in rotate_queue_setup() 449 struct vb2_queue *vq = vb->vb2_queue; in rotate_buf_prepare() 469 struct rotate_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in rotate_buf_queue() 474 static void rotate_queue_cleanup(struct vb2_queue *vq, u32 state) in rotate_queue_cleanup() 490 static int rotate_start_streaming(struct vb2_queue *vq, unsigned int count) in rotate_start_streaming() 508 static void rotate_stop_streaming(struct vb2_queue *vq) in rotate_stop_streaming() 529 static int rotate_queue_init(void *priv, struct vb2_queue *src_vq, in rotate_queue_init() 530 struct vb2_queue *dst_vq) in rotate_queue_init() [all …]
|