Lines Matching full:vb
34 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument
36 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare()
41 if (vb2_plane_size(vb, 0) < size) { in vbi_buffer_prepare()
43 __func__, vb2_plane_size(vb, 0), size); in vbi_buffer_prepare()
46 vb2_set_plane_payload(vb, 0, size); in vbi_buffer_prepare()
52 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue() argument
54 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
55 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue()
57 container_of(vbuf, struct au0828_buffer, vb); in vbi_buffer_queue()
61 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue()
62 buf->length = vb2_plane_size(vb, 0); in vbi_buffer_queue()