Searched refs:mem_section (Results 1 – 2 of 2) sorted by relevance
525 struct mem_section { struct542 #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) argument552 extern struct mem_section *mem_section[NR_SECTION_ROOTS];554 extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];557 static inline struct mem_section *__nr_to_section(unsigned long nr) in __nr_to_section()559 if (!mem_section[SECTION_NR_TO_ROOT(nr)]) in __nr_to_section()561 return &mem_section[SECTION_NR_TO_ROOT(nr)][nr & SECTION_ROOT_MASK]; in __nr_to_section()563 extern int __section_nr(struct mem_section* ms);576 static inline struct page *__section_mem_map_addr(struct mem_section *section) in __section_mem_map_addr()583 static inline int valid_section(struct mem_section *section) in valid_section()[all …]
62 struct mem_section *__sec = __pfn_to_section(__pfn); \