Lines Matching refs:vb
436 buf->vb.sequence = dev->v4l2->field_count++; in finish_buffer()
438 buf->vb.field = V4L2_FIELD_NONE; in finish_buffer()
440 buf->vb.field = V4L2_FIELD_INTERLACED; in finish_buffer()
441 v4l2_get_timestamp(&buf->vb.timestamp); in finish_buffer()
443 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in finish_buffer()
902 buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument
904 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_prepare()
905 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); 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(vb, 0, size); in buffer_prepare()
1001 vb2_buffer_done(&dev->usb_ctl.vid_buf->vb.vb2_buf, in em28xx_stop_streaming()
1010 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in em28xx_stop_streaming()
1033 vb2_buffer_done(&dev->usb_ctl.vbi_buf->vb.vb2_buf, in em28xx_stop_vbi_streaming()
1042 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in em28xx_stop_vbi_streaming()
1048 buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument
1050 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in buffer_queue()
1051 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in buffer_queue()
1053 container_of(vbuf, struct em28xx_buffer, vb); in buffer_queue()
1058 buf->mem = vb2_plane_vaddr(vb, 0); in buffer_queue()
1059 buf->length = vb2_plane_size(vb, 0); in buffer_queue()