Home
last modified time | relevance | path

Searched refs:MAX_NUMNODES (Results 1 – 25 of 92) sorted by relevance

1234

/Linux-v4.19/include/linux/
Dnodemask.h98 typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t;
111 return m ? MAX_NUMNODES : 0; in __nodemask_pr_numnodes()
139 #define nodes_setall(dst) __nodes_setall(&(dst), MAX_NUMNODES)
145 #define nodes_clear(dst) __nodes_clear(&(dst), MAX_NUMNODES)
162 __nodes_and(&(dst), &(src1), &(src2), MAX_NUMNODES)
170 __nodes_or(&(dst), &(src1), &(src2), MAX_NUMNODES)
178 __nodes_xor(&(dst), &(src1), &(src2), MAX_NUMNODES)
186 __nodes_andnot(&(dst), &(src1), &(src2), MAX_NUMNODES)
194 __nodes_complement(&(dst), &(src), MAX_NUMNODES)
202 __nodes_equal(&(src1), &(src2), MAX_NUMNODES)
[all …]
Dnuma.h12 #define MAX_NUMNODES (1 << NODES_SHIFT) macro
/Linux-v4.19/arch/ia64/include/asm/
Dnuma.h26 extern cpumask_t node_to_cpu_mask[MAX_NUMNODES] __cacheline_aligned;
27 extern pg_data_t *pgdat_list[MAX_NUMNODES];
61 extern u8 numa_slit[MAX_NUMNODES * MAX_NUMNODES];
62 #define node_distance(from,to) (numa_slit[(from) * MAX_NUMNODES + (to)])
Dmmzone.h32 # define NR_NODE_MEMBLKS (MAX_NUMNODES * 8)
35 # define NR_NODE_MEMBLKS (MAX_NUMNODES * 4)
39 # define NR_NODE_MEMBLKS (MAX_NUMNODES * 4)
Dacpi.h100 #if MAX_NUMNODES > 256
101 #define MAX_PXM_DOMAINS MAX_NUMNODES
106 extern int __initdata nid_to_pxm_map[MAX_NUMNODES];
/Linux-v4.19/arch/mips/loongson64/loongson-3/
Dnuma.c34 static struct node_data prealloc__node_data[MAX_NUMNODES];
35 unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
37 struct node_data *__node_data[MAX_NUMNODES];
91 for (row = 0; row < MAX_NUMNODES; row++) in init_topology_matrix()
92 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix()
/Linux-v4.19/include/acpi/
Dacpi_numa.h10 #if MAX_NUMNODES > 256
11 #define MAX_PXM_DOMAINS MAX_NUMNODES
/Linux-v4.19/arch/mips/include/asm/mach-loongson64/
Dtopology.h15 extern unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
/Linux-v4.19/lib/
Dnodemask.c10 if (ret == MAX_NUMNODES) in __next_node_in()
28 get_random_int() % w, MAX_NUMNODES); in node_random()
/Linux-v4.19/arch/s390/numa/
Dnuma.c24 pg_data_t *node_data[MAX_NUMNODES];
27 cpumask_t node_to_cpumask_map[MAX_NUMNODES];
107 for (nid = 0; nid < MAX_NUMNODES; nid++) in numa_setup_memory()
/Linux-v4.19/arch/ia64/include/asm/sn/
Darch.h34 #define MAX_TIO_NODES MAX_NUMNODES
35 #define MAX_COMPACT_NODES (MAX_NUMNODES + MAX_TIO_NODES)
/Linux-v4.19/arch/sh/mm/
Dnuma.c17 struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
31 BUG_ON(nid >= MAX_NUMNODES || nid <= 0); in setup_bootmem_node()
/Linux-v4.19/arch/arm64/mm/
Dnuma.c31 struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
51 cpumask_var_t node_to_cpumask_map[MAX_NUMNODES];
114 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map()
138 if (nid < 0 || nid >= MAX_NUMNODES || numa_off) in early_map_cpu_to_node()
365 if (mblk->nid == NUMA_NO_NODE || mblk->nid >= MAX_NUMNODES) { in numa_register_nodes()
/Linux-v4.19/drivers/of/
Dof_numa.c44 if (nid >= MAX_NUMNODES) in of_numa_parse_cpu_nodes()
70 if (nid >= MAX_NUMNODES) { in of_numa_parse_memory_nodes()
175 if (!r && nid < MAX_NUMNODES && node_possible(nid)) in of_node_to_nid()
/Linux-v4.19/arch/arm64/include/asm/
Dnuma.h9 #define NR_NODE_MEMBLKS (MAX_NUMNODES * 2)
19 extern cpumask_var_t node_to_cpumask_map[MAX_NUMNODES];
/Linux-v4.19/arch/x86/mm/
Dnuma_emulation.c14 static int emu_nid_to_phys[MAX_NUMNODES];
95 if (nr_nodes > MAX_NUMNODES) { in split_nodes_interleave()
97 nr_nodes, MAX_NUMNODES); in split_nodes_interleave()
98 nr_nodes = MAX_NUMNODES; in split_nodes_interleave()
240 nr_nodes = MAX_NUMNODES; in split_nodes_size_interleave_uniform()
310 ret = emu_setup_memblk(ei, pi, nid++ % MAX_NUMNODES, in split_nodes_size_interleave_uniform()
387 for (i = 0; i < MAX_NUMNODES; i++) in numa_emulation()
Dnuma.c25 struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
71 cpumask_var_t node_to_cpumask_map[MAX_NUMNODES];
119 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map()
138 if (start > end || nid < 0 || nid >= MAX_NUMNODES) { in numa_add_memblk_to()
509 if (mb_region->nid != MAX_NUMNODES) in numa_clear_kernel_node_hotplug()
636 MAX_NUMNODES)); in numa_init()
638 MAX_NUMNODES)); in numa_init()
/Linux-v4.19/arch/ia64/kernel/
Dnuma.c30 cpumask_t node_to_cpu_mask[MAX_NUMNODES] __cacheline_aligned;
73 for(node=0; node < MAX_NUMNODES; node++) in build_cpu_to_node_map()
Duncached.c44 struct uncached_pool uncached_pools[MAX_NUMNODES];
192 if (unlikely(starting_nid >= MAX_NUMNODES)) in uncached_alloc_page()
212 } while ((nid = (nid + 1) % MAX_NUMNODES) != starting_nid); in uncached_alloc_page()
/Linux-v4.19/arch/ia64/mm/
Dnuma.c37 u8 numa_slit[MAX_NUMNODES * MAX_NUMNODES];
Ddiscontig.c46 static struct early_node_data mem_data[MAX_NUMNODES] __initdata;
49 pg_data_t *pgdat_list[MAX_NUMNODES];
192 ai = pcpu_alloc_alloc_info(MAX_NUMNODES, nr_cpu_ids); in setup_per_cpu_areas()
603 sparse_memory_present_with_active_regions(MAX_NUMNODES); in paging_init()
/Linux-v4.19/drivers/acpi/
Dnuma.c41 static int node_to_pxm_map[MAX_NUMNODES]
42 = { [0 ... MAX_NUMNODES - 1] = PXM_INVAL };
79 if (nodes_weight(nodes_found_map) >= MAX_NUMNODES) in acpi_map_pxm_to_node()
287 if (node == NUMA_NO_NODE || node >= MAX_NUMNODES) { in acpi_numa_memory_affinity_init()
/Linux-v4.19/arch/powerpc/platforms/cell/spufs/
Dsched.c316 for (n = 0; n < MAX_NUMNODES; n++, node++) { in aff_ref_location()
328 node = (node < MAX_NUMNODES) ? node : 0; in aff_ref_location()
599 for (n = 0; n < MAX_NUMNODES; n++, node++) { in spu_get_idle()
600 node = (node < MAX_NUMNODES) ? node : 0; in spu_get_idle()
647 for (n = 0; n < MAX_NUMNODES; n++, node++) { in find_victim()
648 node = (node < MAX_NUMNODES) ? node : 0; in find_victim()
972 for (node = 0; node < MAX_NUMNODES; node++) in count_active_contexts()
1015 for (node = 0; node < MAX_NUMNODES; node++) { in spusched_thread()
1153 for (node = 0; node < MAX_NUMNODES; node++) { in spu_sched_exit()
/Linux-v4.19/mm/
Dmempolicy.c128 static struct mempolicy preferred_node_policy[MAX_NUMNODES];
764 current->il_prev = MAX_NUMNODES-1; in do_set_mempolicy()
1268 if (nlongs > BITS_TO_LONGS(MAX_NUMNODES)) { in get_nodes()
1269 for (k = BITS_TO_LONGS(MAX_NUMNODES); k < nlongs; k++) { in get_nodes()
1278 nlongs = BITS_TO_LONGS(MAX_NUMNODES); in get_nodes()
1282 if (maxnode > MAX_NUMNODES && MAX_NUMNODES % BITS_PER_LONG != 0) { in get_nodes()
1285 valid_mask &= ~((1UL << (MAX_NUMNODES % BITS_PER_LONG)) - 1); in get_nodes()
1303 const int nbytes = BITS_TO_LONGS(MAX_NUMNODES) * sizeof(long); in copy_nodes_to_user()
1480 if (nmask != NULL && maxnode < MAX_NUMNODES) in kernel_get_mempolicy()
1514 DECLARE_BITMAP(bm, MAX_NUMNODES); in COMPAT_SYSCALL_DEFINE5()
[all …]
/Linux-v4.19/arch/s390/include/asm/
Dnuma.h23 extern cpumask_t node_to_cpumask_map[MAX_NUMNODES];

1234