Home
last modified time | relevance | path

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

12

/linux/lib/
H A Dgroup_cpus.c50 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 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/tools/workqueue/
H A Dwq_dump.py224 nr_node_ids = prog['nr_node_ids'].value_() variable
246 nna = wq.node_nr_active[nr_node_ids]
/linux/mm/
H A Dshrinker_debug.c56 count_per_node = kcalloc(nr_node_ids, sizeof(unsigned long), GFP_KERNEL); in shrinker_debugfs_count_show()
122 if (nid < 0 || nid >= nr_node_ids) in shrinker_debugfs_scan_write()
H A Dhugetlb_sysfs.c377 for (nid = 0; nid < nr_node_ids; nid++) { in kobj_to_node_hstate()
H A Dshrinker.c733 size *= nr_node_ids; in shrinker_alloc()
H A Dhugetlb_cgroup.c142 h_cgroup = kzalloc_flex(*h_cgroup, nodeinfo, nr_node_ids); in hugetlb_cgroup_css_alloc()
H A Dslub.c491 for (__node = 0; __node < nr_node_ids; __node++) \
8276 if (nr_node_ids > 1) { in setup_slab_strict_numa()
8675 nr_node_ids * sizeof(struct kmem_cache_per_node_ptrs), in kmem_cache_init()
8697 nr_cpu_ids, nr_node_ids); in kmem_cache_init()
9094 nodes = kcalloc(nr_node_ids, sizeof(unsigned long), GFP_KERNEL); in show_slab_objects()
9144 for (node = 0; node < nr_node_ids; node++) { in show_slab_objects()
H A Dmemcontrol.c5650 memcg_size = struct_size_t(struct mem_cgroup, nodeinfo, nr_node_ids); in mem_cgroup_init()
/linux/include/linux/
H A Dnodemask.h99 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 Dalloc.c358 nr_node_ids); in mlx5_frag_buf_pools_init()
481 priv->db_node_pools = kzalloc_objs(*priv->db_node_pools, nr_node_ids); in mlx5_db_pools_init()
/linux/include/net/
H A Dudp.h295 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 Dcid.c493 node_counts = kcalloc(nr_node_ids, sizeof(*node_counts), GFP_KERNEL); in scx_bpf_cid_override()
585 memset(node_counts, 0, nr_node_ids * sizeof(*node_counts)); in scx_bpf_cid_override()
592 tbls->shard_node[si] = pick_max_node(node_counts, nr_node_ids); in scx_bpf_cid_override()
H A Didle.c688 scx_idle_node_masks = kzalloc_objs(*scx_idle_node_masks, nr_node_ids); in scx_idle_init_masks()
897 if (node < 0 || node >= nr_node_ids) { in validate_node()
H A Dext.c7148 sch->pnode = kzalloc_objs(sch->pnode[0], nr_node_ids); in scx_alloc_and_add_sched()
9366 if (unlikely(node >= (int)nr_node_ids || in scx_bpf_create_dsq()
10286 return nr_node_ids; in scx_bpf_nr_node_ids()
/linux/kernel/sched/
H A Dtopology.c2140 for (i = 0; i < nr_node_ids; i++) { in sched_numa_warn()
2142 for (j = 0; j < nr_node_ids; j++) { in sched_numa_warn()
2368 masks[i] = kzalloc(nr_node_ids * sizeof(void *), GFP_KERNEL); in sched_init_numa()
2497 for (j = 0; j < nr_node_ids; j++) { in sched_domains_numa_masks_set()
2514 for (j = 0; j < nr_node_ids; j++) { in sched_domains_numa_masks_clear()
2646 if (node >= nr_node_ids || hops >= sched_domains_numa_levels) in sched_numa_hop_mask()
/linux/kernel/futex/
H A Dcore.c402 node = runtime_const_shift_right_32(hash, __futex_shift) % nr_node_ids; in __futex_hash()
404 node = find_next_bit_wrap(node_possible_map.bits, nr_node_ids, node); in __futex_hash()
2106 __futex_queues = kcalloc(nr_node_ids, sizeof(*__futex_queues), GFP_KERNEL);
/linux/drivers/infiniband/sw/siw/
H A Dsiw_main.c124 int i, num_nodes = nr_node_ids; in siw_init_cpulist()
/linux/arch/powerpc/platforms/pseries/
H A Dhotplug-cpu.c244 if (rc && nr_node_ids > 1) { in pseries_add_processor()
/linux/kernel/
H A Dworkqueue.c1632 node = nr_node_ids; in wq_node_nr_active()
5048 kfree(nna_ar[nr_node_ids]); in free_node_nr_active()
5049 nna_ar[nr_node_ids] = NULL; in free_node_nr_active()
5082 nna_ar[nr_node_ids] = nna; in alloc_node_nr_active()
5903 wq_size = struct_size(wq, node_nr_active, nr_node_ids + 1); in __alloc_workqueue()
/linux/kernel/bpf/
H A Darena.c685 ((unsigned int)node_id >= nr_node_ids || !node_online(node_id))) in arena_alloc_pages()
/linux/drivers/net/ethernet/cavium/thunder/
H A Dnic_main.c1244 if (nr_node_ids > 1) in nic_num_sqs_en()
/linux/net/sunrpc/
H A Dsvc.c135 unsigned int maxpools = nr_node_ids; in svc_pool_map_init_pernode()
/linux/drivers/nvme/host/
H A Dpci.c630 for (i = 0; i < nr_node_ids; i++) { in nvme_release_descriptor_pools()
3698 dev = kzalloc_node(struct_size(dev, descriptor_pools, nr_node_ids), in nvme_pci_alloc_dev()
H A Dcore.c4013 size += nr_node_ids * sizeof(struct nvme_ns *); in nvme_alloc_ns_head()

12