Lines Matching refs:sg
901 int arm_dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, in arm_dma_map_sg() argument
908 for_each_sg(sg, s, nents, i) { in arm_dma_map_sg()
920 for_each_sg(sg, s, i, j) in arm_dma_map_sg()
935 void arm_dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, in arm_dma_unmap_sg() argument
943 for_each_sg(sg, s, nents, i) in arm_dma_unmap_sg()
954 void arm_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, in arm_dma_sync_sg_for_cpu() argument
961 for_each_sg(sg, s, nents, i) in arm_dma_sync_sg_for_cpu()
973 void arm_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, in arm_dma_sync_sg_for_device() argument
980 for_each_sg(sg, s, nents, i) in arm_dma_sync_sg_for_device()
1492 static int __map_sg_chunk(struct device *dev, struct scatterlist *sg, in __map_sg_chunk() argument
1511 for (count = 0, s = sg; count < (size >> PAGE_SHIFT); s = sg_next(s)) { in __map_sg_chunk()
1536 static int __iommu_map_sg(struct device *dev, struct scatterlist *sg, int nents, in __iommu_map_sg() argument
1540 struct scatterlist *s = sg, *dma = sg, *start = sg; in __iommu_map_sg()
1577 for_each_sg(sg, s, count, i) in __iommu_map_sg()
1594 int arm_coherent_iommu_map_sg(struct device *dev, struct scatterlist *sg, in arm_coherent_iommu_map_sg() argument
1597 return __iommu_map_sg(dev, sg, nents, dir, attrs, true); in arm_coherent_iommu_map_sg()
1612 int arm_iommu_map_sg(struct device *dev, struct scatterlist *sg, in arm_iommu_map_sg() argument
1615 return __iommu_map_sg(dev, sg, nents, dir, attrs, false); in arm_iommu_map_sg()
1618 static void __iommu_unmap_sg(struct device *dev, struct scatterlist *sg, in __iommu_unmap_sg() argument
1625 for_each_sg(sg, s, nents, i) { in __iommu_unmap_sg()
1646 void arm_coherent_iommu_unmap_sg(struct device *dev, struct scatterlist *sg, in arm_coherent_iommu_unmap_sg() argument
1649 __iommu_unmap_sg(dev, sg, nents, dir, attrs, true); in arm_coherent_iommu_unmap_sg()
1662 void arm_iommu_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, in arm_iommu_unmap_sg() argument
1665 __iommu_unmap_sg(dev, sg, nents, dir, attrs, false); in arm_iommu_unmap_sg()
1675 void arm_iommu_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, in arm_iommu_sync_sg_for_cpu() argument
1681 for_each_sg(sg, s, nents, i) in arm_iommu_sync_sg_for_cpu()
1693 void arm_iommu_sync_sg_for_device(struct device *dev, struct scatterlist *sg, in arm_iommu_sync_sg_for_device() argument
1699 for_each_sg(sg, s, nents, i) in arm_iommu_sync_sg_for_device()