Searched refs:read_c0_count (Results 1 – 22 of 22) 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()120 cnt = read_c0_count(); in c0_compare_int_usable()123 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) in c0_compare_int_usable()131 cnt = read_c0_count(); in c0_compare_int_usable()135 if ((int)(read_c0_count() - cnt) < 0) in c0_compare_int_usable()140 while ((int)(read_c0_count() - cnt) <= 0) in c0_compare_int_usable()143 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) in c0_compare_int_usable()148 cnt = read_c0_count(); in c0_compare_int_usable()151 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) in c0_compare_int_usable()
41 atomic_set(&count_reference, read_c0_count()); in synchronise_count_master()46 initcount = read_c0_count(); in synchronise_count_master()85 write_c0_compare(read_c0_count() + COUNTON); in synchronise_count_master()130 write_c0_compare(read_c0_count() + COUNTON); in synchronise_count_slave()
15 return read_c0_count(); in c0_hpt_read()
53 write_vpe_c0_count(read_c0_count()); in smvp_copy_vpe_config()176 write_c0_compare(read_c0_count() + (8* mips_hpt_frequency/HZ)); in vsmp_smp_finish()
64 write_c0_compare(read_c0_count() + (8 * mips_hpt_frequency / HZ)); in cmp_smp_finish()
288 write_c0_compare(read_c0_count() + (8 * mips_hpt_frequency / HZ)); in cps_smp_finish()
276 write_c0_compare(read_c0_count() + mips_hpt_frequency / HZ); in bmips_smp_finish()
639 regs->regs[rt] = read_c0_count(); in simulate_rdhwr()
44 start = read_c0_count(); in plat_time_init()50 end = read_c0_count(); in plat_time_init()
75 return read_c0_count(); in get_cycles()93 return read_c0_count(); in random_get_entropy()
1171 #define read_c0_count() __read_32bit_c0_register($9, 0) macro
49 start = read_c0_count(); in estimate_cpu_frequency()53 count = read_c0_count() - start; in estimate_cpu_frequency()
44 ct0 = read_c0_count(); in dosample()51 ct1 = read_c0_count(); in dosample()
89 start = read_c0_count(); in estimate_frequencies()99 count = read_c0_count(); in estimate_frequencies()
106 ct0 = read_c0_count(); in dosample()113 ct1 = read_c0_count(); in dosample()
143 start = read_c0_count(); in plat_time_init()149 end = read_c0_count(); in plat_time_init()
74 mips_hpt_frequency = read_c0_count() * 1000 / WAIT_MS; in plat_time_init()
61 freq = read_c0_count(); in estimate_cpu_frequency()
98 write_c0_compare(read_c0_count() + mips_hpt_frequency / HZ); in paravirt_smp_finish()
175 write_c0_compare(read_c0_count()); in plat_time_init()
273 c0count = read_c0_count(); in loongson3_ipi_interrupt()317 write_c0_compare(read_c0_count() + mips_hpt_frequency/HZ); in loongson3_smp_finish()
222 write_c0_compare(read_c0_count() + mips_hpt_frequency / HZ); in octeon_smp_finish()