/Linux-v5.10/include/linux/ |
D | pfn_t.h | 29 static inline pfn_t __pfn_to_pfn_t(unsigned long pfn, u64 flags) in __pfn_to_pfn_t() 37 static inline pfn_t pfn_to_pfn_t(unsigned long pfn) in pfn_to_pfn_t() 47 static inline bool pfn_t_has_page(pfn_t pfn) in pfn_t_has_page() 52 static inline unsigned long pfn_t_to_pfn(pfn_t pfn) in pfn_t_to_pfn() 57 static inline struct page *pfn_t_to_page(pfn_t pfn) in pfn_t_to_page() 64 static inline phys_addr_t pfn_t_to_phys(pfn_t pfn) in pfn_t_to_phys() 74 static inline int pfn_t_valid(pfn_t pfn) in pfn_t_valid() 80 static inline pte_t pfn_t_pte(pfn_t pfn, pgprot_t pgprot) in pfn_t_pte() 87 static inline pmd_t pfn_t_pmd(pfn_t pfn, pgprot_t pgprot) in pfn_t_pmd() 93 static inline pud_t pfn_t_pud(pfn_t pfn, pgprot_t pgprot) in pfn_t_pud() [all …]
|
/Linux-v5.10/mm/ |
D | debug_vm_pgtable.c | 61 static void __init pte_basic_tests(unsigned long pfn, pgprot_t prot) in pte_basic_tests() 77 unsigned long pfn, unsigned long vaddr, in pte_advanced_tests() 119 static void __init pte_savedwrite_tests(unsigned long pfn, pgprot_t prot) in pte_savedwrite_tests() 132 static void __init pmd_basic_tests(unsigned long pfn, pgprot_t prot) in pmd_basic_tests() 156 unsigned long pfn, unsigned long vaddr, in pmd_advanced_tests() 204 static void __init pmd_leaf_tests(unsigned long pfn, pgprot_t prot) in pmd_leaf_tests() 217 static void __init pmd_huge_tests(pmd_t *pmdp, unsigned long pfn, pgprot_t prot) in pmd_huge_tests() 236 static void __init pmd_huge_tests(pmd_t *pmdp, unsigned long pfn, pgprot_t prot) { } in pmd_huge_tests() 239 static void __init pmd_savedwrite_tests(unsigned long pfn, pgprot_t prot) in pmd_savedwrite_tests() 252 static void __init pud_basic_tests(unsigned long pfn, pgprot_t prot) in pud_basic_tests() [all …]
|
D | memory-failure.c | 236 static int kill_proc(struct to_kill *tk, unsigned long pfn, int flags) in kill_proc() 385 unsigned long pfn, int flags) in kill_procs() 620 static int truncate_error_page(struct page *p, unsigned long pfn, in truncate_error_page() 658 static int me_kernel(struct page *p, unsigned long pfn) in me_kernel() 666 static int me_unknown(struct page *p, unsigned long pfn) in me_unknown() 675 static int me_pagecache_clean(struct page *p, unsigned long pfn) in me_pagecache_clean() 716 static int me_pagecache_dirty(struct page *p, unsigned long pfn) in me_pagecache_dirty() 782 static int me_swapcache_dirty(struct page *p, unsigned long pfn) in me_swapcache_dirty() 794 static int me_swapcache_clean(struct page *p, unsigned long pfn) in me_swapcache_clean() 810 static int me_huge_page(struct page *p, unsigned long pfn) in me_huge_page() [all …]
|
D | sparse.c | 211 static void subsection_mask_set(unsigned long *map, unsigned long pfn, in subsection_mask_set() 220 void __init subsection_map_init(unsigned long pfn, unsigned long nr_pages) in subsection_map_init() 246 void __init subsection_map_init(unsigned long pfn, unsigned long nr_pages) in subsection_map_init() 254 unsigned long pfn; in memory_present() local 445 struct page __init *__populate_section_memmap(unsigned long pfn, in __populate_section_memmap() 539 unsigned long pfn = section_nr_to_pfn(pnum); in sparse_init_nid() local 611 unsigned long pfn; in online_mem_sections() local 630 unsigned long pfn; in offline_mem_sections() local 650 static struct page * __meminit populate_section_memmap(unsigned long pfn, in populate_section_memmap() 656 static void depopulate_section_memmap(unsigned long pfn, unsigned long nr_pages, in depopulate_section_memmap() [all …]
|
D | page_isolation.c | 74 unsigned long pfn, buddy_pfn; in unset_migratetype_isolate() local 128 __first_valid_page(unsigned long pfn, unsigned long nr_pages) in __first_valid_page() 186 unsigned long pfn; in start_isolate_page_range() local 224 unsigned long pfn; in undo_isolate_page_range() local 247 __test_page_isolated_in_pageblock(unsigned long pfn, unsigned long end_pfn, in __test_page_isolated_in_pageblock() 287 unsigned long pfn, flags; in test_pages_isolated() local
|
D | page_ext.c | 117 unsigned long pfn = page_to_pfn(page); in lookup_page_ext() local 192 unsigned long pfn = page_to_pfn(page); in lookup_page_ext() local 221 static int __meminit init_section_page_ext(unsigned long pfn, int nid) in init_section_page_ext() 273 static void __free_page_ext(unsigned long pfn) in __free_page_ext() 290 unsigned long start, end, pfn; in online_page_ext() local 321 unsigned long start, end, pfn; in offline_page_ext() local 365 unsigned long pfn; in page_ext_init() local
|
D | memory_hotplug.c | 233 unsigned long i, pfn, end_pfn, nr_pages; in register_page_bootmem_info_node() local 260 static int check_pfn_span(unsigned long pfn, unsigned long nr_pages, in check_pfn_span() 287 static int check_hotplug_memory_addressable(unsigned long pfn, in check_hotplug_memory_addressable() 309 int __ref __add_pages(int nid, unsigned long pfn, unsigned long nr_pages, in __add_pages() 379 unsigned long pfn; in find_biggest_section_pfn() local 402 unsigned long pfn; in shrink_zone_span() local 476 unsigned long pfn, cur_nr_pages, flags; in remove_pfn_range_from_zone() local 509 static void __remove_section(unsigned long pfn, unsigned long nr_pages, in __remove_section() 532 void __remove_pages(unsigned long pfn, unsigned long nr_pages, in __remove_pages() 613 unsigned long pfn; in online_pages_range() local [all …]
|
D | memremap.c | 76 unsigned long pfn = PHYS_PFN(range->start); in pfn_first() local 90 static unsigned long pfn_next(unsigned long pfn) in pfn_next() 97 #define for_each_device_pfn(pfn, map, i) \ argument 155 unsigned long pfn; in memunmap_pages() local 454 struct dev_pagemap *get_dev_pagemap(unsigned long pfn, in get_dev_pagemap()
|
D | compaction.c | 48 #define block_start_pfn(pfn, order) round_down(pfn, 1UL << (order)) argument 49 #define block_end_pfn(pfn, order) ALIGN((pfn) + 1, 1UL << (order)) argument 50 #define pageblock_start_pfn(pfn) block_start_pfn(pfn, pageblock_order) argument 51 #define pageblock_end_pfn(pfn) block_end_pfn(pfn, pageblock_order) argument 77 unsigned long pfn = page_to_pfn(page); in release_freepages() local 258 __reset_isolation_pfn(struct zone *zone, unsigned long pfn, bool check_source, in __reset_isolation_pfn() 406 unsigned long pfn) in test_and_set_skip() 424 static void update_cached_migrate(struct compact_control *cc, unsigned long pfn) in update_cached_migrate() 446 struct page *page, unsigned long pfn) in update_pageblock_skip() 475 struct page *page, unsigned long pfn) in update_pageblock_skip() [all …]
|
/Linux-v5.10/include/asm-generic/ |
D | memory_model.h | 18 #define arch_pfn_to_nid(pfn) pfn_to_nid(pfn) argument 22 #define arch_local_page_offset(pfn, nid) \ argument 33 #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) argument 38 #define __pfn_to_page(pfn) \ argument 54 #define __pfn_to_page(pfn) (vmemmap + (pfn)) argument 68 #define __pfn_to_page(pfn) \ argument 79 #define __pfn_to_phys(pfn) PFN_PHYS(pfn) argument
|
/Linux-v5.10/arch/x86/xen/ |
D | p2m.c | 126 static inline unsigned p2m_top_index(unsigned long pfn) in p2m_top_index() 132 static inline unsigned p2m_mid_index(unsigned long pfn) in p2m_mid_index() 137 static inline unsigned p2m_index(unsigned long pfn) in p2m_index() 174 static void p2m_init_identity(unsigned long *p2m, unsigned long pfn) in p2m_init_identity() 219 unsigned long pfn, mfn; in xen_build_mfn_list_list() local 297 unsigned long pfn; in xen_build_dynamic_phys_to_machine() local 313 static int xen_p2m_elem_type(unsigned long pfn) in xen_p2m_elem_type() 334 unsigned long pfn; in xen_rebuild_p2m_list() local 435 unsigned long get_phys_to_machine(unsigned long pfn) in get_phys_to_machine() 531 int xen_alloc_p2m_entry(unsigned long pfn) in xen_alloc_p2m_entry() [all …]
|
D | mmu_pv.c | 316 unsigned long pfn = mfn_to_pfn(mfn); in pte_mfn_to_pfn() local 331 unsigned long pfn = (val & PTE_PFN_MASK) >> PAGE_SHIFT; in pte_pfn_to_mfn() local 663 static void xen_do_pin(unsigned level, unsigned long pfn) in xen_do_pin() 680 unsigned long pfn = page_to_pfn(page); in xen_pin_page() local 803 unsigned long pfn = page_to_pfn(page); in xen_unpin_page() local 987 static void __init pin_pagetable_pfn(unsigned cmd, unsigned long pfn) in pin_pagetable_pfn() 1430 unsigned long pfn; in xen_make_pte_init() local 1456 static void __init xen_alloc_pte_init(struct mm_struct *mm, unsigned long pfn) in xen_alloc_pte_init() 1466 static void __init xen_alloc_pmd_init(struct mm_struct *mm, unsigned long pfn) in xen_alloc_pmd_init() 1476 static void __init xen_release_pte_init(unsigned long pfn) in xen_release_pte_init() [all …]
|
/Linux-v5.10/arch/x86/include/asm/ |
D | pgalloc.h | 20 static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pte() 21 static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pmd() 22 static inline void paravirt_alloc_pmd_clone(unsigned long pfn, unsigned long clonepfn, in paravirt_alloc_pmd_clone() 24 static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pud() 25 static inline void paravirt_alloc_p4d(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_p4d() 26 static inline void paravirt_release_pte(unsigned long pfn) {} in paravirt_release_pte() 27 static inline void paravirt_release_pmd(unsigned long pfn) {} in paravirt_release_pmd() 28 static inline void paravirt_release_pud(unsigned long pfn) {} in paravirt_release_pud() 29 static inline void paravirt_release_p4d(unsigned long pfn) {} in paravirt_release_p4d() 81 unsigned long pfn = page_to_pfn(pte); in pmd_populate() local
|
/Linux-v5.10/arch/x86/include/asm/xen/ |
D | page.h | 141 static inline unsigned long __pfn_to_mfn(unsigned long pfn) in __pfn_to_mfn() 158 static inline unsigned long __pfn_to_mfn(unsigned long pfn) in __pfn_to_mfn() 164 static inline unsigned long pfn_to_mfn(unsigned long pfn) in pfn_to_mfn() 184 static inline int phys_to_machine_mapping_valid(unsigned long pfn) in phys_to_machine_mapping_valid() 194 unsigned long pfn; in mfn_to_pfn_no_overrides() local 214 unsigned long pfn; in mfn_to_pfn() local 251 static inline unsigned long pfn_to_gfn(unsigned long pfn) in pfn_to_gfn() 268 #define pfn_to_bfn(pfn) pfn_to_gfn(pfn) argument 293 unsigned long pfn; in bfn_to_local_pfn() local
|
/Linux-v5.10/arch/arm/mm/ |
D | flush.c | 38 static void flush_pfn_alias(unsigned long pfn, unsigned long vaddr) in flush_pfn_alias() 52 static void flush_icache_alias(unsigned long pfn, unsigned long vaddr, unsigned long len) in flush_icache_alias() 98 void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn) in flush_cache_page() 115 #define flush_pfn_alias(pfn,vaddr) do { } while (0) argument 116 #define flush_icache_alias(pfn,vaddr,len) do { } while (0) argument 271 unsigned long pfn; in __sync_icache_dcache() local 392 unsigned long pfn; in __flush_anon_page() local
|
D | fault-armv.c | 37 unsigned long pfn, pte_t *ptep) in do_adjust_pte() 89 unsigned long pfn) in adjust_pte() 134 unsigned long addr, pte_t *ptep, unsigned long pfn) in make_coherent() 184 unsigned long pfn = pte_pfn(*ptep); in update_mmu_cache() local
|
/Linux-v5.10/include/xen/arm/ |
D | page.h | 15 #define phys_to_machine_mapping_valid(pfn) (1) argument 47 static inline unsigned long pfn_to_gfn(unsigned long pfn) in pfn_to_gfn() 58 static inline unsigned long pfn_to_bfn(unsigned long pfn) in pfn_to_bfn() 107 static inline bool set_phys_to_machine(unsigned long pfn, unsigned long mfn) in set_phys_to_machine()
|
/Linux-v5.10/arch/x86/kernel/ |
D | crash_dump_64.c | 14 static ssize_t __copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, in __copy_oldmem_page() 57 ssize_t copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, in copy_oldmem_page() 68 ssize_t copy_oldmem_page_encrypted(unsigned long pfn, char *buf, size_t csize, in copy_oldmem_page_encrypted()
|
/Linux-v5.10/arch/arm/xen/ |
D | p2m.c | 22 unsigned long pfn; member 63 unsigned long __pfn_to_mfn(unsigned long pfn) in __pfn_to_mfn() 121 bool __set_phys_to_machine_multi(unsigned long pfn, in __set_phys_to_machine_multi() 169 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine()
|
/Linux-v5.10/arch/riscv/include/asm/ |
D | pgalloc.h | 19 unsigned long pfn = virt_to_pfn(pte); in pmd_populate_kernel() local 27 unsigned long pfn = virt_to_pfn(page_address(pte)); in pmd_populate() local 35 unsigned long pfn = virt_to_pfn(pmd); in pud_populate() local
|
/Linux-v5.10/arch/arm64/mm/ |
D | mmap.c | 46 int valid_mmap_phys_addr_range(unsigned long pfn, size_t size) in valid_mmap_phys_addr_range() 61 int devmem_is_allowed(unsigned long pfn) in devmem_is_allowed()
|
/Linux-v5.10/arch/arc/include/asm/ |
D | mmzone.h | 14 static inline int pfn_to_nid(unsigned long pfn) in pfn_to_nid() 32 static inline int pfn_valid(unsigned long pfn) in pfn_valid()
|
/Linux-v5.10/kernel/power/ |
D | snapshot.c | 706 static int memory_bm_find_bit(struct memory_bitmap *bm, unsigned long pfn, in memory_bm_find_bit() 772 static void memory_bm_set_bit(struct memory_bitmap *bm, unsigned long pfn) in memory_bm_set_bit() 783 static int mem_bm_set_bit_check(struct memory_bitmap *bm, unsigned long pfn) in mem_bm_set_bit_check() 796 static void memory_bm_clear_bit(struct memory_bitmap *bm, unsigned long pfn) in memory_bm_clear_bit() 815 static int memory_bm_test_bit(struct memory_bitmap *bm, unsigned long pfn) in memory_bm_test_bit() 826 static bool memory_bm_pfn_present(struct memory_bitmap *bm, unsigned long pfn) in memory_bm_pfn_present() 883 unsigned long bits, pfn, pages; in memory_bm_next_pfn() local 1050 unsigned long pfn; in mark_nosave_pages() local 1150 unsigned long pfn; in clear_free_pages() local 1218 static struct page *saveable_highmem_page(struct zone *zone, unsigned long pfn) in saveable_highmem_page() [all …]
|
/Linux-v5.10/arch/x86/mm/pat/ |
D | memtype.c | 497 u64 pfn; in reserve_ram_pages_type() local 539 u64 pfn; in free_ram_pages_type() local 743 bool pat_pfn_immune_to_uc_mtrr(unsigned long pfn) in pat_pfn_immune_to_uc_mtrr() 817 pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, in phys_mem_access_prot() 828 static inline int range_is_allowed(unsigned long pfn, unsigned long size) in range_is_allowed() 834 static inline int range_is_allowed(unsigned long pfn, unsigned long size) in range_is_allowed() 853 int phys_mem_access_prot_allowed(struct file *file, unsigned long pfn, in phys_mem_access_prot_allowed() 1022 unsigned long pfn, unsigned long addr, unsigned long size) in track_pfn_remap() 1061 void track_pfn_insert(struct vm_area_struct *vma, pgprot_t *prot, pfn_t pfn) in track_pfn_insert() 1079 void untrack_pfn(struct vm_area_struct *vma, unsigned long pfn, in untrack_pfn()
|
/Linux-v5.10/fs/ |
D | dax.c | 88 static void *dax_make_entry(pfn_t pfn, unsigned long flags) in dax_make_entry() 322 #define for_each_mapped_pfn(entry, pfn) \ argument 334 unsigned long size = dax_entry_size(entry), pfn, index; in dax_associate_entry() local 353 unsigned long pfn; in dax_disassociate_entry() local 370 unsigned long pfn; in dax_busy_page() local 734 void *entry, pfn_t pfn, unsigned long flags, bool dirty) in dax_insert_entry() 793 unsigned long pfn) in dax_entry_mkclean() 868 unsigned long pfn, index, count; in dax_writeback_one() local 1046 pfn_t pfn = pfn_to_pfn_t(my_zero_pfn(vaddr)); in dax_load_hole() local 1264 pfn_t pfn; in dax_iomap_pte_fault() local [all …]
|