Home
last modified time | relevance | path

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

1234

/linux/drivers/acpi/numa/
H A Dsrat.c29 static int node_to_pxm_map[MAX_NUMNODES]
30 = { [0 ... MAX_NUMNODES - 1] = PXM_INVAL };
77 if (node >= MAX_NUMNODES) in acpi_map_pxm_to_node()
96 static int node_to_pxm_map_copy[MAX_NUMNODES] __initdata in fix_pxm_node_maps()
97 = { [0 ... MAX_NUMNODES - 1] = PXM_INVAL }; in fix_pxm_node_maps()
109 for (i = 0; i < MAX_NUMNODES; i++) { in fix_pxm_node_maps()
139 for (i = 0; i < MAX_NUMNODES; i++) { in fix_pxm_node_maps()
149 j < MAX_NUMNODES && in fix_pxm_node_maps()
153 if (WARN(j == MAX_NUMNODES, in fix_pxm_node_maps()
163 for (i = 0; i < MAX_NUMNODES; i++) in fix_pxm_node_maps()
[all …]
H A Dhmat.c752 bitmap_zero(p_nodes, MAX_NUMNODES); in hmat_update_target_attrs()
818 for_each_set_bit(i, p_nodes, MAX_NUMNODES) { in __hmat_register_target_initiators()
826 static DECLARE_BITMAP(p_nodes, MAX_NUMNODES); in hmat_update_generic_target()
836 static DECLARE_BITMAP(p_nodes, MAX_NUMNODES); in hmat_register_target_initiators()
975 static DECLARE_BITMAP(p_nodes, MAX_NUMNODES); in hmat_calculate_adistance()
/linux/mm/
H A Dhugetlb_cma.c16 static struct cma *hugetlb_cma[MAX_NUMNODES] __ro_after_init;
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()
168 for (nid = 0; nid < MAX_NUMNODES; nid++) { in hugetlb_cma_reserve()
H A Dnuma_emulation.c16 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()
H A Dnuma.c8 struct pglist_data *node_data[MAX_NUMNODES];
/linux/tools/include/linux/
H A Dnuma.h12 #define MAX_NUMNODES (1 << NODES_SHIFT) macro
18 return nid >= 0 && nid < MAX_NUMNODES; in numa_valid_node()
/linux/kernel/dma/
H A Dcontiguous.c106 static struct cma *dma_contiguous_numa_area[MAX_NUMNODES];
107 static phys_addr_t numa_cma_size[MAX_NUMNODES] __initdata;
108 static struct cma *dma_contiguous_pernuma_area[MAX_NUMNODES];
122 if (tmp >= MAX_NUMNODES) in early_numa_cma()
124 nid = array_index_nospec(tmp, MAX_NUMNODES); in early_numa_cma()
/linux/arch/mips/include/asm/mach-ip27/
H A Dtopology.h25 extern unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
/linux/drivers/of/
H A Dof_numa.c33 if (nid >= MAX_NUMNODES) in of_numa_parse_cpu_nodes()
57 if (nid >= MAX_NUMNODES) { in of_numa_parse_memory_nodes()
172 if (!r && nid < MAX_NUMNODES && node_possible(nid)) in of_node_to_nid()
/linux/include/asm-generic/
H A Dnuma.h7 #define NR_NODE_MEMBLKS (MAX_NUMNODES * 2)
17 extern cpumask_var_t node_to_cpumask_map[MAX_NUMNODES];
/linux/include/linux/
H A Dnuma_memblks.h8 #define NR_NODE_MEMBLKS (MAX_NUMNODES * 2)
36 extern int emu_nid_to_phys[MAX_NUMNODES];
H A Dhugetlb.h174 extern struct list_head huge_boot_pages[MAX_NUMNODES];
681 struct list_head hugepage_freelists[MAX_NUMNODES];
682 unsigned int max_huge_pages_node[MAX_NUMNODES];
683 unsigned int nr_huge_pages_node[MAX_NUMNODES];
684 unsigned int free_huge_pages_node[MAX_NUMNODES];
685 unsigned int surplus_huge_pages_node[MAX_NUMNODES];
/linux/arch/powerpc/platforms/cell/spufs/
H A 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/drivers/base/
H A Darch_numa.c36 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/arch/x86/mm/
H A Dnuma.c64 return bitmap_weight(numa_phys_nodes_parsed.bits, MAX_NUMNODES); in num_phys_nodes()
67 cpumask_var_t node_to_cpumask_map[MAX_NUMNODES];
115 if (nr_node_ids == MAX_NUMNODES) in setup_node_to_cpumask_map()
/linux/arch/loongarch/kernel/
H A Dnuma.c31 cpumask_t cpus_on_node[MAX_NUMNODES];
32 cpumask_t phys_cpus_on_node[MAX_NUMNODES];
/linux/arch/sh/kernel/
H A Dvmcore_info.c10 VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); in arch_crash_save_vmcoreinfo()
/linux/arch/x86/kernel/
H A Dvmcore_info_32.c12 VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); in arch_crash_save_vmcoreinfo()
H A Dvmcore_info_64.c19 VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); in arch_crash_save_vmcoreinfo()
/linux/arch/x86/boot/compressed/
H A Dacpi.c22 struct mem_vector immovable_mem[MAX_NUMNODES*2];
308 if (num >= MAX_NUMNODES*2) { in count_immovable_mem_regions()
/linux/arch/mips/include/asm/sn/sn0/
H A Darch.h19 #define MAXCPUS (MAX_NUMNODES * CPUS_PER_NODE)
/linux/arch/sh/include/asm/
H A Dmmzone.h12 for (nid = 0; nid < MAX_NUMNODES; nid++) in pfn_to_nid()
/linux/arch/powerpc/kexec/
H A Dvmcore_info.c11 VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); in arch_crash_save_vmcoreinfo()
/linux/arch/sh/mm/
H A Dnuma.c28 BUG_ON(nid >= MAX_NUMNODES || nid <= 0); in setup_bootmem_node()
/linux/arch/mips/include/asm/sn/
H A Dgda.h61 nasid_t g_nasidtable[MAX_NUMNODES]; /* NASID of each node */

1234