Lines Matching refs:numa_meminfo
28 static struct numa_meminfo numa_meminfo __initdata_or_meminfo;
29 static struct numa_meminfo numa_reserved_meminfo __initdata_or_meminfo;
126 struct numa_meminfo *mi) in numa_add_memblk_to()
159 void __init numa_remove_memblk_from(int idx, struct numa_meminfo *mi) in numa_remove_memblk_from()
172 static void __init numa_move_tail_memblk(struct numa_meminfo *dst, int idx, in numa_move_tail_memblk()
173 struct numa_meminfo *src) in numa_move_tail_memblk()
192 return numa_add_memblk_to(nid, start, end, &numa_meminfo); in numa_add_memblk()
238 int __init numa_cleanup_meminfo(struct numa_meminfo *mi) in numa_cleanup_meminfo()
330 const struct numa_meminfo *mi) in numa_nodemask_from_meminfo()
366 numa_nodemask_from_meminfo(&nodes_parsed, &numa_meminfo); in numa_alloc_distance()
449 static bool __init numa_meminfo_cover_memory(const struct numa_meminfo *mi) in numa_meminfo_cover_memory()
500 for (i = 0; i < numa_meminfo.nr_blks; i++) { in numa_clear_kernel_node_hotplug()
501 struct numa_memblk *mb = numa_meminfo.blk + i; in numa_clear_kernel_node_hotplug()
532 for (i = 0; i < numa_meminfo.nr_blks; i++) { in numa_clear_kernel_node_hotplug()
533 struct numa_memblk *mb = numa_meminfo.blk + i; in numa_clear_kernel_node_hotplug()
542 static int __init numa_register_memblks(struct numa_meminfo *mi) in numa_register_memblks()
645 memset(&numa_meminfo, 0, sizeof(numa_meminfo)); in numa_init()
668 ret = numa_cleanup_meminfo(&numa_meminfo); in numa_init()
672 numa_emulation(&numa_meminfo, numa_distance_cnt); in numa_init()
674 ret = numa_register_memblks(&numa_meminfo); in numa_init()
918 static int meminfo_to_nid(struct numa_meminfo *mi, u64 start) in meminfo_to_nid()
930 int nid = meminfo_to_nid(&numa_meminfo, start); in phys_to_target_node()
945 int nid = meminfo_to_nid(&numa_meminfo, start); in memory_add_physaddr_to_nid()
948 nid = numa_meminfo.blk[0].nid; in memory_add_physaddr_to_nid()