Lines Matching full:vb
54 static int vbi_buffer_prepare(struct vb2_buffer *vb) in vbi_buffer_prepare() argument
56 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare()
62 if (vb2_plane_size(vb, 0) < size) { in vbi_buffer_prepare()
65 __func__, vb2_plane_size(vb, 0), size); in vbi_buffer_prepare()
68 vb2_set_plane_payload(vb, 0, size); in vbi_buffer_prepare()
74 vbi_buffer_queue(struct vb2_buffer *vb) in vbi_buffer_queue() argument
76 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_buffer_queue()
77 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
79 container_of(vbuf, struct em28xx_buffer, vb); in vbi_buffer_queue()
83 buf->mem = vb2_plane_vaddr(vb, 0); in vbi_buffer_queue()
84 buf->length = vb2_plane_size(vb, 0); in vbi_buffer_queue()