Lines Matching defs:nid
22 static int __init emu_find_memblk_by_nid(int nid, const struct numa_meminfo *mi)
27 if (mi->blk[i].nid == nid)
43 * Sets up nid to range from @start to @end. The return value is -errno if
48 int nid, int phys_blk, u64 size)
61 eb->nid = nid;
63 if (emu_nid_to_phys[nid] == NUMA_NO_NODE)
64 emu_nid_to_phys[nid] = pb->nid;
73 nid, eb->start, eb->end - 1, (eb->end - eb->start) >> 20);
90 int nid = 0;
141 if (nid < big)
173 ret = emu_setup_memblk(ei, pi, nid++ % nr_nodes,
220 int nid)
243 node_set(pblk->nid, physnode_mask);
310 ret = emu_setup_memblk(ei, pi, nid++ % MAX_NUMNODES,
317 return nid;
398 int nid = 0;
413 n, &pi.blk[0], nid);
422 nid = ret;
465 * Determine the max emulated nid and the default phys nid to use
477 ei.blk[i].nid != NUMA_NO_NODE)
478 node_set(ei.blk[i].nid, numa_nodes_parsed);
532 int physnid, nid;
534 nid = early_cpu_to_node(cpu);
535 BUG_ON(nid == NUMA_NO_NODE || !node_online(nid));
537 physnid = emu_nid_to_phys[nid];
543 for_each_online_node(nid)
544 if (emu_nid_to_phys[nid] == physnid)
545 cpumask_set_cpu(cpu, node_to_cpumask_map[nid]);
558 int nid, physnid;
560 nid = early_cpu_to_node(cpu);
561 if (nid == NUMA_NO_NODE) {
566 physnid = emu_nid_to_phys[nid];
568 for_each_online_node(nid) {
569 if (emu_nid_to_phys[nid] != physnid)
572 debug_cpumask_set_cpu(cpu, nid, enable);