Lines Matching refs:vb

66 	struct vb2_v4l2_buffer vb;  member
73 return container_of(vb2, struct sh_vou_buffer, vb); in to_sh_vou_buffer()
265 static int sh_vou_buf_prepare(struct vb2_buffer *vb) in sh_vou_buf_prepare() argument
267 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vb->vb2_queue); in sh_vou_buf_prepare()
274 if (vb2_plane_size(vb, 0) < size) { in sh_vou_buf_prepare()
277 vb2_plane_size(vb, 0), size); in sh_vou_buf_prepare()
281 vb2_set_plane_payload(vb, 0, size); in sh_vou_buf_prepare()
286 static void sh_vou_buf_queue(struct vb2_buffer *vb) in sh_vou_buf_queue() argument
288 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in sh_vou_buf_queue()
289 struct sh_vou_device *vou_dev = vb2_get_drv_priv(vb->vb2_queue); in sh_vou_buf_queue()
309 vb2_buffer_done(&buf->vb.vb2_buf, in sh_vou_start_streaming()
325 sh_vou_schedule_next(vou_dev, &buf->vb); in sh_vou_start_streaming()
331 sh_vou_schedule_next(vou_dev, &buf->vb); in sh_vou_start_streaming()
361 vb2_buffer_done(&buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in sh_vou_stop_streaming()
1030 struct sh_vou_buffer *vb; in sh_vou_isr() local
1064 vb = vou_dev->active; in sh_vou_isr()
1065 if (list_is_singular(&vb->list)) { in sh_vou_isr()
1067 sh_vou_schedule_next(vou_dev, &vb->vb); in sh_vou_isr()
1072 list_del(&vb->list); in sh_vou_isr()
1074 v4l2_get_timestamp(&vb->vb.timestamp); in sh_vou_isr()
1075 vb->vb.sequence = vou_dev->sequence++; in sh_vou_isr()
1076 vb->vb.field = V4L2_FIELD_INTERLACED; in sh_vou_isr()
1077 vb2_buffer_done(&vb->vb.vb2_buf, VB2_BUF_STATE_DONE); in sh_vou_isr()
1084 sh_vou_schedule_next(vou_dev, &vou_dev->active->vb); in sh_vou_isr()
1088 sh_vou_schedule_next(vou_dev, &new->vb); in sh_vou_isr()