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()
84 struct mem_section *section; in sparse_index_init()
93 if (mem_section[root]) in sparse_index_init()
100 mem_section[root] = section; in sparse_index_init()
112 unsigned long __section_nr(struct mem_section *ms) in __section_nr()
115 struct mem_section *root = NULL; in __section_nr()
131 unsigned long __section_nr(struct mem_section *ms) in __section_nr()
133 return (unsigned long)(ms - mem_section[0]); in __section_nr()
148 static inline int sparse_early_nid(struct mem_section *section) in sparse_early_nid()
189 static void section_mark_present(struct mem_section *ms) in section_mark_present()
229 struct mem_section *ms; in subsection_map_init()
257 if (unlikely(!mem_section)) { in memory_present()
260 size = sizeof(struct mem_section*) * NR_SECTION_ROOTS; in memory_present()
262 mem_section = memblock_alloc(size, align); in memory_present()
263 if (!mem_section) in memory_present()
273 struct mem_section *ms; in memory_present()
327 static void __meminit sparse_init_one_section(struct mem_section *ms, in sparse_init_one_section()
563 struct mem_section *ms; in sparse_init_nid()
616 struct mem_section *ms; in online_mem_sections()
635 struct mem_section *ms; in offline_mem_sections()
677 struct mem_section *ms = __pfn_to_section(pfn); in clear_subsection_map()
694 static bool is_subsection_map_empty(struct mem_section *ms) in is_subsection_map_empty()
702 struct mem_section *ms = __pfn_to_section(pfn); in fill_subsection_map()
770 static bool is_subsection_map_empty(struct mem_section *ms) in is_subsection_map_empty()
800 struct mem_section *ms = __pfn_to_section(pfn); in section_deactivate()
848 struct mem_section *ms = __pfn_to_section(pfn); in section_activate()
909 struct mem_section *ms; in sparse_add_section()
966 void sparse_remove_section(struct mem_section *ms, unsigned long pfn, in sparse_remove_section()