Lines Matching refs:pfn
163 unsigned long __ref xen_chk_extra_mem(unsigned long pfn) in xen_chk_extra_mem() argument
168 if (pfn >= xen_extra_mem[i].start_pfn && in xen_chk_extra_mem()
169 pfn < xen_extra_mem[i].start_pfn + xen_extra_mem[i].n_pfns) in xen_chk_extra_mem()
173 return IDENTITY_FRAME(pfn); in xen_chk_extra_mem()
181 unsigned long pfn, pfn_s, pfn_e; in xen_inv_extra_mem() local
189 for (pfn = pfn_s; pfn < pfn_e; pfn++) in xen_inv_extra_mem()
190 set_phys_to_machine(pfn, INVALID_P2M_ENTRY); in xen_inv_extra_mem()
256 unsigned long pfn, end; in xen_set_identity_and_release_chunk() local
263 for (pfn = start_pfn; pfn < end; pfn++) { in xen_set_identity_and_release_chunk()
264 unsigned long mfn = pfn_to_mfn(pfn); in xen_set_identity_and_release_chunk()
267 if (mfn == INVALID_P2M_ENTRY || mfn_to_pfn(mfn) != pfn) in xen_set_identity_and_release_chunk()
271 WARN(ret != 1, "Failed to release pfn %lx err=%d\n", pfn, ret); in xen_set_identity_and_release_chunk()
275 if (!__set_phys_to_machine(pfn, INVALID_P2M_ENTRY)) in xen_set_identity_and_release_chunk()
287 static void __init xen_update_mem_tables(unsigned long pfn, unsigned long mfn) in xen_update_mem_tables() argument
291 .val = pfn in xen_update_mem_tables()
295 if (!set_phys_to_machine(pfn, mfn)) { in xen_update_mem_tables()
297 pfn, mfn); in xen_update_mem_tables()
304 mfn, pfn); in xen_update_mem_tables()
309 if (pfn >= PFN_UP(__pa(high_memory - 1))) in xen_update_mem_tables()
312 if (HYPERVISOR_update_va_mapping((unsigned long)__va(pfn << PAGE_SHIFT), in xen_update_mem_tables()
315 mfn, pfn); in xen_update_mem_tables()
392 unsigned long pfn; in xen_set_identity_and_remap_chunk() local
436 for (pfn = start_pfn; pfn <= max_pfn_mapped && pfn < end_pfn; pfn++) in xen_set_identity_and_remap_chunk()
438 (unsigned long)__va(pfn << PAGE_SHIFT), in xen_set_identity_and_remap_chunk()
439 mfn_pte(pfn, PAGE_KERNEL_IO), 0); in xen_set_identity_and_remap_chunk()
503 unsigned long mfn_save, mfn, pfn; in xen_remap_memory() local
517 pfn = xen_remap_buf.target_pfn; in xen_remap_memory()
520 xen_update_mem_tables(pfn, mfn); in xen_remap_memory()
522 pfn++; in xen_remap_memory()
524 if (pfn_s == ~0UL || pfn == pfn_s) { in xen_remap_memory()