Lines Matching refs:sgt
206 struct sg_table sgt; member
216 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_attach() local
226 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_attach()
227 ret = sg_alloc_table(sgt, num_pages, GFP_KERNEL); in vb2_vmalloc_dmabuf_ops_attach()
232 for_each_sgtable_sg(sgt, sg, i) { in vb2_vmalloc_dmabuf_ops_attach()
236 sg_free_table(sgt); in vb2_vmalloc_dmabuf_ops_attach()
253 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_detach() local
258 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_detach()
262 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, 0); in vb2_vmalloc_dmabuf_ops_detach()
263 sg_free_table(sgt); in vb2_vmalloc_dmabuf_ops_detach()
272 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_map() local
274 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_map()
277 return sgt; in vb2_vmalloc_dmabuf_ops_map()
281 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, 0); in vb2_vmalloc_dmabuf_ops_map()
286 if (dma_map_sgtable(db_attach->dev, sgt, dma_dir, 0)) { in vb2_vmalloc_dmabuf_ops_map()
293 return sgt; in vb2_vmalloc_dmabuf_ops_map()
297 struct sg_table *sgt, enum dma_data_direction dma_dir) in vb2_vmalloc_dmabuf_ops_unmap() argument