| /linux/mm/ |
| 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() 114 if (unlikely(nr_node_ids > MAX_NUMNODES)) { in setup_node_to_cpumask_map() 116 nr_node_ids, MAX_NUMNODES); in setup_node_to_cpumask_map() 121 for (node = 0; node < nr_node_ids; node++) { in setup_node_to_cpumask_map() 127 pr_debug("Node to cpumask map for %u nodes\n", nr_node_ids); in setup_node_to_cpumask_map()
|
| H A D | mempolicy.c | 157 * and .iw_table is interpreted as an array of 1s with length nr_node_ids. 256 new_bw = kzalloc_objs(unsigned int, nr_node_ids); in mempolicy_set_node_perf() 260 new_wi_state = kmalloc_flex(*new_wi_state, iw_table, nr_node_ids); in mempolicy_set_node_perf() 266 for (i = 0; i < nr_node_ids; i++) in mempolicy_set_node_perf() 278 memcpy(new_bw, old_bw, nr_node_ids * sizeof(*old_bw)); 1724 unsigned int nbytes = BITS_TO_LONGS(nr_node_ids) * sizeof(long); in sanitize_mpol_flags() 1728 nbytes = BITS_TO_COMPAT_LONGS(nr_node_ids) * sizeof(compat_long_t); in sanitize_mpol_flags() 1736 maxnode = nr_node_ids; in sanitize_mpol_flags() 1990 if (nmask != NULL && maxnode < nr_node_ids) in SYSCALL_DEFINE5() 3691 new_wi_state = kzalloc_flex(*new_wi_state, iw_table, nr_node_ids); in weighted_interleave_auto_store() [all...] |
| H A D | shrinker_debug.c | 56 count_per_node = kzalloc_objs(unsigned long, nr_node_ids); in shrinker_debugfs_count_show() 122 if (nid < 0 || nid >= nr_node_ids) in shrinker_debugfs_scan_write()
|
| 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 | 3671 buf = kzalloc_objs(*buf, nr_node_ids + nr_node_ids); in use_zero_pages_store() 3677 root_unstable_tree = buf + nr_node_ids; in max_page_sharing_show() 3678 ksm_nr_node_ids = nr_node_ids; in max_page_sharing_show()
|
| H A D | shrinker.c | 742 size *= nr_node_ids; in shrinker_alloc()
|
| H A D | hugetlb_cgroup.c | 145 h_cgroup = kzalloc_flex(*h_cgroup, nodeinfo, nr_node_ids); in hugetlb_cgroup_css_alloc()
|
| H A D | slub.c | 523 for (__node = 0; __node < nr_node_ids; __node++) \ 8421 if (nr_node_ids > 1) { in __kmem_cache_do_shrink() 8820 nr_node_ids * sizeof(struct kmem_cache_per_node_ptrs), in count_inuse() 8842 nr_cpu_ids, nr_node_ids); in validate_slab() 9239 nodes = kzalloc_objs(unsigned long, nr_node_ids); 9289 for (node = 0; node < nr_node_ids; node++) { in slabs_cpu_partial_show()
|
| /linux/lib/ |
| H A D | group_cpus.c | 50 masks = kzalloc_objs(cpumask_var_t, nr_node_ids); 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() 237 for (n = 0; n < nr_node_ids; n++) { in alloc_nodes_groups() 255 alloc_groups_to_nodes(numgrps, numcpus, node_groups, nr_node_ids); in alloc_nodes_groups() 435 node_groups = kzalloc_objs(struct node_groups, nr_node_ids); in __group_cpus_evenly() 442 for (i = 0; i < nr_node_ids; i++) { in __group_cpus_evenly()
|
| /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/tools/workqueue/ |
| H A D | wq_dump.py | 230 nr_node_ids = prog['nr_node_ids'].value_() variable 252 nna = wq.node_nr_active[nr_node_ids]
|
| /linux/include/linux/ |
| H A D | nodemask.h | 99 extern unsigned int nr_node_ids; 102 #define nr_node_ids 1U macro 116 return m ? nr_node_ids : 0; in __nodemask_pr_numnodes()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | alloc.c | 359 nr_node_ids); in mlx5_frag_buf_pools_init() 482 priv->db_node_pools = kzalloc_objs(*priv->db_node_pools, nr_node_ids); in mlx5_db_pools_init()
|
| /linux/include/net/ |
| H A D | udp.h | 295 up->udp_prod_queue = kzalloc_objs(*up->udp_prod_queue, nr_node_ids); in udp_lib_init_sock() 298 for (int i = 0; i < nr_node_ids; i++) in udp_lib_init_sock()
|
| /linux/kernel/sched/ext/ |
| H A D | cid.c | 530 node_counts = kzalloc_objs(*node_counts, nr_node_ids); in scx_bpf_cid_override() 622 memset(node_counts, 0, nr_node_ids * sizeof(*node_counts)); 629 tbls->shard_node[si] = pick_max_node(node_counts, nr_node_ids);
|
| H A D | idle.c | 697 /* Allocate per-node idle cpumasks (use nr_node_ids for non-contiguous NUMA nodes) */ in scx_idle_init_masks() 698 scx_idle_node_masks = kzalloc_objs(*scx_idle_node_masks, nr_node_ids); in scx_idle_init_masks() 907 if (node < 0 || node >= nr_node_ids) { in validate_node()
|
| /linux/kernel/sched/ |
| H A D | topology.c | 2162 for (i = 0; i < nr_node_ids; i++) { in sched_numa_warn() 2164 for (j = 0; j < nr_node_ids; j++) { in sched_numa_warn() 2390 masks[i] = kzalloc(nr_node_ids * sizeof(void *), GFP_KERNEL); in sched_init_numa() 2519 for (j = 0; j < nr_node_ids; j++) { in sched_domains_numa_masks_set() 2536 for (j = 0; j < nr_node_ids; j++) { in sched_domains_numa_masks_clear() 2668 if (node >= nr_node_ids || hops >= sched_domains_numa_levels) in sched_numa_hop_mask()
|
| /linux/kernel/futex/ |
| H A D | core.c | 404 node = runtime_const_shift_right_32(hash, __futex_shift) % nr_node_ids; in __futex_hash() 406 node = find_next_bit_wrap(node_possible_map.bits, nr_node_ids, node); in __futex_hash() 2113 __futex_queues = kzalloc_objs(*__futex_queues, nr_node_ids); in futex_init()
|
| /linux/drivers/infiniband/sw/siw/ |
| H A D | siw_main.c | 124 int i, num_nodes = nr_node_ids; in siw_init_cpulist()
|
| /linux/drivers/hv/ |
| H A D | hv.c | 186 hv_context.hv_numa_map = kzalloc_objs(struct cpumask, nr_node_ids); in hv_synic_alloc()
|
| H A D | channel_mgmt.c | 780 if (numa_node == nr_node_ids) { in init_vp_index()
|
| /linux/arch/powerpc/sysdev/xive/ |
| H A D | common.c | 1132 ipi_domain = irq_domain_create_linear(fwnode, nr_node_ids, in xive_init_ipis() 1137 xive_ipis = kzalloc_objs(*xive_ipis, nr_node_ids); 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 | 356 * those. One per possible node plus the NUMA_NO_NODE fallback at nr_node_ids, 641 * Per-node arrays in this file carry an extra slot at nr_node_ids serving 646 if (node >= nr_node_ids) in work_fixup_init() 647 return nr_node_ids + 1; in work_fixup_init() 650 if (node >= nr_node_ids) in work_fixup_init() 651 return nr_node_ids; in work_fixup_init() 657 (node) <= nr_node_ids; \ 1666 * - node_nr_active[nr_node_ids] if @node is %NUMA_NO_NODE. in wq_update_node_max_active() 1676 node = nr_node_ids; in wq_update_node_max_active() 1686 * Return @wq's wq_flush_pnode for @node, the nr_node_ids fallbac in wq_update_node_max_active() [all...] |
| /linux/kernel/bpf/ |
| H A D | arena.c | 794 ((unsigned int)node_id >= nr_node_ids || !node_online(node_id))) in zap_pages()
|