Home
last modified time | relevance | path

Searched refs:mfn (Results 1 – 12 of 12) sorted by relevance

/arch/x86/include/asm/xen/
Dpage.h51 extern bool set_phys_to_machine(unsigned long pfn, unsigned long mfn);
52 extern bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
108 unsigned long mfn; in __pfn_to_mfn() local
111 mfn = xen_p2m_addr[pfn]; in __pfn_to_mfn()
117 if (unlikely(mfn == INVALID_P2M_ENTRY)) in __pfn_to_mfn()
120 return mfn; in __pfn_to_mfn()
131 unsigned long mfn; in pfn_to_mfn() local
141 mfn = __pfn_to_mfn(pfn); in pfn_to_mfn()
143 if (mfn != INVALID_P2M_ENTRY) in pfn_to_mfn()
144 mfn &= ~(FOREIGN_FRAME_BIT | IDENTITY_FRAME_BIT); in pfn_to_mfn()
[all …]
/arch/arm/xen/
Dp2m.c22 unsigned long mfn; member
57 __func__, &new->pfn, &new->mfn, &entry->pfn, &entry->mfn); in xen_add_phys_to_mach_entry()
74 return entry->mfn + (pfn - entry->pfn); in __pfn_to_mfn()
120 unsigned long mfn, unsigned long nr_pages) in __set_phys_to_machine_multi() argument
127 if (mfn == INVALID_P2M_ENTRY) { in __set_phys_to_machine_multi()
153 p2m_entry->mfn = mfn; in __set_phys_to_machine_multi()
166 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine() argument
168 return __set_phys_to_machine_multi(pfn, mfn, 1); in __set_phys_to_machine()
Denlighten.c173 info.mfn = virt_to_gfn(vcpup); in xen_starting_cpu()
/arch/x86/xen/
Dsuspend_pv.c16 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()
36 xen_start_info->console.domU.mfn = in xen_pv_post_suspend()
37 pfn_to_mfn(xen_start_info->console.domU.mfn); in xen_pv_post_suspend()
Dp2m.c210 unsigned long pfn, mfn; in xen_build_mfn_list_list() local
242 mfn = pte_mfn(*ptep); in xen_build_mfn_list_list()
265 mid_mfn_p[mididx] = mfn; in xen_build_mfn_list_list()
306 unsigned long mfn; in xen_p2m_elem_type() local
311 mfn = xen_p2m_addr[pfn]; in xen_p2m_elem_type()
313 if (mfn == INVALID_P2M_ENTRY) in xen_p2m_elem_type()
316 if (mfn & IDENTITY_FRAME_BIT) in xen_p2m_elem_type()
645 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine() argument
651 BUG_ON(mfn != INVALID_P2M_ENTRY); in __set_phys_to_machine()
660 if (likely(!xen_safe_write_ulong(xen_p2m_addr + pfn, mfn))) in __set_phys_to_machine()
[all …]
Dmmu.c66 xen_pfn_t *mfn; member
76 pte_t pte = pte_mkspecial(mfn_pte(*rmd->mfn, rmd->prot)); in remap_area_mfn_pte_fn()
81 (*rmd->mfn)++; in remap_area_mfn_pte_fn()
83 rmd->mfn++; in remap_area_mfn_pte_fn()
107 rmd.mfn = gfn; in do_remap_gfn()
Dsetup.c235 static int __init xen_free_mfn(unsigned long mfn) in xen_free_mfn() argument
243 set_xen_guest_handle(reservation.extent_start, &mfn); in xen_free_mfn()
264 unsigned long mfn = pfn_to_mfn(pfn); in xen_set_identity_and_release_chunk() local
267 if (mfn == INVALID_P2M_ENTRY || mfn_to_pfn(mfn) != pfn) in xen_set_identity_and_release_chunk()
270 ret = xen_free_mfn(mfn); 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
290 .ptr = ((uint64_t)mfn << PAGE_SHIFT) | MMU_MACHPHYS_UPDATE, 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()
[all …]
Dmmu_pv.c237 void set_pte_mfn(unsigned long vaddr, unsigned long mfn, pgprot_t flags) in set_pte_mfn() argument
239 set_pte_vaddr(vaddr, mfn_pte(mfn, flags)); in set_pte_mfn()
318 unsigned long mfn = (val & PTE_PFN_MASK) >> PAGE_SHIFT; in pte_mfn_to_pfn() local
319 unsigned long pfn = mfn_to_pfn(mfn); in pte_mfn_to_pfn()
336 unsigned long mfn; in pte_pfn_to_mfn() local
338 mfn = __pfn_to_mfn(pfn); in pte_pfn_to_mfn()
346 if (unlikely(mfn == INVALID_P2M_ENTRY)) { in pte_pfn_to_mfn()
347 mfn = 0; in pte_pfn_to_mfn()
350 mfn &= ~(FOREIGN_FRAME_BIT | IDENTITY_FRAME_BIT); in pte_pfn_to_mfn()
351 val = ((pteval_t)mfn << PAGE_SHIFT) | flags; in pte_pfn_to_mfn()
[all …]
Dmmu.h16 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
Denlighten_pv.c439 unsigned long pfn, mfn; in xen_load_gdt() local
453 mfn = pfn_to_mfn(pfn); in xen_load_gdt()
456 frames[f] = mfn; in xen_load_gdt()
487 unsigned long pfn, mfn; in xen_load_gdt_boot() local
490 mfn = pfn_to_mfn(pfn); in xen_load_gdt_boot()
497 frames[f] = mfn; in xen_load_gdt_boot()
1391 xen_start_info->console.domU.mfn = 0; in xen_start_kernel()
Denlighten.c215 info.mfn = arbitrary_virt_to_mfn(vcpup); in xen_vcpu_setup()
/arch/powerpc/boot/
Dmpc8xx.c27 int mfi, mfn, mfd, pdf, div; in mpc885_get_clock() local
48 mfn = (plprcr >> 27) & 0x1f; in mpc885_get_clock()
52 if (mfn != 0) in mpc885_get_clock()
53 ret += crystal * mfn / (mfd + 1); in mpc885_get_clock()