Home
last modified time | relevance | path

Searched refs:read_c0_count (Results 1 – 22 of 22) sorted by relevance

/arch/mips/kernel/
Dcevt-r4k.c25 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()
Dsync-r4k.c41 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()
Dcsrc-r4k.c15 return read_c0_count(); in c0_hpt_read()
Dsmp-mt.c53 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()
Dsmp-cmp.c64 write_c0_compare(read_c0_count() + (8 * mips_hpt_frequency / HZ)); in cmp_smp_finish()
Dsmp-cps.c288 write_c0_compare(read_c0_count() + (8 * mips_hpt_frequency / HZ)); in cps_smp_finish()
Dsmp-bmips.c276 write_c0_compare(read_c0_count() + mips_hpt_frequency / HZ); in bmips_smp_finish()
Dtraps.c639 regs->regs[rt] = read_c0_count(); in simulate_rdhwr()
/arch/mips/cobalt/
Dtime.c44 start = read_c0_count(); in plat_time_init()
50 end = read_c0_count(); in plat_time_init()
/arch/mips/include/asm/
Dtimex.h75 return read_c0_count(); in get_cycles()
93 return read_c0_count(); in random_get_entropy()
Dmipsregs.h1171 #define read_c0_count() __read_32bit_c0_register($9, 0) macro
/arch/mips/goldfish/
Dgoldfish-time.c49 start = read_c0_count(); in estimate_cpu_frequency()
53 count = read_c0_count() - start; in estimate_cpu_frequency()
/arch/mips/sgi-ip22/
Dip22-time.c44 ct0 = read_c0_count(); in dosample()
51 ct1 = read_c0_count(); in dosample()
/arch/mips/mti-malta/
Dmalta-time.c89 start = read_c0_count(); in estimate_frequencies()
99 count = read_c0_count(); in estimate_frequencies()
/arch/mips/sni/
Dtime.c106 ct0 = read_c0_count(); in dosample()
113 ct1 = read_c0_count(); in dosample()
/arch/mips/dec/
Dtime.c143 start = read_c0_count(); in plat_time_init()
149 end = read_c0_count(); in plat_time_init()
/arch/mips/sgi-ip32/
Dip32-setup.c74 mips_hpt_frequency = read_c0_count() * 1000 / WAIT_MS; in plat_time_init()
/arch/mips/mti-sead3/
Dsead3-time.c61 freq = read_c0_count(); in estimate_cpu_frequency()
/arch/mips/paravirt/
Dparavirt-smp.c98 write_c0_compare(read_c0_count() + mips_hpt_frequency / HZ); in paravirt_smp_finish()
/arch/mips/lantiq/
Dclk.c175 write_c0_compare(read_c0_count()); in plat_time_init()
/arch/mips/loongson/loongson-3/
Dsmp.c273 c0count = read_c0_count(); in loongson3_ipi_interrupt()
317 write_c0_compare(read_c0_count() + mips_hpt_frequency/HZ); in loongson3_smp_finish()
/arch/mips/cavium-octeon/
Dsmp.c222 write_c0_compare(read_c0_count() + mips_hpt_frequency / HZ); in octeon_smp_finish()