Lines Matching refs:vb
991 struct vb2_buffer *vb = ctx->dst_vb; in add_out_dtd() local
1006 dma_addr = vb2_dma_contig_plane_dma_addr(vb, plane); in add_out_dtd()
1028 struct vb2_buffer *vb = ctx->src_vbs[p_data->vb_index]; in add_in_dtd() local
1032 int field = vb->v4l2_buf.field == V4L2_FIELD_BOTTOM; in add_in_dtd()
1046 dma_addr = vb2_dma_contig_plane_dma_addr(vb, plane); in add_in_dtd()
1826 static int vpe_buf_prepare(struct vb2_buffer *vb) in vpe_buf_prepare() argument
1828 struct vpe_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vpe_buf_prepare()
1832 vpe_dbg(ctx->dev, "type: %d\n", vb->vb2_queue->type); in vpe_buf_prepare()
1834 q_data = get_q_data(ctx, vb->vb2_queue->type); in vpe_buf_prepare()
1837 if (vb->vb2_queue->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { in vpe_buf_prepare()
1839 vb->v4l2_buf.field = V4L2_FIELD_NONE; in vpe_buf_prepare()
1841 if (vb->v4l2_buf.field != V4L2_FIELD_TOP && in vpe_buf_prepare()
1842 vb->v4l2_buf.field != V4L2_FIELD_BOTTOM) in vpe_buf_prepare()
1848 if (vb2_plane_size(vb, i) < q_data->sizeimage[i]) { in vpe_buf_prepare()
1851 vb2_plane_size(vb, i), in vpe_buf_prepare()
1858 vb2_set_plane_payload(vb, i, q_data->sizeimage[i]); in vpe_buf_prepare()
1863 static void vpe_buf_queue(struct vb2_buffer *vb) in vpe_buf_queue() argument
1865 struct vpe_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vpe_buf_queue()
1867 v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vb); in vpe_buf_queue()