Lines Matching refs:mfn
59 extern bool set_phys_to_machine(unsigned long pfn, unsigned long mfn);
60 extern bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
143 unsigned long mfn; in __pfn_to_mfn() local
146 mfn = xen_p2m_addr[pfn]; in __pfn_to_mfn()
152 if (unlikely(mfn == INVALID_P2M_ENTRY)) in __pfn_to_mfn()
155 return mfn; in __pfn_to_mfn()
166 unsigned long mfn; in pfn_to_mfn() local
176 mfn = __pfn_to_mfn(pfn); in pfn_to_mfn()
178 if (mfn != INVALID_P2M_ENTRY) in pfn_to_mfn()
179 mfn &= ~(FOREIGN_FRAME_BIT | IDENTITY_FRAME_BIT); in pfn_to_mfn()
181 return mfn; in pfn_to_mfn()
192 static inline unsigned long mfn_to_pfn_no_overrides(unsigned long mfn) in mfn_to_pfn_no_overrides() argument
197 if (unlikely(mfn >= machine_to_phys_nr)) in mfn_to_pfn_no_overrides()
205 ret = xen_safe_read_ulong(&machine_to_phys_mapping[mfn], &pfn); in mfn_to_pfn_no_overrides()
212 static inline unsigned long mfn_to_pfn(unsigned long mfn) in mfn_to_pfn() argument
222 return mfn; in mfn_to_pfn()
224 pfn = mfn_to_pfn_no_overrides(mfn); in mfn_to_pfn()
225 if (__pfn_to_mfn(pfn) != mfn) in mfn_to_pfn()
232 if (pfn == ~0 && __pfn_to_mfn(mfn) == IDENTITY_FRAME(mfn)) in mfn_to_pfn()
233 pfn = mfn; in mfn_to_pfn()
291 static inline unsigned long bfn_to_local_pfn(unsigned long mfn) in bfn_to_local_pfn() argument
296 return mfn; in bfn_to_local_pfn()
298 pfn = mfn_to_pfn(mfn); in bfn_to_local_pfn()
299 if (__pfn_to_mfn(pfn) != mfn) in bfn_to_local_pfn()