Home
last modified time | relevance | path

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

/linux-6.12.1/mm/
Dnuma_emulation.c87 u64 addr, u64 max_addr, int nr_nodes) in split_nodes_interleave() argument
95 if (nr_nodes <= 0) in split_nodes_interleave()
97 if (nr_nodes > MAX_NUMNODES) { in split_nodes_interleave()
99 nr_nodes, MAX_NUMNODES); in split_nodes_interleave()
100 nr_nodes = MAX_NUMNODES; in split_nodes_interleave()
108 size = PFN_PHYS((unsigned long)(size >> PAGE_SHIFT) / nr_nodes); in split_nodes_interleave()
114 big = ((size & ~FAKE_NODE_MIN_HASH_MASK) * nr_nodes) / in split_nodes_interleave()
175 ret = emu_setup_memblk(ei, pi, nid++ % nr_nodes, in split_nodes_interleave()
203 static u64 uniform_size(u64 max_addr, u64 base, u64 hole, int nr_nodes) in uniform_size() argument
209 return PFN_PHYS((max_pfn - base_pfn - hole_pfns) / nr_nodes); in uniform_size()
[all …]
Dhugetlb.c1504 #define for_each_node_mask_to_alloc(next_node, nr_nodes, node, mask) \ argument
1505 for (nr_nodes = nodes_weight(*mask); \
1506 nr_nodes > 0 && \
1508 nr_nodes--)
1510 #define for_each_node_mask_to_free(hs, nr_nodes, node, mask) \ argument
1511 for (nr_nodes = nodes_weight(*mask); \
1512 nr_nodes > 0 && \
1514 nr_nodes--)
2131 int nr_nodes, node; in alloc_pool_huge_folio() local
2133 for_each_node_mask_to_alloc(next_node, nr_nodes, node, nodes_allowed) { in alloc_pool_huge_folio()
[all …]
Dpage_alloc.c5264 unsigned nr_nodes) in build_zonelists_in_node_order() argument
5271 for (i = 0; i < nr_nodes; i++) { in build_zonelists_in_node_order()
5308 int node, nr_nodes = 0; in build_zonelists() local
5327 node_order[nr_nodes++] = node; in build_zonelists()
5331 build_zonelists_in_node_order(pgdat, node_order, nr_nodes); in build_zonelists()
5334 for (node = 0; node < nr_nodes; node++) in build_zonelists()
Dmempolicy.c1983 unsigned int target, nr_nodes; in weighted_interleave_nid() local
1989 nr_nodes = read_once_policy_nodemask(pol, &nodemask); in weighted_interleave_nid()
1990 if (!nr_nodes) in weighted_interleave_nid()
/linux-6.12.1/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.c5627 int nr_nodes; in mas_expected_entries() local
5648 nr_nodes = max(nr_entries, nr_entries * 2 + 1); in mas_expected_entries()
5653 nr_nodes = DIV_ROUND_UP(nr_nodes, MAPLE_RANGE64_SLOTS - 2); in mas_expected_entries()
5655 nr_nodes += DIV_ROUND_UP(nr_nodes, nonleaf_cap); in mas_expected_entries()
5657 mas_node_count_gfp(mas, nr_nodes + 3, GFP_KERNEL); in mas_expected_entries()
/linux-6.12.1/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.12.1/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.12.1/arch/mips/loongson64/
Dnuma.c42 for (i = 0; i < loongson_sysconf.nr_nodes; i++) { in cpu_node_probe()
133 for (node = 0; node < loongson_sysconf.nr_nodes; node++) { in prom_meminit()
Denv.c152 loongson_sysconf.nr_nodes = (loongson_sysconf.nr_cpus + in prom_lefi_init_env()
/linux-6.12.1/arch/x86/kernel/cpu/
Dtopology_amd.c46 static void store_node(struct topo_scan *tscan, u16 nr_nodes, u16 node_id) in store_node() argument
57 tscan->amd_nodes_per_pkg = nr_nodes; in store_node()
/linux-6.12.1/arch/loongarch/include/asm/
Dbootinfo.h35 int nr_nodes; member
/linux-6.12.1/fs/bcachefs/
Dbtree_update_interior.c527 unsigned nr_nodes[2], in bch2_btree_reserve_get()
535 BUG_ON(nr_nodes[0] + nr_nodes[1] > BTREE_RESERVE_MAX); in bch2_btree_reserve_get()
548 while (p->nr < nr_nodes[interior]) { in bch2_btree_reserve_get()
1144 unsigned nr_nodes[2] = { 0, 0 }; in bch2_btree_update_start() local
1172 nr_nodes[!!level_end] += 1 + split; in bch2_btree_update_start()
1181 nr_nodes[1] += split; in bch2_btree_update_start()
1241 (nr_nodes[0] + nr_nodes[1]) * btree_sectors(c), in bch2_btree_update_start()
1247 ret = bch2_btree_reserve_get(trans, as, nr_nodes, flags, NULL); in bch2_btree_update_start()
1266 ret = bch2_btree_reserve_get(trans, as, nr_nodes, flags, &cl); in bch2_btree_update_start()
1275 _RET_IP_, nr_nodes[0] + nr_nodes[1], ret); in bch2_btree_update_start()
/linux-6.12.1/drivers/crypto/intel/iaa/
Diaa_crypto_main.c30 static unsigned int nr_nodes; variable
806 cpus_per_iaa = (nr_nodes * nr_cpus_per_node) / nr_iaa; in save_iaa_wq()
825 cpus_per_iaa = (nr_nodes * nr_cpus_per_node) / nr_iaa; in remove_iaa_wq()
905 nr_nodes, nr_cpus, nr_iaa, cpus_per_iaa); in rebalance_wq_table()
2008 nr_nodes++; in iaa_crypto_init_module()
2009 if (!nr_nodes) { in iaa_crypto_init_module()
2013 nr_cpus_per_node = nr_cpus / nr_nodes; in iaa_crypto_init_module()
/linux-6.12.1/arch/mips/include/asm/mach-loongson64/
Dloongson.h24 u32 nr_nodes; member
/linux-6.12.1/fs/btrfs/
Dbackref.h403 int nr_nodes; member
Dbackref.c3047 cache->nr_nodes++; in btrfs_backref_alloc_node()
3061 cache->nr_nodes--; in btrfs_backref_free_node()
3195 ASSERT(!cache->nr_nodes); in btrfs_backref_release_cache()
/linux-6.12.1/arch/loongarch/kernel/
Dnuma.c362 loongson_sysconf.nr_nodes = nr_node_ids; in init_numa_memory()
/linux-6.12.1/Documentation/block/
Dnull_blk.rst39 home_node=[0--nr_nodes]: Default: NUMA_NO_NODE
/linux-6.12.1/Documentation/driver-api/crypto/iaa/
Diaa-crypto.rst590 [ 60.752346] iaa_crypto: rebalance_wq_table: nr_nodes=2, nr_cpus 160, nr_iaa 8, cpus_per_iaa 20