Lines Matching refs:vb
424 static void tw68_buf_queue(struct vb2_buffer *vb) in tw68_buf_queue() argument
426 struct vb2_queue *vq = vb->vb2_queue; in tw68_buf_queue()
428 struct tw68_buf *buf = container_of(vb, struct tw68_buf, vb); in tw68_buf_queue()
458 static int tw68_buf_prepare(struct vb2_buffer *vb) in tw68_buf_prepare() argument
460 struct vb2_queue *vq = vb->vb2_queue; in tw68_buf_prepare()
462 struct tw68_buf *buf = container_of(vb, struct tw68_buf, vb); in tw68_buf_prepare()
463 struct sg_table *dma = vb2_dma_sg_plane_desc(vb, 0); in tw68_buf_prepare()
467 if (vb2_plane_size(vb, 0) < size) in tw68_buf_prepare()
469 vb2_set_plane_payload(vb, 0, size); in tw68_buf_prepare()
500 static void tw68_buf_finish(struct vb2_buffer *vb) in tw68_buf_finish() argument
502 struct vb2_queue *vq = vb->vb2_queue; in tw68_buf_finish()
504 struct tw68_buf *buf = container_of(vb, struct tw68_buf, vb); in tw68_buf_finish()
531 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in tw68_stop_streaming()
1015 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in tw68_irq_video_done()
1016 buf->vb.v4l2_buf.field = dev->field; in tw68_irq_video_done()
1017 buf->vb.v4l2_buf.sequence = dev->seqnr++; in tw68_irq_video_done()
1018 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE); in tw68_irq_video_done()