Lines Matching refs:nents
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()
917 return nents; 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()
955 int nents, enum dma_data_direction dir) in arm_dma_sync_sg_for_cpu() argument
961 for_each_sg(sg, s, nents, i) in arm_dma_sync_sg_for_cpu()
974 int nents, enum dma_data_direction dir) in arm_dma_sync_sg_for_device() argument
980 for_each_sg(sg, s, nents, i) in arm_dma_sync_sg_for_device()
1536 static int __iommu_map_sg(struct device *dev, struct scatterlist *sg, int nents, in __iommu_map_sg() argument
1546 for (i = 1; i < nents; i++) { in __iommu_map_sg()
1595 int nents, enum dma_data_direction dir, struct dma_attrs *attrs) in arm_coherent_iommu_map_sg() argument
1597 return __iommu_map_sg(dev, sg, nents, dir, attrs, true); in arm_coherent_iommu_map_sg()
1613 int nents, enum dma_data_direction dir, struct dma_attrs *attrs) in arm_iommu_map_sg() argument
1615 return __iommu_map_sg(dev, sg, nents, dir, attrs, false); in arm_iommu_map_sg()
1619 int nents, enum dma_data_direction dir, struct dma_attrs *attrs, in __iommu_unmap_sg() argument
1625 for_each_sg(sg, s, nents, i) { in __iommu_unmap_sg()
1647 int nents, enum dma_data_direction dir, struct dma_attrs *attrs) 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()
1676 int nents, enum dma_data_direction dir) in arm_iommu_sync_sg_for_cpu() argument
1681 for_each_sg(sg, s, nents, i) in arm_iommu_sync_sg_for_cpu()
1694 int nents, enum dma_data_direction dir) in arm_iommu_sync_sg_for_device() argument
1699 for_each_sg(sg, s, nents, i) in arm_iommu_sync_sg_for_device()