Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/arch/x86/include/asm/xen/
H A Dpage.h59 extern bool set_phys_to_machine(unsigned long pfn, unsigned long mfn);
60 extern bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
143 unsigned long mfn; in __pfn_to_mfn() local
146 mfn = xen_p2m_addr[pfn]; in __pfn_to_mfn()
152 if (unlikely(mfn == INVALID_P2M_ENTRY)) in __pfn_to_mfn()
155 return mfn; in __pfn_to_mfn()
166 unsigned long mfn; in pfn_to_mfn() local
176 mfn = __pfn_to_mfn(pfn); in pfn_to_mfn()
178 if (mfn != INVALID_P2M_ENTRY) in pfn_to_mfn()
179 mfn &= ~(FOREIGN_FRAME_BIT | IDENTITY_FRAME_BIT); in pfn_to_mfn()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/xen/
H A Dp2m.c23 unsigned long mfn; member
58 __func__, &new->pfn, &new->mfn, &entry->pfn, &entry->mfn); in xen_add_phys_to_mach_entry()
75 unsigned long mfn = entry->mfn + (pfn - entry->pfn); in __pfn_to_mfn() local
77 return mfn; in __pfn_to_mfn()
152 unsigned long mfn, unsigned long nr_pages) in __set_phys_to_machine_multi() argument
159 if (mfn == INVALID_P2M_ENTRY) { in __set_phys_to_machine_multi()
186 p2m_entry->mfn = mfn; in __set_phys_to_machine_multi()
200 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine() argument
202 return __set_phys_to_machine_multi(pfn, mfn, 1); in __set_phys_to_machine()
/OK3568_Linux_fs/kernel/drivers/clk/imx/
H A Dclk-pllv1.c48 static inline bool mfn_is_negative(struct clk_pllv1 *pll, unsigned int mfn) in mfn_is_negative() argument
50 return !is_imx1_pllv1(pll) && !is_imx21_pllv1(pll) && (mfn & MFN_SIGN); in mfn_is_negative()
59 unsigned int mfi, mfn, mfd, pd; in clk_pllv1_recalc_rate() local
76 mfn = reg & 0x3ff; in clk_pllv1_recalc_rate()
82 mfn_abs = mfn; in clk_pllv1_recalc_rate()
89 if (mfn_is_negative(pll, mfn)) { in clk_pllv1_recalc_rate()
91 mfn_abs = mfn & MFN_MASK; in clk_pllv1_recalc_rate()
93 mfn_abs = BIT(MFN_BITS) - mfn; in clk_pllv1_recalc_rate()
103 if (mfn_is_negative(pll, mfn)) in clk_pllv1_recalc_rate()
H A Dclk-pllv4.c72 u32 mult, mfn, mfd; in clk_pllv4_recalc_rate() local
79 mfn = readl_relaxed(pll->base + PLL_NUM_OFFSET); in clk_pllv4_recalc_rate()
82 temp64 *= mfn; in clk_pllv4_recalc_rate()
93 u32 mfn, mfd = DEFAULT_MFD; in clk_pllv4_round_rate() local
117 mfn = temp64; in clk_pllv4_round_rate()
125 if (mfn >= mfd) in clk_pllv4_round_rate()
129 temp64 *= mfn; in clk_pllv4_round_rate()
152 u32 val, mult, mfn, mfd = DEFAULT_MFD; in clk_pllv4_set_rate() local
166 mfn = temp64; in clk_pllv4_set_rate()
173 writel_relaxed(mfn, pll->base + PLL_NUM_OFFSET); in clk_pllv4_set_rate()
H A Dclk-pllv3.c217 u32 mfn = readl_relaxed(pll->base + pll->num_offset); in clk_pllv3_av_recalc_rate() local
222 temp64 *= mfn; in clk_pllv3_av_recalc_rate()
235 u32 mfn, mfd = 1000000; in clk_pllv3_av_round_rate() local
251 mfn = temp64; in clk_pllv3_av_round_rate()
254 temp64 *= mfn; in clk_pllv3_av_round_rate()
267 u32 mfn, mfd = 1000000; in clk_pllv3_av_set_rate() local
281 mfn = temp64; in clk_pllv3_av_set_rate()
287 writel_relaxed(mfn, pll->base + pll->num_offset); in clk_pllv3_av_set_rate()
304 u32 mfn; /* numerator, 30-bit value */ member
314 temp64 *= mf.mfn; in clk_pllv3_vf610_mf_to_rate()
[all …]
H A 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()
/OK3568_Linux_fs/kernel/include/xen/arm/
H A 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()
103 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
104 bool __set_phys_to_machine_multi(unsigned long pfn, unsigned long mfn,
107 static inline bool set_phys_to_machine(unsigned long pfn, unsigned long mfn) in set_phys_to_machine() argument
109 return __set_phys_to_machine(pfn, mfn); in set_phys_to_machine()
/OK3568_Linux_fs/kernel/arch/x86/xen/
H A 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()
650 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine() argument
657 return mfn == INVALID_P2M_ENTRY; in __set_phys_to_machine()
663 if (likely(!xen_safe_write_ulong(xen_p2m_addr + pfn, mfn))) in __set_phys_to_machine()
[all …]
H A 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 …]
H A 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()
H A Dmmu_pv.c244 void set_pte_mfn(unsigned long vaddr, unsigned long mfn, pgprot_t flags) in set_pte_mfn() argument
246 set_pte_vaddr(vaddr, mfn_pte(mfn, flags)); in set_pte_mfn()
315 unsigned long mfn = (val & XEN_PTE_MFN_MASK) >> PAGE_SHIFT; in pte_mfn_to_pfn() local
316 unsigned long pfn = mfn_to_pfn(mfn); in pte_mfn_to_pfn()
333 unsigned long mfn; in pte_pfn_to_mfn() local
335 mfn = __pfn_to_mfn(pfn); in pte_pfn_to_mfn()
343 if (unlikely(mfn == INVALID_P2M_ENTRY)) { in pte_pfn_to_mfn()
344 mfn = 0; in pte_pfn_to_mfn()
347 mfn &= ~(FOREIGN_FRAME_BIT | IDENTITY_FRAME_BIT); in pte_pfn_to_mfn()
348 val = ((pteval_t)mfn << PAGE_SHIFT) | flags; in pte_pfn_to_mfn()
[all …]
H A Denlighten_pv.c442 unsigned long pfn, mfn; in xen_load_gdt() local
462 mfn = pfn_to_mfn(pfn); in xen_load_gdt()
468 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt()
479 unsigned long pfn, mfn; in xen_load_gdt_boot() local
487 mfn = pfn_to_mfn(pfn); in xen_load_gdt_boot()
494 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt_boot()
1380 xen_start_info->console.domU.mfn = 0; in xen_start_kernel()
H A Dmmu.h16 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
/OK3568_Linux_fs/u-boot/arch/arm/mach-imx/mx5/
H A Dclock.c64 u32 mfn; member
163 uint32_t ctrl, op, mfd, mfn, mfi, pdf, ret; in decode_pll() local
170 mfn = readl(&pll->hfs_mfn); in decode_pll()
174 mfn = readl(&pll->mfn); in decode_pll()
180 mfn &= MXC_DPLLC_MFN_MFN_MASK; in decode_pll()
189 if (mfn >= 0x04000000) { in decode_pll()
190 mfn |= 0xfc000000; in decode_pll()
191 mfn_abs = -mfn; in decode_pll()
193 mfn_abs = mfn; in decode_pll()
204 if ((int)mfn < 0) in decode_pll()
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/boot/
H A 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()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm920t/imx/
H A Dspeed.c29 u32 mfn = spctl0 & 0x3f; in get_systemPLLCLK() local
35 return (2*(CONFIG_SYSPLL_CLK_FREQ>>10)*( (mfi<<10) + (mfn<<10)/(mfd+1)))/(pd+1); in get_systemPLLCLK()
43 u32 mfn = mpctl0 & 0x3f; in get_mcuPLLCLK() local
49 return (2*(CONFIG_SYS_CLK_FREQ>>10)*( (mfi<<10) + (mfn<<10)/(mfd+1)))/(pd+1); in get_mcuPLLCLK()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm1136/mx31/
H A Dgeneric.c18 s32 mfn = GET_PLL_MFN(reg); in mx31_decode_pll() local
23 mfn = mfn >= 512 ? mfn - 1024 : mfn; in mx31_decode_pll()
27 return lldiv(2 * (u64)infreq * (mfi * mfd + mfn), in mx31_decode_pll()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/mx25/
H A Dgeneric.c37 int mfn = (pll >> CCM_PLL_MFN_SHIFT) in imx_decode_pll() local
45 mfn = mfn >= 512 ? mfn - 1024 : mfn; in imx_decode_pll()
49 return lldiv(2 * (u64) f_ref * (mfi * mfd + mfn), in imx_decode_pll()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gvt/
H A 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,
H A Dopregion.c260 u64 mfn; in map_vgpu_opregion() local
264 mfn = intel_gvt_hypervisor_virt_to_mfn(vgpu_opregion(vgpu)->va in map_vgpu_opregion()
266 if (mfn == INTEL_GVT_INVALID_ADDR) { in map_vgpu_opregion()
272 mfn, 1, map); in map_vgpu_opregion()
H A Dmpt.h285 unsigned long mfn, unsigned int nr, in intel_gvt_hypervisor_map_gfn_to_mfn() argument
292 return intel_gvt_host.mpt->map_gfn_to_mfn(vgpu->handle, gfn, mfn, nr, in intel_gvt_hypervisor_map_gfn_to_mfn()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm1136/mx35/
H A Dgeneric.c118 s32 mfn = reg & 0x3ff; in decode_pll() local
123 mfn = mfn >= 512 ? mfn - 1024 : mfn; in decode_pll()
127 return lldiv(2 * (u64)infreq * (mfi * mfd + mfn), in decode_pll()
/OK3568_Linux_fs/kernel/include/xen/
H A 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()
/OK3568_Linux_fs/kernel/include/xen/interface/
H A Dxen.h363 xen_pfn_t mfn; member
645 xen_pfn_t mfn; /* MACHINE page number of console page. */ member
/OK3568_Linux_fs/u-boot/arch/arm/include/asm/arch-mx35/
H A Dimx-regs.h144 #define _PLL_SETTING(brm, pd, mfd, mfi, mfn) \ argument
146 _PLL_MFN(mfn))

12