Lines Matching refs:mfn
236 static int __init xen_free_mfn(unsigned long mfn)
244 set_xen_guest_handle(reservation.extent_start, &mfn);
265 unsigned long mfn = pfn_to_mfn(pfn);
268 if (mfn == INVALID_P2M_ENTRY || mfn_to_pfn(mfn) != pfn)
271 ret = xen_free_mfn(mfn);
288 static void __init xen_update_mem_tables(unsigned long pfn, unsigned long mfn)
291 .ptr = ((uint64_t)mfn << PAGE_SHIFT) | MMU_MACHPHYS_UPDATE,
296 if (!set_phys_to_machine(pfn, mfn)) {
297 WARN(1, "Failed to set p2m mapping for pfn=%ld mfn=%ld\n",
298 pfn, mfn);
304 WARN(1, "Failed to set m2p mapping for mfn=%ld pfn=%ld\n",
305 mfn, pfn);
314 mfn_pte(mfn, PAGE_KERNEL), 0)) {
315 WARN(1, "Failed to update kernel mapping for mfn=%ld pfn=%ld\n",
316 mfn, pfn);
328 * This enables us to preserve the original mfn sequence while doing the
337 unsigned long mfn_save, mfn;
353 mfn = pfn_to_mfn(ident_pfn_iter);
354 set_pte_mfn(buf, mfn, PAGE_KERNEL);
364 xen_remap_mfn = mfn;
494 * The remap information (which mfn remap to which pfn) is contained in the