Lines Matching refs:pfn
164 unsigned long __ref xen_chk_extra_mem(unsigned long pfn) in xen_chk_extra_mem() argument
169 if (pfn >= xen_extra_mem[i].start_pfn && in xen_chk_extra_mem()
170 pfn < xen_extra_mem[i].start_pfn + xen_extra_mem[i].n_pfns) in xen_chk_extra_mem()
174 return IDENTITY_FRAME(pfn); in xen_chk_extra_mem()
182 unsigned long pfn, pfn_s, pfn_e; in xen_inv_extra_mem() local
190 for (pfn = pfn_s; pfn < pfn_e; pfn++) in xen_inv_extra_mem()
191 set_phys_to_machine(pfn, INVALID_P2M_ENTRY); in xen_inv_extra_mem()
257 unsigned long pfn, end; in xen_set_identity_and_release_chunk() local
264 for (pfn = start_pfn; pfn < end; pfn++) { in xen_set_identity_and_release_chunk()
265 unsigned long mfn = pfn_to_mfn(pfn); in xen_set_identity_and_release_chunk()
268 if (mfn == INVALID_P2M_ENTRY || mfn_to_pfn(mfn) != pfn) in xen_set_identity_and_release_chunk()
272 WARN(ret != 1, "Failed to release pfn %lx err=%d\n", pfn, ret); in xen_set_identity_and_release_chunk()
276 if (!__set_phys_to_machine(pfn, INVALID_P2M_ENTRY)) in xen_set_identity_and_release_chunk()
288 static void __init xen_update_mem_tables(unsigned long pfn, unsigned long mfn) in xen_update_mem_tables() argument
292 .val = pfn in xen_update_mem_tables()
296 if (!set_phys_to_machine(pfn, mfn)) { in xen_update_mem_tables()
298 pfn, mfn); in xen_update_mem_tables()
305 mfn, pfn); in xen_update_mem_tables()
309 if (HYPERVISOR_update_va_mapping((unsigned long)__va(pfn << PAGE_SHIFT), in xen_update_mem_tables()
312 mfn, pfn); in xen_update_mem_tables()
387 unsigned long pfn; in xen_set_identity_and_remap_chunk() local
431 for (pfn = start_pfn; pfn <= max_pfn_mapped && pfn < end_pfn; pfn++) in xen_set_identity_and_remap_chunk()
433 (unsigned long)__va(pfn << PAGE_SHIFT), in xen_set_identity_and_remap_chunk()
498 unsigned long mfn_save, pfn; in xen_remap_memory() local
512 pfn = xen_remap_buf.target_pfn; in xen_remap_memory()
514 xen_update_mem_tables(pfn, xen_remap_buf.mfns[i]); in xen_remap_memory()
516 pfn++; in xen_remap_memory()
518 if (pfn_s == ~0UL || pfn == pfn_s) { in xen_remap_memory()