Lines Matching refs:nid
25 static int __init emu_find_memblk_by_nid(int nid, const struct numa_meminfo *mi)
30 if (mi->blk[i].nid == nid)
46 * Sets up nid to range from @start to @end. The return value is -errno if
51 int nid, int phys_blk, u64 size)
64 eb->nid = nid;
66 if (emu_nid_to_phys[nid] == NUMA_NO_NODE)
67 emu_nid_to_phys[nid] = pb->nid;
76 nid, eb->start, eb->end - 1, (eb->end - eb->start) >> 20);
93 int nid = 0;
144 if (nid < big)
176 ret = emu_setup_memblk(ei, pi, nid++ % nr_nodes,
223 int nid)
246 node_set(pblk->nid, physnode_mask);
313 ret = emu_setup_memblk(ei, pi, nid++ % MAX_NUMNODES,
320 return nid;
401 int nid = 0;
416 n, &pi.blk[0], nid);
425 nid = ret;
464 * Determine the max emulated nid and the default phys nid to use
473 ei.blk[i].nid != NUMA_NO_NODE)
474 node_set(ei.blk[i].nid, numa_nodes_parsed);
549 int physnid, nid;
551 nid = early_cpu_to_node(cpu);
552 BUG_ON(nid == NUMA_NO_NODE || !node_online(nid));
554 physnid = emu_nid_to_phys[nid];
560 for_each_online_node(nid)
561 if (emu_nid_to_phys[nid] == physnid)
562 cpumask_set_cpu(cpu, node_to_cpumask_map[nid]);
575 int nid, physnid;
577 nid = early_cpu_to_node(cpu);
578 if (nid == NUMA_NO_NODE) {
583 physnid = emu_nid_to_phys[nid];
585 for_each_online_node(nid) {
586 if (emu_nid_to_phys[nid] != physnid)
589 debug_cpumask_set_cpu(cpu, nid, enable);