Lines Matching full:vb
108 buf, buf->vb.vb2_buf.index); in cx8800_restart_vbi_queue()
129 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument
131 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare()
132 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_prepare()
133 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_prepare()
134 struct sg_table *sgt = vb2_dma_sg_plane_desc(vb, 0); in buffer_prepare()
143 if (vb2_plane_size(vb, 0) < size) in buffer_prepare()
145 vb2_set_plane_payload(vb, 0, size); in buffer_prepare()
154 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument
156 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_finish()
157 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_finish()
158 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_finish()
166 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument
168 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue()
169 struct cx8800_dev *dev = vb->vb2_queue->drv_priv; in buffer_queue()
170 struct cx88_buffer *buf = container_of(vbuf, struct cx88_buffer, vb); in buffer_queue()
182 buf, buf->vb.vb2_buf.index); in buffer_queue()
190 buf, buf->vb.vb2_buf.index); in buffer_queue()
221 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in stop_streaming()