Home
last modified time | relevance | path

Searched refs:SECTIONS_PER_ROOT (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/scripts/gdb/linux/
H A Dmm.py71 self.SECTIONS_PER_ROOT = self.PAGE_SIZE // gdb.lookup_type("struct mem_section").sizeof
73 self.SECTIONS_PER_ROOT = 1
75 self.NR_SECTION_ROOTS = DIV_ROUND_UP(self.NR_MEM_SECTIONS, self.SECTIONS_PER_ROOT)
76 self.SECTION_ROOT_MASK = self.SECTIONS_PER_ROOT - 1
126 return sec // self.SECTIONS_PER_ROOT
/openbmc/linux/include/linux/
H A Dmmzone.h1821 #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) macro
1823 #define SECTIONS_PER_ROOT 1 macro
1826 #define SECTION_NR_TO_ROOT(sec) ((sec) / SECTIONS_PER_ROOT)
1827 #define NR_SECTION_ROOTS DIV_ROUND_UP(NR_MEM_SECTIONS, SECTIONS_PER_ROOT)
1828 #define SECTION_ROOT_MASK (SECTIONS_PER_ROOT - 1)
1833 extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];
/openbmc/linux/mm/
H A Dsparse.c29 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]
66 unsigned long array_size = SECTIONS_PER_ROOT * in sparse_index_alloc()