Home
last modified time | relevance | path

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

12

/linux/kernel/dma/
H A Ddebug.h24 int nelems, int dir);
43 int nelems, int direction);
47 int nelems, int direction);
75 int nelems, int dir) in debug_dma_unmap_sg() argument
104 int nelems, int direction) in debug_dma_sync_sg_for_cpu() argument
110 int nelems, int direction) in debug_dma_sync_sg_for_device() argument
H A Ddummy.c30 int nelems, enum dma_data_direction dir, in dma_dummy_map_sg() argument
37 int nelems, enum dma_data_direction dir, in dma_dummy_unmap_sg() argument
H A Dmapping.c404 int nelems, enum dma_data_direction dir) in __dma_sync_sg_for_cpu() argument
410 dma_direct_sync_sg_for_cpu(dev, sg, nelems, dir); in __dma_sync_sg_for_cpu()
412 iommu_dma_sync_sg_for_cpu(dev, sg, nelems, dir); in __dma_sync_sg_for_cpu()
414 ops->sync_sg_for_cpu(dev, sg, nelems, dir); in __dma_sync_sg_for_cpu()
415 trace_dma_sync_sg_for_cpu(dev, sg, nelems, dir); in __dma_sync_sg_for_cpu()
416 debug_dma_sync_sg_for_cpu(dev, sg, nelems, dir); in __dma_sync_sg_for_cpu()
421 int nelems, enum dma_data_direction dir) in __dma_sync_sg_for_device() argument
427 dma_direct_sync_sg_for_device(dev, sg, nelems, dir); in __dma_sync_sg_for_device()
429 iommu_dma_sync_sg_for_device(dev, sg, nelems, dir); in __dma_sync_sg_for_device()
431 ops->sync_sg_for_device(dev, sg, nelems, dir); in __dma_sync_sg_for_device()
[all …]
H A Ddebug.c1373 int nelems, int dir) in debug_dma_unmap_sg() argument
1381 for_each_sg(sglist, s, nelems, i) { in debug_dma_unmap_sg()
1390 .sg_call_ents = nelems, in debug_dma_unmap_sg()
1506 int nelems, int direction) in debug_dma_sync_sg_for_cpu() argument
1514 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_cpu()
1523 .sg_call_ents = nelems, in debug_dma_sync_sg_for_cpu()
1537 int nelems, int direction) in debug_dma_sync_sg_for_device() argument
1545 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_device()
1554 .sg_call_ents = nelems, in debug_dma_sync_sg_for_device()
/linux/drivers/xen/
H A Dswiotlb-xen.c346 xen_swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in xen_swiotlb_unmap_sg() argument
354 for_each_sg(sgl, sg, nelems, i) in xen_swiotlb_unmap_sg()
361 xen_swiotlb_map_sg(struct device *dev, struct scatterlist *sgl, int nelems, in xen_swiotlb_map_sg() argument
369 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_map_sg()
377 return nelems; in xen_swiotlb_map_sg()
386 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_cpu() argument
391 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_sync_sg_for_cpu()
399 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_device() argument
404 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_sync_sg_for_device()
/linux/arch/sparc/kernel/
H A Diommu.c441 int nelems, enum dma_data_direction direction, in dma_4u_map_sg() argument
458 if (nelems == 0 || !iommu) in dma_4u_map_sg()
476 incount = nelems; in dma_4u_map_sg()
485 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg()
563 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg()
614 int nelems, enum dma_data_direction direction, in dma_4u_unmap_sg() argument
632 while (nelems--) { in dma_4u_unmap_sg()
704 struct scatterlist *sglist, int nelems, in dma_4u_sync_sg_for_cpu() argument
736 for_each_sg(sglist, sg, nelems, i) { in dma_4u_sync_sg_for_cpu()
H A Dpci_sun4v.c477 int nelems, enum dma_data_direction direction, in dma_4v_map_sg() argument
496 if (nelems == 0 || !iommu) in dma_4v_map_sg()
509 incount = nelems; in dma_4v_map_sg()
530 for_each_sg(sglist, s, nelems, i) { in dma_4v_map_sg()
611 for_each_sg(sglist, s, nelems, i) { in dma_4v_map_sg()
632 int nelems, enum dma_data_direction direction, in dma_4v_unmap_sg() argument
653 while (nelems--) { in dma_4v_unmap_sg()
/linux/arch/powerpc/kvm/
H A Dguest-state-buffer.c45 gsb->hdr->nelems = cpu_to_be32(0); in kvmppc_gsb_new()
78 u32 nelems = kvmppc_gsb_nelems(gsb); in kvmppc_gsb_put() local
84 kvmppc_gsb_header(gsb)->nelems = cpu_to_be32(nelems + 1); in kvmppc_gsb_put()
/linux/arch/powerpc/kernel/
H A Diommu.c473 struct scatterlist *sglist, int nelems, in ppc_iommu_map_sg() argument
486 if ((nelems == 0) || !tbl) in ppc_iommu_map_sg()
491 incount = nelems; in ppc_iommu_map_sg()
497 DBG("sg mapping %d elements:\n", nelems); in ppc_iommu_map_sg()
500 for_each_sg(sglist, s, nelems, i) { in ppc_iommu_map_sg()
598 for_each_sg(sglist, s, nelems, i) { in ppc_iommu_map_sg()
616 int nelems, enum dma_data_direction direction, in ppc_iommu_unmap_sg() argument
627 while (nelems--) { in ppc_iommu_unmap_sg()
/linux/arch/x86/kernel/
H A Damd_gart_64.c324 int nelems, struct scatterlist *sout, in __dma_map_cont() argument
335 for_each_sg(start, s, nelems, i) { in __dma_map_cont()
362 dma_map_cont(struct device *dev, struct scatterlist *start, int nelems, in dma_map_cont() argument
366 BUG_ON(nelems != 1); in dma_map_cont()
371 return __dma_map_cont(dev, start, nelems, sout, pages); in dma_map_cont()
/linux/net/netfilter/
H A Dnft_set_rbtree.c626 u32 nelems = atomic_read(&set->nelems); in nft_array_elems() local
632 return nelems; in nft_array_elems()
639 return (nelems / 2) + 2; in nft_array_elems()
644 u32 nelems = nft_array_elems(set), new_max_intervals; in nft_array_may_resize() local
649 array = nft_array_alloc(nelems + NFT_ARRAY_EXTRA_SIZE); in nft_array_may_resize()
656 if (nelems < priv->array_next->max_intervals) in nft_array_may_resize()
H A Dnft_dynset.c56 if (!atomic_add_unless(&set->nelems, 1, set->size)) in nft_dynset_new()
77 atomic_dec(&set->nelems); in nft_dynset_new()
H A Dnf_tables_api.c458 return a->set == b->set && a->bound == b->bound && a->nelems < NFT_MAX_SET_NELEMS; in nft_trans_collapse_set_elem_allowed()
465 unsigned int nelems, old_nelems = tail->nelems; in nft_trans_collapse_set_elem() local
477 if (WARN_ON_ONCE(trans->nelems != 1)) in nft_trans_collapse_set_elem()
480 if (check_add_overflow(old_nelems, trans->nelems, &nelems)) in nft_trans_collapse_set_elem()
486 new_trans = krealloc(tail, struct_size(tail, elems, nelems), in nft_trans_collapse_set_elem()
498 new_trans->nelems = nelems; in nft_trans_collapse_set_elem()
4864 unsigned int nelems; in nf_tables_fill_set_info() local
4878 nelems = nft_set_userspace_size(set->ops, atomic_read(&set->nelems)); in nf_tables_fill_set_info()
4879 return nla_put_be32(skb, NFTA_SET_COUNT, htonl(nelems)); in nf_tables_fill_set_info()
5715 atomic_read(&set->nelems) > 0)) { in nf_tables_delset()
[all …]
/linux/lib/
H A Drhashtable.c399 unsigned int nelems = atomic_read(&ht->nelems); in rhashtable_shrink()
402 if (nelems) in rhashtable_shrink()
403 size = roundup_pow_of_two(nelems * 3 / 2); in rhashtable_shrink()
625 atomic_inc(&ht->nelems); in rhashtable_try_insert()
1048 /* Cap total entries at 2^31 to avoid nelems overflow. */ in rhashtable_init_noprof()
1082 atomic_set(&ht->nelems, 0); in rhashtable_init_noprof()
397 unsigned int nelems = atomic_read(&ht->nelems); rhashtable_shrink() local
H A Dtest_rhashtable.c203 total, atomic_read(&ht->nelems), entries, chain_len); in test_bucket_stats()
205 if (total != atomic_read(&ht->nelems) || total != entries) in test_bucket_stats()
/linux/arch/powerpc/include/asm/
H A Diommu.h262 struct scatterlist *sglist, int nelems,
268 int nelems,
/linux/include/uapi/linux/
H A Dbtf.h115 __u32 nelems;
114 __u32 nelems; global() member
/linux/tools/include/uapi/linux/
H A Dbtf.h115 __u32 nelems;
114 __u32 nelems; global() member
/linux/arch/powerpc/platforms/pseries/
H A Dvio.c555 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()
570 ret = ppc_iommu_map_sg(dev, tbl, sglist, nelems, dma_get_mask(dev), in vio_dma_iommu_map_sg()
589 struct scatterlist *sglist, int nelems, in vio_dma_iommu_unmap_sg() argument
599 for_each_sg(sglist, sgl, nelems, count) in vio_dma_iommu_unmap_sg()
602 ppc_iommu_unmap_sg(tbl, sglist, nelems, direction, attrs); in vio_dma_iommu_unmap_sg()
/linux/kernel/bpf/
H A Dbtf.c2069 u32 i, size, nelems = 1, id = 0; in __btf_resolve_size() local
2101 if (nelems && array->nelems > U32_MAX / nelems) in __btf_resolve_size()
2103 nelems *= array->nelems; in __btf_resolve_size()
2116 if (nelems && size > U32_MAX / nelems) in __btf_resolve_size()
2119 *type_size = nelems * size; in __btf_resolve_size()
2121 *total_nelems = nelems; in __btf_resolve_size()
3131 if (array->nelems && elem_size > U32_MAX / array->nelems) { in btf_array_resolve()
3137 env_stack_pop_resolved(env, elem_type_id, elem_size * array->nelems); in btf_array_resolve()
3148 array->type, array->index_type, array->nelems); in btf_array_log()
3187 for (i = 0; i < array->nelems; i++) { in __btf_array_show()
[all …]
/linux/tools/lib/bpf/
H A Dbtf_relocate.c104 int nelems) in search_btf_name_size() argument
107 int high = nelems - 1; in search_btf_name_size()
/linux/drivers/iommu/
H A Ddma-iommu.c1120 int nelems, enum dma_data_direction dir) in iommu_dma_sync_sg_for_cpu() argument
1126 for_each_sg(sgl, sg, nelems, i) in iommu_dma_sync_sg_for_cpu()
1130 for_each_sg(sgl, sg, nelems, i) in iommu_dma_sync_sg_for_cpu()
1135 int nelems, enum dma_data_direction dir) in iommu_dma_sync_sg_for_device() argument
1141 for_each_sg(sgl, sg, nelems, i) in iommu_dma_sync_sg_for_device()
1146 for_each_sg(sgl, sg, nelems, i) in iommu_dma_sync_sg_for_device()
/linux/tools/testing/selftests/bpf/
H A Dbtf_helpers.c121 arr->type, arr->index_type, arr->nelems); in fprintf_btf_type_raw()
/linux/tools/bpf/bpftool/
H A Dbtf.c171 jsonw_uint_field(w, "nr_elems", arr->nelems); in dump_btf_type()
174 arr->type, arr->index_type, arr->nelems); in dump_btf_type()
717 hash = hasher(hash, arr->nelems); in btf_type_disambig_hash()
/linux/include/linux/mtd/
H A Drawnand.h965 unsigned int nelems; member
973 .nelems = sizeof((struct nand_op_parser_pattern_elem[]) { __VA_ARGS__ }) / \

12