Lines Matching refs:sgt
220 struct sg_table sgt; member
230 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_attach() local
240 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_attach()
241 ret = sg_alloc_table(sgt, num_pages, GFP_KERNEL); in vb2_vmalloc_dmabuf_ops_attach()
246 for_each_sg(sgt->sgl, sg, sgt->nents, i) { in vb2_vmalloc_dmabuf_ops_attach()
250 sg_free_table(sgt); in vb2_vmalloc_dmabuf_ops_attach()
267 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_detach() local
272 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_detach()
276 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_detach()
278 sg_free_table(sgt); in vb2_vmalloc_dmabuf_ops_detach()
289 struct sg_table *sgt; in vb2_vmalloc_dmabuf_ops_map() local
294 sgt = &attach->sgt; in vb2_vmalloc_dmabuf_ops_map()
298 return sgt; in vb2_vmalloc_dmabuf_ops_map()
303 dma_unmap_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, in vb2_vmalloc_dmabuf_ops_map()
309 ret = dma_map_sg(db_attach->dev, sgt->sgl, sgt->orig_nents, dma_dir); in vb2_vmalloc_dmabuf_ops_map()
320 return sgt; in vb2_vmalloc_dmabuf_ops_map()
324 struct sg_table *sgt, enum dma_data_direction dma_dir) in vb2_vmalloc_dmabuf_ops_unmap() argument