/linux/mm/ |
H A D | numa_emulation.c | 87 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() 175 ret = emu_setup_memblk(ei, pi, nid++ % nr_nodes, in split_nodes_interleave() 221 int nr_nodes, struct numa_memblk *pblk, in split_nodes_size_interleave_uniform() argument 228 if ((!size && !nr_nodes) || (nr_nodes && !pblk)) in split_nodes_size_interleave_uniform() 241 if (!nr_nodes) in split_nodes_size_interleave_uniform() 242 nr_nodes = MAX_NUMNODES; in split_nodes_size_interleave_uniform() [all …]
|
H A D | hugetlb.c | 1505 for (nr_nodes = nodes_weight(*mask); \ 1506 nr_nodes > 0 && \ 1508 nr_nodes--) 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 2155 int nr_nodes, node; in remove_pool_hugetlb_folio() local 3122 int nr_nodes, node = nid; in __alloc_bootmem_huge_page() local 3570 int nr_nodes, node; in adjust_pool_surplus() local [all …]
|
H A D | page_alloc.c | 5246 unsigned nr_nodes) in build_zonelists_in_node_order() argument 5253 for (i = 0; i < nr_nodes; i++) { in build_zonelists_in_node_order() 5290 int node, nr_nodes = 0; in build_zonelists() local 5309 node_order[nr_nodes++] = node; in build_zonelists() 5313 build_zonelists_in_node_order(pgdat, node_order, nr_nodes); in build_zonelists() 5316 for (node = 0; node < nr_nodes; node++) in build_zonelists()
|
H A D | mempolicy.c | 1983 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/lib/ |
H A D | rbtree_test.c | 171 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()
|
H A D | maple_tree.c | 5627 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/arch/loongarch/mm/ |
H A D | cache.c | 46 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/tools/perf/bench/ |
H A D | numa.c | 126 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() 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() 954 for (n = 0; n < g->p.nr_nodes; n++) in count_process_nodes() 1042 for (node = 0; node < g->p.nr_nodes; node++) in calc_convergence() 1473 g->p.nr_nodes = numa_max_node() + 1; in init() [all …]
|
/linux/arch/mips/loongson64/ |
H A D | numa.c | 42 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()
|
H A D | env.c | 152 loongson_sysconf.nr_nodes = (loongson_sysconf.nr_cpus + in prom_lefi_init_env()
|
/linux/arch/x86/kernel/cpu/ |
H A D | topology_amd.c | 46 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/arch/loongarch/include/asm/ |
H A D | bootinfo.h | 35 int nr_nodes; member
|
/linux/fs/bcachefs/ |
H A D | btree_update_interior.c | 532 unsigned nr_nodes[2], in bch2_btree_reserve_get() 540 BUG_ON(nr_nodes[0] + nr_nodes[1] > BTREE_RESERVE_MAX); in bch2_btree_reserve_get() 553 while (p->nr < nr_nodes[interior]) { in bch2_btree_reserve_get() 1149 unsigned nr_nodes[2] = { 0, 0 }; in bch2_btree_update_start() local 1177 nr_nodes[!!level_end] += 1 + split; in bch2_btree_update_start() 1186 nr_nodes[1] += split; in bch2_btree_update_start() 1246 (nr_nodes[0] + nr_nodes[1]) * btree_sectors(c), in bch2_btree_update_start() 1252 ret = bch2_btree_reserve_get(trans, as, nr_nodes, flags, NULL); in bch2_btree_update_start() 1271 ret = bch2_btree_reserve_get(trans, as, nr_nodes, flags, &cl); in bch2_btree_update_start() 1280 _RET_IP_, nr_nodes[0] + nr_nodes[1], ret); in bch2_btree_update_start()
|
/linux/drivers/crypto/intel/iaa/ |
H A D | iaa_crypto_main.c | 30 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/arch/mips/include/asm/mach-loongson64/ |
H A D | loongson.h | 24 u32 nr_nodes; member
|
/linux/fs/btrfs/ |
H A D | backref.h | 403 int nr_nodes; member
|
H A D | backref.c | 3047 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/arch/loongarch/kernel/ |
H A D | numa.c | 362 loongson_sysconf.nr_nodes = nr_node_ids; in init_numa_memory()
|
/linux/Documentation/block/ |
H A D | null_blk.rst | 39 home_node=[0--nr_nodes]: Default: NUMA_NO_NODE
|
/linux/Documentation/driver-api/crypto/iaa/ |
H A D | iaa-crypto.rst | 590 [ 60.752346] iaa_crypto: rebalance_wq_table: nr_nodes=2, nr_cpus 160, nr_iaa 8, cpus_per_iaa 20
|