Lines Matching defs:mem_section

23  * 1) mem_section	- memory sections, mem_map's for valid memory
26 struct mem_section **mem_section;
28 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]
31 EXPORT_SYMBOL(mem_section);
62 static noinline struct mem_section __ref *sparse_index_alloc(int nid)
64 struct mem_section *section = NULL;
66 sizeof(struct mem_section);
84 struct mem_section *section;
93 if (mem_section[root])
100 mem_section[root] = section;
112 unsigned long __section_nr(struct mem_section *ms)
115 struct mem_section *root = NULL;
131 unsigned long __section_nr(struct mem_section *ms)
133 return (unsigned long)(ms - mem_section[0]);
148 static inline int sparse_early_nid(struct mem_section *section)
189 static void section_mark_present(struct mem_section *ms)
229 struct mem_section *ms;
257 if (unlikely(!mem_section)) {
260 size = sizeof(struct mem_section*) * NR_SECTION_ROOTS;
262 mem_section = memblock_alloc(size, align);
263 if (!mem_section)
273 struct mem_section *ms;
327 static void __meminit sparse_init_one_section(struct mem_section *ms,
563 struct mem_section *ms;
616 struct mem_section *ms;
635 struct mem_section *ms;
677 struct mem_section *ms = __pfn_to_section(pfn);
694 static bool is_subsection_map_empty(struct mem_section *ms)
702 struct mem_section *ms = __pfn_to_section(pfn);
770 static bool is_subsection_map_empty(struct mem_section *ms)
800 struct mem_section *ms = __pfn_to_section(pfn);
849 struct mem_section *ms = __pfn_to_section(pfn);
910 struct mem_section *ms;
967 void sparse_remove_section(struct mem_section *ms, unsigned long pfn,