Lines Matching refs:mem_section
27 struct mem_section **mem_section; variable
29 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT] variable
32 EXPORT_SYMBOL(mem_section);
63 static noinline struct mem_section __ref *sparse_index_alloc(int nid) in sparse_index_alloc()
65 struct mem_section *section = NULL; in sparse_index_alloc()
67 sizeof(struct mem_section); in sparse_index_alloc()
85 struct mem_section *section; in sparse_index_init()
94 if (mem_section[root]) in sparse_index_init()
101 mem_section[root] = section; in sparse_index_init()
123 static inline int sparse_early_nid(struct mem_section *section) in sparse_early_nid()
164 static void __section_mark_present(struct mem_section *ms, in __section_mark_present()
199 struct mem_section *ms; in subsection_map_init()
230 struct mem_section *ms; in memory_present()
255 if (unlikely(!mem_section)) { in memblocks_present()
258 size = sizeof(struct mem_section *) * NR_SECTION_ROOTS; in memblocks_present()
260 mem_section = memblock_alloc(size, align); in memblocks_present()
261 if (!mem_section) in memblocks_present()
297 static void __meminit sparse_init_one_section(struct mem_section *ms, in sparse_init_one_section()
545 struct mem_section *ms; in sparse_init_nid()
564 BUILD_BUG_ON(!is_power_of_2(sizeof(struct mem_section))); in sparse_init()
600 struct mem_section *ms; in online_mem_sections()
618 struct mem_section *ms; in offline_mem_sections()
661 struct mem_section *ms = __pfn_to_section(pfn); in clear_subsection_map()
678 static bool is_subsection_map_empty(struct mem_section *ms) in is_subsection_map_empty()
686 struct mem_section *ms = __pfn_to_section(pfn); in fill_subsection_map()
755 static bool is_subsection_map_empty(struct mem_section *ms) in is_subsection_map_empty()
785 struct mem_section *ms = __pfn_to_section(pfn); in section_deactivate()
835 struct mem_section *ms = __pfn_to_section(pfn); in section_activate()
898 struct mem_section *ms; in sparse_add_section()
932 struct mem_section *ms = __pfn_to_section(pfn); in sparse_remove_section()