Lines Matching refs:src_vq
552 static int vpu_m2m_queue_init(void *priv, struct vb2_queue *src_vq, struct vb2_queue *dst_vq) in vpu_m2m_queue_init() argument
557 src_vq->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; in vpu_m2m_queue_init()
558 inst->out_format.type = src_vq->type; in vpu_m2m_queue_init()
559 src_vq->io_modes = VB2_MMAP | VB2_DMABUF; in vpu_m2m_queue_init()
560 src_vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY; in vpu_m2m_queue_init()
561 src_vq->ops = &vpu_vb2_ops; in vpu_m2m_queue_init()
562 src_vq->mem_ops = &vb2_dma_contig_memops; in vpu_m2m_queue_init()
564 src_vq->mem_ops = &vb2_vmalloc_memops; in vpu_m2m_queue_init()
565 src_vq->drv_priv = inst; in vpu_m2m_queue_init()
566 src_vq->buf_struct_size = sizeof(struct vpu_vb2_buffer); in vpu_m2m_queue_init()
567 src_vq->min_buffers_needed = 1; in vpu_m2m_queue_init()
568 src_vq->dev = inst->vpu->dev; in vpu_m2m_queue_init()
569 src_vq->lock = &inst->lock; in vpu_m2m_queue_init()
570 ret = vb2_queue_init(src_vq); in vpu_m2m_queue_init()
589 vb2_queue_release(src_vq); in vpu_m2m_queue_init()