Searched refs:SECTIONS_PER_ROOT (Results 1 – 2 of 2) sorted by relevance
30 struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT]67 unsigned long array_size = SECTIONS_PER_ROOT * in sparse_index_alloc()120 root = __nr_to_section(root_nr * SECTIONS_PER_ROOT); in __section_nr()124 if ((ms >= root) && (ms < (root + SECTIONS_PER_ROOT))) in __section_nr()130 return (root_nr * SECTIONS_PER_ROOT) + (ms - root); in __section_nr()
1216 #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) macro1218 #define SECTIONS_PER_ROOT 1 macro1221 #define SECTION_NR_TO_ROOT(sec) ((sec) / SECTIONS_PER_ROOT)1222 #define NR_SECTION_ROOTS DIV_ROUND_UP(NR_MEM_SECTIONS, SECTIONS_PER_ROOT)1223 #define SECTION_ROOT_MASK (SECTIONS_PER_ROOT - 1)1228 extern struct mem_section mem_section[NR_SECTION_ROOTS][SECTIONS_PER_ROOT];