Lines Matching refs:mem_section
26 struct mem_section **mem_section; variable
28 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT] variable
31 EXPORT_SYMBOL(mem_section);
62 static noinline struct mem_section __ref *sparse_index_alloc(int nid) in sparse_index_alloc()
64 struct mem_section *section = NULL; in sparse_index_alloc()
66 sizeof(struct mem_section); in sparse_index_alloc()
79 struct mem_section *section; in sparse_index_init()
81 if (mem_section[root]) in sparse_index_init()
88 mem_section[root] = section; in sparse_index_init()
100 int __section_nr(struct mem_section* ms) in __section_nr()
103 struct mem_section *root = NULL; in __section_nr()
119 int __section_nr(struct mem_section* ms) in __section_nr()
121 return (int)(ms - mem_section[0]); in __section_nr()
136 static inline int sparse_early_nid(struct mem_section *section) in sparse_early_nid()
177 static void section_mark_present(struct mem_section *ms) in section_mark_present()
214 if (unlikely(!mem_section)) { in memory_present()
217 size = sizeof(struct mem_section*) * NR_SECTION_ROOTS; in memory_present()
219 mem_section = memblock_virt_alloc(size, align); in memory_present()
227 struct mem_section *ms; in memory_present()
265 static void __meminit sparse_init_one_section(struct mem_section *ms, in sparse_init_one_section()
481 struct mem_section *ms; in sparse_init_nid()
530 struct mem_section *ms; in online_mem_sections()
549 struct mem_section *ms; in offline_mem_sections()
668 struct mem_section *ms; in sparse_add_one_section()
769 void sparse_remove_one_section(struct zone *zone, struct mem_section *ms, in sparse_remove_one_section()