Home
last modified time | relevance | path

Searched refs:mem_section (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.15/mm/
Dsparse.c27 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()
[all …]
Dbootmem_info.c45 struct mem_section *ms; in register_page_bootmem_info_section()
80 struct mem_section *ms; in register_page_bootmem_info_section()
Dpage_ext.c209 struct mem_section *section = __pfn_to_section(pfn); in lookup_page_ext()
239 struct mem_section *section; in init_section_page_ext()
291 struct mem_section *ms; in __free_page_ext()
Dmemory_hotplug.c260 struct mem_section *ms; in pfn_to_online_page()
500 struct mem_section *ms = __pfn_to_section(pfn); in __remove_section()
678 struct mem_section *ms = __pfn_to_section(pfn); in section_taint_zone_device()
DKconfig62 # statically allocating the mem_section[] array can potentially
72 # Architecture platforms which require a two level mem_section in SPARSEMEM
/Linux-v5.15/include/linux/
Dmmzone.h1292 struct mem_section { struct
1323 #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section))
1333 extern struct mem_section **mem_section;
1335 extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];
1338 static inline unsigned long *section_to_usemap(struct mem_section *ms) in section_to_usemap()
1343 static inline struct mem_section *__nr_to_section(unsigned long nr) in __nr_to_section()
1346 if (!mem_section) in __nr_to_section()
1349 if (!mem_section[SECTION_NR_TO_ROOT(nr)]) in __nr_to_section()
1351 return &mem_section[SECTION_NR_TO_ROOT(nr)][nr & SECTION_ROOT_MASK]; in __nr_to_section()
1377 static inline struct page *__section_mem_map_addr(struct mem_section *section) in __section_mem_map_addr()
[all …]
Dmemory_hotplug.h13 struct mem_section;
346 extern void sparse_remove_section(struct mem_section *ms,
Dmemory.h104 struct mem_section;
/Linux-v5.15/kernel/
Dcrash_core.c417 VMCOREINFO_SYMBOL_ARRAY(mem_section); in crash_save_vmcoreinfo_init()
418 VMCOREINFO_LENGTH(mem_section, NR_SECTION_ROOTS); in crash_save_vmcoreinfo_init()
419 VMCOREINFO_STRUCT_SIZE(mem_section); in crash_save_vmcoreinfo_init()
420 VMCOREINFO_OFFSET(mem_section, section_mem_map); in crash_save_vmcoreinfo_init()
/Linux-v5.15/include/asm-generic/
Dmemory_model.h41 struct mem_section *__sec = __pfn_to_section(__pfn); \
/Linux-v5.15/Documentation/vm/
Dmemory-model.rst72 sections. A section is represented with struct mem_section
89 The `mem_section` objects are arranged in a two-dimensional array
96 single `mem_section` object.
99 `mem_section` objects and the number of rows is calculated to fit
/Linux-v5.15/Documentation/admin-guide/kdump/
Dvmcoreinfo.rst92 mem_section|(mem_section, NR_SECTION_ROOTS)|(mem_section, section_mem_map)
95 The address of the mem_section array, its length, structure size, and
/Linux-v5.15/arch/arm64/mm/
Dinit.c166 struct mem_section *ms; in pfn_valid()
Dmmu.c1526 struct mem_section *ms; in prevent_bootmem_remove_notifier()
1587 struct mem_section *ms; in validate_bootmem_online()