Searched refs:mfn (Results 1 – 11 of 11) sorted by relevance
/arch/x86/include/asm/xen/ |
D | page.h | 60 extern bool set_phys_to_machine(unsigned long pfn, unsigned long mfn); 61 extern bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn); 144 unsigned long mfn; in __pfn_to_mfn() local 147 mfn = xen_p2m_addr[pfn]; in __pfn_to_mfn() 153 if (unlikely(mfn == INVALID_P2M_ENTRY)) in __pfn_to_mfn() 156 return mfn; in __pfn_to_mfn() 167 unsigned long mfn; in pfn_to_mfn() local 177 mfn = __pfn_to_mfn(pfn); in pfn_to_mfn() 179 if (mfn != INVALID_P2M_ENTRY) in pfn_to_mfn() 180 mfn &= ~(FOREIGN_FRAME_BIT | IDENTITY_FRAME_BIT); in pfn_to_mfn() [all …]
|
/arch/arm/xen/ |
D | p2m.c | 23 unsigned long mfn; member 58 __func__, &new->pfn, &new->mfn, &entry->pfn, &entry->mfn); in xen_add_phys_to_mach_entry() 74 unsigned long mfn = entry->mfn + (pfn - entry->pfn); in __pfn_to_mfn() local 76 return mfn; in __pfn_to_mfn() 122 unsigned long mfn, unsigned long nr_pages) in __set_phys_to_machine_multi() argument 129 if (mfn == INVALID_P2M_ENTRY) { in __set_phys_to_machine_multi() 155 p2m_entry->mfn = mfn; in __set_phys_to_machine_multi() 169 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine() argument 171 return __set_phys_to_machine_multi(pfn, mfn, 1); in __set_phys_to_machine()
|
D | enlighten.c | 154 info.mfn = virt_to_gfn(vcpup); in xen_starting_cpu()
|
/arch/x86/xen/ |
D | suspend_pv.c | 16 xen_start_info->console.domU.mfn = in xen_pv_pre_suspend() 17 mfn_to_pfn(xen_start_info->console.domU.mfn); in xen_pv_pre_suspend() 37 xen_start_info->console.domU.mfn = in xen_pv_post_suspend() 38 pfn_to_mfn(xen_start_info->console.domU.mfn); in xen_pv_post_suspend()
|
D | p2m.c | 219 unsigned long pfn, mfn; in xen_build_mfn_list_list() local 251 mfn = pte_mfn(*ptep); in xen_build_mfn_list_list() 274 mid_mfn_p[mididx] = mfn; in xen_build_mfn_list_list() 315 unsigned long mfn; in xen_p2m_elem_type() local 320 mfn = xen_p2m_addr[pfn]; in xen_p2m_elem_type() 322 if (mfn == INVALID_P2M_ENTRY) in xen_p2m_elem_type() 325 if (mfn & IDENTITY_FRAME_BIT) in xen_p2m_elem_type() 654 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine() argument 660 BUG_ON(mfn != INVALID_P2M_ENTRY); in __set_phys_to_machine() 668 if (likely(!xen_safe_write_ulong(xen_p2m_addr + pfn, mfn))) in __set_phys_to_machine() [all …]
|
D | setup.c | 236 static int __init xen_free_mfn(unsigned long mfn) in xen_free_mfn() argument 244 set_xen_guest_handle(reservation.extent_start, &mfn); in xen_free_mfn() 265 unsigned long mfn = pfn_to_mfn(pfn); in xen_set_identity_and_release_chunk() local 268 if (mfn == INVALID_P2M_ENTRY || mfn_to_pfn(mfn) != pfn) in xen_set_identity_and_release_chunk() 271 ret = xen_free_mfn(mfn); 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 291 .ptr = ((uint64_t)mfn << PAGE_SHIFT) | MMU_MACHPHYS_UPDATE, 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() [all …]
|
D | mmu_pv.c | 255 void set_pte_mfn(unsigned long vaddr, unsigned long mfn, pgprot_t flags) in set_pte_mfn() argument 257 set_pte_vaddr(vaddr, mfn_pte(mfn, flags)); in set_pte_mfn() 336 unsigned long mfn = (val & XEN_PTE_MFN_MASK) >> PAGE_SHIFT; in pte_mfn_to_pfn() local 337 unsigned long pfn = mfn_to_pfn(mfn); in pte_mfn_to_pfn() 354 unsigned long mfn; in pte_pfn_to_mfn() local 356 mfn = __pfn_to_mfn(pfn); in pte_pfn_to_mfn() 364 if (unlikely(mfn == INVALID_P2M_ENTRY)) { in pte_pfn_to_mfn() 365 mfn = 0; in pte_pfn_to_mfn() 368 mfn &= ~(FOREIGN_FRAME_BIT | IDENTITY_FRAME_BIT); in pte_pfn_to_mfn() 369 val = ((pteval_t)mfn << PAGE_SHIFT) | flags; in pte_pfn_to_mfn() [all …]
|
D | mmu.h | 16 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
|
D | enlighten_pv.c | 454 unsigned long pfn, mfn; in xen_load_gdt() local 474 mfn = pfn_to_mfn(pfn); in xen_load_gdt() 480 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt() 491 unsigned long pfn, mfn; in xen_load_gdt_boot() local 499 mfn = pfn_to_mfn(pfn); in xen_load_gdt_boot() 506 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt_boot() 1367 xen_start_info->console.domU.mfn = 0; in xen_start_kernel()
|
D | enlighten.c | 225 info.mfn = arbitrary_virt_to_mfn(vcpup); in xen_vcpu_setup()
|
/arch/powerpc/boot/ |
D | mpc8xx.c | 24 int mfi, mfn, mfd, pdf; in mpc885_get_clock() local 44 mfn = (plprcr >> 27) & 0x1f; in mpc885_get_clock() 48 if (mfn != 0) in mpc885_get_clock() 49 ret += crystal * mfn / (mfd + 1); in mpc885_get_clock()
|