Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/arch/powerpc/include/asm/vdso/
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-6.3-rc2/tools/testing/selftests/powerpc/benchmarks/
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-6.3-rc2/arch/powerpc/kvm/
A Dbook3s_hv_ras.c156 u64 new_tb = mftb() - vc->tb_offset_applied; in kvmppc_p9_realmode_hmi_handler()
158 if ((mftb() & 0xffffff) < (new_tb & 0xffffff)) { in kvmppc_p9_realmode_hmi_handler()
177 u64 new_tb = mftb() + vc->tb_offset; in kvmppc_p9_realmode_hmi_handler()
179 if ((mftb() & 0xffffff) < (new_tb & 0xffffff)) { in kvmppc_p9_realmode_hmi_handler()
A Dbook3s_hv_interrupts.S72 mftb r7
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()
A Dbook3s_hv_rmhandlers.S113 mftb r4
583 mftb r6 /* current host timebase */
586 mftb r7 /* check if lower 24 bits overflowed */
827 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 …]
A Dbook3s_hv.c330 now = mftb(); in kvmppc_core_vcpu_load_hv()
368 vcpu->arch.busy_preempt = mftb(); in kvmppc_core_vcpu_put_hv()
372 now = mftb(); in kvmppc_core_vcpu_put_hv()
782 now = mftb(); in kvmppc_update_vpa_dispatch()
3364 kvmppc_core_start_stolen(vc, mftb()); in kvmppc_vcore_preempt()
3373 kvmppc_core_end_stolen(vc, mftb()); in kvmppc_vcore_end_preempt()
3519 kvmppc_core_end_stolen(pvc, mftb()); in collect_piggybacks()
3528 kvmppc_core_end_stolen(pvc, mftb()); in collect_piggybacks()
3604 kvmppc_core_start_stolen(vc, mftb()); in post_guest_process()
4100 *tb = mftb(); in kvmhv_vcpu_entry_p9_nested()
[all …]
/linux-6.3-rc2/arch/powerpc/include/asm/
A Dcputime.h60 unsigned long tb = mftb(); in account_cpu_user_entry()
69 unsigned long tb = mftb(); in account_cpu_user_exit()
A Dtimex.h20 return mftb(); in get_cycles()
A Ddelay.h57 unsigned long __start = mftb(); \
A Dtime.h84 return mftb() - tstamp; in tb_ticks_since()
/linux-6.3-rc2/drivers/spi/
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()
/linux-6.3-rc2/arch/powerpc/platforms/pseries/
A DhvCall_inst.c94 h->tb_start = mftb(); in probe_hcall_entry()
108 h->tb_total += mftb() - h->tb_start; in probe_hcall_exit()
A Dlparcfg.c538 seq_printf(m, "tbr=%ld\n", mftb()); in pseries_lparcfg_data()
/linux-6.3-rc2/arch/powerpc/platforms/52xx/
A Dmpc52xx_lpbfifo.c239 ts = mftb(); in mpc52xx_lpbfifo_irq()
317 req->irq_ticks += mftb() - ts; in mpc52xx_lpbfifo_irq()
344 ts = mftb(); in mpc52xx_lpbfifo_bcom_irq()
375 req->irq_ticks += mftb() - ts; in mpc52xx_lpbfifo_bcom_irq()
A Dlite5200_sleep.S186 mftb r13 /* start */
189 mftb r13 /* current */
/linux-6.3-rc2/arch/powerpc/boot/
A Dppc_asm.h80 #define MFTBL(dest) mftb dest
/linux-6.3-rc2/arch/powerpc/mm/book3s64/
A Dhash_64k.c197 if (soft_invalid || (mftb() & 0x1)) in __hash_page_4K()
312 if (mftb() & 0x1) in __hash_page_64K()
A Dhash_4k.c101 if (mftb() & 0x1) in __hash_page_4K()
A Dhash_hugepage.c152 if (mftb() & 0x1) in __hash_page_thp()
/linux-6.3-rc2/arch/powerpc/platforms/85xx/
A Dsmp.c394 long start = mftb(); in mpc85xx_smp_kexec_cpu_down()
419 now = mftb(); in mpc85xx_smp_kexec_cpu_down()
/linux-6.3-rc2/arch/powerpc/kernel/
A Dsyscall.c186 choose_random_kstack_offset(mftb()); in system_call_exception()
A Dtime.c218 now = mftb(); in vtime_delta()
372 start = mftb(); in __delay()
373 while (mftb() - start < loops) in __delay()
A Dswsusp_32.S77 mftb r5
/linux-6.3-rc2/arch/powerpc/platforms/powermac/
A Dsleep.S85 mftb r5

Completed in 176 milliseconds

12