Home
last modified time | relevance | path

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

/linux-4.1.27/include/linux/
Ddma-debug.h51 int nelems, int dir);
80 int nelems, int direction);
84 int nelems, int direction);
130 int nelems, int dir) in debug_dma_unmap_sg() argument
174 int nelems, int direction) in debug_dma_sync_sg_for_cpu() argument
180 int nelems, int direction) in debug_dma_sync_sg_for_device() argument
Dswiotlb.h82 swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems,
87 int nelems, enum dma_data_direction dir,
96 int nelems, enum dma_data_direction dir);
104 int nelems, enum dma_data_direction dir);
Drhashtable.h145 atomic_t nelems; member
263 return atomic_read(&ht->nelems) > (tbl->size / 4 * 3) && in rht_grow_above_75()
276 return atomic_read(&ht->nelems) < (tbl->size * 3 / 10) && in rht_shrink_below_30()
288 return atomic_read(&ht->nelems) > tbl->size && in rht_grow_above_100()
301 atomic_read(&ht->nelems) >= ht->p.insecure_max_entries; in rht_grow_above_max()
642 atomic_inc(&ht->nelems); in __rhashtable_insert_fast()
811 atomic_dec(&ht->nelems); in rhashtable_remove_fast()
/linux-4.1.27/include/xen/
Dswiotlb-xen.h29 int nelems, enum dma_data_direction dir,
34 int nelems, enum dma_data_direction dir,
43 int nelems, enum dma_data_direction dir);
51 int nelems, enum dma_data_direction dir);
/linux-4.1.27/arch/arm64/mm/
Ddma-mapping.c230 int nelems, enum dma_data_direction dir, in __swiotlb_map_sg_attrs() argument
236 ret = swiotlb_map_sg_attrs(dev, sgl, nelems, dir, attrs); in __swiotlb_map_sg_attrs()
246 struct scatterlist *sgl, int nelems, in __swiotlb_unmap_sg_attrs() argument
254 for_each_sg(sgl, sg, nelems, i) in __swiotlb_unmap_sg_attrs()
257 swiotlb_unmap_sg_attrs(dev, sgl, nelems, dir, attrs); in __swiotlb_unmap_sg_attrs()
279 struct scatterlist *sgl, int nelems, in __swiotlb_sync_sg_for_cpu() argument
286 for_each_sg(sgl, sg, nelems, i) in __swiotlb_sync_sg_for_cpu()
289 swiotlb_sync_sg_for_cpu(dev, sgl, nelems, dir); in __swiotlb_sync_sg_for_cpu()
293 struct scatterlist *sgl, int nelems, in __swiotlb_sync_sg_for_device() argument
299 swiotlb_sync_sg_for_device(dev, sgl, nelems, dir); in __swiotlb_sync_sg_for_device()
[all …]
/linux-4.1.27/lib/
Dswiotlb.c872 swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems, in swiotlb_map_sg_attrs() argument
880 for_each_sg(sgl, sg, nelems, i) { in swiotlb_map_sg_attrs()
902 return nelems; in swiotlb_map_sg_attrs()
907 swiotlb_map_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in swiotlb_map_sg() argument
910 return swiotlb_map_sg_attrs(hwdev, sgl, nelems, dir, NULL); in swiotlb_map_sg()
920 int nelems, enum dma_data_direction dir, struct dma_attrs *attrs) in swiotlb_unmap_sg_attrs() argument
927 for_each_sg(sgl, sg, nelems, i) in swiotlb_unmap_sg_attrs()
934 swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in swiotlb_unmap_sg() argument
937 return swiotlb_unmap_sg_attrs(hwdev, sgl, nelems, dir, NULL); in swiotlb_unmap_sg()
950 int nelems, enum dma_data_direction dir, in swiotlb_sync_sg() argument
[all …]
Dtest_rhashtable.c114 total, atomic_read(&ht->nelems), TEST_ENTRIES); in test_bucket_stats()
116 if (total != atomic_read(&ht->nelems) || total != TEST_ENTRIES) in test_bucket_stats()
Ddma-debug.c1409 int nelems, int dir) in debug_dma_unmap_sg() argument
1417 for_each_sg(sglist, s, nelems, i) { in debug_dma_unmap_sg()
1427 .sg_call_ents = nelems, in debug_dma_unmap_sg()
1570 int nelems, int direction) in debug_dma_sync_sg_for_cpu() argument
1578 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_cpu()
1588 .sg_call_ents = nelems, in debug_dma_sync_sg_for_cpu()
1603 int nelems, int direction) in debug_dma_sync_sg_for_device() argument
1611 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_device()
1621 .sg_call_ents = nelems, in debug_dma_sync_sg_for_device()
Drhashtable.c335 size = roundup_pow_of_two(atomic_read(&ht->nelems) * 3 / 2); in rhashtable_shrink()
468 atomic_inc(&ht->nelems); in rhashtable_insert_slow()
788 atomic_set(&ht->nelems, 0); in rhashtable_init()
/linux-4.1.27/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 …]
/linux-4.1.27/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 (sgl = sglist; count < nelems; count++, sgl++) 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 (sgl = sglist; count < nelems; count++, sgl++) in vio_dma_iommu_unmap_sg()
603 dma_iommu_ops.unmap_sg(dev, sglist, nelems, direction, attrs); in vio_dma_iommu_unmap_sg()
/linux-4.1.27/drivers/xen/
Dswiotlb-xen.c547 int nelems, enum dma_data_direction dir, in xen_swiotlb_map_sg_attrs() argument
555 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_map_sg_attrs()
598 return nelems; in xen_swiotlb_map_sg_attrs()
608 int nelems, enum dma_data_direction dir, in xen_swiotlb_unmap_sg_attrs() argument
616 for_each_sg(sgl, sg, nelems, i) in xen_swiotlb_unmap_sg_attrs()
631 int nelems, enum dma_data_direction dir, in xen_swiotlb_sync_sg() argument
637 for_each_sg(sgl, sg, nelems, i) in xen_swiotlb_sync_sg()
644 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_cpu() argument
646 xen_swiotlb_sync_sg(hwdev, sg, nelems, dir, SYNC_FOR_CPU); in xen_swiotlb_sync_sg_for_cpu()
652 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_device() argument
[all …]
/linux-4.1.27/include/asm-generic/
Dpci-dma-compat.h94 int nelems, int direction) in pci_dma_sync_sg_for_cpu() argument
96 …dma_sync_sg_for_cpu(hwdev == NULL ? NULL : &hwdev->dev, sg, nelems, (enum dma_data_direction)direc… in pci_dma_sync_sg_for_cpu()
101 int nelems, int direction) in pci_dma_sync_sg_for_device() argument
103 …dma_sync_sg_for_device(hwdev == NULL ? NULL : &hwdev->dev, sg, nelems, (enum dma_data_direction)di… in pci_dma_sync_sg_for_device()
Ddma-mapping-common.h156 int nelems, enum dma_data_direction dir) in dma_sync_sg_for_cpu() argument
162 ops->sync_sg_for_cpu(dev, sg, nelems, dir); in dma_sync_sg_for_cpu()
163 debug_dma_sync_sg_for_cpu(dev, sg, nelems, dir); in dma_sync_sg_for_cpu()
168 int nelems, enum dma_data_direction dir) in dma_sync_sg_for_device() argument
174 ops->sync_sg_for_device(dev, sg, nelems, dir); in dma_sync_sg_for_device()
175 debug_dma_sync_sg_for_device(dev, sg, nelems, dir); in dma_sync_sg_for_device()
Ddma-mapping-broken.h72 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems,
/linux-4.1.27/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…
158 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
162 hppa_dma_ops->dma_sync_sg_for_cpu(dev, sg, nelems, direction); in dma_sync_sg_for_cpu()
166 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
170 hppa_dma_ops->dma_sync_sg_for_device(dev, sg, nelems, direction); in dma_sync_sg_for_device()
/linux-4.1.27/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()
/linux-4.1.27/arch/xtensa/include/asm/
Ddma-mapping.h127 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
131 for (i = 0; i < nelems; i++, sg++) in dma_sync_sg_for_cpu()
136 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
140 for (i = 0; i < nelems; i++, sg++) in dma_sync_sg_for_device()
/linux-4.1.27/arch/metag/include/asm/
Ddma-mapping.h137 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
141 for (i = 0; i < nelems; i++, sg++) in dma_sync_sg_for_cpu()
146 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
150 for (i = 0; i < nelems; i++, sg++) in dma_sync_sg_for_device()
/linux-4.1.27/arch/arc/include/asm/
Ddma-mapping.h181 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_cpu() argument
186 for (i = 0; i < nelems; i++, sg++) in dma_sync_sg_for_cpu()
191 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, in dma_sync_sg_for_device() argument
196 for (i = 0; i < nelems; i++, sg++) in dma_sync_sg_for_device()
/linux-4.1.27/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()
/linux-4.1.27/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()
/linux-4.1.27/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()
/linux-4.1.27/arch/mips/mm/
Ddma-default.c327 struct scatterlist *sg, int nelems, enum dma_data_direction direction) in mips_dma_sync_sg_for_cpu() argument
332 for (i = 0; i < nelems; i++, sg++) in mips_dma_sync_sg_for_cpu()
339 struct scatterlist *sg, int nelems, enum dma_data_direction direction) in mips_dma_sync_sg_for_device() argument
344 for (i = 0; i < nelems; i++, sg++) in mips_dma_sync_sg_for_device()
/linux-4.1.27/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
/linux-4.1.27/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
/linux-4.1.27/arch/nios2/include/asm/
Ddma-mapping.h97 int nelems, enum dma_data_direction direction);
99 int nelems, enum dma_data_direction direction);
/linux-4.1.27/arch/powerpc/include/asm/
Diommu.h151 struct scatterlist *sglist, int nelems,
157 int nelems,
/linux-4.1.27/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
/linux-4.1.27/drivers/block/
Dcciss_scsi.c115 int nelems; member
189 if (stk->top >= stk->nelems) { in scsi_cmd_free()
205 stk->nelems = cciss_tape_cmds + 2; in scsi_cmd_stack_setup()
207 h->chainsize, stk->nelems); in scsi_cmd_stack_setup()
211 size = sizeof(struct cciss_scsi_cmd_stack_elem_t) * stk->nelems; in scsi_cmd_stack_setup()
220 cciss_free_sg_chain_blocks(sa->cmd_sg_list, stk->nelems); in scsi_cmd_stack_setup()
224 stk->elem = kmalloc(sizeof(stk->elem[0]) * stk->nelems, GFP_KERNEL); in scsi_cmd_stack_setup()
230 for (i = 0; i < stk->nelems; i++) { in scsi_cmd_stack_setup()
236 stk->top = stk->nelems-1; in scsi_cmd_stack_setup()
249 if (stk->top != stk->nelems-1) { in scsi_cmd_stack_free()
[all …]
/linux-4.1.27/arch/x86/kernel/
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-nommu.c85 struct scatterlist *sg, int nelems, in nommu_sync_sg_for_device() argument
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()
/linux-4.1.27/arch/ia64/include/asm/
Dparavirt_patch.h113 unsigned long nelems,
/linux-4.1.27/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()
/linux-4.1.27/net/netfilter/
Dnft_dynset.c38 if (set->size && !atomic_add_unless(&set->nelems, 1, set->size)) in nft_dynset_new()
48 atomic_dec(&set->nelems); in nft_dynset_new()
Dnft_hash.c275 atomic_dec(&set->nelems); in nft_hash_gc()
Dnf_tables_api.c3489 !atomic_add_unless(&set->nelems, 1, set->size + set->ndeact)) in nf_tables_newsetelem()
3494 atomic_dec(&set->nelems); in nf_tables_newsetelem()
3912 atomic_dec(&te->set->nelems); in nf_tables_commit()
4020 atomic_dec(&te->set->nelems); in nf_tables_abort()
/linux-4.1.27/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
/linux-4.1.27/arch/ia64/kernel/
Dparavirt_patch.c239 unsigned long nelems, in __paravirt_patch_apply_bundle() argument
249 for (i = 0; i < nelems; i++) { in __paravirt_patch_apply_bundle()
Dparavirt.c867 const unsigned long nelems = sizeof(ia64_native_patch_bundle_elems) / in ia64_native_patch_bundle() local
872 nelems, NULL); in ia64_native_patch_bundle()
/linux-4.1.27/drivers/iommu/
Dintel-iommu.c3313 int nelems, enum dma_data_direction dir, in intel_unmap_sg() argument
3320 struct scatterlist *sglist, int nelems, int dir) in intel_nontranslate_map_sg() argument
3325 for_each_sg(sglist, sg, nelems, i) { in intel_nontranslate_map_sg()
3330 return nelems; in intel_nontranslate_map_sg()
3333 static int intel_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, in intel_map_sg() argument
3348 return intel_nontranslate_map_sg(dev, sglist, nelems, dir); in intel_map_sg()
3356 for_each_sg(sglist, sg, nelems, i) in intel_map_sg()
3392 return nelems; in intel_map_sg()
Damd_iommu.c2828 int nelems, enum dma_data_direction dir, in map_sg() argument
2849 for_each_sg(sglist, s, nelems, i) { in map_sg()
2887 int nelems, enum dma_data_direction dir, in unmap_sg() argument
2903 for_each_sg(sglist, s, nelems, i) { in unmap_sg()
/linux-4.1.27/include/net/netfilter/
Dnf_tables.h309 atomic_t nelems; member
/linux-4.1.27/Documentation/
DDMA-API.txt352 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems,
355 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems,
/linux-4.1.27/net/netlink/
Daf_netlink.c1105 unlikely(atomic_read(&table->hash.nelems) >= UINT_MAX)) in netlink_insert()