Lines Matching defs:vb2_queue
250 struct vb2_queue *vb2_queue; member
573 struct vb2_queue { struct
574 unsigned int type;
575 unsigned int io_modes;
576 struct device *dev;
577 unsigned long dma_attrs;
578 unsigned int bidirectional:1;
579 unsigned int fileio_read_once:1;
580 unsigned int fileio_write_immediately:1;
581 unsigned int allow_zero_bytesused:1;
582 unsigned int quirk_poll_must_check_waiting_for_buffers:1;
583 unsigned int supports_requests:1;
584 unsigned int requires_requests:1;
585 unsigned int uses_qbuf:1;
586 unsigned int uses_requests:1;
587 unsigned int allow_cache_hints:1;
588 unsigned int non_coherent_mem:1;
590 struct mutex *lock;
591 void *owner;
593 const struct vb2_ops *ops;
594 const struct vb2_mem_ops *mem_ops;
595 const struct vb2_buf_ops *buf_ops;
597 void *drv_priv;
598 u32 subsystem_flags;
599 unsigned int buf_struct_size;
600 u32 timestamp_flags;
601 gfp_t gfp_flags;
602 u32 min_buffers_needed;
604 struct device *alloc_devs[VB2_MAX_PLANES];
607 struct mutex mmap_lock;
608 unsigned int memory;
609 enum dma_data_direction dma_dir;
610 struct vb2_buffer *bufs[VB2_MAX_FRAME];
611 unsigned int num_buffers;
613 struct list_head queued_list;
614 unsigned int queued_count;
616 atomic_t owned_by_drv_count;
617 struct list_head done_list;
618 spinlock_t done_lock;
619 wait_queue_head_t done_wq;
621 unsigned int streaming:1;
622 unsigned int start_streaming_called:1;
623 unsigned int error:1;
624 unsigned int waiting_for_buffers:1;
625 unsigned int waiting_in_dqbuf:1;
626 unsigned int is_multiplanar:1;
650 * vb2_queue_allows_cache_hints() - Return true if the queue allows cache argument
653 * @q: pointer to &struct vb2_queue with videobuf2 queue argument