Home
last modified time | relevance | path

Searched refs:pfn_to_section_nr (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.15/mm/
Dsparse.c196 int end_sec = pfn_to_section_nr(pfn + nr_pages - 1); in subsection_map_init()
197 unsigned long nr, start_sec = pfn_to_section_nr(pfn); in subsection_map_init()
246 unsigned long section = pfn_to_section_nr(pfn); in memory_present()
376 usemap_snr = pfn_to_section_nr(__pa(usage) >> PAGE_SHIFT); in check_usemap_section_nr()
377 pgdat_snr = pfn_to_section_nr(pgdat_to_phys(pgdat) >> PAGE_SHIFT); in check_usemap_section_nr()
597 unsigned long section_nr = pfn_to_section_nr(pfn); in online_mem_sections()
615 unsigned long section_nr = pfn_to_section_nr(pfn); in offline_mem_sections()
729 maps_section_nr = pfn_to_section_nr(page_to_pfn(page)); in free_map_bootmem()
790 unsigned long section_nr = pfn_to_section_nr(pfn); in section_deactivate()
888 unsigned long section_nr = pfn_to_section_nr(start_pfn); in sparse_add_section()
Dbootmem_info.c49 section_nr = pfn_to_section_nr(start_pfn); in register_page_bootmem_info_section()
84 section_nr = pfn_to_section_nr(start_pfn); in register_page_bootmem_info_section()
Dmemory_hotplug.c258 unsigned long nr = pfn_to_section_nr(pfn); in pfn_to_online_page()
1614 if (!present_section_nr(pfn_to_section_nr(pfn))) in test_pages_in_a_zone()
/Linux-v5.15/include/linux/
Dmmzone.h1252 static inline unsigned long pfn_to_section_nr(unsigned long pfn) in pfn_to_section_nr() function
1433 return __nr_to_section(pfn_to_section_nr(pfn)); in __pfn_to_section()
1482 if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS) in pfn_valid()
1484 ms = __nr_to_section(pfn_to_section_nr(pfn)); in pfn_valid()
1497 if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS) in pfn_in_present_section()
1499 return present_section(__nr_to_section(pfn_to_section_nr(pfn))); in pfn_in_present_section()
Dmm.h1594 set_page_section(page, pfn_to_section_nr(pfn)); in set_page_links()
/Linux-v5.15/arch/arm64/mm/
Dinit.c177 if (pfn_to_section_nr(pfn) >= NR_MEM_SECTIONS) in pfn_valid()
/Linux-v5.15/arch/powerpc/platforms/pseries/
Dhotplug-memory.c218 section_nr = pfn_to_section_nr(PFN_DOWN(lmb->base_addr)); in lmb_to_memblock()
/Linux-v5.15/drivers/base/
Dmemory.c60 return memory_block_id(pfn_to_section_nr(pfn)); in pfn_to_block_id()
/Linux-v5.15/drivers/hv/
Dhv_balloon.c891 online_section_nr(pfn_to_section_nr(start_pfn))) in handle_pg_range()