Lines Matching full:vb
40 static int vbi_out_buf_prepare(struct vb2_buffer *vb) in vbi_out_buf_prepare() argument
42 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_prepare()
44 unsigned size = vb->vb2_queue->type == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT ? in vbi_out_buf_prepare()
58 if (vb2_plane_size(vb, 0) < size) { in vbi_out_buf_prepare()
60 __func__, vb2_plane_size(vb, 0), size); in vbi_out_buf_prepare()
63 vb2_set_plane_payload(vb, 0, size); in vbi_out_buf_prepare()
68 static void vbi_out_buf_queue(struct vb2_buffer *vb) in vbi_out_buf_queue() argument
70 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb); in vbi_out_buf_queue()
71 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_queue()
72 struct vivid_buffer *buf = container_of(vbuf, struct vivid_buffer, vb); in vbi_out_buf_queue()
99 vb2_buffer_done(&buf->vb.vb2_buf, in vbi_out_start_streaming()
118 static void vbi_out_buf_request_complete(struct vb2_buffer *vb) in vbi_out_buf_request_complete() argument
120 struct vivid_dev *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_out_buf_request_complete()
122 v4l2_ctrl_request_complete(vb->req_obj.req, &dev->ctrl_hdl_vbi_out); in vbi_out_buf_request_complete()
223 vb2_plane_vaddr(&buf->vb.vb2_buf, 0); in vivid_sliced_vbi_out_process()
225 vb2_get_plane_payload(&buf->vb.vb2_buf, 0) / sizeof(*vbi); in vivid_sliced_vbi_out_process()