Lines Matching refs:sg

230 	struct scatterlist *sg;  in __swiotlb_map_sg_attrs()  local
235 for_each_sg(sgl, sg, ret, i) in __swiotlb_map_sg_attrs()
236 __dma_map_area(phys_to_virt(dma_to_phys(dev, sg->dma_address)), in __swiotlb_map_sg_attrs()
237 sg->length, dir); in __swiotlb_map_sg_attrs()
247 struct scatterlist *sg; in __swiotlb_unmap_sg_attrs() local
251 for_each_sg(sgl, sg, nelems, i) in __swiotlb_unmap_sg_attrs()
252 __dma_unmap_area(phys_to_virt(dma_to_phys(dev, sg->dma_address)), in __swiotlb_unmap_sg_attrs()
253 sg->length, dir); in __swiotlb_unmap_sg_attrs()
279 struct scatterlist *sg; in __swiotlb_sync_sg_for_cpu() local
283 for_each_sg(sgl, sg, nelems, i) in __swiotlb_sync_sg_for_cpu()
284 __dma_unmap_area(phys_to_virt(dma_to_phys(dev, sg->dma_address)), in __swiotlb_sync_sg_for_cpu()
285 sg->length, dir); in __swiotlb_sync_sg_for_cpu()
293 struct scatterlist *sg; in __swiotlb_sync_sg_for_device() local
298 for_each_sg(sgl, sg, nelems, i) in __swiotlb_sync_sg_for_device()
299 __dma_map_area(phys_to_virt(dma_to_phys(dev, sg->dma_address)), in __swiotlb_sync_sg_for_device()
300 sg->length, dir); in __swiotlb_sync_sg_for_device()
724 struct scatterlist *sg; in __iommu_sync_sg_for_cpu() local
730 for_each_sg(sgl, sg, nelems, i) in __iommu_sync_sg_for_cpu()
731 __dma_unmap_area(sg_virt(sg), sg->length, dir); in __iommu_sync_sg_for_cpu()
738 struct scatterlist *sg; in __iommu_sync_sg_for_device() local
744 for_each_sg(sgl, sg, nelems, i) in __iommu_sync_sg_for_device()
745 __dma_map_area(sg_virt(sg), sg->length, dir); in __iommu_sync_sg_for_device()