Home
last modified time | relevance | path

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

/Linux-v4.19/mm/
Dsparse.c26 struct mem_section **mem_section; variable
28 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT] variable
31 EXPORT_SYMBOL(mem_section);
62 static noinline struct mem_section __ref *sparse_index_alloc(int nid) in sparse_index_alloc()
64 struct mem_section *section = NULL; in sparse_index_alloc()
66 sizeof(struct mem_section); in sparse_index_alloc()
79 struct mem_section *section; in sparse_index_init()
81 if (mem_section[root]) in sparse_index_init()
88 mem_section[root] = section; in sparse_index_init()
100 int __section_nr(struct mem_section* ms) in __section_nr()
[all …]
Dpage_ext.c201 struct mem_section *section = __pfn_to_section(pfn); in lookup_page_ext()
231 struct mem_section *section; in init_section_page_ext()
282 struct mem_section *ms; in __free_page_ext()
Dmemory_hotplug.c166 struct mem_section *ms; in register_page_bootmem_info_section()
200 struct mem_section *ms; in register_page_bootmem_info_section()
323 struct mem_section *ms; in find_smallest_section_pfn()
348 struct mem_section *ms; in find_biggest_section_pfn()
378 struct mem_section *ms; in shrink_zone_span()
446 struct mem_section *ms; in shrink_pgdat_span()
517 static int __remove_section(struct zone *zone, struct mem_section *ms, in __remove_section()
1728 struct mem_section *section; in walk_memory_range()
DKconfig100 # statically allocating the mem_section[] array can potentially
110 # Architecture platforms which require a two level mem_section in SPARSEMEM
/Linux-v4.19/include/linux/
Dmemory.h73 struct mem_section;
114 int hotplug_memory_register(int nid, struct mem_section *section);
116 extern int unregister_memory_section(struct mem_section *);
121 extern struct memory_block *find_memory_block_hinted(struct mem_section *,
123 extern struct memory_block *find_memory_block(struct mem_section *);
Dmmzone.h1103 struct mem_section { struct
1135 #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section))
1145 extern struct mem_section **mem_section;
1147 extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];
1150 static inline struct mem_section *__nr_to_section(unsigned long nr) in __nr_to_section()
1153 if (!mem_section) in __nr_to_section()
1156 if (!mem_section[SECTION_NR_TO_ROOT(nr)]) in __nr_to_section()
1158 return &mem_section[SECTION_NR_TO_ROOT(nr)][nr & SECTION_ROOT_MASK]; in __nr_to_section()
1160 extern int __section_nr(struct mem_section* ms);
1183 static inline struct page *__section_mem_map_addr(struct mem_section *section) in __section_mem_map_addr()
[all …]
Dmemory_hotplug.h13 struct mem_section;
336 extern void sparse_remove_one_section(struct zone *zone, struct mem_section *ms,
/Linux-v4.19/kernel/
Dcrash_core.c414 VMCOREINFO_SYMBOL_ARRAY(mem_section); in crash_save_vmcoreinfo_init()
415 VMCOREINFO_LENGTH(mem_section, NR_SECTION_ROOTS); in crash_save_vmcoreinfo_init()
416 VMCOREINFO_STRUCT_SIZE(mem_section); in crash_save_vmcoreinfo_init()
417 VMCOREINFO_OFFSET(mem_section, section_mem_map); in crash_save_vmcoreinfo_init()
/Linux-v4.19/drivers/base/
Dmemory.c596 struct memory_block *find_memory_block_hinted(struct mem_section *section, in find_memory_block_hinted()
619 struct memory_block *find_memory_block(struct mem_section *section) in find_memory_block()
666 struct mem_section *section, unsigned long state) in init_memory_block()
719 int hotplug_memory_register(int nid, struct mem_section *section) in hotplug_memory_register()
754 struct mem_section *section, int phys_device) in remove_memory_section()
781 int unregister_memory_section(struct mem_section *section) in unregister_memory_section()
/Linux-v4.19/include/asm-generic/
Dmemory_model.h70 struct mem_section *__sec = __pfn_to_section(__pfn); \
/Linux-v4.19/arch/powerpc/platforms/pseries/
Dhotplug-memory.c248 struct mem_section *mem_sect; in lmb_to_memblock()