Home
last modified time | relevance | path

Searched refs:pnum (Results 1 – 2 of 2) sorted by relevance

/mm/
Dsparse.c219 static unsigned long sparse_encode_mem_map(struct page *mem_map, unsigned long pnum) in sparse_encode_mem_map() argument
221 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() argument
231 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() argument
242 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() local
361 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 …]
Dsparse-vmemmap.c251 struct page * __meminit sparse_mem_map_populate(unsigned long pnum, int nid) in sparse_mem_map_populate() argument
257 map = pfn_to_page(pnum * PAGES_PER_SECTION); in sparse_mem_map_populate()
272 unsigned long pnum; in sparse_mem_maps_populate_node() local
285 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()