| /linux-6.15/include/linux/ |
| H A D | nodemask.h | 111 return m ? MAX_NUMNODES : 0; in __nodemask_pr_numnodes() 272 return min_t(unsigned int, MAX_NUMNODES, find_first_bit(srcp->bits, MAX_NUMNODES)); in __first_node() 278 return min_t(unsigned int, MAX_NUMNODES, find_next_bit(srcp->bits, MAX_NUMNODES, n+1)); in __next_node() 290 if (ret == MAX_NUMNODES) in __next_node_in() 315 return min_t(unsigned int, MAX_NUMNODES, in __first_unset_node() 321 #if MAX_NUMNODES <= BITS_PER_LONG 391 #if MAX_NUMNODES > 1 394 (node) < MAX_NUMNODES; \ 426 #if MAX_NUMNODES > 1 501 #define next_online_node(nid) (MAX_NUMNODES) [all …]
|
| H A D | nodemask_types.h | 13 #define MAX_NUMNODES (1 << NODES_SHIFT) macro 17 typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t;
|
| H A D | numa_memblks.h | 8 #define NR_NODE_MEMBLKS (MAX_NUMNODES * 2) 35 extern int emu_nid_to_phys[MAX_NUMNODES];
|
| /linux-6.15/drivers/acpi/numa/ |
| H A D | srat.c | 28 static int node_to_pxm_map[MAX_NUMNODES] 29 = { [0 ... MAX_NUMNODES - 1] = PXM_INVAL }; 76 if (node >= MAX_NUMNODES) in acpi_map_pxm_to_node() 96 = { [0 ... MAX_NUMNODES - 1] = PXM_INVAL }; in fix_pxm_node_maps() 108 for (i = 0; i < MAX_NUMNODES; i++) { in fix_pxm_node_maps() 138 for (i = 0; i < MAX_NUMNODES; i++) { in fix_pxm_node_maps() 148 j < MAX_NUMNODES && in fix_pxm_node_maps() 152 if (WARN(j == MAX_NUMNODES, in fix_pxm_node_maps() 162 for (i = 0; i < MAX_NUMNODES; i++) in fix_pxm_node_maps() 168 for (i = 0; i < MAX_NUMNODES; i++) { in fix_pxm_node_maps() [all …]
|
| /linux-6.15/arch/mips/loongson64/ |
| H A D | numa.c | 30 unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES]; 33 cpumask_t __node_cpumask[MAX_NUMNODES]; 70 for (row = 0; row < MAX_NUMNODES; row++) in init_topology_matrix() 71 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix()
|
| /linux-6.15/arch/loongarch/kernel/ |
| H A D | numa.c | 30 unsigned char node_distances[MAX_NUMNODES][MAX_NUMNODES]; 34 cpumask_t cpus_on_node[MAX_NUMNODES]; 35 cpumask_t phys_cpus_on_node[MAX_NUMNODES]; 156 if (start > end || nid < 0 || nid >= MAX_NUMNODES) { in numa_add_memblk_to() 298 for (row = 0; row < MAX_NUMNODES; row++) in numa_default_distance() 299 for (col = 0; col < MAX_NUMNODES; col++) { in numa_default_distance()
|
| /linux-6.15/mm/ |
| H A D | hugetlb_cma.c | 16 static struct cma *hugetlb_cma[MAX_NUMNODES]; 17 static unsigned long hugetlb_cma_size_in_node[MAX_NUMNODES] __initdata; 103 if (tmp >= MAX_NUMNODES) in cmdline_parse_hugetlb_cma() 105 nid = array_index_nospec(tmp, MAX_NUMNODES); in cmdline_parse_hugetlb_cma() 156 for (nid = 0; nid < MAX_NUMNODES; nid++) { in hugetlb_cma_reserve()
|
| H A D | numa_emulation.c | 16 int emu_nid_to_phys[MAX_NUMNODES]; 98 if (nr_nodes > MAX_NUMNODES) { in split_nodes_interleave() 100 nr_nodes, MAX_NUMNODES); in split_nodes_interleave() 101 nr_nodes = MAX_NUMNODES; in split_nodes_interleave() 243 nr_nodes = MAX_NUMNODES; in split_nodes_size_interleave_uniform() 313 ret = emu_setup_memblk(ei, pi, nid++ % MAX_NUMNODES, in split_nodes_size_interleave_uniform() 391 for (i = 0; i < MAX_NUMNODES; i++) in numa_emulation()
|
| /linux-6.15/tools/include/linux/ |
| H A D | numa.h | 12 #define MAX_NUMNODES (1 << NODES_SHIFT) macro 18 return nid >= 0 && nid < MAX_NUMNODES; in numa_valid_node()
|
| /linux-6.15/arch/mips/sgi-ip27/ |
| H A D | ip27-memory.c | 37 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() 400 for (node = 0; node < MAX_NUMNODES; node++) { in prom_meminit()
|
| /linux-6.15/include/acpi/ |
| H A D | acpi_numa.h | 9 #if MAX_NUMNODES > 256 10 #define MAX_PXM_DOMAINS MAX_NUMNODES
|
| /linux-6.15/arch/mips/include/asm/mach-loongson64/ |
| H A D | topology.h | 17 extern unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
|
| /linux-6.15/arch/mips/include/asm/mach-ip27/ |
| H A D | topology.h | 25 extern unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
|
| /linux-6.15/arch/loongarch/include/asm/ |
| H A D | topology.h | 22 extern unsigned char node_distances[MAX_NUMNODES][MAX_NUMNODES];
|
| /linux-6.15/drivers/of/ |
| H A D | of_numa.c | 33 if (nid >= MAX_NUMNODES) in of_numa_parse_cpu_nodes() 57 if (nid >= MAX_NUMNODES) { in of_numa_parse_memory_nodes() 169 if (!r && nid < MAX_NUMNODES && node_possible(nid)) in of_node_to_nid()
|
| /linux-6.15/kernel/dma/ |
| H A D | contiguous.c | 95 static struct cma *dma_contiguous_numa_area[MAX_NUMNODES]; 96 static phys_addr_t numa_cma_size[MAX_NUMNODES] __initdata; 97 static struct cma *dma_contiguous_pernuma_area[MAX_NUMNODES]; 111 if (tmp >= MAX_NUMNODES) in early_numa_cma() 113 nid = array_index_nospec(tmp, MAX_NUMNODES); in early_numa_cma()
|
| /linux-6.15/include/asm-generic/ |
| H A D | numa.h | 7 #define NR_NODE_MEMBLKS (MAX_NUMNODES * 2) 17 extern cpumask_var_t node_to_cpumask_map[MAX_NUMNODES];
|
| /linux-6.15/arch/powerpc/mm/ |
| H A D | numa.c | 45 cpumask_var_t node_to_cpumask_map[MAX_NUMNODES]; 61 static int distance_lookup_table[MAX_NUMNODES][MAX_DISTANCE_REF_POINTS]; 62 static int numa_distance_table[MAX_NUMNODES][MAX_NUMNODES] = { 63 [0 ... MAX_NUMNODES - 1] = { [0 ... MAX_NUMNODES - 1] = -1 } 65 static int numa_id_index_table[MAX_NUMNODES] = { [0 ... MAX_NUMNODES - 1] = NUMA_NO_NODE }; 78 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map() 1048 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, NULL) { in setup_nonnuma()
|
| /linux-6.15/drivers/base/ |
| H A D | arch_numa.c | 36 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()
|
| /linux-6.15/arch/powerpc/platforms/cell/spufs/ |
| H A D | sched.c | 299 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.15/arch/x86/kernel/ |
| H A D | vmcore_info_32.c | 12 VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); in arch_crash_save_vmcoreinfo()
|
| H A D | vmcore_info_64.c | 19 VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); in arch_crash_save_vmcoreinfo()
|
| /linux-6.15/arch/sh/kernel/ |
| H A D | vmcore_info.c | 10 VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); in arch_crash_save_vmcoreinfo()
|
| /linux-6.15/arch/mips/include/asm/sn/sn0/ |
| H A D | arch.h | 19 #define MAXCPUS (MAX_NUMNODES * CPUS_PER_NODE)
|
| /linux-6.15/arch/s390/kernel/ |
| H A D | numa.c | 24 for (nid = 0; nid < MAX_NUMNODES; nid++) in numa_setup()
|