Lines Matching refs:mfn
241 static int __init xen_free_mfn(unsigned long mfn)
249 set_xen_guest_handle(reservation.extent_start, &mfn);
270 unsigned long mfn = pfn_to_mfn(pfn);
273 if (mfn == INVALID_P2M_ENTRY || mfn_to_pfn(mfn) != pfn)
276 ret = xen_free_mfn(mfn);
293 static void __init xen_update_mem_tables(unsigned long pfn, unsigned long mfn)
296 .ptr = ((uint64_t)mfn << PAGE_SHIFT) | MMU_MACHPHYS_UPDATE,
301 if (!set_phys_to_machine(pfn, mfn)) {
302 WARN(1, "Failed to set p2m mapping for pfn=%ld mfn=%ld\n",
303 pfn, mfn);
309 WARN(1, "Failed to set m2p mapping for mfn=%ld pfn=%ld\n",
310 mfn, pfn);
315 mfn_pte(mfn, PAGE_KERNEL), 0)) {
316 WARN(1, "Failed to update kernel mapping for mfn=%ld pfn=%ld\n",
317 mfn, pfn);
329 * This enables us to preserve the original mfn sequence while doing the
338 unsigned long mfn_save, mfn;
354 mfn = pfn_to_mfn(ident_pfn_iter);
355 set_pte_mfn(buf, mfn, PAGE_KERNEL);
365 xen_remap_mfn = mfn;
495 * The remap information (which mfn remap to which pfn) is contained in the