Lines Matching refs:vq
426 struct videobuf_queue *vq;
429 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type);
430 if (!vq)
437 f->fmt.pix.field = vq->field;
526 struct videobuf_queue *vq;
529 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type);
530 if (!vq)
537 mutex_lock(&vq->vb_lock);
539 if (videobuf_queue_is_busy(vq)) {
550 vq->field = f->fmt.pix.field;
557 mutex_unlock(&vq->vb_lock);
742 static void m2mtest_buf_release(struct videobuf_queue *vq,
745 struct m2mtest_ctx *ctx = vq->priv_data;
748 vq->type, vb->i, vb->state);
754 static int m2mtest_buf_setup(struct videobuf_queue *vq, unsigned int *count,
757 struct m2mtest_ctx *ctx = vq->priv_data;
760 q_data = get_q_data(vq->type);
778 static int m2mtest_buf_prepare(struct videobuf_queue *vq,
782 struct m2mtest_ctx *ctx = vq->priv_data;
787 vq->type, vb->i, vb->state);
789 q_data = get_q_data(vq->type);
813 ret = videobuf_iolock(vq, vb, NULL);
825 m2mtest_buf_release(vq, vb);
829 static void m2mtest_buf_queue(struct videobuf_queue *vq,
832 struct m2mtest_ctx *ctx = vq->priv_data;
834 v4l2_m2m_buf_queue(ctx->m2m_ctx, vq, vb);
844 static void queue_init(void *priv, struct videobuf_queue *vq,
849 videobuf_queue_vmalloc_init(vq, &m2mtest_qops, ctx->dev->v4l2_dev.dev,