Home
last modified time | relevance | path

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

12

/linux-6.1.9/arch/powerpc/include/asm/vdso/
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.1.9/tools/testing/selftests/powerpc/benchmarks/
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.1.9/arch/powerpc/kvm/
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()
Dbook3s_hv_interrupts.S71 mftb r7
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()
Dbook3s_hv_rmhandlers.S111 mftb r4
581 mftb r6 /* current host timebase */
584 mftb r7 /* check if lower 24 bits overflowed */
825 mftb r7
1196 mftb r6
1456 mftb r6 /* current guest timebase */
1459 mftb r7 /* check if lower 24 bits overflowed */
2144 mftb r5
2250 mftb r7
2972 mftb r5
[all …]
Dbook3s_hv.c324 vc->stolen_tb += mftb() - vcpu->arch.busy_preempt; in kvmppc_core_vcpu_load_hv()
330 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()
3500 kvmppc_remove_runnable(vc, vcpu, mftb()); in prepare_threads()
3519 kvmppc_core_end_stolen(pvc, mftb()); in collect_piggybacks()
3528 kvmppc_core_end_stolen(pvc, mftb()); in collect_piggybacks()
[all …]
/linux-6.1.9/drivers/spi/
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.1.9/arch/powerpc/include/asm/
Dcputime.h75 unsigned long tb = mftb(); in account_cpu_user_entry()
84 unsigned long tb = mftb(); in account_cpu_user_exit()
Dtimex.h20 return mftb(); in get_cycles()
Dstackprotector.h28 canary ^= mftb(); in boot_init_stack_canary()
Ddelay.h57 unsigned long __start = mftb(); \
Dtime.h84 return mftb() - tstamp; in tb_ticks_since()
/linux-6.1.9/arch/powerpc/platforms/pseries/
DhvCall_inst.c94 h->tb_start = mftb(); in probe_hcall_entry()
108 h->tb_total += mftb() - h->tb_start; in probe_hcall_exit()
/linux-6.1.9/arch/powerpc/platforms/52xx/
Dmpc52xx_lpbfifo.c233 ts = mftb(); in mpc52xx_lpbfifo_irq()
311 req->irq_ticks += mftb() - ts; in mpc52xx_lpbfifo_irq()
334 ts = mftb(); in mpc52xx_lpbfifo_bcom_irq()
365 req->irq_ticks += mftb() - ts; in mpc52xx_lpbfifo_bcom_irq()
Dlite5200_sleep.S183 mftb r13 /* start */
186 mftb r13 /* current */
/linux-6.1.9/arch/powerpc/boot/
Dppc_asm.h80 #define MFTBL(dest) mftb dest
/linux-6.1.9/arch/powerpc/mm/book3s64/
Dhash_64k.c195 if (soft_invalid || (mftb() & 0x1)) in __hash_page_4K()
307 if (mftb() & 0x1) in __hash_page_64K()
Dhash_4k.c99 if (mftb() & 0x1) in __hash_page_4K()
Dhash_hugepage.c152 if (mftb() & 0x1) in __hash_page_thp()
/linux-6.1.9/arch/powerpc/platforms/85xx/
Dsmp.c394 long start = mftb(); in mpc85xx_smp_kexec_cpu_down()
419 now = mftb(); in mpc85xx_smp_kexec_cpu_down()
/linux-6.1.9/arch/powerpc/kernel/
Dsyscall.c186 choose_random_kstack_offset(mftb()); in system_call_exception()
Dtime.c233 now = mftb(); in vtime_delta()
390 start = mftb(); in __delay()
391 while (mftb() - start < loops) in __delay()
Dswsusp_32.S75 mftb r5
/linux-6.1.9/arch/powerpc/platforms/powermac/
Dsleep.S85 mftb r5

12