Lines Matching refs:sg

911 int arm_dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,  in arm_dma_map_sg()  argument
918 for_each_sg(sg, s, nents, i) { in arm_dma_map_sg()
930 for_each_sg(sg, s, i, j) in arm_dma_map_sg()
945 void arm_dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, in arm_dma_unmap_sg() argument
953 for_each_sg(sg, s, nents, i) in arm_dma_unmap_sg()
964 void arm_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, in arm_dma_sync_sg_for_cpu() argument
971 for_each_sg(sg, s, nents, i) in arm_dma_sync_sg_for_cpu()
983 void arm_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, in arm_dma_sync_sg_for_device() argument
990 for_each_sg(sg, s, nents, i) in arm_dma_sync_sg_for_device()
1504 static int __map_sg_chunk(struct device *dev, struct scatterlist *sg, in __map_sg_chunk() argument
1523 for (count = 0, s = sg; count < (size >> PAGE_SHIFT); s = sg_next(s)) { in __map_sg_chunk()
1548 static int __iommu_map_sg(struct device *dev, struct scatterlist *sg, int nents, in __iommu_map_sg() argument
1552 struct scatterlist *s = sg, *dma = sg, *start = sg; in __iommu_map_sg()
1589 for_each_sg(sg, s, count, i) in __iommu_map_sg()
1606 int arm_coherent_iommu_map_sg(struct device *dev, struct scatterlist *sg, in arm_coherent_iommu_map_sg() argument
1609 return __iommu_map_sg(dev, sg, nents, dir, attrs, true); in arm_coherent_iommu_map_sg()
1624 int arm_iommu_map_sg(struct device *dev, struct scatterlist *sg, in arm_iommu_map_sg() argument
1627 return __iommu_map_sg(dev, sg, nents, dir, attrs, false); in arm_iommu_map_sg()
1630 static void __iommu_unmap_sg(struct device *dev, struct scatterlist *sg, in __iommu_unmap_sg() argument
1637 for_each_sg(sg, s, nents, i) { in __iommu_unmap_sg()
1658 void arm_coherent_iommu_unmap_sg(struct device *dev, struct scatterlist *sg, in arm_coherent_iommu_unmap_sg() argument
1661 __iommu_unmap_sg(dev, sg, nents, dir, attrs, true); in arm_coherent_iommu_unmap_sg()
1674 void arm_iommu_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, in arm_iommu_unmap_sg() argument
1677 __iommu_unmap_sg(dev, sg, nents, dir, attrs, false); in arm_iommu_unmap_sg()
1687 void arm_iommu_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, in arm_iommu_sync_sg_for_cpu() argument
1693 for_each_sg(sg, s, nents, i) in arm_iommu_sync_sg_for_cpu()
1705 void arm_iommu_sync_sg_for_device(struct device *dev, struct scatterlist *sg, in arm_iommu_sync_sg_for_device() argument
1711 for_each_sg(sg, s, nents, i) in arm_iommu_sync_sg_for_device()