Lines Matching full:phys
220 static void toptree_to_numa_single(struct toptree *numa, struct toptree *phys, in toptree_to_numa_single() argument
225 toptree_for_each_safe(core, tmp, phys, CORE) { in toptree_to_numa_single()
237 static void move_level_to_numa_node(struct toptree *node, struct toptree *phys, in move_level_to_numa_node() argument
243 toptree_for_each_safe(cur, tmp, phys, level) { in move_level_to_numa_node()
260 static void move_level_to_numa(struct toptree *numa, struct toptree *phys, in move_level_to_numa() argument
266 move_level_to_numa_node(node, phys, level, perfect); in move_level_to_numa()
272 static void toptree_to_numa_first(struct toptree *numa, struct toptree *phys) in toptree_to_numa_first() argument
277 move_level_to_numa(numa, phys, DRAWER, true); in toptree_to_numa_first()
278 move_level_to_numa(numa, phys, DRAWER, false); in toptree_to_numa_first()
279 move_level_to_numa(numa, phys, BOOK, true); in toptree_to_numa_first()
280 move_level_to_numa(numa, phys, BOOK, false); in toptree_to_numa_first()
281 move_level_to_numa(numa, phys, MC, true); in toptree_to_numa_first()
282 move_level_to_numa(numa, phys, MC, false); in toptree_to_numa_first()
327 static struct toptree *toptree_to_numa(struct toptree *phys) in toptree_to_numa() argument
333 cores_total = emu_cores->total + cores_free(phys); in toptree_to_numa()
337 toptree_to_numa_first(numa, phys); in toptree_to_numa()
340 toptree_to_numa_single(numa, phys, 0); in toptree_to_numa()
341 toptree_to_numa_single(numa, phys, 1); in toptree_to_numa()
344 WARN_ON(cpumask_weight(&phys->mask)); in toptree_to_numa()
353 struct toptree *phys, *node, *drawer, *book, *mc, *core; in toptree_from_topology() local
357 phys = toptree_new(TOPTREE_ID_PHYS, 1); in toptree_from_topology()
361 node = toptree_get_child(phys, 0); in toptree_from_topology()
371 return phys; in toptree_from_topology()
459 struct toptree *phys, *numa; in emu_update_cpu_topology() local
463 phys = toptree_from_topology(); in emu_update_cpu_topology()
464 numa = toptree_to_numa(phys); in emu_update_cpu_topology()
465 toptree_free(phys); in emu_update_cpu_topology()