Lines Matching refs:q
318 int (*queue_setup)(struct vb2_queue *q, const struct v4l2_format *fmt,
322 void (*wait_prepare)(struct vb2_queue *q);
323 void (*wait_finish)(struct vb2_queue *q);
330 int (*start_streaming)(struct vb2_queue *q, unsigned int count);
331 void (*stop_streaming)(struct vb2_queue *q);
447 void vb2_discard_done(struct vb2_queue *q);
448 int vb2_wait_for_all_buffers(struct vb2_queue *q);
450 int vb2_querybuf(struct vb2_queue *q, struct v4l2_buffer *b);
451 int vb2_reqbufs(struct vb2_queue *q, struct v4l2_requestbuffers *req);
453 int vb2_create_bufs(struct vb2_queue *q, struct v4l2_create_buffers *create);
454 int vb2_prepare_buf(struct vb2_queue *q, struct v4l2_buffer *b);
456 int __must_check vb2_queue_init(struct vb2_queue *q);
458 void vb2_queue_release(struct vb2_queue *q);
459 void vb2_queue_error(struct vb2_queue *q);
461 int vb2_qbuf(struct vb2_queue *q, struct v4l2_buffer *b);
462 int vb2_expbuf(struct vb2_queue *q, struct v4l2_exportbuffer *eb);
463 int vb2_dqbuf(struct vb2_queue *q, struct v4l2_buffer *b, bool nonblocking);
465 int vb2_streamon(struct vb2_queue *q, enum v4l2_buf_type type);
466 int vb2_streamoff(struct vb2_queue *q, enum v4l2_buf_type type);
468 int vb2_mmap(struct vb2_queue *q, struct vm_area_struct *vma);
470 unsigned long vb2_get_unmapped_area(struct vb2_queue *q,
476 unsigned int vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait);
477 size_t vb2_read(struct vb2_queue *q, char __user *data, size_t count,
479 size_t vb2_write(struct vb2_queue *q, const char __user *data, size_t count,
502 int vb2_thread_start(struct vb2_queue *q, vb2_thread_fnc fnc, void *priv,
509 int vb2_thread_stop(struct vb2_queue *q);
515 static inline bool vb2_is_streaming(struct vb2_queue *q) in vb2_is_streaming() argument
517 return q->streaming; in vb2_is_streaming()
532 static inline bool vb2_fileio_is_active(struct vb2_queue *q) in vb2_fileio_is_active() argument
534 return q->fileio; in vb2_fileio_is_active()
543 static inline bool vb2_is_busy(struct vb2_queue *q) in vb2_is_busy() argument
545 return (q->num_buffers > 0); in vb2_is_busy()
552 static inline void *vb2_get_drv_priv(struct vb2_queue *q) in vb2_get_drv_priv() argument
554 return q->drv_priv; in vb2_get_drv_priv()
601 static inline bool vb2_start_streaming_called(struct vb2_queue *q) in vb2_start_streaming_called() argument
603 return q->start_streaming_called; in vb2_start_streaming_called()