Lines Matching refs:vb
951 static int s5p_mfc_buf_init(struct vb2_buffer *vb) in s5p_mfc_buf_init() argument
953 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in s5p_mfc_buf_init()
954 struct vb2_queue *vq = vb->vb2_queue; in s5p_mfc_buf_init()
963 vb2_dma_contig_plane_dma_addr(vb, i)))) { in s5p_mfc_buf_init()
968 if (vb2_plane_size(vb, 0) < ctx->luma_size || in s5p_mfc_buf_init()
969 vb2_plane_size(vb, 1) < ctx->chroma_size) { in s5p_mfc_buf_init()
973 i = vb->index; in s5p_mfc_buf_init()
976 vb2_dma_contig_plane_dma_addr(vb, 0); in s5p_mfc_buf_init()
978 vb2_dma_contig_plane_dma_addr(vb, 1); in s5p_mfc_buf_init()
982 vb2_dma_contig_plane_dma_addr(vb, 0)))) { in s5p_mfc_buf_init()
986 if (vb2_plane_size(vb, 0) < ctx->dec_src_buf_size) { in s5p_mfc_buf_init()
991 i = vb->index; in s5p_mfc_buf_init()
994 vb2_dma_contig_plane_dma_addr(vb, 0); in s5p_mfc_buf_init()
1065 static void s5p_mfc_buf_queue(struct vb2_buffer *vb) in s5p_mfc_buf_queue() argument
1067 struct vb2_queue *vq = vb->vb2_queue; in s5p_mfc_buf_queue()
1074 mfc_buf = &ctx->src_bufs[vb->index]; in s5p_mfc_buf_queue()
1081 mfc_buf = &ctx->dst_bufs[vb->index]; in s5p_mfc_buf_queue()
1085 set_bit(vb->index, &ctx->dec_dst_flag); in s5p_mfc_buf_queue()