Home
last modified time | relevance | path

Searched refs:mftb (Results 1 – 25 of 26) sorted by relevance

12

/linux/arch/powerpc/include/asm/vdso/
H A Dtimebase.h16 #define mftb() ({unsigned long rval; \ macro
26 #define mftb() ({unsigned long rval; \ macro
29 #define mftb() ({unsigned long rval; \ macro
55 return mftb(); in get_tb()
59 tblo = mftb(); in get_tb()
/linux/tools/testing/selftests/powerpc/benchmarks/
H A Dnull_syscall.c25 static inline unsigned long mftb(void) in mftb() function
139 tb_start = mftb(); in main()
144 tb_now = mftb(); in main()
/linux/arch/powerpc/kvm/
H A Dbook3s_hv_ras.c157 u64 new_tb = mftb() - vc->tb_offset_applied; in kvmppc_p9_realmode_hmi_handler()
159 if ((mftb() & 0xffffff) < (new_tb & 0xffffff)) { in kvmppc_p9_realmode_hmi_handler()
178 u64 new_tb = mftb() + vc->tb_offset; in kvmppc_p9_realmode_hmi_handler()
180 if ((mftb() & 0xffffff) < (new_tb & 0xffffff)) { in kvmppc_p9_realmode_hmi_handler()
H A Dbook3s_hv_interrupts.S72 mftb r7
H A Dbook3s_hv_p9_entry.c224 u64 tb = mftb() - vc->tb_offset_applied; in accumulate_time()
599 if ((mftb() & 0xffffff) < (new_tb & 0xffffff)) { in kvmhv_vcpu_entry_p9()
848 *tb = mftb(); in kvmhv_vcpu_entry_p9()
854 if ((mftb() & 0xffffff) < (new_tb & 0xffffff)) { in kvmhv_vcpu_entry_p9()
/linux/arch/powerpc/include/asm/
H A Dcputime.h47 unsigned long tb = mftb(); in account_cpu_user_entry()
56 unsigned long tb = mftb(); in account_cpu_user_exit()
H A Dtimex.h20 return mftb(); in get_cycles()
H A Ddelay.h57 unsigned long __start = mftb(); \
H A Dtime.h83 return mftb() - tstamp; in tb_ticks_since()
H A Dppc_asm.h456 #define MFTBL(dest) mftb dest
/linux/drivers/spi/
H A Dspi-mpc52xx.c129 ms->wcol_tx_timestamp = mftb(); in mpc52xx_spi_start_transfer()
230 ms->wcol_ticks += mftb() - ms->wcol_tx_timestamp; in mpc52xx_spi_fsmstate_transfer()
231 ms->wcol_tx_timestamp = mftb(); in mpc52xx_spi_fsmstate_transfer()
256 ms->timestamp = mftb(); in mpc52xx_spi_fsmstate_transfer()
265 ms->wcol_tx_timestamp = mftb(); in mpc52xx_spi_fsmstate_transfer()
287 if (((int)mftb()) - ms->timestamp < 0) in mpc52xx_spi_fsmstate_wait()
/linux/arch/powerpc/platforms/pseries/
H A DhvCall_inst.c94 h->tb_start = mftb(); in probe_hcall_entry()
108 h->tb_total += mftb() - h->tb_start; in probe_hcall_exit()
H A Dlparcfg.c562 seq_printf(m, "tbr=%ld\n", mftb()); in pseries_lparcfg_data()
/linux/arch/powerpc/boot/
H A Dppc_asm.h80 #define MFTBL(dest) mftb dest
/linux/arch/powerpc/mm/book3s64/
H A Dhash_64k.c197 if (soft_invalid || (mftb() & 0x1)) in __hash_page_4K()
312 if (mftb() & 0x1) in __hash_page_64K()
H A Dhash_4k.c101 if (mftb() & 0x1) in __hash_page_4K()
H A Dhash_utils.c2315 if (mftb() & 0x1) in hpte_insert_repeating()
/linux/arch/powerpc/kernel/
H A Dsyscall.c186 choose_random_kstack_offset(mftb()); in system_call_exception()
H A Dtime.c218 now = mftb(); in vtime_delta()
394 start = mftb(); in __delay()
395 while (mftb() - start < loops) in __delay()
H A Dswsusp_32.S77 mftb r5
/linux/arch/powerpc/platforms/52xx/
H A Dlite5200_sleep.S186 mftb r13 /* start */
189 mftb r13 /* current */
/linux/arch/powerpc/platforms/powermac/
H A Dsleep.S85 mftb r5
/linux/Documentation/arch/powerpc/
H A Delf_hwcaps.rst111 The timebase facility (mftb instruction) is not available.
/linux/arch/powerpc/platforms/83xx/
H A Dsuspend-asm.S205 mftb r5
/linux/tools/testing/selftests/powerpc/primitives/asm/
H A Dppc_asm.h456 #define MFTBL(dest) mftb dest

12