Home
last modified time | relevance | path

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

12

/linux/arch/x86/include/asm/xen/
H A Dpage.h135 unsigned long mfn; in __pfn_to_mfn() local
138 mfn = xen_p2m_addr[pfn]; in __pfn_to_mfn()
147 return mfn; in __pfn_to_mfn()
158 unsigned long mfn; in pfn_to_mfn() local
168 mfn = __pfn_to_mfn(pfn); in pfn_to_mfn()
173 return mfn; in pfn_to_mfn()
214 return mfn; in mfn_to_pfn()
224 if (pfn == ~0 && __pfn_to_mfn(mfn) == IDENTITY_FRAME(mfn)) in mfn_to_pfn()
225 pfn = mfn; in mfn_to_pfn()
288 return mfn; in bfn_to_local_pfn()
[all …]
/linux/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()
/linux/drivers/clk/imx/
H A 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()
H A Dclk-pllv4.c82 u32 mult, mfn, mfd; in clk_pllv4_recalc_rate() local
89 mfn = readl_relaxed(pll->base + pll->num_offset); in clk_pllv4_recalc_rate()
92 temp64 *= mfn; in clk_pllv4_recalc_rate()
104 u32 mfn, mfd = DEFAULT_MFD; in clk_pllv4_round_rate() local
140 mfn = temp64; in clk_pllv4_round_rate()
148 if (mfn >= mfd) in clk_pllv4_round_rate()
152 temp64 *= mfn; in clk_pllv4_round_rate()
181 u32 val, mult, mfn, mfd = DEFAULT_MFD; in clk_pllv4_set_rate() local
195 mfn = temp64; in clk_pllv4_set_rate()
202 writel_relaxed(mfn, pll->base + pll->num_offset); in clk_pllv4_set_rate()
H A Dclk-pllv3.c223 temp64 *= mfn; in clk_pllv3_av_recalc_rate()
236 u32 mfn, mfd = 1000000; in clk_pllv3_av_round_rate() local
252 mfn = temp64; in clk_pllv3_av_round_rate()
255 temp64 *= mfn; in clk_pllv3_av_round_rate()
268 u32 mfn, mfd = 1000000; in clk_pllv3_av_set_rate() local
282 mfn = temp64; in clk_pllv3_av_set_rate()
305 u32 mfn; /* numerator, 30-bit value */ member
315 temp64 *= mf.mfn; in clk_pllv3_vf610_mf_to_rate()
331 mf.mfn = 0; in clk_pllv3_vf610_rate_to_mf()
333 mf.mfn = mf.mfd - 1; in clk_pllv3_vf610_rate_to_mf()
[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()
H A Dclk-fracn-gppll.c50 .mfn = (_mfn), \
60 .mfn = 0, \
158 u32 mfi, mfn, mfd, rdiv, odiv; in clk_fracn_gppll_recalc_rate() local
164 mfn = FIELD_GET(PLL_MFN_MASK, pll_numerator); in clk_fracn_gppll_recalc_rate()
182 if (rate_table[i].mfn == mfn && rate_table[i].mfi == mfi && in clk_fracn_gppll_recalc_rate()
211 fvco = fvco * mfi * mfd + fvco * mfn; in clk_fracn_gppll_recalc_rate()
259 writel_relaxed(FIELD_PREP(PLL_MFN_MASK, rate->mfn), pll->base + PLL_NUMERATOR); in clk_fracn_gppll_set_rate()
281 WARN(ana_mfn != rate->mfn, "ana_mfn != rate->mfn\n"); in clk_fracn_gppll_set_rate()
/linux/arch/arm/xen/
H A Dp2m.c24 unsigned long mfn; member
59 __func__, &new->pfn, &new->mfn, &entry->pfn, &entry->mfn); in xen_add_phys_to_mach_entry()
76 unsigned long mfn = entry->mfn + (pfn - entry->pfn); in __pfn_to_mfn() local
78 return mfn; in __pfn_to_mfn()
151 unsigned long mfn, unsigned long nr_pages) in __set_phys_to_machine_multi() argument
158 if (mfn == INVALID_P2M_ENTRY) { in __set_phys_to_machine_multi()
185 p2m_entry->mfn = mfn; in __set_phys_to_machine_multi()
199 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine() argument
201 return __set_phys_to_machine_multi(pfn, mfn, 1); in __set_phys_to_machine()
/linux/arch/x86/xen/
H A Dp2m.c215 unsigned long pfn, mfn; in xen_build_mfn_list_list() local
247 mfn = pte_mfn(*ptep); in xen_build_mfn_list_list()
270 mid_mfn_p[mididx] = mfn; in xen_build_mfn_list_list()
311 unsigned long mfn; in xen_p2m_elem_type() local
316 mfn = xen_p2m_addr[pfn]; in xen_p2m_elem_type()
318 if (mfn == INVALID_P2M_ENTRY) in xen_p2m_elem_type()
706 unsigned long mfn, pfn; in set_foreign_p2m_mapping() local
718 mfn = pte_mfn(*pte); in set_foreign_p2m_mapping()
785 if (mfn != INVALID_P2M_ENTRY && (mfn & FOREIGN_FRAME_BIT)) in clear_foreign_p2m_mapping()
825 pfn, mfn); in xen_do_remap_nonram()
[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 Dsetup.c228 unsigned long mfn = pfn_to_mfn(pfn); in xen_set_identity_and_release_chunk() local
231 if (mfn == INVALID_P2M_ENTRY || mfn_to_pfn(mfn) != pfn) in xen_set_identity_and_release_chunk()
234 ret = xen_free_mfn(mfn); in xen_set_identity_and_release_chunk()
259 if (!set_phys_to_machine(pfn, mfn)) { in xen_update_mem_tables()
261 pfn, mfn); in xen_update_mem_tables()
268 mfn, pfn); in xen_update_mem_tables()
275 mfn, pfn); in xen_update_mem_tables()
296 unsigned long mfn_save, mfn; in xen_do_set_identity_and_remap_chunk() local
312 mfn = pfn_to_mfn(ident_pfn_iter); in xen_do_set_identity_and_remap_chunk()
313 set_pte_mfn(buf, mfn, PAGE_KERNEL); in xen_do_set_identity_and_remap_chunk()
[all …]
H A Dmmu_pv.c352 unsigned long mfn; in pte_pfn_to_mfn() local
354 mfn = __pfn_to_mfn(pfn); in pte_pfn_to_mfn()
363 mfn = 0; in pte_pfn_to_mfn()
687 op.arg1.mfn = pfn_to_mfn(pfn); in xen_do_pin()
1320 unsigned long mfn; in __xen_write_cr3() local
1327 mfn = 0; in __xen_write_cr3()
1329 WARN_ON(mfn == 0 && kernel); in __xen_write_cr3()
1332 op.arg1.mfn = mfn; in __xen_write_cr3()
2240 unsigned long mfn; in xen_remap_exchanged_ptes() local
2251 mfn = mfns[i]; in xen_remap_exchanged_ptes()
[all …]
H A Denlighten_pv.c162 var[reg].base_lo |= op.u.read_memtype.mfn << PAGE_SHIFT; in xen_set_mtrr_data()
163 var[reg].base_hi = op.u.read_memtype.mfn >> (32 - PAGE_SHIFT); in xen_set_mtrr_data()
516 unsigned long pfn, mfn; in xen_load_gdt() local
536 mfn = pfn_to_mfn(pfn); in xen_load_gdt()
542 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt()
553 unsigned long pfn, mfn; in xen_load_gdt_boot() local
561 mfn = pfn_to_mfn(pfn); in xen_load_gdt_boot()
568 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt_boot()
1485 xen_start_info->console.domU.mfn = 0; in xen_start_kernel()
H A Dxen-ops.h198 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
/linux/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()
/linux/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 Dgtt.h250 unsigned long mfn; member
H A Dgtt.c745 dma_unmap_page(kdev, spt->shadow_page.mfn << I915_GTT_PAGE_SHIFT, 4096, in ppgtt_free_spt()
748 radix_tree_delete(&spt->vgpu->gtt.spt_tree, spt->shadow_page.mfn); in ppgtt_free_spt()
815 struct intel_vgpu *vgpu, unsigned long mfn) in intel_vgpu_find_spt_by_mfn() argument
817 return radix_tree_lookup(&vgpu->gtt.spt_tree, mfn); in intel_vgpu_find_spt_by_mfn()
857 spt->shadow_page.mfn = daddr >> I915_GTT_PAGE_SHIFT; in ppgtt_alloc_spt()
859 ret = radix_tree_insert(&vgpu->gtt.spt_tree, spt->shadow_page.mfn, spt); in ppgtt_alloc_spt()
898 trace_spt_alloc(vgpu->id, spt, type, spt->shadow_page.mfn, gfn); in ppgtt_alloc_spt_gfn()
1146 ops->set_pfn(se, s->shadow_page.mfn); in ppgtt_generate_shadow_entry()
1189 ops->set_pfn(se, sub_spt->shadow_page.mfn); in split_2MB_gtt_entry()
/linux/include/xen/
H A Dxen-ops.h151 unsigned long addr, xen_pfn_t *mfn, in xen_remap_domain_mfn_array() argument
158 return xen_remap_pfn(vma, addr, mfn, nr, err_ptr, prot, domid, in xen_remap_domain_mfn_array()
/linux/include/xen/interface/
H A Dxen.h346 xen_pfn_t mfn; member
630 xen_pfn_t mfn; /* MACHINE page number of console page. */ member
H A Dvcpu.h156 uint64_t mfn; /* mfn of page to place vcpu_info */ member
H A Dplatform.h49 xen_pfn_t mfn; member
79 xen_pfn_t mfn; member
H A Dgrant_table.h357 xen_pfn_t mfn; member
/linux/sound/soc/fsl/
H A Dfsl_xcvr.c60 u32 mfn; /* signed int, 2's compl., min=0x3FFF0000, max=0x00010000 */ member
64 { .mfi = 54, .mfn = 1, .mfd = 6, .fout = 1300000000, }, /* 1.3 GHz */
65 { .mfi = 32, .mfn = 96, .mfd = 125, .fout = 786432000, }, /* 8000 Hz */
66 { .mfi = 30, .mfn = 66, .mfd = 625, .fout = 722534400, }, /* 11025 Hz */
67 { .mfi = 29, .mfn = 1, .mfd = 6, .fout = 700000000, }, /* 700 MHz */
310 fsl_xcvr_ai_write(xcvr, FSL_XCVR_PLL_NUM, fsl_xcvr_pll_cfg[i].mfn, 0); in fsl_xcvr_en_phy_pll()
347 val = fsl_xcvr_pll_cfg[i].mfn << FSL_XCVR_GP_PLL_NUMERATOR_MFN_SHIFT; in fsl_xcvr_en_phy_pll()
381 fsl_xcvr_pll_cfg[i].mfn, fsl_xcvr_pll_cfg[i].mfd, div, log2); in fsl_xcvr_en_phy_pll()
/linux/include/uapi/xen/
H A Dprivcmd.h52 __u64 mfn; member

12