Home
last modified time | relevance | path

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

12

/Linux-v4.19/arch/x86/include/asm/xen/
Dpage.h60 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);
117 unsigned long mfn; in __pfn_to_mfn() local
120 mfn = xen_p2m_addr[pfn]; in __pfn_to_mfn()
126 if (unlikely(mfn == INVALID_P2M_ENTRY)) in __pfn_to_mfn()
129 return mfn; in __pfn_to_mfn()
140 unsigned long mfn; in pfn_to_mfn() local
150 mfn = __pfn_to_mfn(pfn); in pfn_to_mfn()
152 if (mfn != INVALID_P2M_ENTRY) in pfn_to_mfn()
153 mfn &= ~(FOREIGN_FRAME_BIT | IDENTITY_FRAME_BIT); in pfn_to_mfn()
[all …]
/Linux-v4.19/include/xen/arm/
Dpage.h60 unsigned long mfn; in pfn_to_bfn() local
63 mfn = __pfn_to_mfn(pfn); in pfn_to_bfn()
64 if (mfn != INVALID_P2M_ENTRY) in pfn_to_bfn()
65 return mfn; in pfn_to_bfn()
96 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
97 bool __set_phys_to_machine_multi(unsigned long pfn, unsigned long mfn,
100 static inline bool set_phys_to_machine(unsigned long pfn, unsigned long mfn) in set_phys_to_machine() argument
102 return __set_phys_to_machine(pfn, mfn); in set_phys_to_machine()
/Linux-v4.19/drivers/clk/imx/
Dclk-pllv1.c47 static inline bool mfn_is_negative(struct clk_pllv1 *pll, unsigned int mfn) in mfn_is_negative() argument
49 return !is_imx1_pllv1(pll) && !is_imx21_pllv1(pll) && (mfn & MFN_SIGN); in mfn_is_negative()
58 unsigned int mfi, mfn, mfd, pd; in clk_pllv1_recalc_rate() local
75 mfn = reg & 0x3ff; in clk_pllv1_recalc_rate()
81 mfn_abs = mfn; in clk_pllv1_recalc_rate()
88 if (mfn_is_negative(pll, mfn)) { in clk_pllv1_recalc_rate()
90 mfn_abs = mfn & MFN_MASK; in clk_pllv1_recalc_rate()
92 mfn_abs = BIT(MFN_BITS) - mfn; in clk_pllv1_recalc_rate()
102 if (mfn_is_negative(pll, mfn)) in clk_pllv1_recalc_rate()
Dclk-pllv3.c222 u32 mfn = readl_relaxed(pll->base + PLL_NUM_OFFSET); in clk_pllv3_av_recalc_rate() local
227 temp64 *= mfn; in clk_pllv3_av_recalc_rate()
240 u32 mfn, mfd = 1000000; in clk_pllv3_av_round_rate() local
256 mfn = temp64; in clk_pllv3_av_round_rate()
259 temp64 *= mfn; in clk_pllv3_av_round_rate()
272 u32 mfn, mfd = 1000000; in clk_pllv3_av_set_rate() local
286 mfn = temp64; in clk_pllv3_av_set_rate()
292 writel_relaxed(mfn, pll->base + PLL_NUM_OFFSET); in clk_pllv3_av_set_rate()
309 u32 mfn; /* numerator, 30-bit value */ member
319 temp64 *= mf.mfn; in clk_pllv3_vf610_mf_to_rate()
[all …]
Dclk-pllv2.c81 long mfi, mfn, mfd, pdf, ref_clk; in __clk_pllv2_recalc_rate() local
91 mfn = dp_mfn & MXC_PLL_DP_MFN_MASK; in __clk_pllv2_recalc_rate()
92 mfn = sign_extend32(mfn, 26); in __clk_pllv2_recalc_rate()
99 temp = (u64) ref_clk * abs(mfn); in __clk_pllv2_recalc_rate()
101 if (mfn < 0) in __clk_pllv2_recalc_rate()
130 long mfi, pdf, mfn, mfd = 999999; in __clk_pllv2_set_rate() local
144 mfn = (long)temp64; in __clk_pllv2_set_rate()
150 *dp_mfn = mfn; in __clk_pllv2_set_rate()
/Linux-v4.19/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.c98 xen_pfn_t *mfn, int nr, in xen_remap_domain_mfn_array() argument
187 info.mfn = virt_to_gfn(vcpup); in xen_starting_cpu()
/Linux-v4.19/arch/x86/xen/
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 …]
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()
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()
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.c247 void set_pte_mfn(unsigned long vaddr, unsigned long mfn, pgprot_t flags) in set_pte_mfn() argument
249 set_pte_vaddr(vaddr, mfn_pte(mfn, flags)); in set_pte_mfn()
328 unsigned long mfn = (val & XEN_PTE_MFN_MASK) >> PAGE_SHIFT; in pte_mfn_to_pfn() local
329 unsigned long pfn = mfn_to_pfn(mfn); in pte_mfn_to_pfn()
346 unsigned long mfn; in pte_pfn_to_mfn() local
348 mfn = __pfn_to_mfn(pfn); in pte_pfn_to_mfn()
356 if (unlikely(mfn == INVALID_P2M_ENTRY)) { in pte_pfn_to_mfn()
357 mfn = 0; in pte_pfn_to_mfn()
360 mfn &= ~(FOREIGN_FRAME_BIT | IDENTITY_FRAME_BIT); in pte_pfn_to_mfn()
361 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.c447 unsigned long pfn, mfn; in xen_load_gdt() local
467 mfn = pfn_to_mfn(pfn); in xen_load_gdt()
473 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt()
484 unsigned long pfn, mfn; in xen_load_gdt_boot() local
492 mfn = pfn_to_mfn(pfn); in xen_load_gdt_boot()
499 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt_boot()
1372 xen_start_info->console.domU.mfn = 0; in xen_start_kernel()
Dmmu.c213 xen_pfn_t *mfn, int nr, in xen_remap_domain_mfn_array() argument
220 return do_remap_pfn(vma, addr, mfn, nr, err_ptr, prot, domid, in xen_remap_domain_mfn_array()
/Linux-v4.19/arch/powerpc/boot/
Dmpc8xx.c27 int mfi, mfn, mfd, pdf; in mpc885_get_clock() local
47 mfn = (plprcr >> 27) & 0x1f; in mpc885_get_clock()
51 if (mfn != 0) in mpc885_get_clock()
52 ret += crystal * mfn / (mfd + 1); in mpc885_get_clock()
/Linux-v4.19/drivers/gpu/drm/i915/gvt/
Dtrace.h43 TP_PROTO(int id, void *spt, int type, unsigned long mfn,
46 TP_ARGS(id, spt, type, mfn, gpt_gfn),
52 __field(unsigned long, mfn)
60 __entry->mfn = mfn;
68 __entry->mfn,
Dopregion.c262 u64 mfn; in map_vgpu_opregion() local
266 mfn = intel_gvt_hypervisor_virt_to_mfn(vgpu_opregion(vgpu)->va in map_vgpu_opregion()
268 if (mfn == INTEL_GVT_INVALID_ADDR) { in map_vgpu_opregion()
274 mfn, 1, map); in map_vgpu_opregion()
Dmpt.h272 unsigned long mfn, unsigned int nr, in intel_gvt_hypervisor_map_gfn_to_mfn() argument
279 return intel_gvt_host.mpt->map_gfn_to_mfn(vgpu->handle, gfn, mfn, nr, in intel_gvt_hypervisor_map_gfn_to_mfn()
Dhypercall.h60 unsigned long mfn, unsigned int nr, bool map);
/Linux-v4.19/include/xen/interface/
Dxen.h363 xen_pfn_t mfn; member
645 xen_pfn_t mfn; /* MACHINE page number of console page. */ member
Dvcpu.h173 uint64_t mfn; /* mfn of page to place vcpu_info */ member
Dplatform.h66 xen_pfn_t mfn; member
96 xen_pfn_t mfn; member
Dgrant_table.h341 xen_pfn_t mfn; member
/Linux-v4.19/include/uapi/xen/
Dprivcmd.h52 __u64 mfn; member
/Linux-v4.19/include/xen/
Dxen-ops.h107 unsigned long addr, xen_pfn_t *mfn, int nr,

12