Lines Matching refs:section
65 struct mem_section *section = NULL; in sparse_index_alloc() local
70 section = kzalloc_node(array_size, GFP_KERNEL, nid); in sparse_index_alloc()
72 section = memblock_alloc_node(array_size, SMP_CACHE_BYTES, in sparse_index_alloc()
74 if (!section) in sparse_index_alloc()
79 return section; in sparse_index_alloc()
85 struct mem_section *section; in sparse_index_init() local
97 section = sparse_index_alloc(nid); in sparse_index_init()
98 if (!section) in sparse_index_init()
101 mem_section[root] = section; in sparse_index_init()
123 static inline int sparse_early_nid(struct mem_section *section) in sparse_early_nid() argument
125 return (section->section_mem_map >> SECTION_NID_SHIFT); in sparse_early_nid()
246 unsigned long section = pfn_to_section_nr(pfn); in memory_present() local
249 sparse_index_init(section, nid); in memory_present()
250 set_section_nid(section, nid); in memory_present()
252 ms = __nr_to_section(section); in memory_present()
256 __section_mark_present(ms, section); in memory_present()