Lines Matching refs:dst_vq
911 struct vb2_queue *dst_vq; in coda_s_fmt_vid_out() local
939 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in coda_s_fmt_vid_out()
940 if (!dst_vq) in coda_s_fmt_vid_out()
949 if (vb2_is_busy(dst_vq)) in coda_s_fmt_vid_out()
1112 struct vb2_queue *dst_vq; in coda_wake_up_capture_queue() local
1116 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in coda_wake_up_capture_queue()
1117 dst_vq->last_buffer_dequeued = true; in coda_wake_up_capture_queue()
1118 wake_up(&dst_vq->done_wq); in coda_wake_up_capture_queue()
1181 struct vb2_queue *dst_vq; in coda_mark_last_dst_buf() local
1186 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); in coda_mark_last_dst_buf()
1187 spin_lock_irqsave(&dst_vq->done_lock, flags); in coda_mark_last_dst_buf()
1188 if (list_empty(&dst_vq->done_list)) { in coda_mark_last_dst_buf()
1189 spin_unlock_irqrestore(&dst_vq->done_lock, flags); in coda_mark_last_dst_buf()
1193 dst_vb = list_last_entry(&dst_vq->done_list, struct vb2_buffer, in coda_mark_last_dst_buf()
1198 spin_unlock_irqrestore(&dst_vq->done_lock, flags); in coda_mark_last_dst_buf()
1208 struct vb2_queue *dst_vq; in coda_decoder_cmd() local
1222 dst_vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, in coda_decoder_cmd()
1224 vb2_clear_last_buffer_dequeued(dst_vq); in coda_decoder_cmd()
2556 struct vb2_queue *dst_vq) in coda_encoder_queue_init() argument
2568 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in coda_encoder_queue_init()
2569 dst_vq->io_modes = VB2_DMABUF | VB2_MMAP; in coda_encoder_queue_init()
2570 dst_vq->mem_ops = &vb2_dma_contig_memops; in coda_encoder_queue_init()
2572 return coda_queue_init(priv, dst_vq); in coda_encoder_queue_init()
2576 struct vb2_queue *dst_vq) in coda_decoder_queue_init() argument
2588 dst_vq->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in coda_decoder_queue_init()
2589 dst_vq->io_modes = VB2_DMABUF | VB2_MMAP; in coda_decoder_queue_init()
2590 dst_vq->dma_attrs = DMA_ATTR_NO_KERNEL_MAPPING; in coda_decoder_queue_init()
2591 dst_vq->mem_ops = &vb2_dma_contig_memops; in coda_decoder_queue_init()
2593 return coda_queue_init(priv, dst_vq); in coda_decoder_queue_init()