Lines Matching refs:mem_section
22 struct mem_section *mem_section[NR_SECTION_ROOTS] variable
25 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT] variable
28 EXPORT_SYMBOL(mem_section);
59 static struct mem_section noinline __init_refok *sparse_index_alloc(int nid) in sparse_index_alloc()
61 struct mem_section *section = NULL; in sparse_index_alloc()
63 sizeof(struct mem_section); in sparse_index_alloc()
80 struct mem_section *section; in sparse_index_init()
83 if (mem_section[root]) in sparse_index_init()
95 if (mem_section[root]) { in sparse_index_init()
100 mem_section[root] = section; in sparse_index_init()
117 int __section_nr(struct mem_section* ms) in __section_nr()
120 struct mem_section* root; in __section_nr()
145 static inline int sparse_early_nid(struct mem_section *section) in sparse_early_nid()
187 struct mem_section *ms; in memory_present()
241 static int __meminit sparse_init_one_section(struct mem_section *ms, in sparse_init_one_section()
344 struct mem_section *ms = __nr_to_section(pnum); in sparse_early_usemap_alloc()
382 struct mem_section *ms = __nr_to_section(pnum); in sparse_early_mem_map_alloc()
578 struct mem_section *ms; in sparse_add_one_section()
621 void sparse_remove_one_section(struct zone *zone, struct mem_section *ms) in sparse_remove_one_section()