Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/kernel/irq/
H A Daffinity.c48 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()
281 node_vectors = kcalloc(nr_node_ids, in __irq_build_affinity_masks()
291 for (i = 0; i < nr_node_ids; i++) { in __irq_build_affinity_masks()
/OK3568_Linux_fs/kernel/arch/arm64/mm/
H A Dnuma.c53 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()
282 size = nr_node_ids * nr_node_ids * sizeof(numa_distance[0]); in numa_alloc_distance()
291 numa_distance_cnt = nr_node_ids; in numa_alloc_distance()
/OK3568_Linux_fs/kernel/arch/x86/mm/
H A Dnuma.c114 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()
903 if ((unsigned)node >= nr_node_ids) { in cpumask_of_node()
906 node, nr_node_ids); in cpumask_of_node()
/OK3568_Linux_fs/kernel/arch/powerpc/mm/
H A Dnuma.c74 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map()
82 dbg("Node to cpumask map for %u nodes\n", nr_node_ids); in setup_node_to_cpumask_map()
239 if (nid == 0xffff || nid >= nr_node_ids) in associativity_to_nid()
452 if (nid == 0xffff || nid >= nr_node_ids) in of_drconf_to_nid_single()
/OK3568_Linux_fs/kernel/kernel/sched/
H A Dtopology.c1469 for (i = 0; i < nr_node_ids; i++) { in sched_numa_warn()
1471 for (j = 0; j < nr_node_ids; j++) in sched_numa_warn()
1564 for (i = 0; i < nr_node_ids; i++) { in sched_init_numa()
1565 for (j = 0; j < nr_node_ids; j++) { in sched_init_numa()
1623 kzalloc(nr_node_ids * sizeof(void *), GFP_KERNEL); in sched_init_numa()
1627 for (j = 0; j < nr_node_ids; j++) { in sched_init_numa()
1698 for (j = 0; j < nr_node_ids; j++) { in sched_domains_numa_masks_set()
1710 for (j = 0; j < nr_node_ids; j++) in sched_domains_numa_masks_clear()
H A Dfair.c1262 return NR_NUMA_HINT_FAULT_TYPES * (s * nr_node_ids + nid) + priv; in task_faults_idx()
2507 4*nr_node_ids*sizeof(unsigned long); in task_numa_group()
2520 nr_node_ids; in task_numa_group()
2522 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) in task_numa_group()
2580 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) { in task_numa_group()
2623 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) in task_numa_free()
2638 for (i = 0; i < NR_NUMA_HINT_FAULT_STATS * nr_node_ids; i++) in task_numa_free()
2665 NR_NUMA_HINT_FAULT_BUCKETS * nr_node_ids; in task_numa_fault()
/OK3568_Linux_fs/kernel/include/linux/
H A Dnodemask.h447 extern unsigned int nr_node_ids;
488 #define nr_node_ids 1U macro
/OK3568_Linux_fs/kernel/arch/x86/kernel/
H A Dsetup_percpu.c175 NR_CPUS, nr_cpumask_bits, nr_cpu_ids, nr_node_ids); in setup_per_cpu_areas()
/OK3568_Linux_fs/kernel/drivers/hv/
H A Dhv.c89 hv_context.hv_numa_map = kcalloc(nr_node_ids, sizeof(struct cpumask), in hv_synic_alloc()
H A Dchannel_mgmt.c704 if (numa_node == nr_node_ids) { in init_vp_index()
/OK3568_Linux_fs/kernel/mm/
H A Dksm.c2969 buf = kcalloc(nr_node_ids + nr_node_ids, sizeof(*buf), in merge_across_nodes_store()
2976 root_unstable_tree = buf + nr_node_ids; in merge_across_nodes_store()
2983 ksm_nr_node_ids = knob ? 1 : nr_node_ids; in merge_across_nodes_store()
H A Dslab.h637 for (__node = 0; __node < nr_node_ids; __node++) \
H A Dlist_lru.c604 lru->node = kcalloc(nr_node_ids, sizeof(*lru->node), GFP_KERNEL); in __list_lru_init()
H A Dmempolicy.c1446 unsigned int nbytes = BITS_TO_LONGS(nr_node_ids) * sizeof(long); in copy_nodes_to_user()
1620 if (nmask != NULL && maxnode < nr_node_ids) in kernel_get_mempolicy()
1658 nr_bits = min_t(unsigned long, maxnode-1, nr_node_ids); in COMPAT_SYSCALL_DEFINE5()
H A Dslub.c4456 nr_node_ids * sizeof(struct kmem_cache_node *), in kmem_cache_init()
4475 nr_cpu_ids, nr_node_ids); in kmem_cache_init()
4915 nodes = kcalloc(nr_node_ids, sizeof(unsigned long), GFP_KERNEL); in show_slab_objects()
5004 for (node = 0; node < nr_node_ids; node++) in show_slab_objects()
H A Dvmalloc.c3483 memset(counters, 0, nr_node_ids * sizeof(unsigned int)); in show_numa_info()
3589 nr_node_ids * sizeof(unsigned int), NULL); in proc_vmalloc_init()
H A Dswapfile.c2914 p = kvzalloc(struct_size(p, avail_lists, nr_node_ids), GFP_KERNEL); in alloc_swap_info()
3879 swap_avail_heads = kmalloc_array(nr_node_ids, sizeof(struct plist_head), in swapfile_init()
H A Dslab.c666 alc_ptr = kcalloc_node(nr_node_ids, sizeof(void *), gfp, node); in alloc_alien_cache()
1250 nr_node_ids * sizeof(struct kmem_cache_node *), in kmem_cache_init()
H A Dcompaction.c2707 if (nid >= 0 && nid < nr_node_ids && node_online(nid)) { in sysfs_compact_node()
H A Dpage_alloc.c382 unsigned int nr_node_ids __read_mostly = MAX_NUMNODES;
384 EXPORT_SYMBOL(nr_node_ids);
7349 nr_node_ids = highest + 1; in setup_nr_node_ids()
/OK3568_Linux_fs/kernel/drivers/infiniband/sw/siw/
H A Dsiw_main.c138 int i, num_nodes = nr_node_ids; in siw_init_cpulist()
/OK3568_Linux_fs/kernel/kernel/
H A Dworkqueue.c3962 ctx = kzalloc(struct_size(ctx, pwq_tbl, nr_node_ids), GFP_KERNEL); in apply_wqattrs_prepare()
4311 tbl_size = nr_node_ids * sizeof(wq->numa_pwq_tbl[0]); in alloc_workqueue()
5954 tbl = kcalloc(nr_node_ids, sizeof(tbl[0]), GFP_KERNEL); in wq_numa_init()
/OK3568_Linux_fs/kernel/io_uring/
H A Dio-wq.c1133 wq = kzalloc(struct_size(wq, wqes, nr_node_ids), GFP_KERNEL); in io_wq_create()
/OK3568_Linux_fs/kernel/net/sunrpc/
H A Dsvc.c196 unsigned int maxpools = nr_node_ids; in svc_pool_map_init_pernode()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/cavium/thunder/
H A Dnic_main.c1244 if (nr_node_ids > 1) in nic_num_sqs_en()

12