Home
last modified time | relevance | path

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

/arch/arm64/mm/
Ddma-mapping.c227 int nelems, enum dma_data_direction dir, in __swiotlb_map_sg_attrs() argument
233 ret = swiotlb_map_sg_attrs(dev, sgl, nelems, dir, attrs); in __swiotlb_map_sg_attrs()
243 struct scatterlist *sgl, int nelems, in __swiotlb_unmap_sg_attrs() argument
251 for_each_sg(sgl, sg, nelems, i) in __swiotlb_unmap_sg_attrs()
254 swiotlb_unmap_sg_attrs(dev, sgl, nelems, dir, attrs); in __swiotlb_unmap_sg_attrs()
276 struct scatterlist *sgl, int nelems, in __swiotlb_sync_sg_for_cpu() argument
283 for_each_sg(sgl, sg, nelems, i) in __swiotlb_sync_sg_for_cpu()
286 swiotlb_sync_sg_for_cpu(dev, sgl, nelems, dir); in __swiotlb_sync_sg_for_cpu()
290 struct scatterlist *sgl, int nelems, in __swiotlb_sync_sg_for_device() argument
296 swiotlb_sync_sg_for_device(dev, sgl, nelems, dir); in __swiotlb_sync_sg_for_device()
[all …]
/arch/powerpc/kernel/
Ddma-iommu.c60 int nelems, enum dma_data_direction direction, in dma_iommu_map_sg() argument
63 return ppc_iommu_map_sg(dev, get_iommu_table_base(dev), sglist, nelems, in dma_iommu_map_sg()
68 int nelems, enum dma_data_direction direction, in dma_iommu_unmap_sg() argument
71 ppc_iommu_unmap_sg(get_iommu_table_base(dev), sglist, nelems, in dma_iommu_unmap_sg()
Diommu.c432 struct scatterlist *sglist, int nelems, in ppc_iommu_map_sg() argument
445 if ((nelems == 0) || !tbl) in ppc_iommu_map_sg()
450 incount = nelems; in ppc_iommu_map_sg()
456 DBG("sg mapping %d elements:\n", nelems); in ppc_iommu_map_sg()
459 for_each_sg(sglist, s, nelems, i) { in ppc_iommu_map_sg()
557 for_each_sg(sglist, s, nelems, i) { in ppc_iommu_map_sg()
576 int nelems, enum dma_data_direction direction, in ppc_iommu_unmap_sg() argument
587 while (nelems--) { in ppc_iommu_unmap_sg()
Dvio.c554 int nelems, enum dma_data_direction direction, in vio_dma_iommu_map_sg() argument
564 for_each_sg(sglist, sgl, nelems, count) in vio_dma_iommu_map_sg()
572 ret = dma_iommu_ops.map_sg(dev, sglist, nelems, direction, attrs); in vio_dma_iommu_map_sg()
589 struct scatterlist *sglist, int nelems, in vio_dma_iommu_unmap_sg() argument
600 for_each_sg(sglist, sgl, nelems, count) in vio_dma_iommu_unmap_sg()
603 dma_iommu_ops.unmap_sg(dev, sglist, nelems, direction, attrs); in vio_dma_iommu_unmap_sg()
/arch/tile/kernel/
Dpci-dma.c281 struct scatterlist *sglist, int nelems, in tile_dma_sync_sg_for_cpu() argument
288 WARN_ON(nelems == 0 || sglist->length == 0); in tile_dma_sync_sg_for_cpu()
290 for_each_sg(sglist, sg, nelems, i) { in tile_dma_sync_sg_for_cpu()
297 struct scatterlist *sglist, int nelems, in tile_dma_sync_sg_for_device() argument
304 WARN_ON(nelems == 0 || sglist->length == 0); in tile_dma_sync_sg_for_device()
306 for_each_sg(sglist, sg, nelems, i) { in tile_dma_sync_sg_for_device()
467 int nelems, in tile_pci_dma_sync_sg_for_cpu() argument
474 WARN_ON(nelems == 0 || sglist->length == 0); in tile_pci_dma_sync_sg_for_cpu()
476 for_each_sg(sglist, sg, nelems, i) { in tile_pci_dma_sync_sg_for_cpu()
484 int nelems, in tile_pci_dma_sync_sg_for_device() argument
[all …]
/arch/nios2/mm/
Ddma-mapping.c161 void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
169 for_each_sg(sg, sg, nelems, i) in dma_sync_sg_for_cpu()
175 int nelems, enum dma_data_direction direction) in dma_sync_sg_for_device() argument
182 for_each_sg(sg, sg, nelems, i) 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…
160 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
164 hppa_dma_ops->dma_sync_sg_for_cpu(dev, sg, nelems, direction); in dma_sync_sg_for_cpu()
168 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
172 hppa_dma_ops->dma_sync_sg_for_device(dev, sg, nelems, direction); in dma_sync_sg_for_device()
/arch/metag/include/asm/
Ddma-mapping.h137 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sglist, int nelems, in dma_sync_sg_for_cpu() argument
143 for_each_sg(sglist, sg, nelems, i) in dma_sync_sg_for_cpu()
149 int nelems, enum dma_data_direction direction) in dma_sync_sg_for_device() argument
154 for_each_sg(sglist, sg, nelems, i) in dma_sync_sg_for_device()
/arch/arc/include/asm/
Ddma-mapping.h160 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sglist, int nelems, in dma_sync_sg_for_cpu() argument
166 for_each_sg(sglist, sg, nelems, i) in dma_sync_sg_for_cpu()
172 int nelems, enum dma_data_direction dir) in dma_sync_sg_for_device() argument
177 for_each_sg(sglist, sg, nelems, i) in dma_sync_sg_for_device()
/arch/sh/kernel/
Ddma-nommu.c55 int nelems, enum dma_data_direction dir) in nommu_sync_sg() argument
60 for_each_sg(sg, s, nelems, i) in nommu_sync_sg()
/arch/blackfin/kernel/
Ddma-mapping.c132 int nelems, enum dma_data_direction direction) in dma_sync_sg_for_device() argument
137 for_each_sg(sg_list, sg, nelems, i) { in dma_sync_sg_for_device()
/arch/sparc/kernel/
Diommu.c433 int nelems, enum dma_data_direction direction, in dma_4u_map_sg() argument
450 if (nelems == 0 || !iommu) in dma_4u_map_sg()
468 incount = nelems; in dma_4u_map_sg()
478 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg()
557 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg()
609 int nelems, enum dma_data_direction direction, in dma_4u_unmap_sg() argument
627 while (nelems--) { in dma_4u_unmap_sg()
699 struct scatterlist *sglist, int nelems, in dma_4u_sync_sg_for_cpu() argument
731 for_each_sg(sglist, sg, nelems, i) { in dma_4u_sync_sg_for_cpu()
Dpci_sun4v.c324 int nelems, enum dma_data_direction direction, in dma_4v_map_sg() argument
340 if (nelems == 0 || !iommu) in dma_4v_map_sg()
349 incount = nelems; in dma_4v_map_sg()
363 for_each_sg(sglist, s, nelems, i) { in dma_4v_map_sg()
446 for_each_sg(sglist, s, nelems, i) { in dma_4v_map_sg()
468 int nelems, enum dma_data_direction direction, in dma_4v_unmap_sg() argument
486 while (nelems--) { in dma_4v_unmap_sg()
/arch/frv/include/asm/
Ddma-mapping.h85 void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
91 void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
/arch/mn10300/include/asm/
Ddma-mapping.h124 int nelems, enum dma_data_direction direction) in dma_sync_sg_for_cpu() argument
130 int nelems, enum dma_data_direction direction) in dma_sync_sg_for_device() argument
/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/nios2/include/asm/
Ddma-mapping.h97 int nelems, enum dma_data_direction direction);
99 int nelems, enum dma_data_direction direction);
/arch/mips/mm/
Ddma-default.c366 struct scatterlist *sglist, int nelems, in mips_dma_sync_sg_for_cpu() argument
373 for_each_sg(sglist, sg, nelems, i) { in mips_dma_sync_sg_for_cpu()
382 struct scatterlist *sglist, int nelems, in mips_dma_sync_sg_for_device() argument
389 for_each_sg(sglist, sg, nelems, i) { in mips_dma_sync_sg_for_device()
/arch/x86/kernel/
Dpci-nommu.c85 struct scatterlist *sg, int nelems, in nommu_sync_sg_for_device() argument
Damd_gart_64.c335 int nelems, struct scatterlist *sout, in __dma_map_cont() argument
346 for_each_sg(start, s, nelems, i) { in __dma_map_cont()
373 dma_map_cont(struct device *dev, struct scatterlist *start, int nelems, in dma_map_cont() argument
377 BUG_ON(nelems != 1); in dma_map_cont()
382 return __dma_map_cont(dev, start, nelems, sout, pages); in dma_map_cont()
Dpci-calgary_64.c342 int nelems,enum dma_data_direction dir, in calgary_unmap_sg() argument
352 for_each_sg(sglist, s, nelems, i) { in calgary_unmap_sg()
366 int nelems, enum dma_data_direction dir, in calgary_map_sg() argument
376 for_each_sg(sg, s, nelems, i) { in calgary_map_sg()
397 return nelems; in calgary_map_sg()
399 calgary_unmap_sg(dev, sg, nelems, dir, NULL); in calgary_map_sg()
400 for_each_sg(sg, s, nelems, i) { in calgary_map_sg()
/arch/powerpc/include/asm/
Diommu.h248 struct scatterlist *sglist, int nelems,
254 int nelems,
/arch/mips/cavium-octeon/
Ddma-octeon.c153 struct scatterlist *sg, int nelems, enum dma_data_direction direction) in octeon_dma_sync_sg_for_device() argument
155 swiotlb_sync_sg_for_device(dev, sg, nelems, direction); in octeon_dma_sync_sg_for_device()
/arch/ia64/sn/pci/
Dpci_dma.c337 int nelems, enum dma_data_direction dir) in sn_dma_sync_sg_for_cpu() argument
343 int nelems, enum dma_data_direction dir) in sn_dma_sync_sg_for_device() argument