Home
last modified time | relevance | path

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

12

/linux/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/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/arch/powerpc/kvm/
A 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()
A 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 …]
A Dbook3s_hv_interrupts.S71 mftb r7
A 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()
3878 tb = mftb(); in kvmhv_p9_guest_entry()
3940 mtspr(SPRN_DEC, vcpu->arch.dec_expires - mftb()); in kvmhv_p9_guest_entry()
4019 tb = mftb(); in kvmhv_p9_guest_entry()
4308 vcpu->arch.stolen_logged = vcore_stolen_time(vc, mftb()); in kvmppc_run_vcpu()
[all …]
/linux/drivers/spi/
A 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/arch/powerpc/include/asm/
A Dcputime.h74 unsigned long tb = mftb(); in account_cpu_user_entry()
83 unsigned long tb = mftb(); in account_cpu_user_exit()
A Dtimex.h20 return mftb(); in get_cycles()
A Dstackprotector.h28 canary ^= mftb(); in boot_init_stack_canary()
A Ddelay.h57 unsigned long __start = mftb(); \
A Dtime.h81 return mftb() - tstamp; in tb_ticks_since()
/linux/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.c507 seq_printf(m, "tbr=%ld\n", mftb()); in pseries_lparcfg_data()
/linux/arch/powerpc/platforms/52xx/
A 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()
A Dlite5200_sleep.S183 mftb r13 /* start */
186 mftb r13 /* current */
/linux/arch/powerpc/boot/
A Dppc_asm.h80 #define MFTBL(dest) mftb dest
/linux/arch/powerpc/mm/book3s64/
A Dhash_64k.c195 if (soft_invalid || (mftb() & 0x1)) in __hash_page_4K()
307 if (mftb() & 0x1) in __hash_page_64K()
A Dhash_4k.c99 if (mftb() & 0x1) in __hash_page_4K()
A Dhash_hugepage.c152 if (mftb() & 0x1) in __hash_page_thp()
/linux/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/arch/powerpc/kernel/
A Dtime.c313 now = mftb(); in vtime_delta()
466 start = mftb(); in __delay()
467 while (mftb() - start < loops) in __delay()
A Dswsusp_32.S75 mftb r5
/linux/arch/powerpc/platforms/powermac/
A Dsleep.S85 mftb r5
/linux/arch/powerpc/platforms/83xx/
A Dsuspend-asm.S204 mftb r5

Completed in 47 milliseconds

12