Lines Matching refs:mfn

215 	unsigned long pfn, mfn;  in xen_build_mfn_list_list()  local
247 mfn = pte_mfn(*ptep); in xen_build_mfn_list_list()
270 mid_mfn_p[mididx] = mfn; in xen_build_mfn_list_list()
311 unsigned long mfn; in xen_p2m_elem_type() local
316 mfn = xen_p2m_addr[pfn]; in xen_p2m_elem_type()
318 if (mfn == INVALID_P2M_ENTRY) in xen_p2m_elem_type()
321 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()
816 unsigned long pfn, mfn, end_pfn; in xen_do_remap_nonram() local
821 mfn = PFN_DOWN(remap->maddr); in xen_do_remap_nonram()
823 if (!set_phys_to_machine(pfn, mfn)) in xen_do_remap_nonram()
825 pfn, mfn); in xen_do_remap_nonram()
828 mfn++; in xen_do_remap_nonram()