Lines Matching refs:vb
436 buf->vb.v4l2_buf.sequence = dev->v4l2->field_count++; in finish_buffer()
438 buf->vb.v4l2_buf.field = V4L2_FIELD_NONE; in finish_buffer()
440 buf->vb.v4l2_buf.field = V4L2_FIELD_INTERLACED; in finish_buffer()
441 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in finish_buffer()
443 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE); in finish_buffer()
902 buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument
904 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare()
906 struct em28xx_buffer *buf = container_of(vb, struct em28xx_buffer, vb); in buffer_prepare()
909 em28xx_videodbg("%s, field=%d\n", __func__, vb->v4l2_buf.field); in buffer_prepare()
913 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare()
915 __func__, vb2_plane_size(vb, 0), size); in buffer_prepare()
918 vb2_set_plane_payload(&buf->vb, 0, size); in buffer_prepare()
999 vb2_buffer_done(&dev->usb_ctl.vid_buf->vb, VB2_BUF_STATE_ERROR); in em28xx_stop_streaming()
1007 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in em28xx_stop_streaming()
1030 vb2_buffer_done(&dev->usb_ctl.vbi_buf->vb, VB2_BUF_STATE_ERROR); in em28xx_stop_vbi_streaming()
1038 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in em28xx_stop_vbi_streaming()
1044 buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument
1046 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in buffer_queue()
1047 struct em28xx_buffer *buf = container_of(vb, struct em28xx_buffer, vb); in buffer_queue()
1052 buf->mem = vb2_plane_vaddr(vb, 0); in buffer_queue()
1053 buf->length = vb2_plane_size(vb, 0); in buffer_queue()