Searched refs:read_c0_count (Results 1 – 24 of 24) sorted by relevance
25 cnt = read_c0_count(); in mips_next_event()28 res = ((int)(read_c0_count() - cnt) >= 0) ? -ETIME : 0; in mips_next_event()65 cnt = read_c0_count(); in calculate_min_delta()67 cnt = read_c0_count() - cnt; in calculate_min_delta()206 cnt = read_c0_count(); in c0_compare_int_usable()209 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) in c0_compare_int_usable()217 cnt = read_c0_count(); in c0_compare_int_usable()221 if ((int)(read_c0_count() - cnt) < 0) in c0_compare_int_usable()226 while ((int)(read_c0_count() - cnt) <= 0) in c0_compare_int_usable()229 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) in c0_compare_int_usable()[all …]
60 initcount = read_c0_count(); in synchronise_count_master()78 write_c0_compare(read_c0_count() + COUNTON); in synchronise_count_master()118 write_c0_compare(read_c0_count() + COUNTON); in synchronise_count_slave()
17 return read_c0_count(); in c0_hpt_read()29 return read_c0_count(); in r4k_read_sched_clock()
43 write_vpe_c0_count(read_c0_count()); in smvp_copy_vpe_config()123 write_c0_compare(read_c0_count() + (8* mips_hpt_frequency/HZ)); in vsmp_smp_finish()
52 write_c0_compare(read_c0_count() + (8 * mips_hpt_frequency / HZ)); in cmp_smp_finish()
264 write_c0_compare(read_c0_count() + mips_hpt_frequency / HZ); in bmips_smp_finish()
386 write_c0_compare(read_c0_count() + (8 * mips_hpt_frequency / HZ)); in cps_smp_finish()
641 regs->regs[rt] = read_c0_count(); in simulate_rdhwr()
31 start = read_c0_count(); in plat_time_init()37 end = read_c0_count(); in plat_time_init()
75 return read_c0_count(); in get_cycles()90 return read_c0_count(); in random_get_entropy()
1713 #define read_c0_count() __read_32bit_c0_register($9, 0) macro
55 start = read_c0_count(); in ranchu_measure_hpt_freq()62 count = read_c0_count() - start; in ranchu_measure_hpt_freq()
206 freq = read_c0_count(); in sead3_measure_hpt_freq()
44 ct0 = read_c0_count(); in dosample()51 ct1 = read_c0_count(); in dosample()
92 start = read_c0_count(); in ip30_cpu_time_init()96 end = read_c0_count(); in ip30_cpu_time_init()
89 ct0 = read_c0_count(); in dosample()96 ct1 = read_c0_count(); in dosample()
144 start = read_c0_count(); in plat_time_init()150 end = read_c0_count(); in plat_time_init()
85 start = read_c0_count(); in estimate_frequencies()95 count = read_c0_count(); in estimate_frequencies()
72 mips_hpt_frequency = read_c0_count() * 1000 / WAIT_MS; in plat_time_init()
198 write_c0_compare(read_c0_count()); in plat_time_init()
326 c0count = read_c0_count(); in loongson3_ipi_interrupt()382 write_c0_compare(read_c0_count() + mips_hpt_frequency/HZ); in loongson3_smp_finish()
280 write_c0_compare(read_c0_count() + mips_hpt_frequency / HZ); in octeon_smp_finish()
373 write_c0_gtoffset(compare - read_c0_count()); in _kvm_vz_restore_stimer()401 write_c0_gtoffset(start_count - read_c0_count()); in _kvm_vz_restore_htimer()
726 write_c0_gtoffset(compare - read_c0_count()); in kvm_mips_write_compare()766 write_c0_gtoffset(compare - read_c0_count()); in kvm_mips_write_compare()