Home
last modified time | relevance | path

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

12

/openbmc/linux/kernel/dma/
H A Ddebug.h25 int nelems, int dir);
52 int nelems, int direction);
56 int nelems, int direction);
78 int nelems, int dir) in debug_dma_unmap_sg() argument
120 int nelems, int direction) in debug_dma_sync_sg_for_cpu() argument
126 int nelems, int direction) in debug_dma_sync_sg_for_device() argument
H A Dmapping.c361 int nelems, enum dma_data_direction dir) in dma_sync_sg_for_cpu() argument
367 dma_direct_sync_sg_for_cpu(dev, sg, nelems, dir); in dma_sync_sg_for_cpu()
369 ops->sync_sg_for_cpu(dev, sg, nelems, dir); in dma_sync_sg_for_cpu()
370 debug_dma_sync_sg_for_cpu(dev, sg, nelems, dir); in dma_sync_sg_for_cpu()
375 int nelems, enum dma_data_direction dir) in dma_sync_sg_for_device() argument
381 dma_direct_sync_sg_for_device(dev, sg, nelems, dir); in dma_sync_sg_for_device()
383 ops->sync_sg_for_device(dev, sg, nelems, dir); in dma_sync_sg_for_device()
384 debug_dma_sync_sg_for_device(dev, sg, nelems, dir); in dma_sync_sg_for_device()
H A Ddebug.c1363 int nelems, int dir) in debug_dma_unmap_sg() argument
1371 for_each_sg(sglist, s, nelems, i) { in debug_dma_unmap_sg()
1381 .sg_call_ents = nelems, in debug_dma_unmap_sg()
1536 int nelems, int direction) in debug_dma_sync_sg_for_cpu() argument
1544 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_cpu()
1554 .sg_call_ents = nelems, in debug_dma_sync_sg_for_cpu()
1568 int nelems, int direction) in debug_dma_sync_sg_for_device() argument
1576 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_device()
1586 .sg_call_ents = nelems, in debug_dma_sync_sg_for_device()
H A Ddummy.c22 int nelems, enum dma_data_direction dir, in dma_dummy_map_sg() argument
/openbmc/linux/drivers/xen/
H A Dswiotlb-xen.c321 xen_swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in xen_swiotlb_unmap_sg() argument
329 for_each_sg(sgl, sg, nelems, i) in xen_swiotlb_unmap_sg()
336 xen_swiotlb_map_sg(struct device *dev, struct scatterlist *sgl, int nelems, in xen_swiotlb_map_sg() argument
344 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_map_sg()
352 return nelems; in xen_swiotlb_map_sg()
361 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_cpu() argument
366 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_sync_sg_for_cpu()
374 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_device() argument
379 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_sync_sg_for_device()
/openbmc/linux/arch/powerpc/kernel/
H A Ddma-iommu.c119 int nelems, enum dma_data_direction direction, in dma_iommu_map_sg() argument
122 return ppc_iommu_map_sg(dev, get_iommu_table_base(dev), sglist, nelems, in dma_iommu_map_sg()
127 int nelems, enum dma_data_direction direction, in dma_iommu_unmap_sg() argument
130 ppc_iommu_unmap_sg(get_iommu_table_base(dev), sglist, nelems, in dma_iommu_unmap_sg()
H A Diommu.c471 struct scatterlist *sglist, int nelems, in ppc_iommu_map_sg() argument
484 if ((nelems == 0) || !tbl) in ppc_iommu_map_sg()
489 incount = nelems; in ppc_iommu_map_sg()
495 DBG("sg mapping %d elements:\n", nelems); in ppc_iommu_map_sg()
498 for_each_sg(sglist, s, nelems, i) { in ppc_iommu_map_sg()
596 for_each_sg(sglist, s, nelems, i) { in ppc_iommu_map_sg()
614 int nelems, enum dma_data_direction direction, in ppc_iommu_unmap_sg() argument
625 while (nelems--) { in ppc_iommu_unmap_sg()
/openbmc/linux/arch/sparc/kernel/
H A 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()
477 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg()
555 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg()
606 int nelems, enum dma_data_direction direction, in dma_4u_unmap_sg() argument
624 while (nelems--) { in dma_4u_unmap_sg()
696 struct scatterlist *sglist, int nelems, in dma_4u_sync_sg_for_cpu() argument
728 for_each_sg(sglist, sg, nelems, i) { in dma_4u_sync_sg_for_cpu()
H A Dpci_sun4v.c470 int nelems, enum dma_data_direction direction, in dma_4v_map_sg() argument
489 if (nelems == 0 || !iommu) in dma_4v_map_sg()
502 incount = nelems; in dma_4v_map_sg()
523 for_each_sg(sglist, s, nelems, i) { in dma_4v_map_sg()
604 for_each_sg(sglist, s, nelems, i) { in dma_4v_map_sg()
625 int nelems, enum dma_data_direction direction, in dma_4v_unmap_sg() argument
646 while (nelems--) { in dma_4v_unmap_sg()
/openbmc/linux/arch/x86/kernel/
H A Damd_gart_64.c323 int nelems, struct scatterlist *sout, in __dma_map_cont() argument
334 for_each_sg(start, s, nelems, i) { in __dma_map_cont()
361 dma_map_cont(struct device *dev, struct scatterlist *start, int nelems, in dma_map_cont() argument
365 BUG_ON(nelems != 1); in dma_map_cont()
370 return __dma_map_cont(dev, start, nelems, sout, pages); in dma_map_cont()
/openbmc/linux/include/linux/
H A Drhashtable.h186 return atomic_read(&ht->nelems) > (tbl->size / 4 * 3) && in rht_grow_above_75()
199 return atomic_read(&ht->nelems) < (tbl->size * 3 / 10) && in rht_shrink_below_30()
211 return atomic_read(&ht->nelems) > tbl->size && in rht_grow_above_100()
223 return atomic_read(&ht->nelems) >= ht->max_elems; in rht_grow_above_max()
796 atomic_inc(&ht->nelems); in __rhashtable_insert_fast()
1066 atomic_dec(&ht->nelems); in __rhashtable_remove_fast_one()
H A Ddma-mapping.h125 int nelems, enum dma_data_direction dir);
127 int nelems, enum dma_data_direction dir);
206 struct scatterlist *sg, int nelems, enum dma_data_direction dir) in dma_sync_sg_for_cpu() argument
210 struct scatterlist *sg, int nelems, enum dma_data_direction dir) in dma_sync_sg_for_device() argument
H A Drhashtable-types.h90 atomic_t nelems; member
/openbmc/linux/arch/powerpc/include/asm/
H A Diommu.h252 struct scatterlist *sglist, int nelems,
258 int nelems,
/openbmc/linux/lib/
H A Drhashtable.c393 unsigned int nelems = atomic_read(&ht->nelems); in rhashtable_shrink() local
396 if (nelems) in rhashtable_shrink()
397 size = roundup_pow_of_two(nelems * 3 / 2); in rhashtable_shrink()
583 atomic_inc(&ht->nelems); in rhashtable_insert_one()
1071 atomic_set(&ht->nelems, 0); in rhashtable_init()
/openbmc/linux/include/uapi/linux/
H A Dbtf.h114 __u32 nelems; member
/openbmc/linux/tools/include/uapi/linux/
H A Dbtf.h114 __u32 nelems; member
/openbmc/linux/tools/bpf/bpftool/
H A Dbtf_dumper.c217 if (!arr->nelems) in is_str_array()
234 end_s = s + arr->nelems; in is_str_array()
266 for (i = 0; i < arr->nelems; i++) { in btf_dumper_array()
656 BTF_PRINT_ARG("[%d]", array->nelems); in __btf_dumper_type_only()
/openbmc/linux/tools/lib/bpf/
H A Dbtf.c378 a->nelems = bswap_32(a->nelems); in btf_bswap_type_rest()
608 __u32 nelems = 1; in btf__resolve_size() local
638 if (nelems && array->nelems > UINT32_MAX / nelems) in btf__resolve_size()
640 nelems *= array->nelems; in btf__resolve_size()
653 if (nelems && size > UINT32_MAX / nelems) in btf__resolve_size()
656 return nelems * size; in btf__resolve_size()
1924 a->nelems = nr_elems; in btf__add_array()
3559 h = hash_combine(h, info->nelems); in btf_hash_array()
3581 info1->nelems == info2->nelems; in btf_equal_array()
3594 return btf_array(t1)->nelems == btf_array(t2)->nelems; in btf_compat_array()
H A Drelo_core.c78 if (!acc->name || arr->nelems > 0) in is_flex_arr()
374 if (!flex && access_idx >= a->nelems) in bpf_core_parse_spec()
650 if (!flex && local_acc->idx >= a->nelems) in bpf_core_spec_match()
1650 if (local_array->nelems != targ_array->nelems) in __bpf_core_types_match()
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dvio.c552 int nelems, enum dma_data_direction direction, in vio_dma_iommu_map_sg() argument
561 for_each_sg(sglist, sgl, nelems, count) in vio_dma_iommu_map_sg()
567 ret = ppc_iommu_map_sg(dev, tbl, sglist, nelems, dma_get_mask(dev), in vio_dma_iommu_map_sg()
586 struct scatterlist *sglist, int nelems, in vio_dma_iommu_unmap_sg() argument
596 for_each_sg(sglist, sgl, nelems, count) in vio_dma_iommu_unmap_sg()
599 ppc_iommu_unmap_sg(tbl, sglist, nelems, direction, attrs); in vio_dma_iommu_unmap_sg()
/openbmc/linux/drivers/iommu/
H A Ddma-iommu.c998 struct scatterlist *sgl, int nelems, in iommu_dma_sync_sg_for_cpu() argument
1005 for_each_sg(sgl, sg, nelems, i) in iommu_dma_sync_sg_for_cpu()
1009 for_each_sg(sgl, sg, nelems, i) in iommu_dma_sync_sg_for_cpu()
1014 struct scatterlist *sgl, int nelems, in iommu_dma_sync_sg_for_device() argument
1021 for_each_sg(sgl, sg, nelems, i) in iommu_dma_sync_sg_for_device()
1026 for_each_sg(sgl, sg, nelems, i) in iommu_dma_sync_sg_for_device()
/openbmc/linux/net/netfilter/
H A Dnft_dynset.c55 if (!atomic_add_unless(&set->nelems, 1, set->size)) in nft_dynset_new()
76 atomic_dec(&set->nelems); in nft_dynset_new()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dbtf_helpers.c121 arr->type, arr->index_type, arr->nelems); in fprintf_btf_type_raw()
/openbmc/linux/kernel/bpf/
H A Dbtf.c1881 u32 i, size, nelems = 1, id = 0; in __btf_resolve_size() local
1913 if (nelems && array->nelems > U32_MAX / nelems) in __btf_resolve_size()
1915 nelems *= array->nelems; in __btf_resolve_size()
1928 if (nelems && size > U32_MAX / nelems) in __btf_resolve_size()
1931 *type_size = nelems * size; in __btf_resolve_size()
1933 *total_nelems = nelems; in __btf_resolve_size()
2943 if (array->nelems && elem_size > U32_MAX / array->nelems) { in btf_array_resolve()
2949 env_stack_pop_resolved(env, elem_type_id, elem_size * array->nelems); in btf_array_resolve()
2960 array->type, array->index_type, array->nelems); in btf_array_log()
2999 for (i = 0; i < array->nelems; i++) { in __btf_array_show()
[all …]

12