• Home
  • Raw
  • Download

Lines Matching refs:mem_section

28 struct mem_section **mem_section;  variable
30 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT] variable
33 EXPORT_SYMBOL(mem_section);
64 static noinline struct mem_section __ref *sparse_index_alloc(int nid) in sparse_index_alloc()
66 struct mem_section *section = NULL; in sparse_index_alloc()
68 sizeof(struct mem_section); in sparse_index_alloc()
86 struct mem_section *section; in sparse_index_init()
95 if (mem_section[root]) in sparse_index_init()
102 mem_section[root] = section; in sparse_index_init()
114 unsigned long __section_nr(struct mem_section *ms) in __section_nr()
117 struct mem_section *root = NULL; in __section_nr()
133 unsigned long __section_nr(struct mem_section *ms) in __section_nr()
135 return (unsigned long)(ms - mem_section[0]); in __section_nr()
150 static inline int sparse_early_nid(struct mem_section *section) in sparse_early_nid()
191 static void section_mark_present(struct mem_section *ms) in section_mark_present()
240 struct mem_section *ms; in subsection_map_init()
263 if (unlikely(!mem_section)) { in memory_present()
266 size = sizeof(struct mem_section*) * NR_SECTION_ROOTS; in memory_present()
268 mem_section = memblock_alloc(size, align); in memory_present()
269 if (!mem_section) in memory_present()
279 struct mem_section *ms; in memory_present()
333 static void __meminit sparse_init_one_section(struct mem_section *ms, in sparse_init_one_section()
567 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()
743 struct mem_section *ms = __pfn_to_section(pfn); in section_deactivate()
814 struct mem_section *ms = __pfn_to_section(pfn); in section_activate()
882 struct mem_section *ms; in sparse_add_section()
939 void sparse_remove_section(struct mem_section *ms, unsigned long pfn, in sparse_remove_section()