Searched refs:pnum (Results 1 – 2 of 2) sorted by relevance
219 static unsigned long sparse_encode_mem_map(struct page *mem_map, unsigned long pnum) in sparse_encode_mem_map() argument221 return (unsigned long)(mem_map - (section_nr_to_pfn(pnum))); in sparse_encode_mem_map()227 struct page *sparse_decode_mem_map(unsigned long coded_mem_map, unsigned long pnum) in sparse_decode_mem_map() argument231 return ((struct page *)coded_mem_map) + section_nr_to_pfn(pnum); in sparse_decode_mem_map()235 unsigned long pnum, struct page *mem_map, in sparse_init_one_section() argument242 ms->section_mem_map |= sparse_encode_mem_map(mem_map, pnum) | in sparse_init_one_section()350 unsigned long pnum; in sparse_early_usemaps_alloc_node() local361 for (pnum = pnum_begin; pnum < pnum_end; pnum++) { in sparse_early_usemaps_alloc_node()362 if (!present_section_nr(pnum)) in sparse_early_usemaps_alloc_node()364 usemap_map[pnum] = usemap; in sparse_early_usemaps_alloc_node()[all …]
251 struct page * __meminit sparse_mem_map_populate(unsigned long pnum, int nid) in sparse_mem_map_populate() argument257 map = pfn_to_page(pnum * PAGES_PER_SECTION); in sparse_mem_map_populate()272 unsigned long pnum; in sparse_mem_maps_populate_node() local285 for (pnum = pnum_begin; pnum < pnum_end; pnum++) { in sparse_mem_maps_populate_node()288 if (!present_section_nr(pnum)) in sparse_mem_maps_populate_node()291 map_map[pnum] = sparse_mem_map_populate(pnum, nodeid); in sparse_mem_maps_populate_node()292 if (map_map[pnum]) in sparse_mem_maps_populate_node()294 ms = __nr_to_section(pnum); in sparse_mem_maps_populate_node()