| /linux/lib/ |
| H A 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/arch/x86/mm/ |
| H A D | numa.c | 108 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map() 112 for (node = 0; node < nr_node_ids; node++) in setup_node_to_cpumask_map() 116 pr_debug("Node to cpumask map for %u nodes\n", nr_node_ids); in setup_node_to_cpumask_map() 411 if ((unsigned)node >= nr_node_ids) { in cpumask_of_node() 414 node, nr_node_ids); in cpumask_of_node()
|
| /linux/scripts/gdb/linux/ |
| H A 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/drivers/base/ |
| H A 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/mm/ |
| H A D | mempolicy.c | 228 new_bw = kcalloc(nr_node_ids, sizeof(unsigned int), GFP_KERNEL); in mempolicy_set_node_perf() 232 new_wi_state = kmalloc(struct_size(new_wi_state, iw_table, nr_node_ids), in mempolicy_set_node_perf() 239 for (i = 0; i < nr_node_ids; i++) in mempolicy_set_node_perf() 251 memcpy(new_bw, old_bw, nr_node_ids * sizeof(*old_bw)); in mempolicy_set_node_perf() 1693 unsigned int nbytes = BITS_TO_LONGS(nr_node_ids) * sizeof(long); in copy_nodes_to_user() 1697 nbytes = BITS_TO_COMPAT_LONGS(nr_node_ids) * sizeof(compat_long_t); in copy_nodes_to_user() 1705 maxnode = nr_node_ids; in copy_nodes_to_user() 1960 if (nmask != NULL && maxnode < nr_node_ids) in kernel_get_mempolicy() 2682 weights = kzalloc(nr_node_ids, GFP_KERNEL); in alloc_pages_bulk_weighted_interleave() 2689 memcpy(weights, state->iw_table, nr_node_ids * sizeof(u8)); in alloc_pages_bulk_weighted_interleave() [all …]
|
| H A D | hugetlb_sysfs.c | 377 for (nid = 0; nid < nr_node_ids; nid++) { in kobj_to_node_hstate()
|
| H A D | ksm.c | 3589 buf = kcalloc(nr_node_ids + nr_node_ids, sizeof(*buf), in merge_across_nodes_store() 3596 root_unstable_tree = buf + nr_node_ids; in merge_across_nodes_store() 3603 ksm_nr_node_ids = knob ? 1 : nr_node_ids; in merge_across_nodes_store()
|
| H A D | shrinker.c | 722 size *= nr_node_ids; in shrinker_alloc()
|
| H A D | memory-tiers.c | 905 node_demotion = kcalloc(nr_node_ids, sizeof(struct demotion_nodes), in memory_tier_init()
|
| H A D | slub.c | 531 for (__node = 0; __node < nr_node_ids; __node++) \ 8205 if (nr_node_ids > 1) { in setup_slab_strict_numa() 8521 nr_node_ids * sizeof(struct kmem_cache_node *), in kmem_cache_init() 8540 nr_cpu_ids, nr_node_ids); in kmem_cache_init() 8967 nodes = kcalloc(nr_node_ids, sizeof(unsigned long), GFP_KERNEL); in show_slab_objects() 9058 for (node = 0; node < nr_node_ids; node++) { in show_slab_objects()
|
| H A D | memcontrol-v1.c | 1747 VM_BUG_ON((unsigned int)nid >= nr_node_ids); in mem_cgroup_node_nr_lru_pages()
|
| /linux/arch/loongarch/kernel/ |
| H A D | numa.c | 72 if (nr_node_ids >= 8) in setup_per_cpu_areas() 255 loongson_sysconf.nr_nodes = nr_node_ids; in init_numa_memory()
|
| /linux/tools/workqueue/ |
| H A D | wq_dump.py | 223 nr_node_ids = prog['nr_node_ids'].value_() variable 250 nna = wq.node_nr_active[nr_node_ids]
|
| /linux/include/linux/ |
| H A D | nodemask.h | 441 extern unsigned int nr_node_ids; 483 #define nr_node_ids 1U macro
|
| /linux/kernel/sched/ |
| H A D | topology.c | 1839 for (i = 0; i < nr_node_ids; i++) { in sched_numa_warn() 1841 for (j = 0; j < nr_node_ids; j++) { in sched_numa_warn() 2067 masks[i] = kzalloc(nr_node_ids * sizeof(void *), GFP_KERNEL); in sched_init_numa() 2196 for (j = 0; j < nr_node_ids; j++) { in sched_domains_numa_masks_set() 2213 for (j = 0; j < nr_node_ids; j++) { in sched_domains_numa_masks_clear() 2345 if (node >= nr_node_ids || hops >= sched_domains_numa_levels) in sched_numa_hop_mask()
|
| H A D | ext_idle.c | 834 if (node < 0 || node >= nr_node_ids) { in validate_node()
|
| H A D | fair.c | 1599 return NR_NUMA_HINT_FAULT_TYPES * (s * nr_node_ids + nid) + priv; in task_faults_idx() 2998 nr_node_ids * sizeof(unsigned long); in task_numa_group() 3010 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) in task_numa_group() 3068 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) { in task_numa_group() 3111 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) in task_numa_free() 3126 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) in task_numa_free() 3162 NR_NUMA_HINT_FAULT_BUCKETS * nr_node_ids; in task_numa_fault()
|
| /linux/drivers/hv/ |
| H A D | hv.c | 186 hv_context.hv_numa_map = kcalloc(nr_node_ids, sizeof(struct cpumask), in hv_synic_alloc()
|
| H A D | channel_mgmt.c | 771 if (numa_node == nr_node_ids) { in init_vp_index()
|
| /linux/kernel/futex/ |
| H A D | core.c | 442 node = (hash >> futex_hashshift) % nr_node_ids; in __futex_hash() 445 nr_node_ids, node); in __futex_hash()
|
| /linux/arch/powerpc/sysdev/xive/ |
| H A D | common.c | 1142 ipi_domain = irq_domain_create_linear(fwnode, nr_node_ids, in xive_init_ipis() 1147 xive_ipis = kcalloc(nr_node_ids, sizeof(*xive_ipis), GFP_KERNEL | __GFP_NOFAIL); in xive_init_ipis()
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | hotplug-cpu.c | 244 if (rc && nr_node_ids > 1) { in pseries_add_processor()
|
| /linux/kernel/ |
| H A D | workqueue.c | 1559 node = nr_node_ids; in wq_node_nr_active() 4886 kfree(nna_ar[nr_node_ids]); in free_node_nr_active() 4887 nna_ar[nr_node_ids] = NULL; in free_node_nr_active() 4920 nna_ar[nr_node_ids] = nna; in alloc_node_nr_active() 5713 wq_size = struct_size(wq, node_nr_active, nr_node_ids + 1); in __alloc_workqueue()
|
| /linux/drivers/net/ethernet/cavium/thunder/ |
| H A D | nic_main.c | 1244 if (nr_node_ids > 1) in nic_num_sqs_en()
|
| /linux/net/sunrpc/ |
| H A D | svc.c | 261 unsigned int maxpools = nr_node_ids; in svc_pool_map_init_pernode()
|