Home
last modified time | relevance | path

Searched refs:nelems (Results 1 - 25 of 90) sorted by relevance

1234

/kernel/linux/linux-5.10/kernel/dma/
H A 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()
112 int nelems, int direction) in debug_dma_sync_sg_for_cpu()
118 int nelems, int direction) in debug_dma_sync_sg_for_device()
70 debug_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, int dir) debug_dma_unmap_sg() argument
110 debug_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, int direction) debug_dma_sync_sg_for_cpu() argument
116 debug_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, int direction) debug_dma_sync_sg_for_device() argument
H A Dmapping.c283 int nelems, enum dma_data_direction dir) in dma_sync_sg_for_cpu()
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()
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()
282 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) dma_sync_sg_for_cpu() argument
296 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) dma_sync_sg_for_device() argument
H A Ddebug.c1360 int nelems, int dir) in debug_dma_unmap_sg()
1368 for_each_sg(sglist, s, nelems, i) { in debug_dma_unmap_sg()
1378 .sg_call_ents = nelems, in debug_dma_unmap_sg()
1531 int nelems, int direction) in debug_dma_sync_sg_for_cpu()
1539 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_cpu()
1549 .sg_call_ents = nelems, in debug_dma_sync_sg_for_cpu()
1563 int nelems, int direction) in debug_dma_sync_sg_for_device()
1571 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_device()
1581 .sg_call_ents = nelems, in debug_dma_sync_sg_for_device()
1359 debug_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, int dir) debug_dma_unmap_sg() argument
1530 debug_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, int direction) debug_dma_sync_sg_for_cpu() argument
1562 debug_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, int direction) debug_dma_sync_sg_for_device() argument
H A Ddummy.c22 int nelems, enum dma_data_direction dir, in dma_dummy_map_sg()
21 dma_dummy_map_sg(struct device *dev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir, unsigned long attrs) dma_dummy_map_sg() argument
/kernel/linux/linux-6.6/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()
120 int nelems, int direction) in debug_dma_sync_sg_for_cpu()
126 int nelems, int direction) in debug_dma_sync_sg_for_device()
76 debug_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, int dir) debug_dma_unmap_sg() argument
118 debug_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, int direction) debug_dma_sync_sg_for_cpu() argument
124 debug_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, int direction) debug_dma_sync_sg_for_device() argument
H A Dmapping.c361 int nelems, enum dma_data_direction dir) in dma_sync_sg_for_cpu()
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()
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()
360 dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) dma_sync_sg_for_cpu() argument
374 dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, enum dma_data_direction dir) dma_sync_sg_for_device() argument
H A Ddebug.c1356 int nelems, int dir) in debug_dma_unmap_sg()
1364 for_each_sg(sglist, s, nelems, i) { in debug_dma_unmap_sg()
1374 .sg_call_ents = nelems, in debug_dma_unmap_sg()
1529 int nelems, int direction) in debug_dma_sync_sg_for_cpu()
1537 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_cpu()
1547 .sg_call_ents = nelems, in debug_dma_sync_sg_for_cpu()
1561 int nelems, int direction) in debug_dma_sync_sg_for_device()
1569 for_each_sg(sg, s, nelems, i) { in debug_dma_sync_sg_for_device()
1579 .sg_call_ents = nelems, in debug_dma_sync_sg_for_device()
1355 debug_dma_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, int dir) debug_dma_unmap_sg() argument
1528 debug_dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems, int direction) debug_dma_sync_sg_for_cpu() argument
1560 debug_dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg, int nelems, int direction) debug_dma_sync_sg_for_device() argument
H A Ddummy.c22 int nelems, enum dma_data_direction dir, in dma_dummy_map_sg()
21 dma_dummy_map_sg(struct device *dev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir, unsigned long attrs) dma_dummy_map_sg() argument
/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A Ddma-iommu.c62 int nelems, enum dma_data_direction direction, in dma_iommu_map_sg()
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()
73 ppc_iommu_unmap_sg(get_iommu_table_base(dev), sglist, nelems, in dma_iommu_unmap_sg() local
61 dma_iommu_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, unsigned long attrs) dma_iommu_map_sg() argument
69 dma_iommu_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, unsigned long attrs) dma_iommu_unmap_sg() argument
H A Diommu.c423 struct scatterlist *sglist, int nelems, in ppc_iommu_map_sg()
436 if ((nelems == 0) || !tbl) in ppc_iommu_map_sg()
441 incount = nelems; in ppc_iommu_map_sg()
447 DBG("sg mapping %d elements:\n", nelems); in ppc_iommu_map_sg()
450 for_each_sg(sglist, s, nelems, i) { in ppc_iommu_map_sg()
549 for_each_sg(sglist, s, nelems, i) { in ppc_iommu_map_sg()
568 int nelems, enum dma_data_direction direction, in ppc_iommu_unmap_sg()
579 while (nelems--) { in ppc_iommu_unmap_sg()
422 ppc_iommu_map_sg(struct device *dev, struct iommu_table *tbl, struct scatterlist *sglist, int nelems, unsigned long mask, enum dma_data_direction direction, unsigned long attrs) ppc_iommu_map_sg() argument
567 ppc_iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, unsigned long attrs) ppc_iommu_unmap_sg() argument
/kernel/linux/linux-5.10/include/linux/
H A Dpci-dma-compat.h94 int nelems, int direction) in pci_dma_sync_sg_for_cpu()
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()
103 dma_sync_sg_for_device(&hwdev->dev, sg, nelems, (enum dma_data_direction)direction); in pci_dma_sync_sg_for_device()
93 pci_dma_sync_sg_for_cpu(struct pci_dev *hwdev, struct scatterlist *sg, int nelems, int direction) pci_dma_sync_sg_for_cpu() argument
100 pci_dma_sync_sg_for_device(struct pci_dev *hwdev, struct scatterlist *sg, int nelems, int direction) pci_dma_sync_sg_for_device() argument
H A Drhashtable.h178 * rht_grow_above_75 - returns true if nelems > 0.75 * table-size
186 return atomic_read(&ht->nelems) > (tbl->size / 4 * 3) && in rht_grow_above_75()
191 * rht_shrink_below_30 - returns true if nelems < 0.3 * table-size
199 return atomic_read(&ht->nelems) < (tbl->size * 3 / 10) && in rht_shrink_below_30()
204 * rht_grow_above_100 - returns true if nelems > table-size
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()
H A Drhashtable-types.h79 * @nelems: Number of elements in table
90 atomic_t nelems; member
/kernel/linux/linux-5.10/drivers/xen/
H A 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()
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()
548 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_sync_sg_for_device()
529 xen_swiotlb_sync_sg_for_cpu(struct device *dev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir) xen_swiotlb_sync_sg_for_cpu() argument
542 xen_swiotlb_sync_sg_for_device(struct device *dev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir) xen_swiotlb_sync_sg_for_device() argument
/kernel/linux/linux-6.6/drivers/xen/
H A Dswiotlb-xen.c311 xen_swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in xen_swiotlb_unmap_sg() argument
319 for_each_sg(sgl, sg, nelems, i) in xen_swiotlb_unmap_sg()
326 xen_swiotlb_map_sg(struct device *dev, struct scatterlist *sgl, int nelems, in xen_swiotlb_map_sg() argument
334 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_map_sg()
342 return nelems; in xen_swiotlb_map_sg()
351 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_cpu()
356 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_sync_sg_for_cpu()
364 int nelems, enum dma_data_direction dir) in xen_swiotlb_sync_sg_for_device()
369 for_each_sg(sgl, sg, nelems, i) { in xen_swiotlb_sync_sg_for_device()
350 xen_swiotlb_sync_sg_for_cpu(struct device *dev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir) xen_swiotlb_sync_sg_for_cpu() argument
363 xen_swiotlb_sync_sg_for_device(struct device *dev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir) xen_swiotlb_sync_sg_for_device() argument
/kernel/linux/linux-6.6/arch/powerpc/kernel/
H A Ddma-iommu.c119 int nelems, enum dma_data_direction direction, in dma_iommu_map_sg()
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()
130 ppc_iommu_unmap_sg(get_iommu_table_base(dev), sglist, nelems, in dma_iommu_unmap_sg() local
118 dma_iommu_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, unsigned long attrs) dma_iommu_map_sg() argument
126 dma_iommu_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, unsigned long attrs) dma_iommu_unmap_sg() argument
H A Diommu.c471 struct scatterlist *sglist, int nelems, in ppc_iommu_map_sg()
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()
625 while (nelems--) { in ppc_iommu_unmap_sg()
470 ppc_iommu_map_sg(struct device *dev, struct iommu_table *tbl, struct scatterlist *sglist, int nelems, unsigned long mask, enum dma_data_direction direction, unsigned long attrs) ppc_iommu_map_sg() argument
613 ppc_iommu_unmap_sg(struct iommu_table *tbl, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, unsigned long attrs) ppc_iommu_unmap_sg() argument
/kernel/linux/linux-5.10/arch/sparc/kernel/
H A Diommu.c433 int nelems, enum dma_data_direction direction, in dma_4u_map_sg()
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()
626 while (nelems--) { in dma_4u_unmap_sg()
698 struct scatterlist *sglist, int nelems, in dma_4u_sync_sg_for_cpu()
730 for_each_sg(sglist, sg, nelems, i) { in dma_4u_sync_sg_for_cpu()
432 dma_4u_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, unsigned long attrs) dma_4u_map_sg() argument
607 dma_4u_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, unsigned long attrs) dma_4u_unmap_sg() argument
697 dma_4u_sync_sg_for_cpu(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction) dma_4u_sync_sg_for_cpu() argument
/kernel/linux/linux-6.6/arch/sparc/kernel/
H A Diommu.c433 int nelems, enum dma_data_direction direction, in dma_4u_map_sg()
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()
624 while (nelems--) { in dma_4u_unmap_sg()
696 struct scatterlist *sglist, int nelems, in dma_4u_sync_sg_for_cpu()
728 for_each_sg(sglist, sg, nelems, i) { in dma_4u_sync_sg_for_cpu()
432 dma_4u_map_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, unsigned long attrs) dma_4u_map_sg() argument
605 dma_4u_unmap_sg(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, unsigned long attrs) dma_4u_unmap_sg() argument
695 dma_4u_sync_sg_for_cpu(struct device *dev, struct scatterlist *sglist, int nelems, enum dma_data_direction direction) dma_4u_sync_sg_for_cpu() argument
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Damd_gart_64.c325 int nelems, struct scatterlist *sout, in __dma_map_cont()
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()
324 __dma_map_cont(struct device *dev, struct scatterlist *start, int nelems, struct scatterlist *sout, unsigned long pages) __dma_map_cont() argument
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Damd_gart_64.c323 int nelems, struct scatterlist *sout, in __dma_map_cont()
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()
322 __dma_map_cont(struct device *dev, struct scatterlist *start, int nelems, struct scatterlist *sout, unsigned long pages) __dma_map_cont() argument
/kernel/linux/linux-6.6/include/linux/
H A Drhashtable.h178 * rht_grow_above_75 - returns true if nelems > 0.75 * table-size
186 return atomic_read(&ht->nelems) > (tbl->size / 4 * 3) && in rht_grow_above_75()
191 * rht_shrink_below_30 - returns true if nelems < 0.3 * table-size
199 return atomic_read(&ht->nelems) < (tbl->size * 3 / 10) && in rht_shrink_below_30()
204 * rht_grow_above_100 - returns true if nelems > table-size
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 Drhashtable-types.h79 * @nelems: Number of elements in table
90 atomic_t nelems; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A Dbtf.h64 __u32 nelems; member
/kernel/linux/linux-5.10/tools/bpf/bpftool/
H A 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()

Completed in 24 milliseconds

1234