Lines Matching refs:dma_sgt
47 struct sg_table *dma_sgt; member
122 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_alloc()
137 ret = sg_alloc_table_from_pages(buf->dma_sgt, buf->pages, in vb2_dma_sg_alloc()
167 sg_free_table(buf->dma_sgt); in vb2_dma_sg_alloc()
192 sg_free_table(buf->dma_sgt); in vb2_dma_sg_put()
204 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_prepare()
215 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_finish()
242 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_get_userptr()
254 if (sg_alloc_table_from_pages(buf->dma_sgt, buf->pages, in vb2_dma_sg_get_userptr()
293 sg_free_table(buf->dma_sgt); in vb2_dma_sg_put_userptr()
384 ret = sg_alloc_table(sgt, buf->dma_sgt->orig_nents, GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach()
390 rd = buf->dma_sgt->sgl; in vb2_dma_sg_dmabuf_ops_attach()
477 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_dmabuf_ops_begin_cpu_access()
488 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_dmabuf_ops_end_cpu_access()
535 if (WARN_ON(!buf->dma_sgt)) in vb2_dma_sg_get_dmabuf()
562 if (WARN_ON(buf->dma_sgt)) { in vb2_dma_sg_map_dmabuf()
574 buf->dma_sgt = sgt; in vb2_dma_sg_map_dmabuf()
583 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_unmap_dmabuf()
602 buf->dma_sgt = NULL; in vb2_dma_sg_unmap_dmabuf()
610 if (WARN_ON(buf->dma_sgt)) in vb2_dma_sg_detach_dmabuf()
655 return buf->dma_sgt; in vb2_dma_sg_cookie()