Lines Matching refs:vb
946 static int s5p_mfc_buf_init(struct vb2_buffer *vb) in s5p_mfc_buf_init() argument
948 struct vb2_queue *vq = vb->vb2_queue; in s5p_mfc_buf_init()
957 vb2_dma_contig_plane_dma_addr(vb, i)))) { in s5p_mfc_buf_init()
962 if (vb2_plane_size(vb, 0) < ctx->luma_size || in s5p_mfc_buf_init()
963 vb2_plane_size(vb, 1) < ctx->chroma_size) { in s5p_mfc_buf_init()
967 i = vb->v4l2_buf.index; in s5p_mfc_buf_init()
968 ctx->dst_bufs[i].b = vb; in s5p_mfc_buf_init()
970 vb2_dma_contig_plane_dma_addr(vb, 0); in s5p_mfc_buf_init()
972 vb2_dma_contig_plane_dma_addr(vb, 1); in s5p_mfc_buf_init()
976 vb2_dma_contig_plane_dma_addr(vb, 0)))) { in s5p_mfc_buf_init()
980 if (vb2_plane_size(vb, 0) < ctx->dec_src_buf_size) { in s5p_mfc_buf_init()
985 i = vb->v4l2_buf.index; in s5p_mfc_buf_init()
986 ctx->src_bufs[i].b = vb; in s5p_mfc_buf_init()
988 vb2_dma_contig_plane_dma_addr(vb, 0); in s5p_mfc_buf_init()
1059 static void s5p_mfc_buf_queue(struct vb2_buffer *vb) in s5p_mfc_buf_queue() argument
1061 struct vb2_queue *vq = vb->vb2_queue; in s5p_mfc_buf_queue()
1068 mfc_buf = &ctx->src_bufs[vb->v4l2_buf.index]; in s5p_mfc_buf_queue()
1075 mfc_buf = &ctx->dst_bufs[vb->v4l2_buf.index]; in s5p_mfc_buf_queue()
1079 set_bit(vb->v4l2_buf.index, &ctx->dec_dst_flag); in s5p_mfc_buf_queue()