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()
203 struct mem_section *ms; in subsection_map_init()
231 if (unlikely(!mem_section)) { in memory_present()
234 size = sizeof(struct mem_section *) * NR_SECTION_ROOTS; in memory_present()
236 mem_section = memblock_alloc(size, align); in memory_present()
237 if (!mem_section) in memory_present()
247 struct mem_section *ms; in memory_present()
301 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()
598 struct mem_section *ms; in online_mem_sections()
616 struct mem_section *ms; in offline_mem_sections()
657 struct mem_section *ms = __pfn_to_section(pfn); in clear_subsection_map()
674 static bool is_subsection_map_empty(struct mem_section *ms) in is_subsection_map_empty()
682 struct mem_section *ms = __pfn_to_section(pfn); in fill_subsection_map()
750 static bool is_subsection_map_empty(struct mem_section *ms) in is_subsection_map_empty()
780 struct mem_section *ms = __pfn_to_section(pfn); in section_deactivate()
828 struct mem_section *ms = __pfn_to_section(pfn); in section_activate()
889 struct mem_section *ms; in sparse_add_section()
946 void sparse_remove_section(struct mem_section *ms, unsigned long pfn, in sparse_remove_section()