/linux-6.12.1/lib/ |
D | group_cpus.c | 50 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.12.1/arch/x86/mm/ |
D | numa.c | 107 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.12.1/scripts/gdb/linux/ |
D | slab.py | 183 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.12.1/drivers/base/ |
D | arch_numa.c | 50 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.12.1/tools/workqueue/ |
D | wq_dump.py | 223 nr_node_ids = prog['nr_node_ids'].value_() variable 250 nna = wq.node_nr_active[nr_node_ids]
|
/linux-6.12.1/mm/ |
D | shrinker_debug.c | 56 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()
|
D | mempolicy.c | 1474 unsigned int nbytes = BITS_TO_LONGS(nr_node_ids) * sizeof(long); in copy_nodes_to_user() 1478 nbytes = BITS_TO_COMPAT_LONGS(nr_node_ids) * sizeof(compat_long_t); in copy_nodes_to_user() 1486 maxnode = nr_node_ids; in copy_nodes_to_user() 1741 if (nmask != NULL && maxnode < nr_node_ids) in kernel_get_mempolicy() 2446 weights = kzalloc(nr_node_ids, GFP_KERNEL); in alloc_pages_bulk_array_weighted_interleave() 2453 memcpy(weights, table, nr_node_ids); in alloc_pages_bulk_array_weighted_interleave() 3397 new = kzalloc(nr_node_ids, GFP_KERNEL); in node_store() 3405 memcpy(new, old, nr_node_ids); in node_store() 3430 for (i = 0; i < nr_node_ids; i++) in sysfs_wi_release() 3531 node_attrs = kcalloc(nr_node_ids, sizeof(struct iw_node_attr *), in mempolicy_sysfs_init()
|
D | list_lru.c | 349 mlru = kmalloc(struct_size(mlru, node, nr_node_ids), gfp); in memcg_init_list_lru_one() 580 lru->node = kcalloc(nr_node_ids, sizeof(*lru->node), GFP_KERNEL); in __list_lru_init()
|
D | ksm.c | 3414 buf = kcalloc(nr_node_ids + nr_node_ids, sizeof(*buf), in merge_across_nodes_store() 3421 root_unstable_tree = buf + nr_node_ids; in merge_across_nodes_store() 3428 ksm_nr_node_ids = knob ? 1 : nr_node_ids; in merge_across_nodes_store()
|
D | shrinker.c | 722 size *= nr_node_ids; in shrinker_alloc()
|
D | memory-tiers.c | 912 node_demotion = kcalloc(nr_node_ids, sizeof(struct demotion_nodes), in memory_tier_init()
|
D | hugetlb_cgroup.c | 152 h_cgroup = kzalloc(struct_size(h_cgroup, nodeinfo, nr_node_ids), in hugetlb_cgroup_css_alloc()
|
D | slub.c | 446 for (__node = 0; __node < nr_node_ids; __node++) \ 5924 nr_node_ids * sizeof(struct kmem_cache_node *), in kmem_cache_init() 5943 nr_cpu_ids, nr_node_ids); in kmem_cache_init() 6346 nodes = kcalloc(nr_node_ids, sizeof(unsigned long), GFP_KERNEL); in show_slab_objects() 6437 for (node = 0; node < nr_node_ids; node++) { in show_slab_objects()
|
/linux-6.12.1/arch/loongarch/kernel/ |
D | numa.c | 77 if (nr_node_ids >= 8) in setup_per_cpu_areas() 362 loongson_sysconf.nr_nodes = nr_node_ids; in init_numa_memory()
|
/linux-6.12.1/arch/x86/kernel/ |
D | setup_percpu.c | 123 NR_CPUS, nr_cpumask_bits, nr_cpu_ids, nr_node_ids); in setup_per_cpu_areas()
|
/linux-6.12.1/include/linux/ |
D | nodemask.h | 455 extern unsigned int nr_node_ids; 497 #define nr_node_ids 1U macro
|
/linux-6.12.1/arch/powerpc/mm/ |
D | numa.c | 78 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.12.1/kernel/sched/ |
D | topology.c | 1753 for (i = 0; i < nr_node_ids; i++) { in sched_numa_warn() 1755 for (j = 0; j < nr_node_ids; j++) { in sched_numa_warn() 1932 masks[i] = kzalloc(nr_node_ids * sizeof(void *), GFP_KERNEL); in sched_init_numa() 2063 for (j = 0; j < nr_node_ids; j++) { in sched_domains_numa_masks_set() 2079 for (j = 0; j < nr_node_ids; j++) { in sched_domains_numa_masks_clear() 2209 if (node >= nr_node_ids || hops >= sched_domains_numa_levels) in sched_numa_hop_mask()
|
D | fair.c | 1617 return NR_NUMA_HINT_FAULT_TYPES * (s * nr_node_ids + nid) + priv; in task_faults_idx() 3015 nr_node_ids * sizeof(unsigned long); in task_numa_group() 3027 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) in task_numa_group() 3085 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) { in task_numa_group() 3128 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) in task_numa_free() 3143 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) in task_numa_free() 3179 NR_NUMA_HINT_FAULT_BUCKETS * nr_node_ids; in task_numa_fault()
|
/linux-6.12.1/drivers/hv/ |
D | hv.c | 112 hv_context.hv_numa_map = kcalloc(nr_node_ids, sizeof(struct cpumask), in hv_synic_alloc()
|
D | channel_mgmt.c | 770 if (numa_node == nr_node_ids) { in init_vp_index()
|
/linux-6.12.1/drivers/infiniband/sw/siw/ |
D | siw_main.c | 125 int i, num_nodes = nr_node_ids; in siw_init_cpulist()
|
/linux-6.12.1/arch/powerpc/sysdev/xive/ |
D | common.c | 1144 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.12.1/arch/powerpc/platforms/pseries/ |
D | hotplug-cpu.c | 241 if (rc && nr_node_ids > 1) { in pseries_add_processor()
|
/linux-6.12.1/kernel/ |
D | workqueue.c | 1559 node = nr_node_ids; in wq_node_nr_active() 4823 kfree(nna_ar[nr_node_ids]); in free_node_nr_active() 4824 nna_ar[nr_node_ids] = NULL; in free_node_nr_active() 4857 nna_ar[nr_node_ids] = nna; in alloc_node_nr_active() 5651 wq_size = struct_size(wq, node_nr_active, nr_node_ids + 1); in __alloc_workqueue()
|