Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/kernel/dma/
Ddebug.h23 int nelems, int dir);
48 int nelems, int direction);
52 int nelems, int direction);
72 int nelems, int dir) in debug_dma_unmap_sg() argument
112 int nelems, int direction) in debug_dma_sync_sg_for_cpu() argument
118 int nelems, int direction) in debug_dma_sync_sg_for_device() argument
Dmapping.c283 int nelems, enum dma_data_direction dir) in dma_sync_sg_for_cpu() argument
289 dma_direct_sync_sg_for_cpu(dev, sg, nelems, dir); in dma_sync_sg_for_cpu()
291 ops->sync_sg_for_cpu(dev, sg, nelems, dir); in dma_sync_sg_for_cpu()
292 debug_dma_sync_sg_for_cpu(dev, sg, nelems, dir); in dma_sync_sg_for_cpu()
297 int nelems, enum dma_data_direction dir) in dma_sync_sg_for_device() argument
303 dma_direct_sync_sg_for_device(dev, sg, nelems, dir); in dma_sync_sg_for_device()
305 ops->sync_sg_for_device(dev, sg, nelems, dir); in dma_sync_sg_for_device()
306 debug_dma_sync_sg_for_device(dev, sg, nelems, dir); in dma_sync_sg_for_device()
Ddebug.c1350 int nelems, int dir) in debug_dma_unmap_sg() argument
1358 for_each_sg(sglist, s, nelems, i) { in debug_dma_unmap_sg()
1368 .sg_call_ents = nelems, in debug_dma_unmap_sg()
1521 int nelems, int direction) in debug_dma_sync_sg_for_cpu() argument
1529 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_cpu()
1539 .sg_call_ents = nelems, in debug_dma_sync_sg_for_cpu()
1553 int nelems, int direction) in debug_dma_sync_sg_for_device() argument
1561 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_device()
1571 .sg_call_ents = nelems, in debug_dma_sync_sg_for_device()
Ddummy.c22 int nelems, enum dma_data_direction dir, in dma_dummy_map_sg() argument
/kernel/linux/linux-5.10/include/linux/
Dpci-dma-compat.h94 int nelems, int direction) in pci_dma_sync_sg_for_cpu() argument
96 dma_sync_sg_for_cpu(&hwdev->dev, sg, nelems, (enum dma_data_direction)direction); 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->dev, sg, nelems, (enum dma_data_direction)direction); in pci_dma_sync_sg_for_device()
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()
787 atomic_inc(&ht->nelems); in __rhashtable_insert_fast()
1056 atomic_dec(&ht->nelems); in __rhashtable_remove_fast_one()
Ddma-mapping.h122 int nelems, enum dma_data_direction dir);
124 int nelems, enum dma_data_direction dir);
187 struct scatterlist *sg, int nelems, enum dma_data_direction dir) in dma_sync_sg_for_cpu() argument
191 struct scatterlist *sg, int nelems, enum dma_data_direction dir) in dma_sync_sg_for_device() argument
Drhashtable-types.h90 atomic_t nelems; member
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Ddma-iommu.c62 int nelems, enum dma_data_direction direction, in dma_iommu_map_sg() argument
65 return ppc_iommu_map_sg(dev, get_iommu_table_base(dev), sglist, nelems, in dma_iommu_map_sg()
70 int nelems, enum dma_data_direction direction, in dma_iommu_unmap_sg() argument
73 ppc_iommu_unmap_sg(get_iommu_table_base(dev), sglist, nelems, in dma_iommu_unmap_sg()
Diommu.c412 struct scatterlist *sglist, int nelems, in ppc_iommu_map_sg() argument
425 if ((nelems == 0) || !tbl) in ppc_iommu_map_sg()
430 incount = nelems; in ppc_iommu_map_sg()
436 DBG("sg mapping %d elements:\n", nelems); in ppc_iommu_map_sg()
439 for_each_sg(sglist, s, nelems, i) { in ppc_iommu_map_sg()
538 for_each_sg(sglist, s, nelems, i) { in ppc_iommu_map_sg()
557 int nelems, enum dma_data_direction direction, in ppc_iommu_unmap_sg() argument
568 while (nelems--) { in ppc_iommu_unmap_sg()
/kernel/linux/linux-5.10/drivers/xen/
Dswiotlb-xen.c490 xen_swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in xen_swiotlb_unmap_sg() argument
498 for_each_sg(sgl, sg, nelems, i) in xen_swiotlb_unmap_sg()
505 xen_swiotlb_map_sg(struct device *dev, struct scatterlist *sgl, int nelems, in xen_swiotlb_map_sg() argument
513 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_map_sg()
521 return nelems; in xen_swiotlb_map_sg()
530 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_cpu() argument
535 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_sync_sg_for_cpu()
543 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_device() argument
548 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_sync_sg_for_device()
/kernel/linux/linux-5.10/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()
477 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg()
556 for_each_sg(sglist, s, nelems, i) { in dma_4u_map_sg()
608 int nelems, enum dma_data_direction direction, in dma_4u_unmap_sg() argument
626 while (nelems--) { in dma_4u_unmap_sg()
698 struct scatterlist *sglist, int nelems, in dma_4u_sync_sg_for_cpu() argument
730 for_each_sg(sglist, sg, nelems, i) { in dma_4u_sync_sg_for_cpu()
Dpci_sun4v.c469 int nelems, enum dma_data_direction direction, in dma_4v_map_sg() argument
488 if (nelems == 0 || !iommu) in dma_4v_map_sg()
501 incount = nelems; in dma_4v_map_sg()
522 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()
626 int nelems, enum dma_data_direction direction, in dma_4v_unmap_sg() argument
647 while (nelems--) { in dma_4v_unmap_sg()
/kernel/linux/linux-5.10/arch/x86/kernel/
Damd_gart_64.c325 int nelems, struct scatterlist *sout, in __dma_map_cont() argument
336 for_each_sg(start, s, nelems, i) { in __dma_map_cont()
363 dma_map_cont(struct device *dev, struct scatterlist *start, int nelems, in dma_map_cont() argument
367 BUG_ON(nelems != 1); in dma_map_cont()
372 return __dma_map_cont(dev, start, nelems, sout, pages); in dma_map_cont()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dbtf.h64 __u32 nelems; member
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Diommu.h253 struct scatterlist *sglist, int nelems,
259 int nelems,
/kernel/linux/linux-5.10/tools/include/uapi/linux/
Dbtf.h107 __u32 nelems; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dbtf.h79 __u32 nelems; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dbtf.h107 __u32 nelems; member
/kernel/linux/linux-5.10/lib/
Drhashtable.c390 unsigned int nelems = atomic_read(&ht->nelems); in rhashtable_shrink() local
393 if (nelems) in rhashtable_shrink()
394 size = roundup_pow_of_two(nelems * 3 / 2); in rhashtable_shrink()
580 atomic_inc(&ht->nelems); in rhashtable_insert_one()
1067 atomic_set(&ht->nelems, 0); in rhashtable_init()
/kernel/linux/linux-5.10/tools/bpf/bpftool/
Dbtf_dumper.c181 if (!arr->nelems) in is_str_array()
198 end_s = s + arr->nelems; in is_str_array()
230 for (i = 0; i < arr->nelems; i++) { in btf_dumper_array()
616 BTF_PRINT_ARG("[%d]", array->nelems); in __btf_dumper_type_only()
/kernel/linux/linux-5.10/net/netfilter/
Dnft_dynset.c35 if (!atomic_add_unless(&set->nelems, 1, set->size)) in nft_dynset_new()
57 atomic_dec(&set->nelems); in nft_dynset_new()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dbtf.c327 a->nelems = bswap_32(a->nelems); in btf_bswap_type_rest()
540 __u32 nelems = 1; in btf__resolve_size() local
567 if (nelems && array->nelems > UINT32_MAX / nelems) in btf__resolve_size()
569 nelems *= array->nelems; in btf__resolve_size()
582 if (nelems && size > UINT32_MAX / nelems) in btf__resolve_size()
585 return nelems * size; in btf__resolve_size()
1709 a->nelems = nr_elems; in btf__add_array()
3437 h = hash_combine(h, info->nelems); in btf_hash_array()
3459 info1->nelems == info2->nelems; in btf_equal_array()
3472 return btf_array(t1)->nelems == btf_array(t2)->nelems; in btf_compat_array()
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Dvio.c550 int nelems, enum dma_data_direction direction, in vio_dma_iommu_map_sg() argument
559 for_each_sg(sglist, sgl, nelems, count) in vio_dma_iommu_map_sg()
564 ret = ppc_iommu_map_sg(dev, tbl, sglist, nelems, dma_get_mask(dev), in vio_dma_iommu_map_sg()
583 struct scatterlist *sglist, int nelems, in vio_dma_iommu_unmap_sg() argument
593 for_each_sg(sglist, sgl, nelems, count) in vio_dma_iommu_unmap_sg()
596 ppc_iommu_unmap_sg(tbl, sglist, nelems, direction, attrs); in vio_dma_iommu_unmap_sg()
/kernel/linux/linux-5.10/drivers/iommu/intel/
Diommu.c3706 int nelems, enum dma_data_direction dir, in intel_unmap_sg() argument
3714 for_each_sg(sglist, sg, nelems, i) { in intel_unmap_sg()
3723 static int intel_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, in intel_map_sg() argument
3747 for_each_sg(sglist, sg, nelems, i) in intel_map_sg()
3778 for_each_sg(sglist, sg, nelems, i) in intel_map_sg()
3779 trace_map_sg(dev, i + 1, nelems, sg); in intel_map_sg()
3781 return nelems; in intel_map_sg()
3967 bounce_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, in bounce_unmap_sg() argument
3973 for_each_sg(sglist, sg, nelems, i) in bounce_unmap_sg()
3979 bounce_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, in bounce_map_sg() argument
[all …]

12