Lines Matching refs:nid
67 int nid = cpu_to_node(cpu); in numa_update_cpu() local
69 if (nid == NUMA_NO_NODE) in numa_update_cpu()
73 cpumask_clear_cpu(cpu, node_to_cpumask_map[nid]); in numa_update_cpu()
75 cpumask_set_cpu(cpu, node_to_cpumask_map[nid]); in numa_update_cpu()
127 void __init early_map_cpu_to_node(unsigned int cpu, int nid) in early_map_cpu_to_node() argument
130 if (nid < 0 || nid >= MAX_NUMNODES || numa_off) in early_map_cpu_to_node()
131 nid = 0; in early_map_cpu_to_node()
133 cpu_to_node_map[cpu] = nid; in early_map_cpu_to_node()
141 set_cpu_numa_node(cpu, nid); in early_map_cpu_to_node()
161 int nid = early_cpu_to_node(cpu); in pcpu_fc_alloc() local
164 __pa(MAX_DMA_ADDRESS), MEMBLOCK_ALLOC_ACCESSIBLE, nid); in pcpu_fc_alloc()
265 int __init numa_add_memblk(int nid, u64 start, u64 end) in numa_add_memblk() argument
269 ret = memblock_set_node(start, (end - start), &memblock.memory, nid); in numa_add_memblk()
272 start, (end - 1), nid); in numa_add_memblk()
276 node_set(nid, numa_nodes_parsed); in numa_add_memblk()
283 static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn) in setup_node_data() argument
291 pr_info("Initmem setup node %d [<memory-less node>]\n", nid); in setup_node_data()
293 nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid); in setup_node_data()
296 nd_size, nid); in setup_node_data()
304 if (tnid != nid) in setup_node_data()
305 pr_info("NODE_DATA(%d) on node %d\n", nid, tnid); in setup_node_data()
307 node_data[nid] = nd; in setup_node_data()
308 memset(NODE_DATA(nid), 0, sizeof(pg_data_t)); in setup_node_data()
309 NODE_DATA(nid)->node_id = nid; in setup_node_data()
310 NODE_DATA(nid)->node_start_pfn = start_pfn; in setup_node_data()
311 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_node_data()
409 int nid; in numa_register_nodes() local
426 for_each_node_mask(nid, numa_nodes_parsed) { in numa_register_nodes()
429 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); in numa_register_nodes()
430 setup_node_data(nid, start_pfn, end_pfn); in numa_register_nodes()
431 node_set_online(nid); in numa_register_nodes()