Home
last modified time | relevance | path

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

/linux-4.1.27/arch/x86/include/asm/xen/
Dpage.h49 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
109 mfn = __pfn_to_mfn(pfn); in pfn_to_mfn()
111 if (mfn != INVALID_P2M_ENTRY) in pfn_to_mfn()
112 mfn &= ~(FOREIGN_FRAME_BIT | IDENTITY_FRAME_BIT); in pfn_to_mfn()
[all …]
/linux-4.1.27/arch/arm/include/asm/xen/
Dpage.h40 unsigned long mfn; in pfn_to_mfn() local
43 mfn = __pfn_to_mfn(pfn); in pfn_to_mfn()
44 if (mfn != INVALID_P2M_ENTRY) in pfn_to_mfn()
45 return mfn; in pfn_to_mfn()
51 static inline unsigned long mfn_to_pfn(unsigned long mfn) in mfn_to_pfn() argument
53 return mfn; in mfn_to_pfn()
56 #define mfn_to_local_pfn(mfn) mfn_to_pfn(mfn) argument
98 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
99 bool __set_phys_to_machine_multi(unsigned long pfn, unsigned long mfn,
102 static inline bool set_phys_to_machine(unsigned long pfn, unsigned long mfn) in set_phys_to_machine() argument
[all …]
/linux-4.1.27/arch/arm/mach-imx/
Dclk-pllv1.c33 static inline bool mfn_is_negative(unsigned int mfn) in mfn_is_negative() argument
35 return !cpu_is_mx1() && !cpu_is_mx21() && (mfn & MFN_SIGN); in mfn_is_negative()
44 unsigned int mfi, mfn, mfd, pd; in clk_pllv1_recalc_rate() local
61 mfn = reg & 0x3ff; in clk_pllv1_recalc_rate()
67 mfn_abs = mfn; in clk_pllv1_recalc_rate()
74 if (mfn_is_negative(mfn)) { in clk_pllv1_recalc_rate()
76 mfn_abs = mfn & MFN_MASK; in clk_pllv1_recalc_rate()
78 mfn_abs = BIT(MFN_BITS) - mfn; in clk_pllv1_recalc_rate()
88 if (mfn_is_negative(mfn)) in clk_pllv1_recalc_rate()
Dclk-pllv2.c80 long mfi, mfn, mfd, pdf, ref_clk, mfn_abs; in __clk_pllv2_recalc_rate() local
90 mfn = mfn_abs = dp_mfn & MXC_PLL_DP_MFN_MASK; in __clk_pllv2_recalc_rate()
92 if (mfn >= 0x04000000) { in __clk_pllv2_recalc_rate()
93 mfn |= 0xFC000000; in __clk_pllv2_recalc_rate()
94 mfn_abs = -mfn; in __clk_pllv2_recalc_rate()
104 if (mfn < 0) in __clk_pllv2_recalc_rate()
132 long mfi, pdf, mfn, mfd = 999999; in __clk_pllv2_set_rate() local
146 mfn = (long)temp64; in __clk_pllv2_set_rate()
152 *dp_mfn = mfn; in __clk_pllv2_set_rate()
Dclk-pllv3.c203 u32 mfn = readl_relaxed(pll->base + PLL_NUM_OFFSET); in clk_pllv3_av_recalc_rate() local
207 return (parent_rate * div) + ((parent_rate / mfd) * mfn); in clk_pllv3_av_recalc_rate()
217 u32 mfn, mfd = 1000000; in clk_pllv3_av_round_rate() local
229 mfn = temp64; in clk_pllv3_av_round_rate()
231 return parent_rate * div + parent_rate / mfd * mfn; in clk_pllv3_av_round_rate()
241 u32 mfn, mfd = 1000000; in clk_pllv3_av_set_rate() local
251 mfn = temp64; in clk_pllv3_av_set_rate()
257 writel_relaxed(mfn, pll->base + PLL_NUM_OFFSET); in clk_pllv3_av_set_rate()
/linux-4.1.27/arch/arm/xen/
Dp2m.c22 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()
Denlighten.c58 xen_pfn_t *mfn, int nr, in xen_remap_domain_mfn_array() argument
63 return xen_xlate_remap_gfn_array(vma, addr, mfn, nr, err_ptr, in xen_remap_domain_mfn_array()
71 xen_pfn_t mfn, int nr, in xen_remap_domain_mfn_range() argument
96 info.mfn = __pa(vcpup) >> PAGE_SHIFT; in xen_percpu_init()
Dmm.c142 unsigned long mfn) in xen_arch_need_swiotlb() argument
144 return (!hypercall_cflush && (pfn != mfn) && !is_device_dma_coherent(dev)); in xen_arch_need_swiotlb()
/linux-4.1.27/arch/x86/xen/
Dp2m.c196 unsigned long pfn, mfn; in xen_build_mfn_list_list() local
228 mfn = pte_mfn(*ptep); in xen_build_mfn_list_list()
251 mid_mfn_p[mididx] = mfn; in xen_build_mfn_list_list()
291 unsigned long mfn; in xen_p2m_elem_type() local
296 mfn = xen_p2m_addr[pfn]; in xen_p2m_elem_type()
298 if (mfn == INVALID_P2M_ENTRY) in xen_p2m_elem_type()
301 if (mfn & IDENTITY_FRAME_BIT) in xen_p2m_elem_type()
618 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn) in __set_phys_to_machine() argument
628 BUG_ON(mfn != INVALID_P2M_ENTRY); in __set_phys_to_machine()
632 if (likely(!xen_safe_write_ulong(xen_p2m_addr + pfn, mfn))) in __set_phys_to_machine()
[all …]
Dsetup.c205 static int __init xen_free_mfn(unsigned long mfn) in xen_free_mfn() argument
213 set_xen_guest_handle(reservation.extent_start, &mfn); in xen_free_mfn()
234 unsigned long mfn = pfn_to_mfn(pfn); in xen_set_identity_and_release_chunk() local
237 if (mfn == INVALID_P2M_ENTRY || mfn_to_pfn(mfn) != pfn) in xen_set_identity_and_release_chunk()
240 ret = xen_free_mfn(mfn); in xen_set_identity_and_release_chunk()
257 static void __init xen_update_mem_tables(unsigned long pfn, unsigned long mfn) in xen_update_mem_tables() argument
260 .ptr = ((uint64_t)mfn << PAGE_SHIFT) | MMU_MACHPHYS_UPDATE, in xen_update_mem_tables()
265 if (!set_phys_to_machine(pfn, mfn)) { in xen_update_mem_tables()
267 pfn, mfn); in xen_update_mem_tables()
274 mfn, pfn); in xen_update_mem_tables()
[all …]
Dsuspend.c20 xen_start_info->console.domU.mfn = in xen_pv_pre_suspend()
21 mfn_to_pfn(xen_start_info->console.domU.mfn); in xen_pv_pre_suspend()
56 xen_start_info->console.domU.mfn = in xen_pv_post_suspend()
57 pfn_to_mfn(xen_start_info->console.domU.mfn); in xen_pv_post_suspend()
Dmmu.c288 void set_pte_mfn(unsigned long vaddr, unsigned long mfn, pgprot_t flags) in set_pte_mfn() argument
290 set_pte_vaddr(vaddr, mfn_pte(mfn, flags)); in set_pte_mfn()
369 unsigned long mfn = (val & PTE_PFN_MASK) >> PAGE_SHIFT; in pte_mfn_to_pfn() local
370 unsigned long pfn = mfn_to_pfn(mfn); in pte_mfn_to_pfn()
387 unsigned long mfn; in pte_pfn_to_mfn() local
390 mfn = __pfn_to_mfn(pfn); in pte_pfn_to_mfn()
392 mfn = pfn; in pte_pfn_to_mfn()
399 if (unlikely(mfn == INVALID_P2M_ENTRY)) { in pte_pfn_to_mfn()
400 mfn = 0; in pte_pfn_to_mfn()
403 mfn &= ~(FOREIGN_FRAME_BIT | IDENTITY_FRAME_BIT); in pte_pfn_to_mfn()
[all …]
Dmmu.h14 bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
Denlighten.c213 info.mfn = arbitrary_virt_to_mfn(vcpup); in xen_vcpu_setup()
606 unsigned long pfn, mfn; in xen_load_gdt() local
620 mfn = pfn_to_mfn(pfn); in xen_load_gdt()
623 frames[f] = mfn; in xen_load_gdt()
654 unsigned long pfn, mfn; in xen_load_gdt_boot() local
657 mfn = pfn_to_mfn(pfn); in xen_load_gdt_boot()
664 frames[f] = mfn; in xen_load_gdt_boot()
1687 xen_start_info->console.domU.mfn = 0; in xen_start_kernel()
/linux-4.1.27/arch/powerpc/boot/
Dmpc8xx.c27 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.1.27/drivers/tty/hvc/
Dhvc_xen.c203 unsigned long mfn; in xen_hvm_console_init() local
232 mfn = v; in xen_hvm_console_init()
233 info->intf = xen_remap(mfn << PAGE_SHIFT, PAGE_SIZE); in xen_hvm_console_init()
268 info->intf = mfn_to_virt(xen_start_info->console.domU.mfn); in xen_pv_console_init()
377 unsigned long mfn; in xencons_connect_backend() local
393 mfn = virt_to_mfn(info->intf); in xencons_connect_backend()
395 mfn = __pa(info->intf) >> PAGE_SHIFT; in xencons_connect_backend()
404 mfn, 0); in xencons_connect_backend()
/linux-4.1.27/drivers/xen/
Dxlate_mmu.c98 xen_pfn_t *mfn, int nr, in xen_xlate_remap_gfn_array() argument
111 data.fgmfn = mfn; in xen_xlate_remap_gfn_array()
Dprivcmd.c221 msg->mfn, msg->npages, in mmap_mfn_range()
350 xen_pfn_t mfn; in mmap_return_error() local
352 ret = get_user(mfn, st->user_mfn); in mmap_return_error()
360 mfn |= (err == -ENOENT) ? in mmap_return_error()
363 return __put_user(mfn, st->user_mfn++); in mmap_return_error()
Dswiotlb-xen.c85 unsigned long mfn = pfn_to_mfn(PFN_DOWN(paddr)); in xen_phys_to_bus() local
86 dma_addr_t dma = (dma_addr_t)mfn << PAGE_SHIFT; in xen_phys_to_bus()
141 unsigned long mfn = PFN_DOWN(dma_addr); in is_xen_swiotlb_buffer() local
142 unsigned long pfn = mfn_to_local_pfn(mfn); in is_xen_swiotlb_buffer()
/linux-4.1.27/include/uapi/xen/
Dprivcmd.h47 __u64 mfn; member
/linux-4.1.27/include/xen/interface/
Dvcpu.h167 uint64_t mfn; /* mfn of page to place vcpu_info */ member
Dxen.h359 xen_pfn_t mfn; member
623 xen_pfn_t mfn; /* MACHINE page number of console page. */ member
Dplatform.h57 xen_pfn_t mfn; member
87 xen_pfn_t mfn; member
Dgrant_table.h341 xen_pfn_t mfn; member
Dxen-mca.h151 uint64_t mfn; member
/linux-4.1.27/drivers/scsi/
Dxen-scsifront.c380 unsigned long mfn; in map_data_for_request() local
423 mfn = pfn_to_mfn(page_to_pfn(page)); in map_data_for_request()
425 info->dev->otherend_id, mfn, 1); in map_data_for_request()
457 mfn = pfn_to_mfn(page_to_pfn(page)); in map_data_for_request()
459 info->dev->otherend_id, mfn, grant_ro); in map_data_for_request()
/linux-4.1.27/block/
Dblk-settings.c176 void blk_queue_make_request(struct request_queue *q, make_request_fn *mfn) in blk_queue_make_request() argument
183 q->make_request_fn = mfn; in blk_queue_make_request()