Lines Matching refs:vb
296 struct vb2_buffer vb; member
576 v4l2_get_timestamp(&buf->vb.v4l2_buf.timestamp); in s2255_got_frame()
577 buf->vb.v4l2_buf.field = vc->field; in s2255_got_frame()
578 buf->vb.v4l2_buf.sequence = vc->frame_count; in s2255_got_frame()
583 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_DONE); in s2255_got_frame()
615 char *vbuf = vb2_plane_vaddr(&buf->vb, 0); in s2255_fillbuff()
638 vb2_set_plane_payload(&buf->vb, 0, jpgsize); in s2255_fillbuff()
674 static int buffer_prepare(struct vb2_buffer *vb) in buffer_prepare() argument
676 struct s2255_vc *vc = vb2_get_drv_priv(vb->vb2_queue); in buffer_prepare()
677 struct s2255_buffer *buf = container_of(vb, struct s2255_buffer, vb); in buffer_prepare()
694 if (vb2_plane_size(vb, 0) < size) { in buffer_prepare()
699 vb2_set_plane_payload(&buf->vb, 0, size); in buffer_prepare()
703 static void buffer_queue(struct vb2_buffer *vb) in buffer_queue() argument
705 struct s2255_buffer *buf = container_of(vb, struct s2255_buffer, vb); in buffer_queue()
706 struct s2255_vc *vc = vb2_get_drv_priv(vb->vb2_queue); in buffer_queue()
1119 vb2_buffer_done(&buf->vb, VB2_BUF_STATE_ERROR); in stop_streaming()
1121 buf, buf->vb.v4l2_buf.index); in stop_streaming()