Home
last modified time | relevance | path

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

12

/Linux-v5.15/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-v5.15/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-v5.15/arch/powerpc/include/asm/
Dcputime.h74 unsigned long tb = mftb(); in account_cpu_user_entry()
83 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.h81 return mftb() - tstamp; in tb_ticks_since()
/Linux-v5.15/arch/powerpc/kvm/
Dbook3s_hv_p9_entry.c13 u64 tb = mftb() - vc->tb_offset_applied; in __start_timing()
23 u64 tb = mftb() - vc->tb_offset_applied; in __accumulate_time()
206 hdec = time_limit - mftb(); in kvmhv_vcpu_entry_p9()
218 u64 new_tb = mftb() + vc->tb_offset; in kvmhv_vcpu_entry_p9()
220 tb = mftb(); in kvmhv_vcpu_entry_p9()
499 u64 new_tb = mftb() - vc->tb_offset_applied; in kvmhv_vcpu_entry_p9()
501 tb = mftb(); in kvmhv_vcpu_entry_p9()
Dbook3s_hv_interrupts.S71 mftb r7
Dbook3s_hv_rmhandlers.S103 mftb r4
573 mftb r6 /* current host timebase */
576 mftb r7 /* check if lower 24 bits overflowed */
824 mftb r7
1195 mftb r6
1458 mftb r6 /* current guest timebase */
1461 mftb r7 /* check if lower 24 bits overflowed */
2156 mftb r5
2270 mftb r7
3018 mftb r5
[all …]
Dbook3s_hv.c284 vc->preempt_tb = mftb(); in kvmppc_core_start_stolen()
294 vc->stolen_tb += mftb() - vc->preempt_tb; in kvmppc_core_end_stolen()
317 vcpu->arch.busy_stolen += mftb() - vcpu->arch.busy_preempt; in kvmppc_core_vcpu_load_hv()
333 vcpu->arch.busy_preempt = mftb(); in kvmppc_core_vcpu_put_hv()
699 now = mftb(); in kvmppc_create_dtl_entry()
2893 now = mftb(); in kvmppc_remove_runnable()
3865 tb = mftb(); in kvmhv_p9_guest_entry()
3927 mtspr(SPRN_DEC, vcpu->arch.dec_expires - mftb()); in kvmhv_p9_guest_entry()
4006 tb = mftb(); in kvmhv_p9_guest_entry()
4049 mtspr(SPRN_DEC, local_paca->kvm_hstate.dec_expires - mftb()); in kvmhv_p9_guest_entry()
[all …]
/Linux-v5.15/drivers/spi/
Dspi-mpc52xx.c123 ms->wcol_tx_timestamp = mftb(); in mpc52xx_spi_start_transfer()
224 ms->wcol_ticks += mftb() - ms->wcol_tx_timestamp; in mpc52xx_spi_fsmstate_transfer()
225 ms->wcol_tx_timestamp = mftb(); in mpc52xx_spi_fsmstate_transfer()
250 ms->timestamp = mftb(); in mpc52xx_spi_fsmstate_transfer()
259 ms->wcol_tx_timestamp = mftb(); in mpc52xx_spi_fsmstate_transfer()
281 if (((int)mftb()) - ms->timestamp < 0) in mpc52xx_spi_fsmstate_wait()
/Linux-v5.15/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()
Dlparcfg.c507 seq_printf(m, "tbr=%ld\n", mftb()); in pseries_lparcfg_data()
/Linux-v5.15/arch/powerpc/platforms/52xx/
Dmpc52xx_lpbfifo.c232 ts = mftb(); in mpc52xx_lpbfifo_irq()
310 req->irq_ticks += mftb() - ts; in mpc52xx_lpbfifo_irq()
333 ts = mftb(); in mpc52xx_lpbfifo_bcom_irq()
364 req->irq_ticks += mftb() - ts; in mpc52xx_lpbfifo_bcom_irq()
Dlite5200_sleep.S183 mftb r13 /* start */
186 mftb r13 /* current */
/Linux-v5.15/arch/powerpc/boot/
Dppc_asm.h80 #define MFTBL(dest) mftb dest
/Linux-v5.15/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-v5.15/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-v5.15/arch/powerpc/kernel/
Dtime.c313 now = mftb(); in vtime_delta()
466 start = mftb(); in __delay()
467 while (mftb() - start < loops) in __delay()
Dswsusp_32.S75 mftb r5
/Linux-v5.15/arch/powerpc/platforms/powermac/
Dsleep.S85 mftb r5
/Linux-v5.15/arch/powerpc/platforms/83xx/
Dsuspend-asm.S204 mftb r5

12