Home
last modified time | relevance | path

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

/linux/arch/mips/kernel/
H A 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()
65 cnt = read_c0_count(); in calculate_min_delta()
67 cnt = read_c0_count() - cnt; in calculate_min_delta()
202 cnt = read_c0_count(); in c0_compare_int_usable()
205 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) in c0_compare_int_usable()
213 cnt = read_c0_count(); in c0_compare_int_usable()
217 if ((int)(read_c0_count() - cnt) < 0) in c0_compare_int_usable()
222 while ((int)(read_c0_count() - cnt) <= 0) in c0_compare_int_usable()
225 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) in c0_compare_int_usable()
[all …]
H A Dsync-r4k.c53 start = read_c0_count(); in check_counter_warp()
64 now = read_c0_count(); in check_counter_warp()
225 write_c0_compare(read_c0_count() + COUNTON); in synchronise_count_slave()
237 count = read_c0_count(); in synchronise_count_slave()
H A Dcsrc-r4k.c17 return read_c0_count(); in c0_hpt_read()
29 return read_c0_count(); in r4k_read_sched_clock()
H A Dsmp-mt.c43 write_vpe_c0_count(read_c0_count()); in smvp_copy_vpe_config()
124 write_c0_compare(read_c0_count() + (8* mips_hpt_frequency/HZ)); in vsmp_smp_finish()
H A Dsmp-bmips.c274 write_c0_compare(read_c0_count() + mips_hpt_frequency / HZ); in bmips_smp_finish()
H A Dtraps.c651 regs->regs[rt] = read_c0_count(); in simulate_rdhwr()
/linux/arch/mips/cobalt/
H A Dtime.c31 start = read_c0_count(); in plat_time_init()
37 end = read_c0_count(); in plat_time_init()
/linux/arch/mips/include/asm/
H A Dtimex.h75 return read_c0_count(); in get_cycles()
90 return read_c0_count(); in random_get_entropy()
H A Dmipsregs.h1869 #define read_c0_count() __read_32bit_c0_register($9, 0) macro
/linux/arch/mips/generic/
H A Dboard-ranchu.c56 start = read_c0_count(); in ranchu_measure_hpt_freq()
63 count = read_c0_count() - start; in ranchu_measure_hpt_freq()
H A Dboard-sead3.c206 freq = read_c0_count(); in sead3_measure_hpt_freq()
/linux/arch/mips/sgi-ip22/
H A Dip22-time.c44 ct0 = read_c0_count(); in dosample()
51 ct1 = read_c0_count(); in dosample()
/linux/arch/mips/sgi-ip30/
H A Dip30-setup.c93 start = read_c0_count(); in ip30_cpu_time_init()
97 end = read_c0_count(); in ip30_cpu_time_init()
/linux/arch/mips/sni/
H A Dtime.c89 ct0 = read_c0_count(); in dosample()
96 ct1 = read_c0_count(); in dosample()
/linux/arch/mips/dec/
H A Dtime.c144 start = read_c0_count(); in plat_time_init()
150 end = read_c0_count(); in plat_time_init()
/linux/arch/mips/mti-malta/
H A Dmalta-time.c80 start = read_c0_count(); in estimate_frequencies()
90 count = read_c0_count(); in estimate_frequencies()
/linux/arch/mips/sgi-ip32/
H A Dip32-setup.c71 mips_hpt_frequency = read_c0_count() * 1000 / WAIT_MS; in plat_time_init()
/linux/arch/mips/lantiq/
H A Dclk.c198 write_c0_compare(read_c0_count()); in plat_time_init()
/linux/arch/mips/cavium-octeon/
H A Dsmp.c279 write_c0_compare(read_c0_count() + mips_hpt_frequency / HZ); in octeon_smp_finish()
/linux/arch/mips/kvm/
H A Demulate.c727 write_c0_gtoffset(compare - read_c0_count()); in kvm_mips_write_compare()
765 write_c0_gtoffset(compare - read_c0_count()); in kvm_mips_write_compare()
H A Dvz.c372 write_c0_gtoffset(compare - read_c0_count()); in _kvm_vz_restore_stimer()
399 write_c0_gtoffset(start_count - read_c0_count()); in _kvm_vz_restore_htimer()
/linux/arch/mips/loongson64/
H A Dsmp.c427 write_c0_compare(read_c0_count() + mips_hpt_frequency/HZ); in loongson3_smp_finish()