Lines Matching refs:vb
304 struct vb2_v4l2_buffer *vb = &buf->vb; in buffer_filled() local
305 struct vb2_queue *q = vb->vb2_buf.vb2_queue; in buffer_filled()
311 vb->sequence = dev->frame_count++; in buffer_filled()
313 vb->sequence = dev->vbi_frame_count++; in buffer_filled()
315 vb->field = V4L2_FIELD_INTERLACED; in buffer_filled()
316 v4l2_get_timestamp(&vb->timestamp); in buffer_filled()
317 vb2_buffer_done(&vb->vb2_buf, VB2_BUF_STATE_DONE); in buffer_filled()
533 outp = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in au0828_isoc_copy()
537 vbioutp = vb2_plane_vaddr(&vbi_buf->vb.vb2_buf, 0); in au0828_isoc_copy()
576 &vbi_buf->vb.vb2_buf, 0); in au0828_isoc_copy()
586 &buf->vb.vb2_buf, 0); in au0828_isoc_copy()
660 buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument
662 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare()
664 struct au0828_buffer, vb); in buffer_prepare()
665 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare()
669 if (vb2_plane_size(vb, 0) < buf->length) { in buffer_prepare()
671 __func__, vb2_plane_size(vb, 0), buf->length); in buffer_prepare()
674 vb2_set_plane_payload(&buf->vb.vb2_buf, 0, buf->length); in buffer_prepare()
679 buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument
681 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue()
684 vb); in buffer_queue()
685 struct au0828_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in buffer_queue()
689 buf->mem = vb2_plane_vaddr(vb, 0); in buffer_queue()
690 buf->length = vb2_plane_size(vb, 0); in buffer_queue()
833 vb2_buffer_done(&dev->isoc_ctl.buf->vb.vb2_buf, in au0828_stop_streaming()
841 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in au0828_stop_streaming()
861 vb2_buffer_done(&dev->isoc_ctl.vbi_buf->vb.vb2_buf, in au0828_stop_vbi_streaming()
870 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in au0828_stop_vbi_streaming()
919 vid_data = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in au0828_vid_buffer_timeout()
943 vbi_data = vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in au0828_vbi_buffer_timeout()