• Home
  • Raw
  • Download

Lines Matching refs:pnum

226 static unsigned long sparse_encode_mem_map(struct page *mem_map, unsigned long pnum)  in sparse_encode_mem_map()  argument
228 return (unsigned long)(mem_map - (section_nr_to_pfn(pnum))); in sparse_encode_mem_map()
234 struct page *sparse_decode_mem_map(unsigned long coded_mem_map, unsigned long pnum) in sparse_decode_mem_map() argument
238 return ((struct page *)coded_mem_map) + section_nr_to_pfn(pnum); in sparse_decode_mem_map()
242 unsigned long pnum, struct page *mem_map, in sparse_init_one_section() argument
249 ms->section_mem_map |= sparse_encode_mem_map(mem_map, pnum) | in sparse_init_one_section()
341 static unsigned long *__init sparse_early_usemap_alloc(unsigned long pnum) in sparse_early_usemap_alloc() argument
344 struct mem_section *ms = __nr_to_section(pnum); in sparse_early_usemap_alloc()
365 struct page __init *sparse_mem_map_populate(unsigned long pnum, int nid) in sparse_mem_map_populate() argument
379 static struct page __init *sparse_early_mem_map_alloc(unsigned long pnum) in sparse_early_mem_map_alloc() argument
382 struct mem_section *ms = __nr_to_section(pnum); in sparse_early_mem_map_alloc()
385 map = sparse_mem_map_populate(pnum, nid); in sparse_early_mem_map_alloc()
404 unsigned long pnum; in sparse_init() local
426 for (pnum = 0; pnum < NR_MEM_SECTIONS; pnum++) { in sparse_init()
427 if (!present_section_nr(pnum)) in sparse_init()
429 usemap_map[pnum] = sparse_early_usemap_alloc(pnum); in sparse_init()
432 for (pnum = 0; pnum < NR_MEM_SECTIONS; pnum++) { in sparse_init()
433 if (!present_section_nr(pnum)) in sparse_init()
436 usemap = usemap_map[pnum]; in sparse_init()
440 map = sparse_early_mem_map_alloc(pnum); in sparse_init()
444 sparse_init_one_section(__nr_to_section(pnum), pnum, map, in sparse_init()
455 static inline struct page *kmalloc_section_memmap(unsigned long pnum, int nid, in kmalloc_section_memmap() argument
459 return sparse_mem_map_populate(pnum, nid); in kmalloc_section_memmap()
491 static inline struct page *kmalloc_section_memmap(unsigned long pnum, int nid, in kmalloc_section_memmap() argument