Searched refs:mem_section (Results 1 – 13 of 13) sorted by relevance
/linux-4.1.27/mm/ |
D | sparse.c | 25 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 …]
|
D | page_ext.c | 178 struct mem_section *section = __pfn_to_section(pfn); in lookup_page_ext() 213 struct mem_section *section; in init_section_page_ext() 264 struct mem_section *ms; in __free_page_ext()
|
D | memory_hotplug.c | 188 struct mem_section *ms; in register_page_bootmem_info_section() 222 struct mem_section *ms; in register_page_bootmem_info_section() 527 struct mem_section *ms; in find_smallest_section_pfn() 552 struct mem_section *ms; in find_biggest_section_pfn() 582 struct mem_section *ms; in shrink_zone_span() 650 struct mem_section *ms; in shrink_pgdat_span() 724 static int __remove_section(struct zone *zone, struct mem_section *ms) in __remove_section() 1827 struct mem_section *section; in walk_memory_range()
|
D | sparse-vmemmap.c | 214 struct mem_section *ms; in sparse_mem_maps_populate_node()
|
D | Kconfig | 97 # statically allocating the mem_section[] array can potentially 107 # Architecture platforms which require a two level mem_section in SPARSEMEM
|
/linux-4.1.27/include/linux/ |
D | memory.h | 70 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 *);
|
D | mmzone.h | 1082 struct mem_section { struct 1114 #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) 1124 extern struct mem_section *mem_section[NR_SECTION_ROOTS]; 1126 extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]; 1129 static inline struct mem_section *__nr_to_section(unsigned long nr) in __nr_to_section() 1131 if (!mem_section[SECTION_NR_TO_ROOT(nr)]) in __nr_to_section() 1133 return &mem_section[SECTION_NR_TO_ROOT(nr)][nr & SECTION_ROOT_MASK]; in __nr_to_section() 1135 extern int __section_nr(struct mem_section* ms); 1149 static inline struct page *__section_mem_map_addr(struct mem_section *section) in __section_mem_map_addr() 1156 static inline int present_section(struct mem_section *section) in present_section() [all …]
|
D | memory_hotplug.h | 12 struct mem_section; 275 extern void sparse_remove_one_section(struct zone *zone, struct mem_section *ms);
|
/linux-4.1.27/drivers/base/ |
D | memory.c | 537 struct memory_block *find_memory_block_hinted(struct mem_section *section, in find_memory_block_hinted() 560 struct memory_block *find_memory_block(struct mem_section *section) in find_memory_block() 601 struct mem_section *section, unsigned long state) in init_memory_block() 656 int register_new_memory(int nid, struct mem_section *section) in register_new_memory() 692 struct mem_section *section, int phys_device) in remove_memory_block() 710 int unregister_memory_section(struct mem_section *section) in unregister_memory_section()
|
D | node.c | 466 struct mem_section *mem_sect; in link_mem_sections()
|
/linux-4.1.27/include/asm-generic/ |
D | memory_model.h | 67 struct mem_section *__sec = __pfn_to_section(__pfn); \
|
/linux-4.1.27/kernel/ |
D | kexec.c | 1958 VMCOREINFO_SYMBOL(mem_section); in crash_save_vmcoreinfo_init() 1959 VMCOREINFO_LENGTH(mem_section, NR_SECTION_ROOTS); in crash_save_vmcoreinfo_init() 1960 VMCOREINFO_STRUCT_SIZE(mem_section); in crash_save_vmcoreinfo_init() 1961 VMCOREINFO_OFFSET(mem_section, section_mem_map); in crash_save_vmcoreinfo_init()
|
/linux-4.1.27/arch/powerpc/platforms/pseries/ |
D | hotplug-memory.c | 123 struct mem_section *mem_sect; in lmb_to_memblock()
|