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_sg(sgt->sgl, sg, sgt->nents, 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_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_detach()
264 sg_free_table(sgt); in vb2_vmalloc_dmabuf_ops_detach()
275 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_map() local
279 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_map()
283 return sgt; in vb2_vmalloc_dmabuf_ops_map()
288 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_map()
294 sgt->nents = dma_map_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_map()
296 if (!sgt->nents) { in vb2_vmalloc_dmabuf_ops_map()
306 return sgt; in vb2_vmalloc_dmabuf_ops_map()
310 struct sg_table *sgt, enum dma_data_direction dma_dir) in vb2_vmalloc_dmabuf_ops_unmap() argument