Lines Matching refs:vb
128 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument
130 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare()
131 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare()
133 struct cx23885_buffer, vb); in buffer_prepare()
134 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare()
140 if (vb2_plane_size(vb, 0) < lines * VBI_LINE_LENGTH * 2) in buffer_prepare()
142 vb2_set_plane_payload(vb, 0, lines * VBI_LINE_LENGTH * 2); in buffer_prepare()
152 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument
154 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish()
156 struct cx23885_buffer, vb); in buffer_finish()
158 cx23885_free_buffer(vb->vb2_queue->drv_priv, buf); in buffer_finish()
182 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument
184 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue()
185 struct cx23885_dev *dev = vb->vb2_queue->drv_priv; in buffer_queue()
187 struct cx23885_buffer, vb); in buffer_queue()
202 buf, buf->vb.vb2_buf.index); in buffer_queue()
213 buf, buf->vb.vb2_buf.index); in buffer_queue()
241 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in cx23885_stop_streaming()