Lines Matching refs:nid
22 static int __init emu_find_memblk_by_nid(int nid, const struct numa_meminfo *mi) in emu_find_memblk_by_nid() argument
27 if (mi->blk[i].nid == nid) in emu_find_memblk_by_nid()
48 int nid, int phys_blk, u64 size) in emu_setup_memblk() argument
61 eb->nid = nid; in emu_setup_memblk()
63 if (emu_nid_to_phys[nid] == NUMA_NO_NODE) in emu_setup_memblk()
64 emu_nid_to_phys[nid] = pb->nid; in emu_setup_memblk()
73 nid, eb->start, eb->end - 1, (eb->end - eb->start) >> 20); in emu_setup_memblk()
90 int nid = 0; in split_nodes_interleave() local
141 if (nid < big) in split_nodes_interleave()
173 ret = emu_setup_memblk(ei, pi, nid++ % nr_nodes, in split_nodes_interleave()
220 int nid) in split_nodes_size_interleave_uniform() argument
243 node_set(pblk->nid, physnode_mask); in split_nodes_size_interleave_uniform()
310 ret = emu_setup_memblk(ei, pi, nid++ % MAX_NUMNODES, in split_nodes_size_interleave_uniform()
317 return nid; in split_nodes_size_interleave_uniform()
398 int nid = 0; in numa_emulation() local
413 n, &pi.blk[0], nid); in numa_emulation()
422 nid = ret; in numa_emulation()
477 ei.blk[i].nid != NUMA_NO_NODE) in numa_emulation()
478 node_set(ei.blk[i].nid, numa_nodes_parsed); in numa_emulation()
532 int physnid, nid; in numa_add_cpu() local
534 nid = early_cpu_to_node(cpu); in numa_add_cpu()
535 BUG_ON(nid == NUMA_NO_NODE || !node_online(nid)); in numa_add_cpu()
537 physnid = emu_nid_to_phys[nid]; in numa_add_cpu()
543 for_each_online_node(nid) in numa_add_cpu()
544 if (emu_nid_to_phys[nid] == physnid) in numa_add_cpu()
545 cpumask_set_cpu(cpu, node_to_cpumask_map[nid]); in numa_add_cpu()
558 int nid, physnid; in numa_set_cpumask() local
560 nid = early_cpu_to_node(cpu); in numa_set_cpumask()
561 if (nid == NUMA_NO_NODE) { in numa_set_cpumask()
566 physnid = emu_nid_to_phys[nid]; in numa_set_cpumask()
568 for_each_online_node(nid) { in numa_set_cpumask()
569 if (emu_nid_to_phys[nid] != physnid) in numa_set_cpumask()
572 debug_cpumask_set_cpu(cpu, nid, enable); in numa_set_cpumask()