/linux/kernel/irq/ |
A D | affinity.c | 48 masks = kcalloc(nr_node_ids, sizeof(cpumask_var_t), GFP_KERNEL); in alloc_node_to_cpumask() 52 for (node = 0; node < nr_node_ids; node++) { in alloc_node_to_cpumask() 70 for (node = 0; node < nr_node_ids; node++) in free_node_to_cpumask() 137 for (n = 0; n < nr_node_ids; n++) { in alloc_nodes_vectors() 156 sort(node_vectors, nr_node_ids, sizeof(node_vectors[0]), in alloc_nodes_vectors() 227 for (n = 0; n < nr_node_ids; n++) { in alloc_nodes_vectors() 280 node_vectors = kcalloc(nr_node_ids, in __irq_build_affinity_masks() 290 for (i = 0; i < nr_node_ids; i++) { in __irq_build_affinity_masks()
|
/linux/drivers/base/ |
A D | arch_numa.c | 53 if (WARN_ON(node < 0 || node >= nr_node_ids)) in cpumask_of_node() 106 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map() 110 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() 342 size = nr_node_ids * nr_node_ids * sizeof(numa_distance[0]); in numa_alloc_distance() 347 numa_distance_cnt = nr_node_ids; in numa_alloc_distance()
|
/linux/arch/x86/mm/ |
A D | numa.c | 114 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map() 118 for (node = 0; node < nr_node_ids; node++) in setup_node_to_cpumask_map() 122 pr_debug("Node to cpumask map for %u nodes\n", nr_node_ids); in setup_node_to_cpumask_map() 902 if ((unsigned)node >= nr_node_ids) { in cpumask_of_node() 905 node, nr_node_ids); in cpumask_of_node()
|
/linux/kernel/sched/ |
A D | topology.c | 1685 for (i = 0; i < nr_node_ids; i++) { in sched_numa_warn() 1687 for (j = 0; j < nr_node_ids; j++) in sched_numa_warn() 1780 for (i = 0; i < nr_node_ids; i++) { in sched_init_numa() 1781 for (j = 0; j < nr_node_ids; j++) { in sched_init_numa() 1839 kzalloc(nr_node_ids * sizeof(void *), GFP_KERNEL); in sched_init_numa() 1843 for (j = 0; j < nr_node_ids; j++) { in sched_init_numa() 1917 sched_numa_onlined_nodes = bitmap_alloc(nr_node_ids, GFP_KERNEL); in sched_init_numa() 1921 bitmap_zero(sched_numa_onlined_nodes, nr_node_ids); in sched_init_numa() 1942 for (j = 0; j < nr_node_ids; j++) { in __sched_domains_numa_masks_set() 1973 for (j = 0; j < nr_node_ids; j++) { in sched_domains_numa_masks_set() [all …]
|
A D | fair.c | 1195 return NR_NUMA_HINT_FAULT_TYPES * (s * nr_node_ids + nid) + priv; in task_faults_idx() 2443 nr_node_ids * sizeof(unsigned long); in task_numa_group() 2455 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) in task_numa_group() 2513 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) { in task_numa_group() 2556 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) in task_numa_free() 2571 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) in task_numa_free() 2598 NR_NUMA_HINT_FAULT_BUCKETS * nr_node_ids; in task_numa_fault()
|
/linux/include/linux/ |
A D | nodemask.h | 448 extern unsigned int nr_node_ids; 489 #define nr_node_ids 1U macro
|
/linux/arch/x86/kernel/ |
A D | setup_percpu.c | 175 NR_CPUS, nr_cpumask_bits, nr_cpu_ids, nr_node_ids); in setup_per_cpu_areas()
|
/linux/arch/powerpc/mm/ |
A D | numa.c | 79 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map() 87 pr_debug("Node to cpumask map for %u nodes\n", nr_node_ids); in setup_node_to_cpumask_map() 184 if (nid == 0xffff || nid >= nr_node_ids) in __associativity_to_nid()
|
/linux/drivers/hv/ |
A D | hv.c | 133 hv_context.hv_numa_map = kcalloc(nr_node_ids, sizeof(struct cpumask), in hv_synic_alloc()
|
A D | channel_mgmt.c | 755 if (numa_node == nr_node_ids) { in init_vp_index()
|
/linux/mm/ |
A D | mempolicy.c | 1419 unsigned int nbytes = BITS_TO_LONGS(nr_node_ids) * sizeof(long); in copy_nodes_to_user() 1423 nbytes = BITS_TO_COMPAT_LONGS(nr_node_ids) * sizeof(compat_long_t); in copy_nodes_to_user() 1431 maxnode = nr_node_ids; in copy_nodes_to_user() 1620 if (nmask != NULL && maxnode < nr_node_ids) in kernel_get_mempolicy()
|
A D | ksm.c | 2960 buf = kcalloc(nr_node_ids + nr_node_ids, sizeof(*buf), in merge_across_nodes_store() 2967 root_unstable_tree = buf + nr_node_ids; in merge_across_nodes_store() 2974 ksm_nr_node_ids = knob ? 1 : nr_node_ids; in merge_across_nodes_store()
|
A D | slab.h | 573 for (__node = 0; __node < nr_node_ids; __node++) \
|
A D | list_lru.c | 584 lru->node = kcalloc(nr_node_ids, sizeof(*lru->node), GFP_KERNEL); in __list_lru_init()
|
A D | slub.c | 4836 nr_node_ids * sizeof(struct kmem_cache_node *), in kmem_cache_init() 4855 nr_cpu_ids, nr_node_ids); in kmem_cache_init() 5232 nodes = kcalloc(nr_node_ids, sizeof(unsigned long), GFP_KERNEL); in show_slab_objects() 5322 for (node = 0; node < nr_node_ids; node++) { in show_slab_objects()
|
A D | vmalloc.c | 3911 memset(counters, 0, nr_node_ids * sizeof(unsigned int)); in show_numa_info() 4010 nr_node_ids * sizeof(unsigned int), NULL); in proc_vmalloc_init()
|
A D | swapfile.c | 2842 p = kvzalloc(struct_size(p, avail_lists, nr_node_ids), GFP_KERNEL); in alloc_swap_info() 3816 swap_avail_heads = kmalloc_array(nr_node_ids, sizeof(struct plist_head), in swapfile_init()
|
/linux/drivers/infiniband/sw/siw/ |
A D | siw_main.c | 138 int i, num_nodes = nr_node_ids; in siw_init_cpulist()
|
/linux/arch/powerpc/sysdev/xive/ |
A D | common.c | 1123 ipi_domain = irq_domain_create_linear(fwnode, nr_node_ids, in xive_init_ipis() 1128 xive_ipis = kcalloc(nr_node_ids, sizeof(*xive_ipis), GFP_KERNEL | __GFP_NOFAIL); in xive_init_ipis()
|
/linux/arch/powerpc/platforms/pseries/ |
A D | hotplug-cpu.c | 240 if (rc && nr_node_ids > 1) { in pseries_add_processor()
|
/linux/kernel/ |
A D | workqueue.c | 3965 ctx = kzalloc(struct_size(ctx, pwq_tbl, nr_node_ids), GFP_KERNEL); in apply_wqattrs_prepare() 4314 tbl_size = nr_node_ids * sizeof(wq->numa_pwq_tbl[0]); in alloc_workqueue() 5991 tbl = kcalloc(nr_node_ids, sizeof(tbl[0]), GFP_KERNEL); in wq_numa_init()
|
/linux/fs/ |
A D | io-wq.c | 1136 wq = kzalloc(struct_size(wq, wqes, nr_node_ids), GFP_KERNEL); in io_wq_create()
|
/linux/drivers/net/ethernet/cavium/thunder/ |
A D | nic_main.c | 1244 if (nr_node_ids > 1) in nic_num_sqs_en()
|
/linux/net/sunrpc/ |
A D | svc.c | 198 unsigned int maxpools = nr_node_ids; in svc_pool_map_init_pernode()
|
/linux/drivers/char/ |
A D | random.c | 838 pool = kcalloc(nr_node_ids, sizeof(*pool), GFP_KERNEL|__GFP_NOFAIL); in do_numa_crng_init()
|