Lines Matching refs:i
23 int i; in emu_find_memblk_by_nid() local
25 for (i = 0; i < mi->nr_blks; i++) in emu_find_memblk_by_nid()
26 if (mi->blk[i].nid == nid) in emu_find_memblk_by_nid()
27 return i; in emu_find_memblk_by_nid()
88 int i, ret; in split_nodes_interleave() local
119 for (i = 0; i < pi->nr_blks; i++) in split_nodes_interleave()
120 node_set(pi->blk[i].nid, physnode_mask); in split_nodes_interleave()
127 for_each_node_mask(i, physnode_mask) { in split_nodes_interleave()
132 phys_blk = emu_find_memblk_by_nid(i, pi); in split_nodes_interleave()
134 node_clear(i, physnode_mask); in split_nodes_interleave()
212 int i, ret; in split_nodes_size_interleave() local
234 for (i = 0; i < pi->nr_blks; i++) in split_nodes_size_interleave()
235 node_set(pi->blk[i].nid, physnode_mask); in split_nodes_size_interleave()
242 for_each_node_mask(i, physnode_mask) { in split_nodes_size_interleave()
247 phys_blk = emu_find_memblk_by_nid(i, pi); in split_nodes_size_interleave()
249 node_clear(i, physnode_mask); in split_nodes_size_interleave()
318 int i, j, ret; in numa_emulation() local
326 for (i = 0; i < MAX_NUMNODES; i++) in numa_emulation()
327 emu_nid_to_phys[i] = NUMA_NO_NODE; in numa_emulation()
369 for (i = 0; i < numa_dist_cnt; i++) in numa_emulation()
371 phys_dist[i * numa_dist_cnt + j] = in numa_emulation()
372 node_distance(i, j); in numa_emulation()
381 for (i = 0; i < ARRAY_SIZE(emu_nid_to_phys); i++) { in numa_emulation()
382 if (emu_nid_to_phys[i] != NUMA_NO_NODE) { in numa_emulation()
383 max_emu_nid = i; in numa_emulation()
385 dfl_phys_nid = emu_nid_to_phys[i]; in numa_emulation()
401 for (i = 0; i < ARRAY_SIZE(__apicid_to_node); i++) { in numa_emulation()
402 if (__apicid_to_node[i] == NUMA_NO_NODE) in numa_emulation()
405 if (__apicid_to_node[i] == emu_nid_to_phys[j]) in numa_emulation()
407 __apicid_to_node[i] = j < ARRAY_SIZE(emu_nid_to_phys) ? j : 0; in numa_emulation()
411 for (i = 0; i < ARRAY_SIZE(emu_nid_to_phys); i++) in numa_emulation()
412 if (emu_nid_to_phys[i] == NUMA_NO_NODE) in numa_emulation()
413 emu_nid_to_phys[i] = dfl_phys_nid; in numa_emulation()
417 for (i = 0; i < max_emu_nid + 1; i++) { in numa_emulation()
419 int physi = emu_nid_to_phys[i]; in numa_emulation()
431 numa_set_distance(i, j, dist); in numa_emulation()
442 for (i = 0; i < ARRAY_SIZE(emu_nid_to_phys); i++) in numa_emulation()
443 emu_nid_to_phys[i] = i; in numa_emulation()
467 int i; in numa_remove_cpu() local
469 for_each_online_node(i) in numa_remove_cpu()
470 cpumask_clear_cpu(cpu, node_to_cpumask_map[i]); in numa_remove_cpu()