Lines Matching refs:mem_section
28 struct mem_section **mem_section; variable
30 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT] variable
33 EXPORT_SYMBOL(mem_section);
64 static noinline struct mem_section __ref *sparse_index_alloc(int nid) in sparse_index_alloc()
66 struct mem_section *section = NULL; in sparse_index_alloc()
68 sizeof(struct mem_section); in sparse_index_alloc()
86 struct mem_section *section; in sparse_index_init()
95 if (mem_section[root]) in sparse_index_init()
102 mem_section[root] = section; in sparse_index_init()
124 static inline int sparse_early_nid(struct mem_section *section) in sparse_early_nid()
180 struct mem_section *ms; in memory_present()
207 size = sizeof(struct mem_section *) * NR_SECTION_ROOTS; in memblocks_present()
209 mem_section = memblock_alloc_or_panic(size, align); in memblocks_present()
294 struct mem_section *ms; in sparse_init_nid()
326 BUILD_BUG_ON(!is_power_of_2(sizeof(struct mem_section))); in sparse_init()