Home
last modified time | relevance | path

Searched refs:nr_node_ids (Results 1 – 25 of 40) sorted by relevance

12

/linux-6.15/lib/
H A Dgroup_cpus.c50 masks = kcalloc(nr_node_ids, sizeof(cpumask_var_t), GFP_KERNEL); in alloc_node_to_cpumask()
54 for (node = 0; node < nr_node_ids; node++) { in alloc_node_to_cpumask()
72 for (node = 0; node < nr_node_ids; node++) in free_node_to_cpumask()
139 for (n = 0; n < nr_node_ids; n++) { in alloc_nodes_groups()
158 sort(node_groups, nr_node_ids, sizeof(node_groups[0]), in alloc_nodes_groups()
229 for (n = 0; n < nr_node_ids; n++) { in alloc_nodes_groups()
280 node_groups = kcalloc(nr_node_ids, in __group_cpus_evenly()
289 for (i = 0; i < nr_node_ids; i++) { in __group_cpus_evenly()
/linux-6.15/arch/x86/mm/
H A Dnuma.c107 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map()
111 for (node = 0; node < nr_node_ids; node++) in setup_node_to_cpumask_map()
115 pr_debug("Node to cpumask map for %u nodes\n", nr_node_ids); in setup_node_to_cpumask_map()
410 if ((unsigned)node >= nr_node_ids) { in cpumask_of_node()
413 node, nr_node_ids); in cpumask_of_node()
/linux-6.15/scripts/gdb/linux/
H A Dslab.py183 nr_node_ids = int(gdb.parse_and_eval("nr_node_ids"))
185 nr_node_ids = 1
198 for i in range(0, nr_node_ids):
278 nr_node_ids = None
294 nr_node_ids = int(gdb.parse_and_eval("nr_node_ids"))
296 nr_node_ids = 1
302 for i in range(0, nr_node_ids):
/linux-6.15/drivers/base/
H A Darch_numa.c50 if (WARN_ON(node < 0 || node >= nr_node_ids)) in cpumask_of_node()
105 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map()
109 for (node = 0; node < nr_node_ids; node++) { in setup_node_to_cpumask_map()
115 pr_debug("Node to cpumask map for %u nodes\n", nr_node_ids); in setup_node_to_cpumask_map()
/linux-6.15/tools/workqueue/
H A Dwq_dump.py223 nr_node_ids = prog['nr_node_ids'].value_() variable
250 nna = wq.node_nr_active[nr_node_ids]
/linux-6.15/mm/
H A Dshrinker_debug.c56 count_per_node = kcalloc(nr_node_ids, sizeof(unsigned long), GFP_KERNEL); in shrinker_debugfs_count_show()
125 if (nid < 0 || nid >= nr_node_ids) in shrinker_debugfs_scan_write()
H A Dmempolicy.c1509 unsigned int nbytes = BITS_TO_LONGS(nr_node_ids) * sizeof(long); in copy_nodes_to_user()
1513 nbytes = BITS_TO_COMPAT_LONGS(nr_node_ids) * sizeof(compat_long_t); in copy_nodes_to_user()
1521 maxnode = nr_node_ids; in copy_nodes_to_user()
1776 if (nmask != NULL && maxnode < nr_node_ids) in kernel_get_mempolicy()
2496 weights = kzalloc(nr_node_ids, GFP_KERNEL); in alloc_pages_bulk_weighted_interleave()
2503 memcpy(weights, table, nr_node_ids); in alloc_pages_bulk_weighted_interleave()
3447 new = kzalloc(nr_node_ids, GFP_KERNEL); in node_store()
3455 memcpy(new, old, nr_node_ids); in node_store()
3480 for (i = 0; i < nr_node_ids; i++) in sysfs_wi_release()
3581 node_attrs = kcalloc(nr_node_ids, sizeof(struct iw_node_attr *), in mempolicy_sysfs_init()
H A Dlist_lru.c406 mlru = kmalloc(struct_size(mlru, node, nr_node_ids), gfp); in memcg_init_list_lru_one()
584 lru->node = kcalloc(nr_node_ids, sizeof(*lru->node), GFP_KERNEL); in __list_lru_init()
H A Dksm.c3440 buf = kcalloc(nr_node_ids + nr_node_ids, sizeof(*buf), in merge_across_nodes_store()
3447 root_unstable_tree = buf + nr_node_ids; in merge_across_nodes_store()
3454 ksm_nr_node_ids = knob ? 1 : nr_node_ids; in merge_across_nodes_store()
H A Dshrinker.c722 size *= nr_node_ids; in shrinker_alloc()
H A Dmemory-tiers.c912 node_demotion = kcalloc(nr_node_ids, sizeof(struct demotion_nodes), in memory_tier_init()
H A Dhugetlb_cgroup.c149 h_cgroup = kzalloc(struct_size(h_cgroup, nodeinfo, nr_node_ids), in hugetlb_cgroup_css_alloc()
H A Dslub.c445 for (__node = 0; __node < nr_node_ids; __node++) \
6005 if (nr_node_ids > 1) { in setup_slab_strict_numa()
6338 nr_node_ids * sizeof(struct kmem_cache_node *), in kmem_cache_init()
6357 nr_cpu_ids, nr_node_ids); in kmem_cache_init()
6764 nodes = kcalloc(nr_node_ids, sizeof(unsigned long), GFP_KERNEL); in show_slab_objects()
6855 for (node = 0; node < nr_node_ids; node++) { in show_slab_objects()
/linux-6.15/arch/loongarch/kernel/
H A Dnuma.c77 if (nr_node_ids >= 8) in setup_per_cpu_areas()
362 loongson_sysconf.nr_nodes = nr_node_ids; in init_numa_memory()
/linux-6.15/arch/x86/kernel/
H A Dsetup_percpu.c118 NR_CPUS, nr_cpumask_bits, nr_cpu_ids, nr_node_ids); in setup_per_cpu_areas()
/linux-6.15/arch/powerpc/mm/
H A Dnuma.c78 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map()
86 pr_debug("Node to cpumask map for %u nodes\n", nr_node_ids); in setup_node_to_cpumask_map()
183 if (nid == 0xffff || nid >= nr_node_ids) in __associativity_to_nid()
/linux-6.15/include/linux/
H A Dnodemask.h461 extern unsigned int nr_node_ids;
503 #define nr_node_ids 1U macro
/linux-6.15/kernel/sched/
H A Dtopology.c1748 for (i = 0; i < nr_node_ids; i++) { in sched_numa_warn()
1750 for (j = 0; j < nr_node_ids; j++) { in sched_numa_warn()
1927 masks[i] = kzalloc(nr_node_ids * sizeof(void *), GFP_KERNEL); in sched_init_numa()
2058 for (j = 0; j < nr_node_ids; j++) { in sched_domains_numa_masks_set()
2074 for (j = 0; j < nr_node_ids; j++) { in sched_domains_numa_masks_clear()
2204 if (node >= nr_node_ids || hops >= sched_domains_numa_levels) in sched_numa_hop_mask()
H A Dext_idle.c760 if (node < 0 || node >= nr_node_ids) { in validate_node()
/linux-6.15/drivers/hv/
H A Dhv.c112 hv_context.hv_numa_map = kcalloc(nr_node_ids, sizeof(struct cpumask), in hv_synic_alloc()
H A Dchannel_mgmt.c770 if (numa_node == nr_node_ids) { in init_vp_index()
/linux-6.15/drivers/infiniband/sw/siw/
H A Dsiw_main.c124 int i, num_nodes = nr_node_ids; in siw_init_cpulist()
/linux-6.15/arch/powerpc/platforms/pseries/
H A Dhotplug-cpu.c244 if (rc && nr_node_ids > 1) { in pseries_add_processor()
/linux-6.15/arch/powerpc/sysdev/xive/
H A Dcommon.c1144 ipi_domain = irq_domain_create_linear(fwnode, nr_node_ids, in xive_init_ipis()
1149 xive_ipis = kcalloc(nr_node_ids, sizeof(*xive_ipis), GFP_KERNEL | __GFP_NOFAIL); in xive_init_ipis()
/linux-6.15/kernel/
H A Dworkqueue.c1559 node = nr_node_ids; in wq_node_nr_active()
4850 kfree(nna_ar[nr_node_ids]); in free_node_nr_active()
4851 nna_ar[nr_node_ids] = NULL; in free_node_nr_active()
4884 nna_ar[nr_node_ids] = nna; in alloc_node_nr_active()
5679 wq_size = struct_size(wq, node_nr_active, nr_node_ids + 1); in __alloc_workqueue()

12