Home
last modified time | relevance | path

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

12

/Linux-v5.4/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);
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 …]
/Linux-v5.4/arch/arm/xen/
Dp2m.c23 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()
/Linux-v5.4/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-v5.4/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-pllv4.c71 u32 mult, mfn, mfd; in clk_pllv4_recalc_rate() local
78 mfn = readl_relaxed(pll->base + PLL_NUM_OFFSET); in clk_pllv4_recalc_rate()
81 temp64 *= mfn; in clk_pllv4_recalc_rate()
92 u32 mfn, mfd = DEFAULT_MFD; in clk_pllv4_round_rate() local
116 mfn = temp64; in clk_pllv4_round_rate()
124 if (mfn >= mfd) in clk_pllv4_round_rate()
128 temp64 *= mfn; in clk_pllv4_round_rate()
151 u32 val, mult, mfn, mfd = DEFAULT_MFD; in clk_pllv4_set_rate() local
165 mfn = temp64; in clk_pllv4_set_rate()
172 writel_relaxed(mfn, pll->base + PLL_NUM_OFFSET); in clk_pllv4_set_rate()
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()
Dclk-pllv3.c220 u32 mfn = readl_relaxed(pll->base + pll->num_offset); in clk_pllv3_av_recalc_rate() local
225 temp64 *= mfn; in clk_pllv3_av_recalc_rate()
238 u32 mfn, mfd = 1000000; in clk_pllv3_av_round_rate() local
254 mfn = temp64; in clk_pllv3_av_round_rate()
257 temp64 *= mfn; in clk_pllv3_av_round_rate()
270 u32 mfn, mfd = 1000000; in clk_pllv3_av_set_rate() local
284 mfn = temp64; in clk_pllv3_av_set_rate()
290 writel_relaxed(mfn, pll->base + pll->num_offset); in clk_pllv3_av_set_rate()
307 u32 mfn; /* numerator, 30-bit value */ member
317 temp64 *= mf.mfn; in clk_pllv3_vf610_mf_to_rate()
[all …]
/Linux-v5.4/arch/x86/xen/
Dp2m.c219 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 …]
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.c236 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 …]
Dmmu_pv.c255 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 …]
Dmmu.h16 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
Denlighten_pv.c454 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()
Denlighten.c225 info.mfn = arbitrary_virt_to_mfn(vcpup); in xen_vcpu_setup()
/Linux-v5.4/arch/powerpc/boot/
Dmpc8xx.c24 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()
/Linux-v5.4/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.c261 u64 mfn; in map_vgpu_opregion() local
265 mfn = intel_gvt_hypervisor_virt_to_mfn(vgpu_opregion(vgpu)->va in map_vgpu_opregion()
267 if (mfn == INTEL_GVT_INVALID_ADDR) { in map_vgpu_opregion()
273 mfn, 1, map); in map_vgpu_opregion()
Dmpt.h270 unsigned long mfn, unsigned int nr, in intel_gvt_hypervisor_map_gfn_to_mfn() argument
277 return intel_gvt_host.mpt->map_gfn_to_mfn(vgpu->handle, gfn, mfn, nr, in intel_gvt_hypervisor_map_gfn_to_mfn()
Dhypercall.h66 unsigned long mfn, unsigned int nr, bool map);
/Linux-v5.4/include/xen/
Dxen-ops.h170 unsigned long addr, xen_pfn_t *mfn, in xen_remap_domain_mfn_array() argument
178 return xen_remap_pfn(vma, addr, mfn, nr, err_ptr, prot, domid, in xen_remap_domain_mfn_array()
/Linux-v5.4/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-v5.4/include/uapi/xen/
Dprivcmd.h52 __u64 mfn; member

12