Lines Matching refs:section_nr

53 static void set_section_nid(unsigned long section_nr, int nid)  in set_section_nid()  argument
55 section_to_node_table[section_nr] = nid; in set_section_nid()
58 static inline void set_section_nid(unsigned long section_nr, int nid) in set_section_nid() argument
83 static int __meminit sparse_index_init(unsigned long section_nr, int nid) in sparse_index_init() argument
85 unsigned long root = SECTION_NR_TO_ROOT(section_nr); in sparse_index_init()
107 static inline int sparse_index_init(unsigned long section_nr, int nid) in sparse_index_init() argument
193 unsigned long section_nr = __section_nr(ms); in section_mark_present() local
195 if (section_nr > __highest_present_section_nr) in section_mark_present()
196 __highest_present_section_nr = section_nr; in section_mark_present()
201 static inline unsigned long next_present_section_nr(unsigned long section_nr) in next_present_section_nr() argument
204 section_nr++; in next_present_section_nr()
205 if (present_section_nr(section_nr)) in next_present_section_nr()
206 return section_nr; in next_present_section_nr()
207 } while ((section_nr <= __highest_present_section_nr)); in next_present_section_nr()
211 #define for_each_present_section_nr(start, section_nr) \ argument
212 for (section_nr = next_present_section_nr(start-1); \
213 ((section_nr != -1) && \
214 (section_nr <= __highest_present_section_nr)); \
215 section_nr = next_present_section_nr(section_nr))
614 unsigned long section_nr = pfn_to_section_nr(pfn); in online_mem_sections() local
618 if (WARN_ON(!valid_section_nr(section_nr))) in online_mem_sections()
621 ms = __nr_to_section(section_nr); in online_mem_sections()
633 unsigned long section_nr = pfn_to_section_nr(pfn); in offline_mem_sections() local
640 if (WARN_ON(!valid_section_nr(section_nr))) in offline_mem_sections()
643 ms = __nr_to_section(section_nr); in offline_mem_sections()
776 unsigned long section_nr = pfn_to_section_nr(pfn); in section_deactivate() local
782 memmap = sparse_decode_mem_map(ms->section_mem_map, section_nr); in section_deactivate()
783 ms->section_mem_map = sparse_encode_mem_map(NULL, section_nr); in section_deactivate()
863 unsigned long section_nr = pfn_to_section_nr(start_pfn); in sparse_add_section() local
868 ret = sparse_index_init(section_nr, nid); in sparse_add_section()
882 ms = __nr_to_section(section_nr); in sparse_add_section()
883 set_section_nid(section_nr, nid); in sparse_add_section()
887 if (section_nr_to_pfn(section_nr) != start_pfn) in sparse_add_section()
888 memmap = pfn_to_kaddr(section_nr_to_pfn(section_nr)); in sparse_add_section()
889 sparse_init_one_section(ms, section_nr, memmap, ms->usage, 0); in sparse_add_section()