Lines Matching refs:sgt
17 struct sg_table *sgt; in ib_umem_dmabuf_map_pages() local
26 if (umem_dmabuf->sgt) in ib_umem_dmabuf_map_pages()
29 sgt = dma_buf_map_attachment(umem_dmabuf->attach, in ib_umem_dmabuf_map_pages()
31 if (IS_ERR(sgt)) in ib_umem_dmabuf_map_pages()
32 return PTR_ERR(sgt); in ib_umem_dmabuf_map_pages()
39 for_each_sgtable_dma_sg(sgt, sg, i) { in ib_umem_dmabuf_map_pages()
62 umem_dmabuf->umem.sgt_append.sgt.sgl = umem_dmabuf->first_sg; in ib_umem_dmabuf_map_pages()
63 umem_dmabuf->umem.sgt_append.sgt.nents = nmap; in ib_umem_dmabuf_map_pages()
64 umem_dmabuf->sgt = sgt; in ib_umem_dmabuf_map_pages()
87 if (!umem_dmabuf->sgt) in ib_umem_dmabuf_unmap_pages()
106 dma_buf_unmap_attachment(umem_dmabuf->attach, umem_dmabuf->sgt, in ib_umem_dmabuf_unmap_pages()
109 umem_dmabuf->sgt = NULL; in ib_umem_dmabuf_unmap_pages()