Lines Matching refs:pfn
29 static inline pfn_t __pfn_to_pfn_t(unsigned long pfn, u64 flags) in __pfn_to_pfn_t() argument
31 pfn_t pfn_t = { .val = pfn | (flags & PFN_FLAGS_MASK), }; in __pfn_to_pfn_t()
37 static inline pfn_t pfn_to_pfn_t(unsigned long pfn) in pfn_to_pfn_t() argument
39 return __pfn_to_pfn_t(pfn, 0); in pfn_to_pfn_t()
47 static inline bool pfn_t_has_page(pfn_t pfn) in pfn_t_has_page() argument
49 return (pfn.val & PFN_MAP) == PFN_MAP || (pfn.val & PFN_DEV) == 0; in pfn_t_has_page()
52 static inline unsigned long pfn_t_to_pfn(pfn_t pfn) in pfn_t_to_pfn() argument
54 return pfn.val & ~PFN_FLAGS_MASK; in pfn_t_to_pfn()
57 static inline struct page *pfn_t_to_page(pfn_t pfn) in pfn_t_to_page() argument
59 if (pfn_t_has_page(pfn)) in pfn_t_to_page()
60 return pfn_to_page(pfn_t_to_pfn(pfn)); in pfn_t_to_page()
64 static inline phys_addr_t pfn_t_to_phys(pfn_t pfn) in pfn_t_to_phys() argument
66 return PFN_PHYS(pfn_t_to_pfn(pfn)); in pfn_t_to_phys()
74 static inline int pfn_t_valid(pfn_t pfn) in pfn_t_valid() argument
76 return pfn_valid(pfn_t_to_pfn(pfn)); in pfn_t_valid()
80 static inline pte_t pfn_t_pte(pfn_t pfn, pgprot_t pgprot) in pfn_t_pte() argument
82 return pfn_pte(pfn_t_to_pfn(pfn), pgprot); in pfn_t_pte()
87 static inline pmd_t pfn_t_pmd(pfn_t pfn, pgprot_t pgprot) in pfn_t_pmd() argument
89 return pfn_pmd(pfn_t_to_pfn(pfn), pgprot); in pfn_t_pmd()
93 static inline pud_t pfn_t_pud(pfn_t pfn, pgprot_t pgprot) in pfn_t_pud() argument
95 return pfn_pud(pfn_t_to_pfn(pfn), pgprot); in pfn_t_pud()
101 static inline bool pfn_t_devmap(pfn_t pfn) in pfn_t_devmap() argument
105 return (pfn.val & flags) == flags; in pfn_t_devmap()
108 static inline bool pfn_t_devmap(pfn_t pfn) in pfn_t_devmap() argument
121 static inline bool pfn_t_special(pfn_t pfn) in pfn_t_special() argument
123 return (pfn.val & PFN_SPECIAL) == PFN_SPECIAL; in pfn_t_special()
126 static inline bool pfn_t_special(pfn_t pfn) in pfn_t_special() argument