Lines Matching refs:pnum
306 static unsigned long sparse_encode_mem_map(struct page *mem_map, unsigned long pnum) in sparse_encode_mem_map() argument
309 (unsigned long)(mem_map - (section_nr_to_pfn(pnum))); in sparse_encode_mem_map()
319 struct page *sparse_decode_mem_map(unsigned long coded_mem_map, unsigned long pnum) in sparse_decode_mem_map() argument
323 return ((struct page *)coded_mem_map) + section_nr_to_pfn(pnum); in sparse_decode_mem_map()
328 unsigned long pnum, struct page *mem_map, in sparse_init_one_section() argument
332 ms->section_mem_map |= sparse_encode_mem_map(mem_map, pnum) in sparse_init_one_section()
528 unsigned long pnum; in sparse_init_nid() local
538 for_each_present_section_nr(pnum_begin, pnum) { in sparse_init_nid()
539 unsigned long pfn = section_nr_to_pfn(pnum); in sparse_init_nid()
541 if (pnum >= pnum_end) in sparse_init_nid()
549 pnum_begin = pnum; in sparse_init_nid()
554 sparse_init_one_section(__nr_to_section(pnum), pnum, map, usage, in sparse_init_nid()
562 for_each_present_section_nr(pnum_begin, pnum) { in sparse_init_nid()
565 if (pnum >= pnum_end) in sparse_init_nid()
567 ms = __nr_to_section(pnum); in sparse_init_nid()