Lines Matching refs:dma_sgt
47 struct sg_table *dma_sgt; member
121 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_alloc()
132 ret = sg_alloc_table_from_pages(buf->dma_sgt, buf->pages, in vb2_dma_sg_alloc()
162 sg_free_table(buf->dma_sgt); in vb2_dma_sg_alloc()
187 sg_free_table(buf->dma_sgt); in vb2_dma_sg_put()
199 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_prepare()
212 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_finish()
241 buf->dma_sgt = &buf->sg_table; in vb2_dma_sg_get_userptr()
252 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()
381 ret = sg_alloc_table(sgt, buf->dma_sgt->orig_nents, GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach()
387 rd = buf->dma_sgt->sgl; in vb2_dma_sg_dmabuf_ops_attach()
515 if (WARN_ON(!buf->dma_sgt)) in vb2_dma_sg_get_dmabuf()
542 if (WARN_ON(buf->dma_sgt)) { in vb2_dma_sg_map_dmabuf()
554 buf->dma_sgt = sgt; in vb2_dma_sg_map_dmabuf()
563 struct sg_table *sgt = buf->dma_sgt; in vb2_dma_sg_unmap_dmabuf()
581 buf->dma_sgt = NULL; in vb2_dma_sg_unmap_dmabuf()
589 if (WARN_ON(buf->dma_sgt)) in vb2_dma_sg_detach_dmabuf()
633 return buf->dma_sgt; in vb2_dma_sg_cookie()