Lines Matching refs:vb
244 fbuf->vb.v4l2_buf.field = V4L2_FIELD_NONE; in pwc_frame_complete()
245 fbuf->vb.v4l2_buf.sequence = pdev->vframe_count; in pwc_frame_complete()
246 vb2_buffer_done(&fbuf->vb, VB2_BUF_STATE_DONE); in pwc_frame_complete()
291 vb2_buffer_done(&pdev->fill_buf->vb, in pwc_isoc_handler()
321 &fbuf->vb.v4l2_buf.timestamp); in pwc_isoc_handler()
524 vb2_buffer_done(&buf->vb, state); in pwc_cleanup_queued_bufs()
596 static int buffer_init(struct vb2_buffer *vb) in buffer_init() argument
598 struct pwc_frame_buf *buf = container_of(vb, struct pwc_frame_buf, vb); in buffer_init()
608 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument
610 struct pwc_device *pdev = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare()
619 static void buffer_finish(struct vb2_buffer *vb) in buffer_finish() argument
621 struct pwc_device *pdev = vb2_get_drv_priv(vb->vb2_queue); in buffer_finish()
622 struct pwc_frame_buf *buf = container_of(vb, struct pwc_frame_buf, vb); in buffer_finish()
624 if (vb->state == VB2_BUF_STATE_DONE) { in buffer_finish()
635 static void buffer_cleanup(struct vb2_buffer *vb) in buffer_cleanup() argument
637 struct pwc_frame_buf *buf = container_of(vb, struct pwc_frame_buf, vb); in buffer_cleanup()
642 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument
644 struct pwc_device *pdev = vb2_get_drv_priv(vb->vb2_queue); in buffer_queue()
645 struct pwc_frame_buf *buf = container_of(vb, struct pwc_frame_buf, vb); in buffer_queue()
650 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in buffer_queue()
699 vb2_buffer_done(&pdev->fill_buf->vb, VB2_BUF_STATE_ERROR); in stop_streaming()