Lines Matching refs:pfn

130 unsigned long __ref xen_chk_extra_mem(unsigned long pfn)  in xen_chk_extra_mem()  argument
133 phys_addr_t addr = PFN_PHYS(pfn); in xen_chk_extra_mem()
141 return IDENTITY_FRAME(pfn); in xen_chk_extra_mem()
149 unsigned long pfn, pfn_s, pfn_e; in xen_inv_extra_mem() local
157 for (pfn = pfn_s; pfn < pfn_e; pfn++) in xen_inv_extra_mem()
158 set_phys_to_machine(pfn, INVALID_P2M_ENTRY); in xen_inv_extra_mem()
226 unsigned long pfn, end; in xen_set_identity_and_release_chunk() local
233 for (pfn = start_pfn; pfn < end; pfn++) { in xen_set_identity_and_release_chunk()
234 unsigned long mfn = pfn_to_mfn(pfn); in xen_set_identity_and_release_chunk()
237 if (mfn == INVALID_P2M_ENTRY || mfn_to_pfn(mfn) != pfn) in xen_set_identity_and_release_chunk()
241 WARN(ret != 1, "Failed to release pfn %lx err=%d\n", pfn, ret); in xen_set_identity_and_release_chunk()
245 if (!__set_phys_to_machine(pfn, INVALID_P2M_ENTRY)) in xen_set_identity_and_release_chunk()
257 static void __init xen_update_mem_tables(unsigned long pfn, unsigned long mfn) in xen_update_mem_tables() argument
261 .val = pfn in xen_update_mem_tables()
265 if (!set_phys_to_machine(pfn, mfn)) { in xen_update_mem_tables()
267 pfn, mfn); in xen_update_mem_tables()
274 mfn, pfn); in xen_update_mem_tables()
279 if (pfn >= PFN_UP(__pa(high_memory - 1))) in xen_update_mem_tables()
282 if (HYPERVISOR_update_va_mapping((unsigned long)__va(pfn << PAGE_SHIFT), in xen_update_mem_tables()
285 mfn, pfn); in xen_update_mem_tables()
363 unsigned long pfn; in xen_set_identity_and_remap_chunk() local
406 for (pfn = start_pfn; pfn <= max_pfn_mapped && pfn < end_pfn; pfn++) in xen_set_identity_and_remap_chunk()
408 (unsigned long)__va(pfn << PAGE_SHIFT), in xen_set_identity_and_remap_chunk()
409 mfn_pte(pfn, PAGE_KERNEL_IO), 0); in xen_set_identity_and_remap_chunk()
470 unsigned long mfn_save, mfn, pfn; in xen_remap_memory() local
484 pfn = xen_remap_buf.target_pfn; in xen_remap_memory()
487 xen_update_mem_tables(pfn, mfn); in xen_remap_memory()
489 pfn++; in xen_remap_memory()
491 if (pfn_s == ~0UL || pfn == pfn_s) { in xen_remap_memory()