Home
last modified time | relevance | path

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

/linux/mm/
H A Dsparse.c28 struct mem_section **mem_section; variable
30 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT] variable
33 EXPORT_SYMBOL(mem_section);
64 static noinline struct mem_section __ref *sparse_index_alloc(int nid) in sparse_index_alloc()
66 struct mem_section *section = NULL; in sparse_index_alloc()
68 sizeof(struct mem_section); in sparse_index_alloc()
86 struct mem_section *section; in sparse_index_init()
95 if (mem_section[root]) in sparse_index_init()
102 mem_section[root] = section; in sparse_index_init()
124 static inline int sparse_early_nid(struct mem_section *section) in sparse_early_nid()
[all …]
H A Dsparse.h20 static inline void sparse_init_one_section(struct mem_section *ms, in sparse_init_one_section()
42 static inline void __section_mark_present(struct mem_section *ms, in __section_mark_present()
H A Dpage_ext.c250 struct mem_section *section = __pfn_to_section(pfn); in lookup_page_ext()
284 struct mem_section *section; in init_section_page_ext()
338 struct mem_section *ms; in __free_page_ext()
360 struct mem_section *ms; in __invalidate_page_ext()
H A DKconfig435 # statically allocating the mem_section[] array can potentially
445 # Architecture platforms which require a two level mem_section in SPARSEMEM
/linux/include/linux/
H A Dmmzone.h2008 struct mem_section { struct
2039 #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section))
2049 extern struct mem_section **mem_section;
2051 extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];
2054 static inline unsigned long *section_to_usemap(struct mem_section *ms) in section_to_usemap()
2059 static inline struct mem_section *__nr_to_section(unsigned long nr) in __nr_to_section()
2067 if (!mem_section || !mem_section[root]) in __nr_to_section()
2070 return &mem_section[root][nr & SECTION_ROOT_MASK]; in __nr_to_section()
2112 static inline struct page *__section_mem_map_addr(struct mem_section *section) in __section_mem_map_addr()
2119 static inline int present_section(const struct mem_section *section) in present_section()
[all …]
/linux/scripts/gdb/linux/
H A Dmm.py102 mem_section = gdb.parse_and_eval("mem_section")
103 return mem_section[root][nr & self.SECTION_ROOT_MASK]
127 def valid_section(self, mem_section): argument
128 if mem_section != None and (mem_section['section_mem_map'] & self.SECTION_HAS_MEM_MAP):
132 def early_section(self, mem_section): argument
133 if mem_section != None and (mem_section['section_mem_map'] & self.SECTION_IS_EARLY):
306 mem_section = gdb.parse_and_eval("mem_section")
307 return mem_section[root][nr & self.SECTION_ROOT_MASK]
331 def valid_section(self, mem_section): argument
332 if mem_section != None and (mem_section['section_mem_map'] & self.SECTION_HAS_MEM_MAP):
[all …]
/linux/arch/arm64/mm/
H A Dmmu.c2168 struct mem_section *ms; in prevent_memory_remove_notifier()
2233 struct mem_section *ms; in validate_bootmem_online()