Home
last modified time | relevance | path

Searched defs:pfn (Results 1 – 25 of 440) sorted by relevance

12345678910>>...18

/linux-6.6.21/include/linux/
Dpfn_t.h29 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 …]
Dpageblock-flags.h56 #define pageblock_align(pfn) ALIGN((pfn), pageblock_nr_pages) argument
57 #define pageblock_aligned(pfn) IS_ALIGNED((pfn), pageblock_nr_pages) argument
58 #define pageblock_start_pfn(pfn) ALIGN_DOWN((pfn), pageblock_nr_pages) argument
59 #define pageblock_end_pfn(pfn) ALIGN((pfn) + 1, pageblock_nr_pages) argument
/linux-6.6.21/arch/x86/xen/
Dp2m.c126 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()
169 static void p2m_init_identity(unsigned long *p2m, unsigned long pfn) in p2m_init_identity()
214 unsigned long pfn, mfn; in xen_build_mfn_list_list() local
292 unsigned long pfn; in xen_build_dynamic_phys_to_machine() local
308 static int xen_p2m_elem_type(unsigned long pfn) in xen_p2m_elem_type()
329 unsigned long pfn; in xen_rebuild_p2m_list() local
430 unsigned long get_phys_to_machine(unsigned long pfn) in get_phys_to_machine()
526 int xen_alloc_p2m_entry(unsigned long pfn) in xen_alloc_p2m_entry()
628 unsigned long pfn; in set_phys_range_identity() local
[all …]
Dmmu_pv.c336 unsigned long pfn = mfn_to_pfn(mfn); in pte_mfn_to_pfn() local
351 unsigned long pfn = (val & PTE_PFN_MASK) >> PAGE_SHIFT; in pte_pfn_to_mfn() local
683 static void xen_do_pin(unsigned level, unsigned long pfn) in xen_do_pin()
700 unsigned long pfn = page_to_pfn(page); in xen_pin_page() local
825 unsigned long pfn = page_to_pfn(page); in xen_unpin_page() local
1002 static void __init pin_pagetable_pfn(unsigned cmd, unsigned long pfn) in pin_pagetable_pfn()
1460 unsigned long pfn; in xen_make_pte_init() local
1481 static void __init xen_alloc_pte_init(struct mm_struct *mm, unsigned long pfn) in xen_alloc_pte_init()
1491 static void __init xen_alloc_pmd_init(struct mm_struct *mm, unsigned long pfn) in xen_alloc_pmd_init()
1501 static void __init xen_release_pte_init(unsigned long pfn) in xen_release_pte_init()
[all …]
/linux-6.6.21/arch/x86/include/asm/
Dpgalloc.h20 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-6.6.21/include/asm-generic/
Dmemory_model.h18 #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) argument
23 static inline int pfn_valid(unsigned long pfn) in pfn_valid()
37 #define __pfn_to_page(pfn) (vmemmap + (pfn)) argument
51 #define __pfn_to_page(pfn) \ argument
62 #define __pfn_to_phys(pfn) PFN_PHYS(pfn) argument
/linux-6.6.21/mm/
Dsparse.c184 static void subsection_mask_set(unsigned long *map, unsigned long pfn, in subsection_mask_set()
193 void __init subsection_map_init(unsigned long pfn, unsigned long nr_pages) in subsection_map_init()
219 void __init subsection_map_init(unsigned long pfn, unsigned long nr_pages) in subsection_map_init()
227 unsigned long pfn; in memory_present() local
428 struct page __init *__populate_section_memmap(unsigned long pfn, in __populate_section_memmap()
521 unsigned long pfn = section_nr_to_pfn(pnum); in sparse_init_nid() local
594 unsigned long pfn; in online_mem_sections() local
612 unsigned long pfn; in offline_mem_sections() local
631 static struct page * __meminit populate_section_memmap(unsigned long pfn, in populate_section_memmap()
638 static void depopulate_section_memmap(unsigned long pfn, unsigned long nr_pages, in depopulate_section_memmap()
[all …]
Dmemory-failure.c77 void num_poisoned_pages_inc(unsigned long pfn) in num_poisoned_pages_inc()
83 void num_poisoned_pages_sub(unsigned long pfn, long i) in num_poisoned_pages_sub()
328 static int kill_proc(struct to_kill *tk, unsigned long pfn, int flags) in kill_proc()
511 unsigned long pfn, int flags) in kill_procs()
721 unsigned long pfn; member
734 unsigned long pfn = 0; in check_hwpoisoned_entry() local
757 unsigned long pfn; in check_hwpoisoned_pmd_entry() local
845 static int kill_accessing_process(struct task_struct *p, unsigned long pfn, in kill_accessing_process()
929 static int truncate_error_page(struct page *p, unsigned long pfn, in truncate_error_page()
1282 static void update_per_node_mf_stats(unsigned long pfn, in update_per_node_mf_stats()
[all …]
Dpage_ext.c157 unsigned long pfn = page_to_pfn(page); in lookup_page_ext() local
236 unsigned long pfn = page_to_pfn(page); in lookup_page_ext() local
268 static int __meminit init_section_page_ext(unsigned long pfn, int nid) in init_section_page_ext()
320 static void __free_page_ext(unsigned long pfn) in __free_page_ext()
342 static void __invalidate_page_ext(unsigned long pfn) in __invalidate_page_ext()
358 unsigned long start, end, pfn; in online_page_ext() local
390 unsigned long start, end, pfn; in offline_page_ext() local
444 unsigned long pfn; in page_ext_init() local
Dpage_isolation.c38 unsigned long pfn; in has_unmovable_pages() local
267 __first_valid_page(unsigned long pfn, unsigned long nr_pages) in __first_valid_page()
311 unsigned long pfn; in isolate_single_pageblock() local
531 unsigned long pfn; in start_isolate_page_range() local
585 unsigned long pfn; in undo_isolate_page_range() local
607 __test_page_isolated_in_pageblock(unsigned long pfn, unsigned long end_pfn, in __test_page_isolated_in_pageblock()
657 unsigned long pfn, flags; in test_pages_isolated() local
Dmemory_hotplug.c299 static int check_pfn_span(unsigned long pfn, unsigned long nr_pages) in check_pfn_span()
326 struct page *pfn_to_online_page(unsigned long pfn) in pfn_to_online_page()
369 int __ref __add_pages(int nid, unsigned long pfn, unsigned long nr_pages, in __add_pages()
439 unsigned long pfn; in find_biggest_section_pfn() local
462 unsigned long pfn; in shrink_zone_span() local
533 unsigned long pfn, cur_nr_pages; in remove_pfn_range_from_zone() local
573 void __remove_pages(unsigned long pfn, unsigned long nr_pages, in __remove_pages()
647 unsigned long pfn; in online_pages_range() local
728 static void section_taint_zone_device(unsigned long pfn) in section_taint_zone_device()
735 static inline void section_taint_zone_device(unsigned long pfn) in section_taint_zone_device()
[all …]
Dmm_init.c564 static void __meminit __init_single_page(struct page *page, unsigned long pfn, in __init_single_page()
599 static int __meminit __early_pfn_to_nid(unsigned long pfn, in __early_pfn_to_nid()
618 int __meminit early_pfn_to_nid(unsigned long pfn) in early_pfn_to_nid()
659 static inline bool __meminit early_page_initialised(unsigned long pfn, int nid) in early_page_initialised()
672 defer_init(int nid, unsigned long pfn, unsigned long end_pfn) in defer_init()
706 static void __meminit init_reserved_page(unsigned long pfn, int nid) in init_reserved_page()
727 static inline bool early_page_initialised(unsigned long pfn, int nid) in early_page_initialised()
732 static inline bool defer_init(int nid, unsigned long pfn, unsigned long end_pfn) in defer_init()
737 static inline void init_reserved_page(unsigned long pfn, int nid) in init_reserved_page()
775 overlap_memmap_init(unsigned long zone, unsigned long *pfn) in overlap_memmap_init()
[all …]
Dcma.c83 static void cma_clear_bitmap(struct cma *cma, unsigned long pfn, in cma_clear_bitmap()
99 unsigned long base_pfn = cma->base_pfn, pfn; in cma_activate_area() local
433 unsigned long pfn = -1; in cma_alloc() local
534 unsigned long pfn; in cma_pages_valid() local
563 unsigned long pfn; in cma_release() local
/linux-6.6.21/arch/x86/include/asm/xen/
Dpage.h133 static inline unsigned long __pfn_to_mfn(unsigned long pfn) in __pfn_to_mfn()
150 static inline unsigned long __pfn_to_mfn(unsigned long pfn) in __pfn_to_mfn()
156 static inline unsigned long pfn_to_mfn(unsigned long pfn) in pfn_to_mfn()
176 static inline int phys_to_machine_mapping_valid(unsigned long pfn) in phys_to_machine_mapping_valid()
186 unsigned long pfn; in mfn_to_pfn_no_overrides() local
206 unsigned long pfn; in mfn_to_pfn() local
243 static inline unsigned long pfn_to_gfn(unsigned long pfn) in pfn_to_gfn()
260 #define pfn_to_bfn(pfn) pfn_to_gfn(pfn) argument
285 unsigned long pfn; in bfn_to_local_pfn() local
/linux-6.6.21/arch/riscv/include/asm/
Dpgalloc.h21 unsigned long pfn = virt_to_pfn(pte); in pmd_populate_kernel() local
29 unsigned long pfn = virt_to_pfn(page_address(pte)); in pmd_populate() local
37 unsigned long pfn = virt_to_pfn(pmd); in pud_populate() local
45 unsigned long pfn = virt_to_pfn(pud); in p4d_populate() local
55 unsigned long pfn = virt_to_pfn(pud); in p4d_populate_safe() local
65 unsigned long pfn = virt_to_pfn(p4d); in pgd_populate() local
75 unsigned long pfn = virt_to_pfn(p4d); in pgd_populate_safe() local
/linux-6.6.21/arch/arm/mm/
Dflush.c38 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_pages(struct vm_area_struct *vma, unsigned long user_addr, unsigned long pfn, unsi… in flush_cache_pages()
115 #define flush_pfn_alias(pfn,vaddr) do { } while (0) argument
116 #define flush_icache_alias(pfn,vaddr,len) do { } while (0) argument
255 unsigned long start, offset, pfn; in __flush_dcache_aliases() local
287 unsigned long pfn; in __sync_icache_dcache() local
381 unsigned long pfn; in __flush_anon_page() local
Dioremap.c188 remap_area_sections(unsigned long virt, unsigned long pfn, in remap_area_sections()
215 remap_area_supersections(unsigned long virt, unsigned long pfn, in remap_area_supersections()
249 static void __iomem * __arm_ioremap_pfn_caller(unsigned long pfn, in __arm_ioremap_pfn_caller()
332 unsigned long pfn = __phys_to_pfn(phys_addr); in __arm_ioremap_caller() local
355 __arm_ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size, in __arm_ioremap_pfn()
493 unsigned long pfn = PHYS_PFN(offset); in arch_memremap_can_ram_remap() local
Dfault-armv.c37 unsigned long pfn, pte_t *ptep) in do_adjust_pte()
89 unsigned long pfn) in adjust_pte()
136 unsigned long addr, pte_t *ptep, unsigned long pfn) in make_coherent()
186 unsigned long pfn = pte_pfn(*ptep); in update_mmu_cache_range() local
/linux-6.6.21/include/xen/arm/
Dpage.h15 #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-6.6.21/scripts/gdb/linux/
Dmm.py133 def pfn_to_section_nr(self, pfn): argument
139 def __pfn_to_section(self, pfn): argument
142 def pfn_to_section(self, pfn): argument
145 def subsection_map_index(self, pfn): argument
148 def pfn_section_valid(self, ms, pfn): argument
165 def pfn_valid(self, pfn): argument
216 def PFN_PHYS(self, pfn): argument
228 def __pfn_to_phys(self, pfn): argument
246 def pfn_to_kaddr(self, pfn): argument
261 def pfn_to_page(self, pfn): argument
/linux-6.6.21/arch/x86/kernel/
Dcrash_dump_64.c15 static ssize_t __copy_oldmem_page(struct iov_iter *iter, unsigned long pfn, in __copy_oldmem_page()
38 ssize_t copy_oldmem_page(struct iov_iter *iter, unsigned long pfn, size_t csize, in copy_oldmem_page()
49 ssize_t copy_oldmem_page_encrypted(struct iov_iter *iter, unsigned long pfn, in copy_oldmem_page_encrypted()
/linux-6.6.21/arch/arm/xen/
Dp2m.c23 unsigned long pfn; member
64 unsigned long __pfn_to_mfn(unsigned long pfn) in __pfn_to_mfn()
150 bool __set_phys_to_machine_multi(unsigned long pfn, in __set_phys_to_machine_multi()
199 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine()
/linux-6.6.21/arch/x86/mm/pat/
Dmemtype.c458 u64 pfn; in reserve_ram_pages_type() local
500 u64 pfn; in free_ram_pages_type() local
709 bool pat_pfn_immune_to_uc_mtrr(unsigned long pfn) in pat_pfn_immune_to_uc_mtrr()
785 pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, in phys_mem_access_prot()
796 static inline int range_is_allowed(unsigned long pfn, unsigned long size) in range_is_allowed()
802 static inline int range_is_allowed(unsigned long pfn, unsigned long size) in range_is_allowed()
821 int phys_mem_access_prot_allowed(struct file *file, unsigned long pfn, in phys_mem_access_prot_allowed()
990 unsigned long pfn, unsigned long addr, unsigned long size) in track_pfn_remap()
1029 void track_pfn_insert(struct vm_area_struct *vma, pgprot_t *prot, pfn_t pfn) in track_pfn_insert()
1047 void untrack_pfn(struct vm_area_struct *vma, unsigned long pfn, in untrack_pfn()
/linux-6.6.21/kernel/power/
Dsnapshot.c746 static int memory_bm_find_bit(struct memory_bitmap *bm, unsigned long pfn, in memory_bm_find_bit()
813 static void memory_bm_set_bit(struct memory_bitmap *bm, unsigned long pfn) in memory_bm_set_bit()
824 static int mem_bm_set_bit_check(struct memory_bitmap *bm, unsigned long pfn) in mem_bm_set_bit_check()
837 static void memory_bm_clear_bit(struct memory_bitmap *bm, unsigned long pfn) in memory_bm_clear_bit()
861 static int memory_bm_test_bit(struct memory_bitmap *bm, unsigned long pfn) in memory_bm_test_bit()
872 static bool memory_bm_pfn_present(struct memory_bitmap *bm, unsigned long pfn) in memory_bm_pfn_present()
929 unsigned long bits, pfn, pages; in memory_bm_next_pfn() local
1091 unsigned long pfn; in mark_nosave_pages() local
1199 unsigned long pfn; in clear_or_poison_free_pages() local
1248 unsigned long pfn, max_zone_pfn, page_count = WD_PAGE_COUNT; in mark_free_pages() local
[all …]
/linux-6.6.21/drivers/ras/
Dcec.c186 static int __find_elem(struct ce_array *ca, u64 pfn, unsigned int *to) in __find_elem()
223 static int find_elem(struct ce_array *ca, u64 pfn, unsigned int *to) in find_elem()
271 u64 pfn; in del_lru_elem() local
321 static int cec_add_elem(u64 pfn) in cec_add_elem()
362 u64 pfn = ca->array[to] >> PAGE_SHIFT; in cec_add_elem() local
483 struct dentry *d, *pfn, *decay, *count, *array; in create_debugfs_nodes() local

12345678910>>...18