Searched refs:SECTIONS_PER_ROOT (Results 1 – 2 of 2) sorted by relevance
1059 #define SECTIONS_PER_ROOT (PAGE_SIZE / sizeof (struct mem_section)) macro1061 #define SECTIONS_PER_ROOT 1 macro1064 #define SECTION_NR_TO_ROOT(sec) ((sec) / SECTIONS_PER_ROOT)1065 #define NR_SECTION_ROOTS DIV_ROUND_UP(NR_MEM_SECTIONS, SECTIONS_PER_ROOT)1066 #define SECTION_ROOT_MASK (SECTIONS_PER_ROOT - 1)1071 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()114 root = __nr_to_section(root_nr * SECTIONS_PER_ROOT); in __section_nr()118 if ((ms >= root) && (ms < (root + SECTIONS_PER_ROOT))) in __section_nr()124 return (root_nr * SECTIONS_PER_ROOT) + (ms - root); in __section_nr()