/linux-master/arch/arm/kernel/ |
H A D | hibernate.c | 26 int pfn_is_nosave(unsigned long pfn) argument 31 return (pfn >= nosave_begin_pfn) && (pfn <= nosave_end_pfn);
|
/linux-master/mm/ |
H A D | page_vma_mapped.c | 76 * check_pte - check if [pvmw->pfn, @pvmw->pfn + @pvmw->nr_pages) is 78 * @pvmw: page_vma_mapped_walk struct, includes a pair pte and pfn range 81 * page_vma_mapped_walk() found a place where pfn range is *potentially* 88 * entry that points to [pvmw->pfn, @pvmw->pfn + @pvmw->nr_pages) 91 * [pvmw->pfn, @pvmw->pfn + @pvmw->nr_pages) 98 unsigned long pfn; local 111 pfn 133 check_pmd(unsigned long pfn, struct page_vma_mapped_walk *pvmw) argument [all...] |
H A D | page_owner.c | 424 unsigned long pfn, block_end_pfn; local 431 pfn = zone->zone_start_pfn; 438 for (; pfn < end_pfn; ) { 439 page = pfn_to_online_page(pfn); 441 pfn = ALIGN(pfn + 1, MAX_ORDER_NR_PAGES); 445 block_end_pfn = pageblock_end_pfn(pfn); 450 for (; pfn < block_end_pfn; pfn++) { 452 page = pfn_to_page(pfn); 541 print_page_owner(char __user *buf, size_t count, unsigned long pfn, struct page *page, struct page_owner *page_owner, depot_stack_handle_t handle) argument 655 unsigned long pfn; local 767 unsigned long pfn = zone->zone_start_pfn; local [all...] |
/linux-master/drivers/gpu/drm/imagination/ |
H A D | pvr_vm_mips.c | 157 s32 pfn; local 181 for (pfn = start_pfn; pfn <= end_pfn; pfn++) { 186 (pfn - start_pfn) << 196 WRITE_ONCE(mips_data->pt[pfn], pte); 204 while (--pfn >= start_pfn) 205 WRITE_ONCE(mips_data->pt[pfn], 0); 232 for (u32 pfn = start_pfn; pfn < end_pf [all...] |
/linux-master/arch/nios2/include/asm/ |
H A D | page.h | 18 #include <linux/pfn.h> 87 # define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
|
/linux-master/arch/x86/include/asm/ |
H A D | pgalloc.h | 20 static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned long pfn) {} argument 21 static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned long pfn) {} argument 22 static inline void paravirt_alloc_pmd_clone(unsigned long pfn, unsigned long clonepfn, argument 24 static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned long pfn) {} argument 25 static inline void paravirt_alloc_p4d(struct mm_struct *mm, unsigned long pfn) {} argument 26 static inline void paravirt_release_pte(unsigned long pfn) {} argument 27 static inline void paravirt_release_pmd(unsigned long pfn) {} argument 28 static inline void paravirt_release_pud(unsigned long pfn) {} argument 29 static inline void paravirt_release_p4d(unsigned long pfn) {} argument 81 unsigned long pfn local [all...] |
H A D | sev.h | 265 int snp_lookup_rmpentry(u64 pfn, bool *assigned, int *level); 267 int psmash(u64 pfn); 268 int rmp_make_private(u64 pfn, u64 gpa, enum pg_level level, u32 asid, bool immutable); 269 int rmp_make_shared(u64 pfn, enum pg_level level); 270 void snp_leak_pages(u64 pfn, unsigned int npages); 274 static inline int snp_lookup_rmpentry(u64 pfn, bool *assigned, int *level) { return -ENODEV; } argument 276 static inline int psmash(u64 pfn) { return -ENODEV; } argument 277 static inline int rmp_make_private(u64 pfn, u64 gpa, enum pg_level level, u32 asid, argument 282 static inline int rmp_make_shared(u64 pfn, enum pg_level level) { return -ENODEV; } argument 283 static inline void snp_leak_pages(u64 pfn, unsigne argument [all...] |
/linux-master/arch/arc/mm/ |
H A D | init.c | 196 int pfn_valid(unsigned long pfn) argument 198 return (pfn >= min_high_pfn && pfn <= max_high_pfn) || 199 (pfn >= min_low_pfn && pfn <= max_low_pfn);
|
/linux-master/drivers/ras/ |
H A D | cec.c | 182 * @to: index of the smallest element which is >= then @pfn. 184 * Return the index of the pfn if found, otherwise negative value. 186 static int __find_elem(struct ce_array *ca, u64 pfn, unsigned int *to) argument 196 if (this_pfn < pfn) 198 else if (this_pfn > pfn) 200 else if (this_pfn == pfn) { 209 * When the loop terminates without finding @pfn, min has the index of 210 * the element slot where the new @pfn should be inserted. The loop 213 * which the new @pfn belongs to. 223 static int find_elem(struct ce_array *ca, u64 pfn, unsigne argument 271 u64 pfn; local 321 cec_add_elem(u64 pfn) argument 362 u64 pfn = ca->array[to] >> PAGE_SHIFT; local 483 struct dentry *d, *pfn, *decay, *count, *array, *dfs; local [all...] |
/linux-master/include/linux/ |
H A D | memremap.h | 101 int (*memory_failure)(struct dev_pagemap *pgmap, unsigned long pfn, 196 struct dev_pagemap *get_dev_pagemap(unsigned long pfn, 198 bool pgmap_pfn_valid(struct dev_pagemap *pgmap, unsigned long pfn); 219 static inline struct dev_pagemap *get_dev_pagemap(unsigned long pfn, argument 225 static inline bool pgmap_pfn_valid(struct dev_pagemap *pgmap, unsigned long pfn) argument
|
H A D | mmzone.h | 36 #define IS_MAX_ORDER_ALIGNED(pfn) IS_ALIGNED(pfn, MAX_ORDER_NR_PAGES) 79 # define is_migrate_cma_folio(folio, pfn) (MIGRATE_CMA == \ 80 get_pfnblock_flags_mask(&folio->page, pfn, MIGRATETYPE_MASK)) 84 # define is_migrate_cma_folio(folio, pfn) false 965 /* pfn where compaction free scanner should start */ 967 /* pfn where compaction migration scanner should start */ 1036 static inline bool zone_spans_pfn(const struct zone *zone, unsigned long pfn) argument 1038 return zone->zone_start_pfn <= pfn && pfn < zone_end_pf 1758 pfn_to_section_nr(unsigned long pfn) argument 1964 __pfn_to_section(unsigned long pfn) argument 1971 subsection_map_index(unsigned long pfn) argument 1977 pfn_section_valid(struct mem_section *ms, unsigned long pfn) argument 1984 pfn_section_valid(struct mem_section *ms, unsigned long pfn) argument 2002 pfn_valid(unsigned long pfn) argument 2035 pfn_in_present_section(unsigned long pfn) argument [all...] |
/linux-master/arch/s390/include/asm/ |
H A D | page.h | 168 static inline int devmem_is_allowed(unsigned long pfn) argument 214 #define pfn_to_phys(pfn) ((pfn) << PAGE_SHIFT) 219 static inline void *pfn_to_virt(unsigned long pfn) argument 221 return __va(pfn_to_phys(pfn)); 229 #define pfn_to_kaddr(pfn) pfn_to_virt(pfn)
|
/linux-master/arch/x86/mm/ |
H A D | mem_encrypt_amd.c | 219 unsigned long pfn = 0; local 224 pfn = pte_pfn(*kpte); 228 pfn = pmd_pfn(*(pmd_t *)kpte); 232 pfn = pud_pfn(*(pud_t *)kpte); 243 return pfn; 263 unsigned long pfn; local 272 pfn = pg_level_to_pfn(level, kpte, NULL); 273 if (!pfn) 279 notify_page_enc_status_changed(pfn, psize >> PAGE_SHIFT, enc); 317 unsigned long pfn, p local [all...] |
/linux-master/arch/x86/xen/ |
H A D | mmu_pv.c | 8 * domain's pfn and the overall machine mfns. 16 * notion of a "physical" pfn - which is just a domain-local linear 22 * pte/pmd/pgd, it converts the passed pfn into an mfn. Conversely, 24 * the mfn back into a pfn. 336 unsigned long pfn = mfn_to_pfn(mfn); local 339 if (unlikely(pfn == ~0)) 342 val = ((pteval_t)pfn << PAGE_SHIFT) | flags; 351 unsigned long pfn = (val & PTE_PFN_MASK) >> PAGE_SHIFT; local 355 mfn = __pfn_to_mfn(pfn); 358 * If there's no mfn for the pfn, the 683 xen_do_pin(unsigned level, unsigned long pfn) argument 700 unsigned long pfn = page_to_pfn(page); local 825 unsigned long pfn = page_to_pfn(page); local 1002 pin_pagetable_pfn(unsigned cmd, unsigned long pfn) argument 1460 unsigned long pfn; local 1481 xen_alloc_pte_init(struct mm_struct *mm, unsigned long pfn) argument 1491 xen_alloc_pmd_init(struct mm_struct *mm, unsigned long pfn) argument 1501 xen_release_pte_init(unsigned long pfn) argument 1507 xen_release_pmd_init(unsigned long pfn) argument 1512 __pin_pagetable_pfn(unsigned cmd, unsigned long pfn) argument 1525 __set_pfn_prot(unsigned long pfn, pgprot_t prot) argument 1537 xen_alloc_ptpage(struct mm_struct *mm, unsigned long pfn, unsigned level) argument 1564 xen_alloc_pte(struct mm_struct *mm, unsigned long pfn) argument 1569 xen_alloc_pmd(struct mm_struct *mm, unsigned long pfn) argument 1575 xen_release_ptpage(unsigned long pfn, unsigned level) argument 1596 xen_release_pte(unsigned long pfn) argument 1601 xen_release_pmd(unsigned long pfn) argument 1606 xen_alloc_pud(struct mm_struct *mm, unsigned long pfn) argument 1611 xen_release_pud(unsigned long pfn) argument 1646 unsigned long pfn = __pa(addr) >> PAGE_SHIFT; local 1893 unsigned long p2m_pfn, p2m_pfn_end, n_frames, pfn, pfn_end; local 2413 xen_pfn_t *pfn; member in struct:remap_data 2444 xen_remap_pfn(struct vm_area_struct *vma, unsigned long addr, xen_pfn_t *pfn, int nr, int *err_ptr, pgprot_t prot, unsigned int domid, bool no_translate) argument [all...] |
/linux-master/arch/powerpc/kvm/ |
H A D | trace_booke.h | 121 TP_PROTO(__u64 pfn, __u32 flags), 122 TP_ARGS(pfn, flags), 125 __field( __u64, pfn ) 130 __entry->pfn = pfn; 134 TP_printk("pfn=%llx flags=%x", 135 __entry->pfn, __entry->flags)
|
/linux-master/include/trace/events/ |
H A D | page_ref.h | 20 __field(unsigned long, pfn) 30 __entry->pfn = page_to_pfn(page); 39 TP_printk("pfn=0x%lx flags=%s count=%d mapcount=%d mapping=%p mt=%d val=%d", 40 __entry->pfn, 68 __field(unsigned long, pfn) 79 __entry->pfn = page_to_pfn(page); 89 TP_printk("pfn=0x%lx flags=%s count=%d mapcount=%d mapping=%p mt=%d val=%d ret=%d", 90 __entry->pfn,
|
/linux-master/arch/arm/mach-versatile/ |
H A D | integrator_cp.c | 40 .pfn = __phys_to_pfn(INTEGRATOR_IC_BASE), 45 .pfn = __phys_to_pfn(INTEGRATOR_UART0_BASE), 50 .pfn = __phys_to_pfn(INTEGRATOR_CP_SIC_BASE),
|
/linux-master/arch/arm/mach-omap1/ |
H A D | io.c | 28 .pfn = __phys_to_pfn(OMAP1_IO_PHYS), 33 .pfn = __phys_to_pfn(OMAP1_DSP_START), 38 .pfn = __phys_to_pfn(OMAP1_DSPREG_START),
|
/linux-master/arch/microblaze/include/asm/ |
H A D | cacheflush.h | 85 #define flush_cache_page(vma, vmaddr, pfn) \ 86 flush_dcache_range(pfn << PAGE_SHIFT, (pfn << PAGE_SHIFT) + PAGE_SIZE);
|
/linux-master/arch/csky/abiv2/ |
H A D | cacheflush.c | 13 unsigned long pfn = pte_pfn(*pte); local 19 if (!pfn_valid(pfn)) 22 folio = page_folio(pfn_to_page(pfn));
|
/linux-master/arch/arm64/mm/ |
H A D | contpte.c | 90 * recover the folio from the pfn, but special mappings don't have a 102 unsigned long pfn; local 121 pfn = ALIGN_DOWN(pte_pfn(pte), CONT_PTES); 123 expected_pte = pfn_pte(pfn, prot); 203 unsigned long pfn; local 218 pfn = pte_pfn(orig_pte) - (orig_ptep - ptep); 220 for (i = 0; i < CONT_PTES; i++, ptep++, pfn++) { 225 pte_pfn(pte) != pfn || 245 unsigned long pfn; local 260 pfn [all...] |
/linux-master/fs/proc/ |
H A D | page.c | 52 unsigned long pfn; local 56 pfn = src / KPMSIZE; 68 ppage = pfn_to_online_page(pfn); 80 pfn++; 233 unsigned long pfn; local 236 pfn = src / KPMSIZE; 248 ppage = pfn_to_online_page(pfn); 255 pfn++; 282 unsigned long pfn; local 286 pfn [all...] |
/linux-master/arch/arm/mach-lpc32xx/ |
H A D | common.c | 80 .pfn = __phys_to_pfn(LPC32XX_AHB0_START), 86 .pfn = __phys_to_pfn(LPC32XX_AHB1_START), 92 .pfn = __phys_to_pfn(LPC32XX_FABAPB_START), 98 .pfn = __phys_to_pfn(LPC32XX_IRAM_BASE),
|
/linux-master/arch/mips/include/asm/mach-ip27/ |
H A D | kernel-entry-init.h | 41 dsrl t1, 12 # 4K pfn 42 dsrl t2, 12 # 4K pfn 43 dsll t1, 6 # Get pfn into place 44 dsll t2, 6 # Get pfn into place
|
/linux-master/arch/arm/mach-hisi/ |
H A D | hisilicon.c | 31 .pfn = __phys_to_pfn(HI3620_SYSCTRL_PHYS_BASE),
|