/linux-4.4.14/arch/x86/include/asm/xen/ |
D | page.h | 49 extern bool set_phys_to_machine(unsigned long pfn, unsigned long mfn); 50 extern bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn); 87 unsigned long mfn; in __pfn_to_mfn() local 90 mfn = xen_p2m_addr[pfn]; in __pfn_to_mfn() 96 if (unlikely(mfn == INVALID_P2M_ENTRY)) in __pfn_to_mfn() 99 return mfn; in __pfn_to_mfn() 104 unsigned long mfn; in pfn_to_mfn() local 114 mfn = __pfn_to_mfn(pfn); in pfn_to_mfn() 116 if (mfn != INVALID_P2M_ENTRY) in pfn_to_mfn() 117 mfn &= ~(FOREIGN_FRAME_BIT | IDENTITY_FRAME_BIT); in pfn_to_mfn() [all …]
|
/linux-4.4.14/arch/arm/include/asm/xen/ |
D | page.h | 59 unsigned long mfn; in pfn_to_bfn() local 62 mfn = __pfn_to_mfn(pfn); in pfn_to_bfn() 63 if (mfn != INVALID_P2M_ENTRY) in pfn_to_bfn() 64 return mfn; in pfn_to_bfn() 105 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn); 106 bool __set_phys_to_machine_multi(unsigned long pfn, unsigned long mfn, 109 static inline bool set_phys_to_machine(unsigned long pfn, unsigned long mfn) in set_phys_to_machine() argument 111 return __set_phys_to_machine(pfn, mfn); in set_phys_to_machine()
|
/linux-4.4.14/drivers/clk/imx/ |
D | clk-pllv1.c | 46 static inline bool mfn_is_negative(struct clk_pllv1 *pll, unsigned int mfn) in mfn_is_negative() argument 48 return !is_imx1_pllv1(pll) && !is_imx21_pllv1(pll) && (mfn & MFN_SIGN); in mfn_is_negative() 57 unsigned int mfi, mfn, mfd, pd; in clk_pllv1_recalc_rate() local 74 mfn = reg & 0x3ff; in clk_pllv1_recalc_rate() 80 mfn_abs = mfn; in clk_pllv1_recalc_rate() 87 if (mfn_is_negative(pll, mfn)) { in clk_pllv1_recalc_rate() 89 mfn_abs = mfn & MFN_MASK; in clk_pllv1_recalc_rate() 91 mfn_abs = BIT(MFN_BITS) - mfn; in clk_pllv1_recalc_rate() 101 if (mfn_is_negative(pll, mfn)) in clk_pllv1_recalc_rate()
|
D | clk-pllv2.c | 80 long mfi, mfn, mfd, pdf, ref_clk; in __clk_pllv2_recalc_rate() local 90 mfn = dp_mfn & MXC_PLL_DP_MFN_MASK; in __clk_pllv2_recalc_rate() 91 mfn = sign_extend32(mfn, 26); in __clk_pllv2_recalc_rate() 98 temp = (u64) ref_clk * abs(mfn); in __clk_pllv2_recalc_rate() 100 if (mfn < 0) in __clk_pllv2_recalc_rate() 129 long mfi, pdf, mfn, mfd = 999999; in __clk_pllv2_set_rate() local 143 mfn = (long)temp64; in __clk_pllv2_set_rate() 149 *dp_mfn = mfn; in __clk_pllv2_set_rate()
|
D | clk-pllv3.c | 205 u32 mfn = readl_relaxed(pll->base + PLL_NUM_OFFSET); in clk_pllv3_av_recalc_rate() local 209 return (parent_rate * div) + ((parent_rate / mfd) * mfn); in clk_pllv3_av_recalc_rate() 219 u32 mfn, mfd = 1000000; in clk_pllv3_av_round_rate() local 231 mfn = temp64; in clk_pllv3_av_round_rate() 233 return parent_rate * div + parent_rate / mfd * mfn; in clk_pllv3_av_round_rate() 243 u32 mfn, mfd = 1000000; in clk_pllv3_av_set_rate() local 253 mfn = temp64; in clk_pllv3_av_set_rate() 259 writel_relaxed(mfn, pll->base + PLL_NUM_OFFSET); in clk_pllv3_av_set_rate()
|
/linux-4.4.14/arch/arm/xen/ |
D | p2m.c | 22 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() 154 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()
|
D | enlighten.c | 100 info.mfn = virt_to_gfn(vcpup); in xen_percpu_init()
|
/linux-4.4.14/arch/x86/xen/ |
D | p2m.c | 210 unsigned long pfn, mfn; in xen_build_mfn_list_list() local 243 mfn = pte_mfn(*ptep); in xen_build_mfn_list_list() 266 mid_mfn_p[mididx] = mfn; in xen_build_mfn_list_list() 313 unsigned long mfn; in xen_p2m_elem_type() local 318 mfn = xen_p2m_addr[pfn]; in xen_p2m_elem_type() 320 if (mfn == INVALID_P2M_ENTRY) in xen_p2m_elem_type() 323 if (mfn & IDENTITY_FRAME_BIT) in xen_p2m_elem_type() 658 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine() argument 668 BUG_ON(mfn != INVALID_P2M_ENTRY); in __set_phys_to_machine() 677 if (likely(!xen_safe_write_ulong(xen_p2m_addr + pfn, mfn))) in __set_phys_to_machine() [all …]
|
D | setup.c | 235 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 …]
|
D | suspend.c | 22 xen_start_info->console.domU.mfn = in xen_pv_pre_suspend() 23 mfn_to_pfn(xen_start_info->console.domU.mfn); in xen_pv_pre_suspend() 58 xen_start_info->console.domU.mfn = in xen_pv_post_suspend() 59 pfn_to_mfn(xen_start_info->console.domU.mfn); in xen_pv_post_suspend()
|
D | mmu.c | 289 void set_pte_mfn(unsigned long vaddr, unsigned long mfn, pgprot_t flags) in set_pte_mfn() argument 291 set_pte_vaddr(vaddr, mfn_pte(mfn, flags)); in set_pte_mfn() 370 unsigned long mfn = (val & PTE_PFN_MASK) >> PAGE_SHIFT; in pte_mfn_to_pfn() local 371 unsigned long pfn = mfn_to_pfn(mfn); in pte_mfn_to_pfn() 388 unsigned long mfn; in pte_pfn_to_mfn() local 391 mfn = __pfn_to_mfn(pfn); in pte_pfn_to_mfn() 393 mfn = pfn; in pte_pfn_to_mfn() 400 if (unlikely(mfn == INVALID_P2M_ENTRY)) { in pte_pfn_to_mfn() 401 mfn = 0; in pte_pfn_to_mfn() 404 mfn &= ~(FOREIGN_FRAME_BIT | IDENTITY_FRAME_BIT); in pte_pfn_to_mfn() [all …]
|
D | mmu.h | 14 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
|
D | enlighten.c | 215 info.mfn = arbitrary_virt_to_mfn(vcpup); in xen_vcpu_setup() 608 unsigned long pfn, mfn; in xen_load_gdt() local 622 mfn = pfn_to_mfn(pfn); in xen_load_gdt() 625 frames[f] = mfn; in xen_load_gdt() 656 unsigned long pfn, mfn; in xen_load_gdt_boot() local 659 mfn = pfn_to_mfn(pfn); in xen_load_gdt_boot() 666 frames[f] = mfn; in xen_load_gdt_boot() 1700 xen_start_info->console.domU.mfn = 0; in xen_start_kernel()
|
/linux-4.4.14/arch/powerpc/boot/ |
D | mpc8xx.c | 27 int mfi, mfn, mfd, pdf, div; in mpc885_get_clock() local 48 mfn = (plprcr >> 27) & 0x1f; in mpc885_get_clock() 52 if (mfn != 0) in mpc885_get_clock() 53 ret += crystal * mfn / (mfd + 1); in mpc885_get_clock()
|
/linux-4.4.14/include/uapi/xen/ |
D | privcmd.h | 51 __u64 mfn; member
|
/linux-4.4.14/include/xen/interface/ |
D | vcpu.h | 167 uint64_t mfn; /* mfn of page to place vcpu_info */ member
|
D | xen.h | 361 xen_pfn_t mfn; member 628 xen_pfn_t mfn; /* MACHINE page number of console page. */ member
|
D | platform.h | 57 xen_pfn_t mfn; member 87 xen_pfn_t mfn; member
|
D | grant_table.h | 341 xen_pfn_t mfn; member
|
D | xen-mca.h | 151 uint64_t mfn; member
|
/linux-4.4.14/block/ |
D | blk-settings.c | 158 void blk_queue_make_request(struct request_queue *q, make_request_fn *mfn) in blk_queue_make_request() argument 165 q->make_request_fn = mfn; in blk_queue_make_request()
|
/linux-4.4.14/drivers/xen/ |
D | privcmd.c | 221 msg->mfn, msg->npages, in mmap_gfn_range()
|
/linux-4.4.14/drivers/tty/hvc/ |
D | hvc_xen.c | 269 info->intf = gfn_to_virt(xen_start_info->console.domU.mfn); in xen_pv_console_init()
|