Lines Matching refs:vb
425 static void tw68_buf_queue(struct vb2_buffer *vb) in tw68_buf_queue() argument
427 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in tw68_buf_queue()
428 struct vb2_queue *vq = vb->vb2_queue; in tw68_buf_queue()
430 struct tw68_buf *buf = container_of(vbuf, struct tw68_buf, vb); in tw68_buf_queue()
460 static int tw68_buf_prepare(struct vb2_buffer *vb) in tw68_buf_prepare() argument
462 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in tw68_buf_prepare()
463 struct vb2_queue *vq = vb->vb2_queue; in tw68_buf_prepare()
465 struct tw68_buf *buf = container_of(vbuf, struct tw68_buf, vb); in tw68_buf_prepare()
466 struct sg_table *dma = vb2_dma_sg_plane_desc(vb, 0); in tw68_buf_prepare()
470 if (vb2_plane_size(vb, 0) < size) in tw68_buf_prepare()
472 vb2_set_plane_payload(vb, 0, size); in tw68_buf_prepare()
503 static void tw68_buf_finish(struct vb2_buffer *vb) in tw68_buf_finish() argument
505 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in tw68_buf_finish()
506 struct vb2_queue *vq = vb->vb2_queue; in tw68_buf_finish()
508 struct tw68_buf *buf = container_of(vbuf, struct tw68_buf, vb); in tw68_buf_finish()
535 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in tw68_stop_streaming()
1019 v4l2_get_timestamp(&buf->vb.timestamp); in tw68_irq_video_done()
1020 buf->vb.field = dev->field; in tw68_irq_video_done()
1021 buf->vb.sequence = dev->seqnr++; in tw68_irq_video_done()
1022 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in tw68_irq_video_done()