Lines Matching refs:sgt
202 struct sg_table sgt; member
212 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_attach() local
222 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_attach()
223 ret = sg_alloc_table(sgt, num_pages, GFP_KERNEL); in vb2_vmalloc_dmabuf_ops_attach()
228 for_each_sg(sgt->sgl, sg, sgt->nents, i) { in vb2_vmalloc_dmabuf_ops_attach()
232 sg_free_table(sgt); in vb2_vmalloc_dmabuf_ops_attach()
249 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_detach() local
254 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_detach()
258 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_detach()
260 sg_free_table(sgt); in vb2_vmalloc_dmabuf_ops_detach()
271 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_map() local
275 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_map()
279 return sgt; in vb2_vmalloc_dmabuf_ops_map()
284 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_map()
290 sgt->nents = dma_map_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_map()
292 if (!sgt->nents) { in vb2_vmalloc_dmabuf_ops_map()
302 return sgt; in vb2_vmalloc_dmabuf_ops_map()
306 struct sg_table *sgt, enum dma_data_direction dma_dir) in vb2_vmalloc_dmabuf_ops_unmap() argument