Lines Matching refs:sgl
226 static int __swiotlb_map_sg_attrs(struct device *dev, struct scatterlist *sgl, in __swiotlb_map_sg_attrs() argument
233 ret = swiotlb_map_sg_attrs(dev, sgl, nelems, dir, attrs); in __swiotlb_map_sg_attrs()
235 for_each_sg(sgl, sg, ret, i) in __swiotlb_map_sg_attrs()
243 struct scatterlist *sgl, int nelems, in __swiotlb_unmap_sg_attrs() argument
251 for_each_sg(sgl, sg, nelems, i) in __swiotlb_unmap_sg_attrs()
254 swiotlb_unmap_sg_attrs(dev, sgl, nelems, dir, attrs); in __swiotlb_unmap_sg_attrs()
276 struct scatterlist *sgl, int nelems, in __swiotlb_sync_sg_for_cpu() argument
283 for_each_sg(sgl, sg, nelems, i) in __swiotlb_sync_sg_for_cpu()
286 swiotlb_sync_sg_for_cpu(dev, sgl, nelems, dir); in __swiotlb_sync_sg_for_cpu()
290 struct scatterlist *sgl, int nelems, in __swiotlb_sync_sg_for_device() argument
296 swiotlb_sync_sg_for_device(dev, sgl, nelems, dir); in __swiotlb_sync_sg_for_device()
298 for_each_sg(sgl, sg, nelems, i) in __swiotlb_sync_sg_for_device()
338 sg_set_page(sgt->sgl, phys_to_page(dma_to_phys(dev, handle)), in __swiotlb_get_sgtable()
461 static int __dummy_map_sg(struct device *dev, struct scatterlist *sgl, in __dummy_map_sg() argument
469 struct scatterlist *sgl, int nelems, in __dummy_unmap_sg() argument
482 struct scatterlist *sgl, int nelems, in __dummy_sync_sg() argument
721 struct scatterlist *sgl, int nelems, in __iommu_sync_sg_for_cpu() argument
730 for_each_sg(sgl, sg, nelems, i) in __iommu_sync_sg_for_cpu()
735 struct scatterlist *sgl, int nelems, in __iommu_sync_sg_for_device() argument
744 for_each_sg(sgl, sg, nelems, i) in __iommu_sync_sg_for_device()
748 static int __iommu_map_sg_attrs(struct device *dev, struct scatterlist *sgl, in __iommu_map_sg_attrs() argument
755 __iommu_sync_sg_for_device(dev, sgl, nelems, dir); in __iommu_map_sg_attrs()
757 return iommu_dma_map_sg(dev, sgl, nelems, in __iommu_map_sg_attrs()
762 struct scatterlist *sgl, int nelems, in __iommu_unmap_sg_attrs() argument
767 __iommu_sync_sg_for_cpu(dev, sgl, nelems, dir); in __iommu_unmap_sg_attrs()
769 iommu_dma_unmap_sg(dev, sgl, nelems, dir, attrs); in __iommu_unmap_sg_attrs()