Home
last modified time | relevance | path

Searched refs:nelems (Results 1 – 25 of 27) sorted by relevance

12

/arch/powerpc/kernel/
Ddma-iommu.c57 int nelems, enum dma_data_direction direction, in dma_iommu_map_sg() argument
60 return iommu_map_sg(dev, dev->archdata.dma_data, sglist, nelems, in dma_iommu_map_sg()
65 int nelems, enum dma_data_direction direction, in dma_iommu_unmap_sg() argument
68 iommu_unmap_sg(dev->archdata.dma_data, sglist, nelems, direction, in dma_iommu_unmap_sg()
Diommu.c277 struct scatterlist *sglist, int nelems, in iommu_map_sg() argument
291 if ((nelems == 0) || !tbl) in iommu_map_sg()
296 incount = nelems; in iommu_map_sg()
302 DBG("sg mapping %d elements:\n", nelems); in iommu_map_sg()
307 for_each_sg(sglist, s, nelems, i) { in iommu_map_sg()
406 for_each_sg(sglist, s, nelems, i) { in iommu_map_sg()
426 int nelems, enum dma_data_direction direction, in iommu_unmap_sg() argument
440 while (nelems--) { in iommu_unmap_sg()
Dvio.c554 int nelems, enum dma_data_direction direction, in vio_dma_iommu_map_sg() argument
562 for (sgl = sglist; count < nelems; count++, sgl++) in vio_dma_iommu_map_sg()
570 ret = dma_iommu_ops.map_sg(dev, sglist, nelems, direction, attrs); in vio_dma_iommu_map_sg()
587 struct scatterlist *sglist, int nelems, in vio_dma_iommu_unmap_sg() argument
596 for (sgl = sglist; count < nelems; count++, sgl++) in vio_dma_iommu_unmap_sg()
599 dma_iommu_ops.unmap_sg(dev, sglist, nelems, direction, attrs); in vio_dma_iommu_unmap_sg()
/arch/ia64/hp/common/
Dhwsw_iommu.c147 hwsw_sync_sg_for_cpu (struct device *dev, struct scatterlist *sg, int nelems, int dir) in hwsw_sync_sg_for_cpu() argument
150 swiotlb_sync_sg_for_cpu(dev, sg, nelems, dir); in hwsw_sync_sg_for_cpu()
152 hwiommu_sync_sg_for_cpu(dev, sg, nelems, dir); in hwsw_sync_sg_for_cpu()
165 hwsw_sync_sg_for_device (struct device *dev, struct scatterlist *sg, int nelems, int dir) in hwsw_sync_sg_for_device() argument
168 swiotlb_sync_sg_for_device(dev, sg, nelems, dir); in hwsw_sync_sg_for_device()
170 hwiommu_sync_sg_for_device(dev, sg, nelems, dir); in hwsw_sync_sg_for_device()
/arch/sh/include/asm/
Ddma-mapping.h105 int nelems, enum dma_data_direction dir) in dma_sync_sg() argument
109 for (i = 0; i < nelems; i++) { in dma_sync_sg()
152 struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
155 dma_sync_sg(dev, sg, nelems, dir); in dma_sync_sg_for_cpu()
159 struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
162 dma_sync_sg(dev, sg, nelems, dir); in dma_sync_sg_for_device()
/arch/parisc/include/asm/
Ddma-mapping.h20 …void (*dma_sync_sg_for_cpu)(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_…
21 …void (*dma_sync_sg_for_device)(struct device *dev, struct scatterlist *sg, int nelems, enum dma_da…
155 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
159 hppa_dma_ops->dma_sync_sg_for_cpu(dev, sg, nelems, direction); in dma_sync_sg_for_cpu()
163 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
167 hppa_dma_ops->dma_sync_sg_for_device(dev, sg, nelems, direction); in dma_sync_sg_for_device()
/arch/xtensa/include/asm/
Ddma-mapping.h125 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
129 for (i = 0; i < nelems; i++, sg++) in dma_sync_sg_for_cpu()
134 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
138 for (i = 0; i < nelems; i++, sg++) in dma_sync_sg_for_device()
/arch/sparc/include/asm/
Ddma-mapping_64.h29 int nelems,
125 struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
128 dma_ops->sync_sg_for_cpu(dev, sg, nelems, direction); in dma_sync_sg_for_cpu()
132 struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
Ddma-mapping_32.h50 int nelems, enum dma_data_direction direction);
52 struct scatterlist *sg, int nelems,
Dpci_32.h134 extern void pci_dma_sync_sg_for_cpu(struct pci_dev *hwdev, struct scatterlist *sg, int nelems, int …
135 extern void pci_dma_sync_sg_for_device(struct pci_dev *hwdev, struct scatterlist *sg, int nelems, i…
/arch/x86/include/asm/
Ddma-mapping.h43 struct scatterlist *sg, int nelems,
46 struct scatterlist *sg, int nelems,
186 int nelems, int direction) in dma_sync_sg_for_cpu() argument
192 ops->sync_sg_for_cpu(hwdev, sg, nelems, direction); in dma_sync_sg_for_cpu()
198 int nelems, int direction) in dma_sync_sg_for_device() argument
204 ops->sync_sg_for_device(hwdev, sg, nelems, direction); in dma_sync_sg_for_device()
/arch/sparc/kernel/
Ddma.c189 int nelems, enum dma_data_direction direction) in dma_sync_sg_for_cpu() argument
194 nelems, (int)direction); in dma_sync_sg_for_cpu()
203 struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
209 nelems, (int)direction); in dma_sync_sg_for_device()
Diommu.c522 int nelems, enum dma_data_direction direction) in dma_4u_map_sg() argument
538 if (nelems == 0 || !iommu) in dma_4u_map_sg()
556 incount = nelems; in dma_4u_map_sg()
566 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg()
644 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg()
693 int nelems, enum dma_data_direction direction) in dma_4u_unmap_sg() argument
710 while (nelems--) { in dma_4u_unmap_sg()
780 struct scatterlist *sglist, int nelems, in dma_4u_sync_sg_for_cpu() argument
811 for_each_sg(sglist, sg, nelems, i) { in dma_4u_sync_sg_for_cpu()
Dpci_sun4v.c338 int nelems, enum dma_data_direction direction) in dma_4v_map_sg() argument
353 if (nelems == 0 || !iommu) in dma_4v_map_sg()
362 incount = nelems; in dma_4v_map_sg()
376 for_each_sg(sglist, s, nelems, i) { in dma_4v_map_sg()
459 for_each_sg(sglist, s, nelems, i) { in dma_4v_map_sg()
480 int nelems, enum dma_data_direction direction) in dma_4v_unmap_sg() argument
497 while (nelems--) { in dma_4v_unmap_sg()
531 struct scatterlist *sglist, int nelems, in dma_4v_sync_sg_for_cpu() argument
/arch/powerpc/include/asm/
Diommu.h83 struct scatterlist *sglist, int nelems,
87 int nelems, enum dma_data_direction direction,
/arch/mips/include/asm/
Ddma-mapping.h42 int nelems, enum dma_data_direction direction);
44 int nelems, enum dma_data_direction direction);
/arch/mips/mm/
Ddma-default.c320 void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
328 for (i = 0; i < nelems; i++, sg++) { in dma_sync_sg_for_cpu()
337 void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
345 for (i = 0; i < nelems; i++, sg++) { in dma_sync_sg_for_device()
/arch/cris/include/asm/
Ddma-mapping.h113 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
119 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
/arch/ia64/include/asm/
Ddma-mapping.h38 struct scatterlist *sg, int nelems,
41 struct scatterlist *sg, int nelems,
/arch/blackfin/include/asm/
Dpci.h139 struct scatterlist *sg, int nelems, in pci_dma_sync_sg() argument
/arch/x86/kernel/
Dpci-gart_64.c348 int nelems, struct scatterlist *sout, in __dma_map_cont() argument
359 for_each_sg(start, s, nelems, i) { in __dma_map_cont()
387 dma_map_cont(struct device *dev, struct scatterlist *start, int nelems, in dma_map_cont() argument
391 BUG_ON(nelems != 1); in dma_map_cont()
396 return __dma_map_cont(dev, start, nelems, sout, pages); in dma_map_cont()
Damd_iommu.c1375 int nelems, int dir) in map_sg_no_iommu() argument
1380 for_each_sg(sglist, s, nelems, i) { in map_sg_no_iommu()
1385 return nelems; in map_sg_no_iommu()
1393 int nelems, int dir) in map_sg() argument
1415 return map_sg_no_iommu(dev, sglist, nelems, dir); in map_sg()
1422 for_each_sg(sglist, s, nelems, i) { in map_sg()
1460 int nelems, int dir) in unmap_sg() argument
1480 for_each_sg(sglist, s, nelems, i) { in unmap_sg()
Dpci-calgary_64.c384 struct scatterlist *sglist, int nelems, int direction) in calgary_unmap_sg() argument
393 for_each_sg(sglist, s, nelems, i) { in calgary_unmap_sg()
407 int nelems, int direction) in calgary_map_sg() argument
416 for_each_sg(sg, s, nelems, i) { in calgary_map_sg()
438 return nelems; in calgary_map_sg()
440 calgary_unmap_sg(dev, sg, nelems, direction); in calgary_map_sg()
441 for_each_sg(sg, s, nelems, i) { in calgary_map_sg()
/arch/um/include/asm/
Ddma-mapping.h89 dma_sync_sg(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg() argument
/arch/ia64/sn/pci/
Dpci_dma.c340 int nelems, int direction) in sn_dma_sync_sg_for_cpu() argument
347 int nelems, int direction) in sn_dma_sync_sg_for_device() argument

12