Home
last modified time | relevance | path

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

12

/openbmc/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()
/openbmc/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()
/openbmc/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()
H A Dbook3s_hv_rmhandlers.S113 mftb r4
582 mftb r6 /* current host timebase */
585 mftb r7 /* check if lower 24 bits overflowed */
826 mftb r7
1198 mftb r6
1458 mftb r6 /* current guest timebase */
1461 mftb r7 /* check if lower 24 bits overflowed */
2148 mftb r5
2254 mftb r7
2983 mftb r5
[all …]
H A Dbook3s_hv.c333 now = mftb(); in kvmppc_core_vcpu_load_hv()
371 vcpu->arch.busy_preempt = mftb(); in kvmppc_core_vcpu_put_hv()
375 now = mftb(); in kvmppc_core_vcpu_put_hv()
785 now = mftb(); in kvmppc_update_vpa_dispatch()
3392 kvmppc_core_start_stolen(vc, mftb()); in kvmppc_vcore_preempt()
3401 kvmppc_core_end_stolen(vc, mftb()); in kvmppc_vcore_end_preempt()
3547 kvmppc_core_end_stolen(pvc, mftb()); in collect_piggybacks()
3556 kvmppc_core_end_stolen(pvc, mftb()); in collect_piggybacks()
3632 kvmppc_core_start_stolen(vc, mftb()); in post_guest_process()
4128 *tb = mftb(); in kvmhv_vcpu_entry_p9_nested()
[all …]
/openbmc/linux/arch/powerpc/include/asm/
H A Dcputime.h60 unsigned long tb = mftb(); in account_cpu_user_entry()
69 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.h84 return mftb() - tstamp; in tb_ticks_since()
/openbmc/linux/drivers/spi/
H A Dspi-mpc52xx.c128 ms->wcol_tx_timestamp = mftb(); in mpc52xx_spi_start_transfer()
229 ms->wcol_ticks += mftb() - ms->wcol_tx_timestamp; in mpc52xx_spi_fsmstate_transfer()
230 ms->wcol_tx_timestamp = mftb(); in mpc52xx_spi_fsmstate_transfer()
255 ms->timestamp = mftb(); in mpc52xx_spi_fsmstate_transfer()
264 ms->wcol_tx_timestamp = mftb(); in mpc52xx_spi_fsmstate_transfer()
286 if (((int)mftb()) - ms->timestamp < 0) in mpc52xx_spi_fsmstate_wait()
/openbmc/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()
/openbmc/u-boot/drivers/timer/
H A Dmpc83xx_timer.c78 static inline u32 mftb(void) in mftb() function
199 tbl = mftb(); in mpc83xx_timer_get_count()
/openbmc/u-boot/arch/powerpc/lib/
H A Dticks.S22 mftb r4
/openbmc/linux/arch/powerpc/boot/
H A Dppc_asm.h80 #define MFTBL(dest) mftb dest
/openbmc/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_hugepage.c152 if (mftb() & 0x1) in __hash_page_thp()
/openbmc/linux/arch/powerpc/platforms/85xx/
H A Dsmp.c394 long start = mftb(); in mpc85xx_smp_kexec_cpu_down()
419 now = mftb(); in mpc85xx_smp_kexec_cpu_down()
/openbmc/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()
372 start = mftb(); in __delay()
373 while (mftb() - start < loops) in __delay()
H A Dswsusp_32.S77 mftb r5
/openbmc/linux/arch/powerpc/platforms/52xx/
H A Dlite5200_sleep.S186 mftb r13 /* start */
189 mftb r13 /* current */
/openbmc/linux/arch/powerpc/platforms/powermac/
H A Dsleep.S85 mftb r5

12