Home
last modified time | relevance | path

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

1234

/linux-6.6.21/include/linux/
Dnodemask.h99 typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t;
112 return m ? MAX_NUMNODES : 0; in __nodemask_pr_numnodes()
140 #define nodes_setall(dst) __nodes_setall(&(dst), MAX_NUMNODES)
146 #define nodes_clear(dst) __nodes_clear(&(dst), MAX_NUMNODES)
163 __nodes_and(&(dst), &(src1), &(src2), MAX_NUMNODES)
171 __nodes_or(&(dst), &(src1), &(src2), MAX_NUMNODES)
179 __nodes_xor(&(dst), &(src1), &(src2), MAX_NUMNODES)
187 __nodes_andnot(&(dst), &(src1), &(src2), MAX_NUMNODES)
195 __nodes_complement(&(dst), &(src), MAX_NUMNODES)
203 __nodes_equal(&(src1), &(src2), MAX_NUMNODES)
[all …]
/linux-6.6.21/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 slit_distance(from,to) (numa_slit[(from) * MAX_NUMNODES + (to)])
Dacpi.h62 #if MAX_NUMNODES > 256
63 #define MAX_PXM_DOMAINS MAX_NUMNODES
68 extern int __initdata nid_to_pxm_map[MAX_NUMNODES];
/linux-6.6.21/arch/mips/loongson64/
Dnuma.c30 unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
32 struct pglist_data *__node_data[MAX_NUMNODES];
35 cpumask_t __node_cpumask[MAX_NUMNODES];
72 for (row = 0; row < MAX_NUMNODES; row++) in init_topology_matrix()
73 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix()
/linux-6.6.21/arch/loongarch/kernel/
Dnuma.c30 struct pglist_data *node_data[MAX_NUMNODES];
31 unsigned char node_distances[MAX_NUMNODES][MAX_NUMNODES];
37 cpumask_t cpus_on_node[MAX_NUMNODES];
38 cpumask_t phys_cpus_on_node[MAX_NUMNODES];
159 if (start > end || nid < 0 || nid >= MAX_NUMNODES) { in numa_add_memblk_to()
345 for (row = 0; row < MAX_NUMNODES; row++) in numa_default_distance()
346 for (col = 0; col < MAX_NUMNODES; col++) { in numa_default_distance()
/linux-6.6.21/arch/mips/sgi-ip27/
Dip27-memory.c36 struct node_data *__node_data[MAX_NUMNODES];
94 unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
163 for (row = 0; row < MAX_NUMNODES; row++) in init_topology_matrix()
164 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix()
399 for (node = 0; node < MAX_NUMNODES; node++) { in prom_meminit()
/linux-6.6.21/include/acpi/
Dacpi_numa.h9 #if MAX_NUMNODES > 256
10 #define MAX_PXM_DOMAINS MAX_NUMNODES
/linux-6.6.21/arch/mips/include/asm/mach-loongson64/
Dtopology.h17 extern unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
/linux-6.6.21/arch/s390/kernel/
Dnuma.c17 struct pglist_data *node_data[MAX_NUMNODES];
27 for (nid = 0; nid < MAX_NUMNODES; nid++) { in numa_setup()
/linux-6.6.21/arch/mips/include/asm/mach-ip27/
Dtopology.h25 extern unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
/linux-6.6.21/arch/loongarch/include/asm/
Dtopology.h21 extern unsigned char node_distances[MAX_NUMNODES][MAX_NUMNODES];
/linux-6.6.21/drivers/of/
Dof_numa.c35 if (nid >= MAX_NUMNODES) in of_numa_parse_cpu_nodes()
59 if (nid >= MAX_NUMNODES) { in of_numa_parse_memory_nodes()
171 if (!r && nid < MAX_NUMNODES && node_possible(nid)) in of_node_to_nid()
/linux-6.6.21/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-6.6.21/arch/ia64/mm/
Dnuma.c36 u8 numa_slit[MAX_NUMNODES * MAX_NUMNODES];
/linux-6.6.21/arch/x86/mm/
Dnuma_emulation.c13 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.c26 struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
67 cpumask_var_t node_to_cpumask_map[MAX_NUMNODES];
115 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map()
134 if (start > end || nid < 0 || nid >= MAX_NUMNODES) { in numa_add_memblk_to()
526 if (nid != MAX_NUMNODES) in numa_clear_kernel_node_hotplug()
646 MAX_NUMNODES)); in numa_init()
648 MAX_NUMNODES)); in numa_init()
/linux-6.6.21/kernel/dma/
Dcontiguous.c102 static struct cma *dma_contiguous_numa_area[MAX_NUMNODES];
103 static phys_addr_t numa_cma_size[MAX_NUMNODES] __initdata;
104 static struct cma *dma_contiguous_pernuma_area[MAX_NUMNODES];
118 if (tmp >= MAX_NUMNODES) in early_numa_cma()
120 nid = array_index_nospec(tmp, MAX_NUMNODES); in early_numa_cma()
/linux-6.6.21/drivers/base/
Darch_numa.c18 struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
38 cpumask_var_t node_to_cpumask_map[MAX_NUMNODES];
105 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map()
129 if (nid < 0 || nid >= MAX_NUMNODES || numa_off) in early_map_cpu_to_node()
354 if (mblk_nid == NUMA_NO_NODE || mblk_nid >= MAX_NUMNODES) { in numa_register_nodes()
/linux-6.6.21/include/asm-generic/
Dnuma.h7 #define NR_NODE_MEMBLKS (MAX_NUMNODES * 2)
17 extern cpumask_var_t node_to_cpumask_map[MAX_NUMNODES];
/linux-6.6.21/arch/powerpc/mm/
Dnuma.c45 cpumask_var_t node_to_cpumask_map[MAX_NUMNODES];
46 struct pglist_data *node_data[MAX_NUMNODES];
63 static int distance_lookup_table[MAX_NUMNODES][MAX_DISTANCE_REF_POINTS];
64 static int numa_distance_table[MAX_NUMNODES][MAX_NUMNODES] = {
65 [0 ... MAX_NUMNODES - 1] = { [0 ... MAX_NUMNODES - 1] = -1 }
67 static int numa_id_index_table[MAX_NUMNODES] = { [0 ... MAX_NUMNODES - 1] = NUMA_NO_NODE };
80 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map()
1038 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, NULL) { in setup_nonnuma()
/linux-6.6.21/arch/ia64/kernel/
Dnuma.c18 cpumask_t node_to_cpu_mask[MAX_NUMNODES] __cacheline_aligned;
61 for(node=0; node < MAX_NUMNODES; node++) in build_cpu_to_node_map()
Duncached.c38 struct uncached_pool uncached_pools[MAX_NUMNODES];
183 if (unlikely(starting_nid >= MAX_NUMNODES)) in uncached_alloc_page()
203 } while ((nid = (nid + 1) % MAX_NUMNODES) != starting_nid); in uncached_alloc_page()
/linux-6.6.21/drivers/acpi/numa/
Dsrat.c26 static int node_to_pxm_map[MAX_NUMNODES]
27 = { [0 ... MAX_NUMNODES - 1] = PXM_INVAL };
70 if (nodes_weight(nodes_found_map) >= MAX_NUMNODES) in acpi_map_pxm_to_node()
433 if (node == NUMA_NO_NODE || node >= MAX_NUMNODES) { in acpi_parse_gi_affinity()
535 for (i = 0, fake_pxm = -1; i < MAX_NUMNODES; i++) { in acpi_numa_init()
/linux-6.6.21/arch/powerpc/platforms/cell/spufs/
Dsched.c299 for (n = 0; n < MAX_NUMNODES; n++, node++) { in aff_ref_location()
311 node = (node < MAX_NUMNODES) ? node : 0; in aff_ref_location()
580 for (n = 0; n < MAX_NUMNODES; n++, node++) { in spu_get_idle()
581 node = (node < MAX_NUMNODES) ? node : 0; in spu_get_idle()
628 for (n = 0; n < MAX_NUMNODES; n++, node++) { in find_victim()
629 node = (node < MAX_NUMNODES) ? node : 0; in find_victim()
953 for (node = 0; node < MAX_NUMNODES; node++) in count_active_contexts()
996 for (node = 0; node < MAX_NUMNODES; node++) { in spusched_thread()
1133 for (node = 0; node < MAX_NUMNODES; node++) { in spu_sched_exit()
/linux-6.6.21/mm/
Dmemblock.c363 memblock_set_region_node(&type->regions[0], MAX_NUMNODES); in memblock_remove_region()
735 return memblock_add_range(&memblock.memory, base, size, MAX_NUMNODES, 0); in memblock_add()
879 return memblock_add_range(&memblock.reserved, base, size, MAX_NUMNODES, 0); in memblock_reserve()
890 return memblock_add_range(&physmem, base, size, MAX_NUMNODES, 0); in memblock_physmem_add()
1069 if (WARN_ONCE(nid == MAX_NUMNODES, in __next_mem_range()
1166 …if (WARN_ONCE(nid == MAX_NUMNODES, "Usage of MAX_NUMNODES is deprecated. Use NUMA_NO_NODE instead\… in __next_mem_range_rev()
1254 if (nid == MAX_NUMNODES || nid == r_nid) in __next_mem_pfn_range()
1399 …if (WARN_ONCE(nid == MAX_NUMNODES, "Usage of MAX_NUMNODES is deprecated. Use NUMA_NO_NODE instead\… in memblock_alloc_range_nid()
1934 if (memblock_get_region_node(rgn) != MAX_NUMNODES) in memblock_dump()
2018 for_each_mem_pfn_range(i, MAX_NUMNODES, &start, &end, NULL) { in free_unused_memmap()
[all …]

1234