Home
last modified time | relevance | path

Searched refs:get_tb (Results 1 – 23 of 23) sorted by relevance

/Linux-v5.4/arch/powerpc/kernel/
Drtas-rtc.c23 max_wait_tb = get_tb() + tb_ticks_per_usec * 1000 * MAX_RTC_WAIT; in rtas_get_boot_time()
32 } while (wait_time && (get_tb() < max_wait_tb)); in rtas_get_boot_time()
55 max_wait_tb = get_tb() + tb_ticks_per_usec * 1000 * MAX_RTC_WAIT; in rtas_get_rtc_time()
70 } while (wait_time && (get_tb() < max_wait_tb)); in rtas_get_rtc_time()
92 max_wait_tb = get_tb() + tb_ticks_per_usec * 1000 * MAX_RTC_WAIT; in rtas_set_rtc_time()
105 } while (wait_time && (get_tb() < max_wait_tb)); in rtas_set_rtc_time()
Dwatchdog.c115 u64 tb = get_tb(); in wd_lockup_ipi()
240 u64 tb = get_tb(); in watchdog_timer_interrupt()
263 tb = get_tb(); in soft_nmi_interrupt()
317 u64 tb = get_tb(); in arch_touch_nmi_watchdog()
347 wd_smp_last_reset_tb = get_tb(); in start_watchdog()
351 *this_cpu_ptr(&wd_timer_tb) = get_tb(); in start_watchdog()
379 wd_smp_clear_cpu_pending(cpu, get_tb()); in stop_watchdog()
Dsmp-tbsync.c41 while (get_tb() < mark) in enter_contest()
88 tb = get_tb() + 400; in start_contest()
98 while (get_tb() <= tb) in start_contest()
Dtime.c726 return mulhdu(get_tb() - boot_tb, tb_to_ns_scale) << tb_to_ns_shift; in sched_clock()
882 return (u64)get_tb(); in timebase_read()
Drtas.c1248 timebase = get_tb(); in rtas_give_timebase()
/Linux-v5.4/arch/powerpc/include/asm/
Dtime.h49 #define get_tbl get_tb
105 static inline u64 get_tb(void) in get_tb() function
110 static inline u64 get_tb(void) in get_tb() function
126 return __USE_RTC() ? get_rtc() : get_tb(); in get_tb_or_rtc()
/Linux-v5.4/arch/powerpc/kvm/
Demulate.c60 vcpu->arch.dec_jiffies = get_tb(); in kvmppc_emulate_dec()
151 spr_val = get_tb() >> 32; in kvmppc_emulate_mfspr()
154 spr_val = get_tb(); in kvmppc_emulate_mfspr()
173 spr_val = kvmppc_get_dec(vcpu, get_tb()); in kvmppc_emulate_mfspr()
Dbook3s_hv_builtin.c140 u64 stop = get_tb() + 10 * tb_ticks_per_usec; in kvmppc_rm_h_confer()
144 while ((get_tb() < stop) && !VCORE_IS_EXITING(vc)) { in kvmppc_rm_h_confer()
591 vcpu->arch.regs.gpr[5] = get_tb(); in kvmppc_rm_h_xirr_x()
Dbook3s_pr.c179 vcpu->arch.entry_tb = get_tb(); in kvmppc_copy_to_svcpu()
264 vcpu->arch.purr += get_tb() - vcpu->arch.entry_tb; in kvmppc_copy_from_svcpu()
265 vcpu->arch.spurr += get_tb() - vcpu->arch.entry_tb; in kvmppc_copy_from_svcpu()
Dbooke.c557 tb = get_tb(); in watchdog_next_timeout()
1494 u64 tb = get_tb(); in get_sregs_base()
Dbook3s_xics.c890 kvmppc_set_gpr(vcpu, 5, get_tb()); in kvmppc_xics_hcall()
Dbook3s_hv.c2445 now = get_tb(); in kvmppc_set_timer()
2919 now = get_tb(); in post_guest_process()
4161 ((get_tb() < vcpu->arch.dec_expires) || in kvmhv_run_single_vcpu()
Dpowerpc.c785 vcpu->arch.dec_expires = get_tb(); in kvm_arch_vcpu_init()
/Linux-v5.4/arch/powerpc/kernel/trace/
Dtrace_clock.c12 return get_tb(); in trace_clock_ppc_tb()
/Linux-v5.4/drivers/cpuidle/
Dcpuidle-pseries.c68 snooze_exit_time = get_tb() + snooze_timeout; in snooze_loop()
73 if (likely(snooze_timeout_en) && get_tb() > snooze_exit_time) { in snooze_loop()
Dcpuidle-powernv.c81 snooze_exit_time = get_tb() + get_snooze_timeout(dev, drv, index); in snooze_loop()
85 if (likely(snooze_timeout_en) && get_tb() > snooze_exit_time) { in snooze_loop()
/Linux-v5.4/arch/powerpc/perf/
D8xx-pmu.c90 val = get_tb(); in mpc8xx_pmu_add()
135 val = get_tb(); in mpc8xx_pmu_read()
/Linux-v5.4/drivers/crypto/nx/
Dnx-842-pseries.c293 unsigned long start = get_tb(); in nx842_pseries_compress()
375 (get_tb() - start) / tb_ticks_per_usec); in nx842_pseries_compress()
423 unsigned long start = get_tb(); in nx842_pseries_decompress()
506 (get_tb() - start) / tb_ticks_per_usec); in nx842_pseries_decompress()
/Linux-v5.4/drivers/ps3/
Dps3-lpm.c183 bookmark = (get_tb() & 0x00000000FFFFFFFFULL) | in ps3_set_pm_bookmark()
874 ps3_set_bookmark(get_tb() | PS3_PM_BOOKMARK_START); in ps3_enable_pm()
887 ps3_set_bookmark(get_tb() | PS3_PM_BOOKMARK_STOP); in ps3_disable_pm()
/Linux-v5.4/arch/powerpc/platforms/powermac/
Dsmp.c386 timebase = get_tb(); in smp_psurge_kick_cpu()
470 timebase = get_tb(); in smp_core99_give_timebase()
/Linux-v5.4/arch/powerpc/platforms/85xx/
Dsmp.c84 timebase = get_tb(); in mpc85xx_give_timebase()
/Linux-v5.4/arch/powerpc/platforms/pasemi/
Dsetup.c111 timebase = get_tb(); in pas_give_timebase()
/Linux-v5.4/arch/powerpc/platforms/cell/spufs/
Dfile.c2492 p->timebase = get_tb(); in spu_switch_log_notify()