Home
last modified time | relevance | path

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

/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.h1084 struct mem_section { struct
1116 #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section))
1126 extern struct mem_section *mem_section[NR_SECTION_ROOTS];
1128 extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];
1131 static inline struct mem_section *__nr_to_section(unsigned long nr) in __nr_to_section()
1133 if (!mem_section[SECTION_NR_TO_ROOT(nr)]) in __nr_to_section()
1135 return &mem_section[SECTION_NR_TO_ROOT(nr)][nr & SECTION_ROOT_MASK]; in __nr_to_section()
1137 extern int __section_nr(struct mem_section* ms);
1151 static inline struct page *__section_mem_map_addr(struct mem_section *section) in __section_mem_map_addr()
1158 static inline int present_section(struct mem_section *section) in present_section()
[all …]
Dmemory_hotplug.h12 struct mem_section;
269 extern void sparse_remove_one_section(struct zone *zone, struct mem_section *ms);
/include/asm-generic/
Dmemory_model.h69 struct mem_section *__sec = __pfn_to_section(__pfn); \