Lines Matching refs:vb2
80 int saa7134_ts_buffer_init(struct vb2_buffer *vb2) in saa7134_ts_buffer_init() argument
82 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_init()
83 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in saa7134_ts_buffer_init()
84 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in saa7134_ts_buffer_init()
93 int saa7134_ts_buffer_prepare(struct vb2_buffer *vb2) in saa7134_ts_buffer_prepare() argument
95 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2); in saa7134_ts_buffer_prepare()
96 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv; in saa7134_ts_buffer_prepare()
98 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2); in saa7134_ts_buffer_prepare()
99 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0); in saa7134_ts_buffer_prepare()
108 if (vb2_plane_size(vb2, 0) < size) in saa7134_ts_buffer_prepare()
111 vb2_set_plane_payload(vb2, 0, size); in saa7134_ts_buffer_prepare()
152 vb2_buffer_done(&buf->vb2.vb2_buf, in saa7134_ts_start_streaming()
156 vb2_buffer_done(&dmaq->curr->vb2.vb2_buf, in saa7134_ts_start_streaming()