Lines Matching defs:vb2
73 struct saa7134_dmaqueue *dmaq = buf->vb2.vb2_buf.vb2_queue->drv_priv;
105 static int buffer_prepare(struct vb2_buffer *vb2)
107 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv;
109 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2);
110 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2);
111 struct sg_table *dma = vb2_dma_sg_plane_desc(vb2, 0);
119 if (vb2_plane_size(vb2, 0) < size)
122 vb2_set_plane_payload(vb2, 0, size);
148 static int buffer_init(struct vb2_buffer *vb2)
150 struct saa7134_dmaqueue *dmaq = vb2->vb2_queue->drv_priv;
151 struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb2);
152 struct saa7134_buf *buf = container_of(vbuf, struct saa7134_buf, vb2);