/linux/arch/x86/include/asm/xen/ |
A D | page.h | 143 unsigned long mfn; in __pfn_to_mfn() local 146 mfn = xen_p2m_addr[pfn]; 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() 181 return mfn; in pfn_to_mfn() 222 return mfn; in mfn_to_pfn() 232 if (pfn == ~0 && __pfn_to_mfn(mfn) == IDENTITY_FRAME(mfn)) in mfn_to_pfn() 233 pfn = mfn; in mfn_to_pfn() 296 return mfn; in bfn_to_local_pfn() [all …]
|
/linux/arch/arm/xen/ |
A D | p2m.c | 24 unsigned long mfn; member 59 __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() 150 unsigned long mfn, unsigned long nr_pages) in __set_phys_to_machine_multi() argument 157 if (mfn == INVALID_P2M_ENTRY) { in __set_phys_to_machine_multi() 183 p2m_entry->mfn = mfn; in __set_phys_to_machine_multi() 197 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine() argument 199 return __set_phys_to_machine_multi(pfn, mfn, 1); in __set_phys_to_machine()
|
/linux/drivers/clk/imx/ |
A D | clk-pllv1.c | 48 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()
|
A D | clk-pllv4.c | 78 u32 mult, mfn, mfd; in clk_pllv4_recalc_rate() local 85 mfn = readl_relaxed(pll->base + pll->num_offset); in clk_pllv4_recalc_rate() 88 temp64 *= mfn; in clk_pllv4_recalc_rate() 99 u32 mfn, mfd = DEFAULT_MFD; in clk_pllv4_round_rate() local 123 mfn = temp64; in clk_pllv4_round_rate() 131 if (mfn >= mfd) in clk_pllv4_round_rate() 135 temp64 *= mfn; in clk_pllv4_round_rate() 158 u32 val, mult, mfn, mfd = DEFAULT_MFD; in clk_pllv4_set_rate() local 172 mfn = temp64; in clk_pllv4_set_rate() 179 writel_relaxed(mfn, pll->base + pll->num_offset); in clk_pllv4_set_rate()
|
A D | clk-pllv3.c | 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() 304 u32 mfn; /* numerator, 30-bit value */ member 314 temp64 *= mf.mfn; in clk_pllv3_vf610_mf_to_rate() 330 mf.mfn = 0; in clk_pllv3_vf610_rate_to_mf() 332 mf.mfn = mf.mfd - 1; in clk_pllv3_vf610_rate_to_mf() [all …]
|
A D | clk-pllv2.c | 81 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/include/xen/arm/ |
A D | page.h | 60 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/arch/x86/xen/ |
A D | p2m.c | 219 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() 657 return mfn == INVALID_P2M_ENTRY; in __set_phys_to_machine() 711 unsigned long mfn, pfn; in set_foreign_p2m_mapping() local 723 mfn = pte_mfn(*pte); in set_foreign_p2m_mapping() [all …]
|
A D | setup.c | 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() 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() 312 mfn, pfn); in xen_update_mem_tables() 333 unsigned long mfn_save, mfn; in xen_do_set_identity_and_remap_chunk() local 349 mfn = pfn_to_mfn(ident_pfn_iter); in xen_do_set_identity_and_remap_chunk() 350 set_pte_mfn(buf, mfn, PAGE_KERNEL); in xen_do_set_identity_and_remap_chunk() [all …]
|
A D | suspend_pv.c | 16 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()
|
A D | mmu_pv.c | 336 unsigned long mfn; in pte_pfn_to_mfn() local 338 mfn = __pfn_to_mfn(pfn); in pte_pfn_to_mfn() 347 mfn = 0; in pte_pfn_to_mfn() 671 op.arg1.mfn = pfn_to_mfn(pfn); in xen_do_pin() 1311 unsigned long mfn; in __xen_write_cr3() local 1318 mfn = 0; in __xen_write_cr3() 1320 WARN_ON(mfn == 0 && kernel); in __xen_write_cr3() 1323 op.arg1.mfn = mfn; in __xen_write_cr3() 2217 unsigned long mfn; in xen_remap_exchanged_ptes() local 2228 mfn = mfns[i]; in xen_remap_exchanged_ptes() [all …]
|
A D | enlighten_pv.c | 412 unsigned long pfn, mfn; in xen_load_gdt() local 432 mfn = pfn_to_mfn(pfn); in xen_load_gdt() 438 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt() 449 unsigned long pfn, mfn; in xen_load_gdt_boot() local 457 mfn = pfn_to_mfn(pfn); in xen_load_gdt_boot() 464 if (HYPERVISOR_set_gdt(&mfn, size / sizeof(struct desc_struct))) in xen_load_gdt_boot() 1333 xen_start_info->console.domU.mfn = 0; in xen_start_kernel()
|
A D | mmu.h | 16 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
|
/linux/arch/powerpc/boot/ |
A D | mpc8xx.c | 24 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/ |
A D | trace.h | 43 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,
|
A D | opregion.c | 260 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()
|
A D | mpt.h | 287 unsigned long mfn, unsigned int nr, in intel_gvt_hypervisor_map_gfn_to_mfn() argument 294 return intel_gvt_host.mpt->map_gfn_to_mfn(vgpu->handle, gfn, mfn, nr, in intel_gvt_hypervisor_map_gfn_to_mfn()
|
A D | hypercall.h | 72 unsigned long mfn, unsigned int nr, bool map);
|
A D | gtt.c | 747 dma_unmap_page(kdev, spt->shadow_page.mfn << I915_GTT_PAGE_SHIFT, 4096, in ppgtt_free_spt() 750 radix_tree_delete(&spt->vgpu->gtt.spt_tree, spt->shadow_page.mfn); in ppgtt_free_spt() 817 struct intel_vgpu *vgpu, unsigned long mfn) in intel_vgpu_find_spt_by_mfn() argument 819 return radix_tree_lookup(&vgpu->gtt.spt_tree, mfn); in intel_vgpu_find_spt_by_mfn() 859 spt->shadow_page.mfn = daddr >> I915_GTT_PAGE_SHIFT; in ppgtt_alloc_spt() 861 ret = radix_tree_insert(&vgpu->gtt.spt_tree, spt->shadow_page.mfn, spt); in ppgtt_alloc_spt() 900 trace_spt_alloc(vgpu->id, spt, type, spt->shadow_page.mfn, gfn); in ppgtt_alloc_spt_gfn() 1148 ops->set_pfn(se, s->shadow_page.mfn); in ppgtt_generate_shadow_entry() 1217 ops->set_pfn(se, sub_spt->shadow_page.mfn); in split_2MB_gtt_entry()
|
/linux/include/xen/ |
A D | xen-ops.h | 157 unsigned long addr, xen_pfn_t *mfn, in xen_remap_domain_mfn_array() argument 164 return xen_remap_pfn(vma, addr, mfn, nr, err_ptr, prot, domid, in xen_remap_domain_mfn_array()
|
/linux/include/xen/interface/ |
A D | xen.h | 346 xen_pfn_t mfn; member 630 xen_pfn_t mfn; /* MACHINE page number of console page. */ member
|
A D | vcpu.h | 156 uint64_t mfn; /* mfn of page to place vcpu_info */ member
|
A D | platform.h | 49 xen_pfn_t mfn; member 79 xen_pfn_t mfn; member
|
/linux/sound/soc/fsl/ |
A D | fsl_xcvr.c | 48 u32 mfn; /* signed int, 2's compl., min=0x3FFF0000, max=0x00010000 */ member 52 { .mfi = 54, .mfn = 1, .mfd = 6, .fout = 1300000000, }, /* 1.3 GHz */ 53 { .mfi = 32, .mfn = 96, .mfd = 125, .fout = 786432000, }, /* 8000 Hz */ 54 { .mfi = 30, .mfn = 66, .mfd = 625, .fout = 722534400, }, /* 11025 Hz */ 55 { .mfi = 29, .mfn = 1, .mfd = 6, .fout = 700000000, }, /* 700 MHz */ 291 fsl_xcvr_ai_write(xcvr, FSL_XCVR_PLL_NUM, fsl_xcvr_pll_cfg[i].mfn, 0); in fsl_xcvr_en_phy_pll() 347 fsl_xcvr_pll_cfg[i].mfn, fsl_xcvr_pll_cfg[i].mfd, div, log2); in fsl_xcvr_en_phy_pll()
|
/linux/include/uapi/xen/ |
A D | privcmd.h | 52 __u64 mfn; member
|