/arch/sparc/mm/ |
D | iommu.c | 249 int nents, enum dma_data_direction dir, unsigned long attrs, in __sbus_iommu_map_sg() argument 255 for_each_sg(sgl, sg, nents, j) { in __sbus_iommu_map_sg() 263 return nents; in __sbus_iommu_map_sg() 267 int nents, enum dma_data_direction dir, unsigned long attrs) in sbus_iommu_map_sg_gflush() argument 270 return __sbus_iommu_map_sg(dev, sgl, nents, dir, attrs, false); in sbus_iommu_map_sg_gflush() 274 int nents, enum dma_data_direction dir, unsigned long attrs) in sbus_iommu_map_sg_pflush() argument 276 return __sbus_iommu_map_sg(dev, sgl, nents, dir, attrs, true); in sbus_iommu_map_sg_pflush() 299 int nents, enum dma_data_direction dir, unsigned long attrs) in sbus_iommu_unmap_sg() argument 304 for_each_sg(sgl, sg, nents, i) { in sbus_iommu_unmap_sg()
|
D | io-unit.c | 162 static int iounit_map_sg(struct device *dev, struct scatterlist *sgl, int nents, in iounit_map_sg() argument 172 for_each_sg(sgl, sg, nents, i) { in iounit_map_sg() 177 return nents; in iounit_map_sg() 196 int nents, enum dma_data_direction dir, unsigned long attrs) in iounit_unmap_sg() argument 204 for_each_sg(sgl, sg, nents, i) { in iounit_unmap_sg()
|
/arch/mips/jazz/ |
D | jazzdma.c | 544 int nents, enum dma_data_direction dir, unsigned long attrs) in jazz_dma_map_sg() argument 549 for_each_sg(sglist, sg, nents, i) { in jazz_dma_map_sg() 559 return nents; in jazz_dma_map_sg() 563 int nents, enum dma_data_direction dir, unsigned long attrs) in jazz_dma_unmap_sg() argument 568 for_each_sg(sglist, sg, nents, i) { in jazz_dma_unmap_sg() 588 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in jazz_dma_sync_sg_for_device() argument 593 for_each_sg(sgl, sg, nents, i) in jazz_dma_sync_sg_for_device() 598 struct scatterlist *sgl, int nents, enum dma_data_direction dir) in jazz_dma_sync_sg_for_cpu() argument 603 for_each_sg(sgl, sg, nents, i) in jazz_dma_sync_sg_for_cpu()
|
/arch/ia64/hp/common/ |
D | sba_iommu.c | 387 sba_dump_sg( struct ioc *ioc, struct scatterlist *startsg, int nents) in sba_dump_sg() argument 389 while (nents-- > 0) { in sba_dump_sg() 390 printk(KERN_DEBUG " %d : DMA %08lx/%05x CPU %p\n", nents, in sba_dump_sg() 398 sba_check_sg( struct ioc *ioc, struct scatterlist *startsg, int nents) in sba_check_sg() argument 401 int the_nents = nents; in sba_check_sg() 405 sba_dump_sg(NULL, startsg, nents); in sba_check_sg() 1200 int nents) in sba_fill_pdir() argument 1207 while (nents-- > 0) { in sba_fill_pdir() 1214 nents, startsg->dma_address, cnt, in sba_fill_pdir() 1218 nents, startsg->dma_address, cnt, in sba_fill_pdir() [all …]
|
/arch/x86/kernel/ |
D | amd_gart_64.c | 278 static void gart_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, in gart_unmap_sg() argument 284 for_each_sg(sg, s, nents, i) { in gart_unmap_sg() 293 int nents, int dir) in dma_map_sg_nonforce() argument 302 for_each_sg(sg, s, nents, i) { in dma_map_sg_nonforce() 310 nents = 0; in dma_map_sg_nonforce() 320 return nents; in dma_map_sg_nonforce() 379 static int gart_map_sg(struct device *dev, struct scatterlist *sg, int nents, in gart_map_sg() argument 388 if (nents == 0) in gart_map_sg() 399 for_each_sg(sg, s, nents, i) { in gart_map_sg() 441 if (out < nents) { in gart_map_sg() [all …]
|
/arch/powerpc/kernel/ |
D | dma-iommu.c | 36 int nents) in arch_dma_map_sg_direct() argument 44 for_each_sg(sg, s, nents, i) { in arch_dma_map_sg_direct() 53 int nents) in arch_dma_unmap_sg_direct() argument 61 for_each_sg(sg, s, nents, i) { in arch_dma_unmap_sg_direct()
|
/arch/arm/mm/ |
D | dma-mapping.c | 978 int arm_dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, in arm_dma_map_sg() argument 985 for_each_sg(sg, s, nents, i) { in arm_dma_map_sg() 996 return nents; in arm_dma_map_sg() 1014 void arm_dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, in arm_dma_unmap_sg() argument 1022 for_each_sg(sg, s, nents, i) in arm_dma_unmap_sg() 1034 int nents, enum dma_data_direction dir) in arm_dma_sync_sg_for_cpu() argument 1040 for_each_sg(sg, s, nents, i) in arm_dma_sync_sg_for_cpu() 1053 int nents, enum dma_data_direction dir) in arm_dma_sync_sg_for_device() argument 1059 for_each_sg(sg, s, nents, i) in arm_dma_sync_sg_for_device() 1622 static int __iommu_map_sg(struct device *dev, struct scatterlist *sg, int nents, in __iommu_map_sg() argument [all …]
|
/arch/alpha/kernel/ |
D | pci_iommu.c | 632 int nents, enum dma_data_direction dir, in alpha_pci_map_sg() argument 647 if (nents == 1) { in alpha_pci_map_sg() 658 end = sg + nents; in alpha_pci_map_sg() 714 int nents, enum dma_data_direction dir, in alpha_pci_unmap_sg() argument 740 for (end = sg + nents; sg < end; ++sg) { in alpha_pci_unmap_sg() 754 sg - end + nents, addr, size); in alpha_pci_unmap_sg() 762 sg - end + nents, addr, size); in alpha_pci_unmap_sg() 767 sg - end + nents, addr, size); in alpha_pci_unmap_sg() 786 DBGA("pci_unmap_sg: %ld entries\n", nents - (end - sg)); in alpha_pci_unmap_sg()
|
/arch/arm64/kernel/ |
D | module-plts.c | 327 int nents, numrels = sechdrs[i].sh_size / sizeof(Elf64_Rela); in module_frob_arch_sections() local 341 nents = partition_branch_plt_relas(syms, rels, numrels, in module_frob_arch_sections() 343 if (nents) in module_frob_arch_sections() 344 sort(rels, nents, sizeof(Elf64_Rela), cmp_rela, NULL); in module_frob_arch_sections()
|
/arch/powerpc/platforms/pseries/ |
D | ibmebus.c | 109 int nents, enum dma_data_direction direction, in ibmebus_map_sg() argument 115 for_each_sg(sgl, sg, nents, i) { in ibmebus_map_sg() 120 return nents; in ibmebus_map_sg() 125 int nents, enum dma_data_direction direction, in ibmebus_unmap_sg() argument
|
/arch/powerpc/platforms/ps3/ |
D | system-bus.c | 632 int nents, enum dma_data_direction direction, unsigned long attrs) in ps3_sb_map_sg() argument 642 for_each_sg(sgl, sg, nents, i) { in ps3_sb_map_sg() 655 return nents; in ps3_sb_map_sg() 660 int nents, in ps3_ioc0_map_sg() argument 669 int nents, enum dma_data_direction direction, unsigned long attrs) in ps3_sb_unmap_sg() argument 677 int nents, enum dma_data_direction direction, in ps3_ioc0_unmap_sg() argument
|