Searched refs:SECTIONS_PER_ROOT (Results 1 – 2 of 2) sorted by relevance
1244 #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) macro1246 #define SECTIONS_PER_ROOT 1 macro1249 #define SECTION_NR_TO_ROOT(sec) ((sec) / SECTIONS_PER_ROOT)1250 #define NR_SECTION_ROOTS DIV_ROUND_UP(NR_MEM_SECTIONS, SECTIONS_PER_ROOT)1251 #define SECTION_ROOT_MASK (SECTIONS_PER_ROOT - 1)1256 extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];
28 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]65 unsigned long array_size = SECTIONS_PER_ROOT * in sparse_index_alloc()118 root = __nr_to_section(root_nr * SECTIONS_PER_ROOT); in __section_nr()122 if ((ms >= root) && (ms < (root + SECTIONS_PER_ROOT))) in __section_nr()128 return (root_nr * SECTIONS_PER_ROOT) + (ms - root); in __section_nr()