Lines Matching refs:mfn
219 unsigned long pfn, mfn; in xen_build_mfn_list_list() local
251 mfn = pte_mfn(*ptep); in xen_build_mfn_list_list()
274 mid_mfn_p[mididx] = mfn; in xen_build_mfn_list_list()
315 unsigned long mfn; in xen_p2m_elem_type() local
320 mfn = xen_p2m_addr[pfn]; in xen_p2m_elem_type()
322 if (mfn == INVALID_P2M_ENTRY) in xen_p2m_elem_type()
325 if (mfn & IDENTITY_FRAME_BIT) in xen_p2m_elem_type()
654 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine() argument
660 BUG_ON(mfn != INVALID_P2M_ENTRY); in __set_phys_to_machine()
668 if (likely(!xen_safe_write_ulong(xen_p2m_addr + pfn, mfn))) in __set_phys_to_machine()
675 return mfn == INVALID_P2M_ENTRY; in __set_phys_to_machine()
678 return mfn == IDENTITY_FRAME(pfn); in __set_phys_to_machine()
683 bool set_phys_to_machine(unsigned long pfn, unsigned long mfn) in set_phys_to_machine() argument
685 if (unlikely(!__set_phys_to_machine(pfn, mfn))) { in set_phys_to_machine()
692 return __set_phys_to_machine(pfn, mfn); in set_phys_to_machine()
716 unsigned long mfn, pfn; in set_foreign_p2m_mapping() local
725 mfn = pte_mfn(*pte); in set_foreign_p2m_mapping()
727 mfn = PFN_DOWN(map_ops[i].dev_bus_addr); in set_foreign_p2m_mapping()
733 if (unlikely(!set_phys_to_machine(pfn, FOREIGN_FRAME(mfn)))) { in set_foreign_p2m_mapping()
754 unsigned long mfn = __pfn_to_mfn(page_to_pfn(pages[i])); in clear_foreign_p2m_mapping() local
757 if (mfn == INVALID_P2M_ENTRY || !(mfn & FOREIGN_FRAME_BIT)) { in clear_foreign_p2m_mapping()