Home
last modified time | relevance | path

Searched refs:nr_nodes (Results 1 – 15 of 15) sorted by relevance

/linux-6.6.21/arch/x86/mm/
Dnuma_emulation.c85 u64 addr, u64 max_addr, int nr_nodes) in split_nodes_interleave() argument
93 if (nr_nodes <= 0) in split_nodes_interleave()
95 if (nr_nodes > MAX_NUMNODES) { in split_nodes_interleave()
97 nr_nodes, MAX_NUMNODES); in split_nodes_interleave()
98 nr_nodes = MAX_NUMNODES; in split_nodes_interleave()
106 size = PFN_PHYS((unsigned long)(size >> PAGE_SHIFT) / nr_nodes); in split_nodes_interleave()
112 big = ((size & ~FAKE_NODE_MIN_HASH_MASK) * nr_nodes) / in split_nodes_interleave()
173 ret = emu_setup_memblk(ei, pi, nid++ % nr_nodes, in split_nodes_interleave()
201 static u64 uniform_size(u64 max_addr, u64 base, u64 hole, int nr_nodes) in uniform_size() argument
207 return PFN_PHYS((max_pfn - base_pfn - hole_pfns) / nr_nodes); in uniform_size()
[all …]
/linux-6.6.21/lib/
Drbtree_test.c171 static void check_postorder_foreach(int nr_nodes) in check_postorder_foreach() argument
178 WARN_ON_ONCE(count != nr_nodes); in check_postorder_foreach()
181 static void check_postorder(int nr_nodes) in check_postorder() argument
188 WARN_ON_ONCE(count != nr_nodes); in check_postorder()
191 static void check(int nr_nodes) in check() argument
211 WARN_ON_ONCE(count != nr_nodes); in check()
214 check_postorder(nr_nodes); in check()
215 check_postorder_foreach(nr_nodes); in check()
218 static void check_augmented(int nr_nodes) in check_augmented() argument
222 check(nr_nodes); in check_augmented()
Dmaple_tree.c5611 int nr_nodes; in mas_expected_entries() local
5632 nr_nodes = max(nr_entries, nr_entries * 2 + 1); in mas_expected_entries()
5637 nr_nodes = DIV_ROUND_UP(nr_nodes, MAPLE_RANGE64_SLOTS - 2); in mas_expected_entries()
5639 nr_nodes += DIV_ROUND_UP(nr_nodes, nonleaf_cap); in mas_expected_entries()
5641 mas_node_count_gfp(mas, nr_nodes + 3, GFP_KERNEL); in mas_expected_entries()
/linux-6.6.21/arch/loongarch/mm/
Dcache.c46 int i, j, nr_nodes; in flush_cache_leaf() local
50 nr_nodes = cache_private(cdesc) ? 1 : loongson_sysconf.nr_nodes; in flush_cache_leaf()
63 } while (--nr_nodes > 0); in flush_cache_leaf()
/linux-6.6.21/tools/perf/bench/
Dnuma.c126 int nr_nodes; member
229 int i, nr_nodes = 0; in nr_numa_nodes() local
231 for (i = 0; i < g->p.nr_nodes; i++) { in nr_numa_nodes()
233 nr_nodes++; in nr_numa_nodes()
236 return nr_nodes; in nr_numa_nodes()
387 ret = set_mempolicy(MPOL_DEFAULT, NULL, g->p.nr_nodes-1); in mempol_restore()
729 BUG_ON(step <= 0 || step >= g->p.nr_nodes); in parse_setup_node_list()
742 if (bind_node_0 >= g->p.nr_nodes || bind_node_1 >= g->p.nr_nodes) { in parse_setup_node_list()
743 printf("\nTest not applicable, system has only %d nodes.\n", g->p.nr_nodes); in parse_setup_node_list()
930 node_present = (char *)malloc(g->p.nr_nodes * sizeof(char)); in count_process_nodes()
[all …]
/linux-6.6.21/arch/mips/loongson64/
Dnuma.c44 for (i = 0; i < loongson_sysconf.nr_nodes; i++) { in cpu_node_probe()
145 for (node = 0; node < loongson_sysconf.nr_nodes; node++) { in prom_meminit()
Denv.c146 loongson_sysconf.nr_nodes = (loongson_sysconf.nr_cpus + in prom_lefi_init_env()
/linux-6.6.21/arch/loongarch/include/asm/
Dbootinfo.h29 int nr_nodes; member
/linux-6.6.21/fs/btrfs/
Dbackref.h426 int nr_nodes; member
476 cache->nr_nodes--; in btrfs_backref_free_node()
Dbackref.c3031 cache->nr_nodes++; in btrfs_backref_alloc_node()
3116 ASSERT(!cache->nr_nodes); in btrfs_backref_release_cache()
/linux-6.6.21/mm/
Dhugetlb.c1505 #define for_each_node_mask_to_alloc(hs, nr_nodes, node, mask) \ argument
1506 for (nr_nodes = nodes_weight(*mask); \
1507 nr_nodes > 0 && \
1509 nr_nodes--)
1511 #define for_each_node_mask_to_free(hs, nr_nodes, node, mask) \ argument
1512 for (nr_nodes = nodes_weight(*mask); \
1513 nr_nodes > 0 && \
1515 nr_nodes--)
2239 int nr_nodes, node; in alloc_pool_huge_page() local
2242 for_each_node_mask_to_alloc(h, nr_nodes, node, nodes_allowed) { in alloc_pool_huge_page()
[all …]
Dpage_alloc.c4926 unsigned nr_nodes) in build_zonelists_in_node_order() argument
4933 for (i = 0; i < nr_nodes; i++) { in build_zonelists_in_node_order()
4970 int node, nr_nodes = 0; in build_zonelists() local
4989 node_order[nr_nodes++] = node; in build_zonelists()
4993 build_zonelists_in_node_order(pgdat, node_order, nr_nodes); in build_zonelists()
4996 for (node = 0; node < nr_nodes; node++) in build_zonelists()
/linux-6.6.21/arch/mips/include/asm/mach-loongson64/
Dloongson.h24 u32 nr_nodes; member
/linux-6.6.21/Documentation/block/
Dnull_blk.rst39 home_node=[0--nr_nodes]: Default: NUMA_NO_NODE
/linux-6.6.21/arch/loongarch/kernel/
Dnuma.c409 loongson_sysconf.nr_nodes = nr_node_ids; in init_numa_memory()