Searched refs:mem_section (Results 1 – 13 of 13) sorted by relevance
28 struct mem_section **mem_section; variable30 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT] variable33 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()[all …]
193 struct mem_section *section = __pfn_to_section(pfn); in lookup_page_ext()223 struct mem_section *section; in init_section_page_ext()275 struct mem_section *ms; in __free_page_ext()
169 struct mem_section *ms; in register_page_bootmem_info_section()204 struct mem_section *ms; in register_page_bootmem_info_section()494 struct mem_section *ms = __nr_to_section(pfn_to_section_nr(pfn)); in __remove_section()
99 # statically allocating the mem_section[] array can potentially109 # Architecture platforms which require a two level mem_section in SPARSEMEM
1185 struct mem_section { struct1216 #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section))1226 extern struct mem_section **mem_section;1228 extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];1231 static inline unsigned long *section_to_usemap(struct mem_section *ms) in section_to_usemap()1236 static inline struct mem_section *__nr_to_section(unsigned long nr) in __nr_to_section()1239 if (!mem_section) in __nr_to_section()1242 if (!mem_section[SECTION_NR_TO_ROOT(nr)]) in __nr_to_section()1244 return &mem_section[SECTION_NR_TO_ROOT(nr)][nr & SECTION_ROOT_MASK]; in __nr_to_section()1246 extern unsigned long __section_nr(struct mem_section *ms);[all …]
72 struct mem_section;118 extern struct memory_block *find_memory_block(struct mem_section *);
13 struct mem_section;351 extern void sparse_remove_section(struct mem_section *ms,
412 VMCOREINFO_SYMBOL_ARRAY(mem_section); in crash_save_vmcoreinfo_init()413 VMCOREINFO_LENGTH(mem_section, NR_SECTION_ROOTS); in crash_save_vmcoreinfo_init()414 VMCOREINFO_STRUCT_SIZE(mem_section); in crash_save_vmcoreinfo_init()415 VMCOREINFO_OFFSET(mem_section, section_mem_map); in crash_save_vmcoreinfo_init()
70 struct mem_section *__sec = __pfn_to_section(__pfn); \
115 sections. A section is represented with :c:type:`struct mem_section`132 The `mem_section` objects are arranged in a two-dimensional array139 single `mem_section` object.142 `mem_section` objects and the number of rows is calculated to fit
86 mem_section|(mem_section, NR_SECTION_ROOTS)|(mem_section, section_mem_map)89 The address of the mem_section array, its length, structure size, and
597 struct memory_block *find_memory_block(struct mem_section *section) in find_memory_block()
211 struct mem_section *mem_sect; in lmb_to_memblock()