Home
last modified time | relevance | path

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

/linux-4.4.14/mm/
Dsparse.c25 struct mem_section *mem_section[NR_SECTION_ROOTS] variable
28 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT] variable
31 EXPORT_SYMBOL(mem_section);
62 static struct mem_section noinline __init_refok *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()
83 struct mem_section *section; in sparse_index_init()
85 if (mem_section[root]) in sparse_index_init()
92 mem_section[root] = section; in sparse_index_init()
108 int __section_nr(struct mem_section* ms) in __section_nr()
[all …]
Dpage_ext.c182 struct mem_section *section = __pfn_to_section(pfn); in lookup_page_ext()
217 struct mem_section *section; in init_section_page_ext()
268 struct mem_section *ms; in __free_page_ext()
Dmemory_hotplug.c188 struct mem_section *ms; in register_page_bootmem_info_section()
222 struct mem_section *ms; in register_page_bootmem_info_section()
536 struct mem_section *ms; in find_smallest_section_pfn()
561 struct mem_section *ms; in find_biggest_section_pfn()
591 struct mem_section *ms; in shrink_zone_span()
659 struct mem_section *ms; in shrink_pgdat_span()
733 static int __remove_section(struct zone *zone, struct mem_section *ms) in __remove_section()
1873 struct mem_section *section; in walk_memory_range()
Dsparse-vmemmap.c214 struct mem_section *ms; in sparse_mem_maps_populate_node()
DKconfig97 # statically allocating the mem_section[] array can potentially
107 # Architecture platforms which require a two level mem_section in SPARSEMEM
/linux-4.4.14/include/linux/
Dmemory.h70 struct mem_section;
111 extern int register_new_memory(int, struct mem_section *);
113 extern int unregister_memory_section(struct mem_section *);
118 extern struct memory_block *find_memory_block_hinted(struct mem_section *,
120 extern struct memory_block *find_memory_block(struct mem_section *);
Dmmzone.h1027 struct mem_section { struct
1059 #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section))
1069 extern struct mem_section *mem_section[NR_SECTION_ROOTS];
1071 extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];
1074 static inline struct mem_section *__nr_to_section(unsigned long nr) in __nr_to_section()
1076 if (!mem_section[SECTION_NR_TO_ROOT(nr)]) in __nr_to_section()
1078 return &mem_section[SECTION_NR_TO_ROOT(nr)][nr & SECTION_ROOT_MASK]; in __nr_to_section()
1080 extern int __section_nr(struct mem_section* ms);
1094 static inline struct page *__section_mem_map_addr(struct mem_section *section) in __section_mem_map_addr()
1101 static inline int present_section(struct mem_section *section) in present_section()
[all …]
Dmemory_hotplug.h12 struct mem_section;
278 extern void sparse_remove_one_section(struct zone *zone, struct mem_section *ms);
/linux-4.4.14/drivers/base/
Dmemory.c541 struct memory_block *find_memory_block_hinted(struct mem_section *section, in find_memory_block_hinted()
564 struct memory_block *find_memory_block(struct mem_section *section) in find_memory_block()
605 struct mem_section *section, unsigned long state) in init_memory_block()
660 int register_new_memory(int nid, struct mem_section *section) in register_new_memory()
696 struct mem_section *section, int phys_device) in remove_memory_block()
714 int unregister_memory_section(struct mem_section *section) in unregister_memory_section()
Dnode.c470 struct mem_section *mem_sect; in link_mem_sections()
/linux-4.4.14/include/asm-generic/
Dmemory_model.h67 struct mem_section *__sec = __pfn_to_section(__pfn); \
/linux-4.4.14/kernel/
Dkexec_core.c1374 VMCOREINFO_SYMBOL(mem_section); in crash_save_vmcoreinfo_init()
1375 VMCOREINFO_LENGTH(mem_section, NR_SECTION_ROOTS); in crash_save_vmcoreinfo_init()
1376 VMCOREINFO_STRUCT_SIZE(mem_section); in crash_save_vmcoreinfo_init()
1377 VMCOREINFO_OFFSET(mem_section, section_mem_map); in crash_save_vmcoreinfo_init()
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dhotplug-memory.c122 struct mem_section *mem_sect; in lmb_to_memblock()