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

/arch/powerpc/kernel/
H A Ddma-iommu.c60 int nelems, enum dma_data_direction direction,
63 return iommu_map_sg(dev, get_iommu_table_base(dev), sglist, nelems,
68 int nelems, enum dma_data_direction direction,
71 iommu_unmap_sg(get_iommu_table_base(dev), sglist, nelems, direction, local
59 dma_iommu_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, struct dma_attrs *attrs) argument
67 dma_iommu_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, struct dma_attrs *attrs) argument
H A Diommu.c261 struct scatterlist *sglist, int nelems,
275 if ((nelems == 0) || !tbl)
280 incount = nelems;
286 DBG("sg mapping %d elements:\n", nelems);
291 for_each_sg(sglist, s, nelems, i) {
391 for_each_sg(sglist, s, nelems, i) {
411 int nelems, enum dma_data_direction direction,
425 while (nelems--) {
260 iommu_map_sg(struct device *dev, struct iommu_table *tbl, struct scatterlist *sglist, int nelems, unsigned long mask, enum dma_data_direction direction, struct dma_attrs *attrs) argument
410 iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, struct dma_attrs *attrs) argument
H A Dvio.c551 int nelems, enum dma_data_direction direction,
559 for (sgl = sglist; count < nelems; count++, sgl++)
567 ret = dma_iommu_ops.map_sg(dev, sglist, nelems, direction, attrs);
584 struct scatterlist *sglist, int nelems,
593 for (sgl = sglist; count < nelems; count++, sgl++)
596 dma_iommu_ops.unmap_sg(dev, sglist, nelems, direction, attrs);
550 vio_dma_iommu_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, struct dma_attrs *attrs) argument
583 vio_dma_iommu_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, struct dma_attrs *attrs) argument
/arch/xtensa/include/asm/
H A Ddma-mapping.h125 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, argument
129 for (i = 0; i < nelems; i++, sg++)
134 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, argument
138 for (i = 0; i < nelems; i++, sg++)
/arch/sh/kernel/
H A Ddma-nommu.c55 int nelems, enum dma_data_direction dir)
60 for_each_sg(sg, s, nelems, i)
54 nommu_sync_sg(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument
/arch/tile/include/asm/
H A Ddma-mapping.h47 int nelems, enum dma_data_direction);
49 int nelems, enum dma_data_direction);
/arch/parisc/include/asm/
H A Ddma-mapping.h20 void (*dma_sync_sg_for_cpu)(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction direction);
21 void (*dma_sync_sg_for_device)(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction direction);
155 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, argument
159 hppa_dma_ops->dma_sync_sg_for_cpu(dev, sg, nelems, direction);
163 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, argument
167 hppa_dma_ops->dma_sync_sg_for_device(dev, sg, nelems, direction);
/arch/tile/kernel/
H A Dpci-dma.c200 void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, argument
204 WARN_ON(nelems == 0 || sg[0].length == 0);
212 int nelems, enum dma_data_direction direction)
218 WARN_ON(nelems == 0 || sglist->length == 0);
220 for_each_sg(sglist, sg, nelems, i) {
211 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction) argument
/arch/frv/include/asm/
H A Ddma-mapping.h85 void dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, argument
91 void dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, argument
/arch/powerpc/include/asm/
H A Diommu.h93 struct scatterlist *sglist, int nelems,
97 int nelems, enum dma_data_direction direction,
/arch/ia64/include/asm/
H A Dparavirt_patch.h113 unsigned long nelems,
/arch/blackfin/kernel/
H A Ddma-mapping.c140 int nelems, enum dma_data_direction direction)
144 for (i = 0; i < nelems; i++, sg++) {
139 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction direction) argument
/arch/cris/include/asm/
H A Ddma-mapping.h113 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, argument
119 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, argument
/arch/mn10300/include/asm/
H A Ddma-mapping.h124 int nelems, enum dma_data_direction direction)
130 int nelems, enum dma_data_direction direction)
123 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction direction) argument
129 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction direction) argument
/arch/mips/mm/
H A Ddma-default.c278 struct scatterlist *sg, int nelems, enum dma_data_direction direction)
283 for (i = 0; i < nelems; i++, sg++) {
291 struct scatterlist *sg, int nelems, enum dma_data_direction direction)
296 for (i = 0; i < nelems; i++, sg++) {
277 mips_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction direction) argument
290 mips_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction direction) argument
/arch/x86/kernel/
H A Dpci-nommu.c92 struct scatterlist *sg, int nelems,
91 nommu_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument
H A Damd_gart_64.c335 int nelems, struct scatterlist *sout,
346 for_each_sg(start, s, nelems, i) {
373 dma_map_cont(struct device *dev, struct scatterlist *start, int nelems, argument
377 BUG_ON(nelems != 1);
382 return __dma_map_cont(dev, start, nelems, sout, pages);
334 __dma_map_cont(struct device *dev, struct scatterlist *start, int nelems, struct scatterlist *sout, unsigned long pages) argument
H A Dpci-calgary_64.c340 int nelems,enum dma_data_direction dir,
350 for_each_sg(sglist, s, nelems, i) {
364 int nelems, enum dma_data_direction dir,
374 for_each_sg(sg, s, nelems, i) {
395 return nelems;
397 calgary_unmap_sg(dev, sg, nelems, dir, NULL);
398 for_each_sg(sg, s, nelems, i) {
339 calgary_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems,enum dma_data_direction dir, struct dma_attrs *attrs) argument
363 calgary_map_sg(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir, struct dma_attrs *attrs) argument
/arch/sparc/kernel/
H A Diommu.c525 int nelems, enum dma_data_direction direction,
542 if (nelems == 0 || !iommu)
560 incount = nelems;
570 for_each_sg(sglist, s, nelems, i) {
648 for_each_sg(sglist, s, nelems, i) {
697 int nelems, enum dma_data_direction direction,
715 while (nelems--) {
785 struct scatterlist *sglist, int nelems,
816 for_each_sg(sglist, sg, nelems, i) {
524 dma_4u_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, struct dma_attrs *attrs) argument
696 dma_4u_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, struct dma_attrs *attrs) argument
784 dma_4u_sync_sg_for_cpu(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction) argument
H A Dpci_sun4v.c343 int nelems, enum dma_data_direction direction,
359 if (nelems == 0 || !iommu)
368 incount = nelems;
382 for_each_sg(sglist, s, nelems, i) {
465 for_each_sg(sglist, s, nelems, i) {
486 int nelems, enum dma_data_direction direction,
504 while (nelems--) {
342 dma_4v_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, struct dma_attrs *attrs) argument
485 dma_4v_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, struct dma_attrs *attrs) argument
/arch/ia64/sn/pci/
H A Dpci_dma.c337 int nelems, enum dma_data_direction dir)
343 int nelems, enum dma_data_direction dir)
336 sn_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument
342 sn_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) argument
/arch/mips/cavium-octeon/
H A Ddma-octeon.c153 struct scatterlist *sg, int nelems, enum dma_data_direction direction)
155 swiotlb_sync_sg_for_device(dev, sg, nelems, direction);
152 octeon_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction direction) argument
/arch/ia64/kernel/
H A Dparavirt_patch.c239 unsigned long nelems,
249 for (i = 0; i < nelems; i++) {
237 __paravirt_patch_apply_bundle(void *sbundle, void *ebundle, unsigned long type, const struct paravirt_patch_bundle_elem *elems, unsigned long nelems, const struct paravirt_patch_bundle_elem **found) argument
H A Dparavirt.c867 const unsigned long nelems = sizeof(ia64_native_patch_bundle_elems) / local
872 nelems, NULL);
/arch/ia64/xen/
H A Dxen_pv_ops.c1089 const unsigned long nelems = sizeof(xen_patch_bundle_elems) / local
1095 xen_patch_bundle_elems, nelems,

Completed in 737 milliseconds