Home
last modified time | relevance | path

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

/linux-4.4.14/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 …]
/linux-4.4.14/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.h146 atomic_t nelems; member
264 return atomic_read(&ht->nelems) > (tbl->size / 4 * 3) && in rht_grow_above_75()
277 return atomic_read(&ht->nelems) < (tbl->size * 3 / 10) && in rht_shrink_below_30()
289 return atomic_read(&ht->nelems) > tbl->size && in rht_grow_above_100()
302 atomic_read(&ht->nelems) >= ht->p.insecure_max_entries; in rht_grow_above_max()
646 atomic_inc(&ht->nelems); in __rhashtable_insert_fast()
815 atomic_dec(&ht->nelems); in rhashtable_remove_fast()
/linux-4.4.14/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.4.14/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.4.14/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()
/linux-4.4.14/drivers/xen/
Dswiotlb-xen.c540 int nelems, enum dma_data_direction dir, in xen_swiotlb_map_sg_attrs() argument
548 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_map_sg_attrs()
591 return nelems; in xen_swiotlb_map_sg_attrs()
601 int nelems, enum dma_data_direction dir, in xen_swiotlb_unmap_sg_attrs() argument
609 for_each_sg(sgl, sg, nelems, i) in xen_swiotlb_unmap_sg_attrs()
624 int nelems, enum dma_data_direction dir, in xen_swiotlb_sync_sg() argument
630 for_each_sg(sgl, sg, nelems, i) in xen_swiotlb_sync_sg()
637 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_cpu() argument
639 xen_swiotlb_sync_sg(hwdev, sg, nelems, dir, SYNC_FOR_CPU); in xen_swiotlb_sync_sg_for_cpu()
645 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_device() argument
[all …]
/linux-4.4.14/lib/
Dswiotlb.c879 swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems, in swiotlb_map_sg_attrs() argument
887 for_each_sg(sgl, sg, nelems, i) { in swiotlb_map_sg_attrs()
909 return nelems; in swiotlb_map_sg_attrs()
914 swiotlb_map_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in swiotlb_map_sg() argument
917 return swiotlb_map_sg_attrs(hwdev, sgl, nelems, dir, NULL); in swiotlb_map_sg()
927 int nelems, enum dma_data_direction dir, struct dma_attrs *attrs) in swiotlb_unmap_sg_attrs() argument
934 for_each_sg(sgl, sg, nelems, i) in swiotlb_unmap_sg_attrs()
941 swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in swiotlb_unmap_sg() argument
944 return swiotlb_unmap_sg_attrs(hwdev, sgl, nelems, dir, NULL); in swiotlb_unmap_sg()
957 int nelems, enum dma_data_direction dir, in swiotlb_sync_sg() argument
[all …]
Ddma-debug.c1417 int nelems, int dir) in debug_dma_unmap_sg() argument
1425 for_each_sg(sglist, s, nelems, i) { in debug_dma_unmap_sg()
1435 .sg_call_ents = nelems, in debug_dma_unmap_sg()
1578 int nelems, int direction) in debug_dma_sync_sg_for_cpu() argument
1586 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_cpu()
1596 .sg_call_ents = nelems, in debug_dma_sync_sg_for_cpu()
1611 int nelems, int direction) in debug_dma_sync_sg_for_device() argument
1619 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_device()
1629 .sg_call_ents = nelems, in debug_dma_sync_sg_for_device()
Dtest_rhashtable.c150 total, atomic_read(&ht->nelems), entries, chain_len); in test_bucket_stats()
152 if (total != atomic_read(&ht->nelems) || total != entries) in test_bucket_stats()
Drhashtable.c332 size = roundup_pow_of_two(atomic_read(&ht->nelems) * 3 / 2); in rhashtable_shrink()
475 atomic_inc(&ht->nelems); in rhashtable_insert_slow()
796 atomic_set(&ht->nelems, 0); in rhashtable_init()
/linux-4.4.14/include/asm-generic/
Dpci-dma-compat.h88 int nelems, int direction) in pci_dma_sync_sg_for_cpu() argument
90 …dma_sync_sg_for_cpu(hwdev == NULL ? NULL : &hwdev->dev, sg, nelems, (enum dma_data_direction)direc… in pci_dma_sync_sg_for_cpu()
95 int nelems, int direction) in pci_dma_sync_sg_for_device() argument
97 …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.h157 int nelems, enum dma_data_direction dir) in dma_sync_sg_for_cpu() argument
163 ops->sync_sg_for_cpu(dev, sg, nelems, dir); in dma_sync_sg_for_cpu()
164 debug_dma_sync_sg_for_cpu(dev, sg, nelems, dir); in dma_sync_sg_for_cpu()
169 int nelems, enum dma_data_direction dir) in dma_sync_sg_for_device() argument
175 ops->sync_sg_for_device(dev, sg, nelems, dir); in dma_sync_sg_for_device()
176 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.4.14/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.4.14/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.4.14/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()
/linux-4.4.14/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()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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()
/linux-4.4.14/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.4.14/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.4.14/arch/nios2/include/asm/
Ddma-mapping.h97 int nelems, enum dma_data_direction direction);
99 int nelems, enum dma_data_direction direction);
/linux-4.4.14/drivers/block/
Dcciss_scsi.c114 int nelems; member
188 if (stk->top >= stk->nelems) { in scsi_cmd_free()
204 stk->nelems = cciss_tape_cmds + 2; in scsi_cmd_stack_setup()
206 h->chainsize, stk->nelems); in scsi_cmd_stack_setup()
210 size = sizeof(struct cciss_scsi_cmd_stack_elem_t) * stk->nelems; in scsi_cmd_stack_setup()
219 cciss_free_sg_chain_blocks(sa->cmd_sg_list, stk->nelems); in scsi_cmd_stack_setup()
223 stk->elem = kmalloc(sizeof(stk->elem[0]) * stk->nelems, GFP_KERNEL); in scsi_cmd_stack_setup()
229 for (i = 0; i < stk->nelems; i++) { in scsi_cmd_stack_setup()
235 stk->top = stk->nelems-1; in scsi_cmd_stack_setup()
248 if (stk->top != stk->nelems-1) { in scsi_cmd_stack_free()
[all …]
/linux-4.4.14/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.4.14/arch/powerpc/include/asm/
Diommu.h248 struct scatterlist *sglist, int nelems,
254 int nelems,
/linux-4.4.14/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.4.14/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.c3557 !atomic_add_unless(&set->nelems, 1, set->size + set->ndeact)) in nf_tables_newsetelem()
3562 atomic_dec(&set->nelems); in nf_tables_newsetelem()
3980 atomic_dec(&te->set->nelems); in nf_tables_commit()
4089 atomic_dec(&te->set->nelems); in nf_tables_abort()
/linux-4.4.14/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.4.14/drivers/iommu/
Dintel-iommu.c3693 int nelems, enum dma_data_direction dir, in intel_unmap_sg() argument
3700 struct scatterlist *sglist, int nelems, int dir) in intel_nontranslate_map_sg() argument
3705 for_each_sg(sglist, sg, nelems, i) { in intel_nontranslate_map_sg()
3710 return nelems; in intel_nontranslate_map_sg()
3713 static int intel_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, in intel_map_sg() argument
3728 return intel_nontranslate_map_sg(dev, sglist, nelems, dir); in intel_map_sg()
3736 for_each_sg(sglist, sg, nelems, i) in intel_map_sg()
3772 return nelems; in intel_map_sg()
Damd_iommu.c2621 int nelems, enum dma_data_direction dir, in map_sg() argument
2642 for_each_sg(sglist, s, nelems, i) { in map_sg()
2680 int nelems, enum dma_data_direction dir, in unmap_sg() argument
2696 for_each_sg(sglist, s, nelems, i) { in unmap_sg()
/linux-4.4.14/include/net/netfilter/
Dnf_tables.h310 atomic_t nelems; member
/linux-4.4.14/net/netlink/
Daf_netlink.c1119 unlikely(atomic_read(&table->hash.nelems) >= UINT_MAX)) in netlink_insert()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dchip.c7024 static void get_vlarb_preempt(struct hfi1_devdata *dd, u32 nelems, in get_vlarb_preempt() argument
7029 for (i = 0; i < nelems; i++, vl++) { in get_vlarb_preempt()
/linux-4.4.14/drivers/scsi/
Dhpsa.c577 static int board_id_in_array(u32 a[], int nelems, u32 board_id) in board_id_in_array() argument
581 for (i = 0; i < nelems; i++) in board_id_in_array()