Lines Matching refs:section_nr

51 static void set_section_nid(unsigned long section_nr, int nid)  in set_section_nid()  argument
53 section_to_node_table[section_nr] = nid; in set_section_nid()
56 static inline void set_section_nid(unsigned long section_nr, int nid) in set_section_nid() argument
76 static int __meminit sparse_index_init(unsigned long section_nr, int nid) in sparse_index_init() argument
78 unsigned long root = SECTION_NR_TO_ROOT(section_nr); in sparse_index_init()
93 static inline int sparse_index_init(unsigned long section_nr, int nid) in sparse_index_init() argument
179 int section_nr = __section_nr(ms); in section_mark_present() local
181 if (section_nr > __highest_present_section_nr) in section_mark_present()
182 __highest_present_section_nr = section_nr; in section_mark_present()
187 static inline int next_present_section_nr(int section_nr) in next_present_section_nr() argument
190 section_nr++; in next_present_section_nr()
191 if (present_section_nr(section_nr)) in next_present_section_nr()
192 return section_nr; in next_present_section_nr()
193 } while ((section_nr <= __highest_present_section_nr)); in next_present_section_nr()
197 #define for_each_present_section_nr(start, section_nr) \ argument
198 for (section_nr = next_present_section_nr(start-1); \
199 ((section_nr >= 0) && \
200 (section_nr <= __highest_present_section_nr)); \
201 section_nr = next_present_section_nr(section_nr))
529 unsigned long section_nr = pfn_to_section_nr(pfn); in online_mem_sections() local
533 if (WARN_ON(!valid_section_nr(section_nr))) in online_mem_sections()
536 ms = __nr_to_section(section_nr); in online_mem_sections()
548 unsigned long section_nr = pfn_to_section_nr(pfn); in offline_mem_sections() local
555 if (WARN_ON(!valid_section_nr(section_nr))) in offline_mem_sections()
558 ms = __nr_to_section(section_nr); in offline_mem_sections()
667 unsigned long section_nr = pfn_to_section_nr(start_pfn); in sparse_add_one_section() local
678 ret = sparse_index_init(section_nr, pgdat->node_id); in sparse_add_one_section()
682 memmap = kmalloc_section_memmap(section_nr, pgdat->node_id, altmap); in sparse_add_one_section()
708 sparse_init_one_section(ms, section_nr, memmap, usemap); in sparse_add_one_section()