Lines Matching refs:mfn
214 unsigned long pfn, mfn; in xen_build_mfn_list_list() local
246 mfn = pte_mfn(*ptep); in xen_build_mfn_list_list()
269 mid_mfn_p[mididx] = mfn; in xen_build_mfn_list_list()
310 unsigned long mfn; in xen_p2m_elem_type() local
315 mfn = xen_p2m_addr[pfn]; in xen_p2m_elem_type()
317 if (mfn == INVALID_P2M_ENTRY) in xen_p2m_elem_type()
320 if (mfn & IDENTITY_FRAME_BIT) in xen_p2m_elem_type()
645 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine() argument
652 return mfn == INVALID_P2M_ENTRY; in __set_phys_to_machine()
658 if (likely(!xen_safe_write_ulong(xen_p2m_addr + pfn, mfn))) in __set_phys_to_machine()
665 return mfn == INVALID_P2M_ENTRY; in __set_phys_to_machine()
668 return mfn == IDENTITY_FRAME(pfn); in __set_phys_to_machine()
673 bool set_phys_to_machine(unsigned long pfn, unsigned long mfn) in set_phys_to_machine() argument
675 if (unlikely(!__set_phys_to_machine(pfn, mfn))) { in set_phys_to_machine()
682 return __set_phys_to_machine(pfn, mfn); in set_phys_to_machine()
706 unsigned long mfn, pfn; in set_foreign_p2m_mapping() local
718 mfn = pte_mfn(*pte); in set_foreign_p2m_mapping()
720 mfn = PFN_DOWN(map_ops[i].dev_bus_addr); in set_foreign_p2m_mapping()
726 if (likely(set_phys_to_machine(pfn, FOREIGN_FRAME(mfn)))) in set_foreign_p2m_mapping()
782 unsigned long mfn = __pfn_to_mfn(page_to_pfn(pages[i])); in clear_foreign_p2m_mapping() local
785 if (mfn != INVALID_P2M_ENTRY && (mfn & FOREIGN_FRAME_BIT)) in clear_foreign_p2m_mapping()