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()
202 struct mem_section *ms; in subsection_map_init()
230 if (unlikely(!mem_section)) { in memory_present()
233 size = sizeof(struct mem_section *) * NR_SECTION_ROOTS; in memory_present()
235 mem_section = memblock_alloc(size, align); in memory_present()
236 if (!mem_section) in memory_present()
246 struct mem_section *ms; in memory_present()
300 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()
658 struct mem_section *ms = __pfn_to_section(pfn); in clear_subsection_map()
675 static bool is_subsection_map_empty(struct mem_section *ms) in is_subsection_map_empty()
683 struct mem_section *ms = __pfn_to_section(pfn); in fill_subsection_map()
752 static bool is_subsection_map_empty(struct mem_section *ms) in is_subsection_map_empty()
782 struct mem_section *ms = __pfn_to_section(pfn); in section_deactivate()
831 struct mem_section *ms = __pfn_to_section(pfn); in section_activate()
894 struct mem_section *ms; in sparse_add_section()
927 struct mem_section *ms = __pfn_to_section(pfn); in sparse_remove_section()