Lines Matching defs:vb
272 fbuf->vb.field = V4L2_FIELD_NONE;
273 fbuf->vb.sequence = pdev->vframe_count;
274 vb2_buffer_done(&fbuf->vb.vb2_buf, VB2_BUF_STATE_DONE);
323 vb2_buffer_done(&pdev->fill_buf->vb.vb2_buf,
357 fbuf->vb.vb2_buf.timestamp = ktime_get_ns();
566 vb2_buffer_done(&buf->vb.vb2_buf, state);
638 static int buffer_init(struct vb2_buffer *vb)
640 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
642 container_of(vbuf, struct pwc_frame_buf, vb);
652 static int buffer_prepare(struct vb2_buffer *vb)
654 struct pwc_device *pdev = vb2_get_drv_priv(vb->vb2_queue);
663 static void buffer_finish(struct vb2_buffer *vb)
665 struct pwc_device *pdev = vb2_get_drv_priv(vb->vb2_queue);
666 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
668 container_of(vbuf, struct pwc_frame_buf, vb);
670 if (vb->state == VB2_BUF_STATE_DONE) {
681 static void buffer_cleanup(struct vb2_buffer *vb)
683 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
685 container_of(vbuf, struct pwc_frame_buf, vb);
690 static void buffer_queue(struct vb2_buffer *vb)
692 struct pwc_device *pdev = vb2_get_drv_priv(vb->vb2_queue);
693 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
695 container_of(vbuf, struct pwc_frame_buf, vb);
700 vb2_buffer_done(vb, VB2_BUF_STATE_ERROR);
749 vb2_buffer_done(&pdev->fill_buf->vb.vb2_buf,