Home
last modified time | relevance | path

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

/Linux-v5.4/arch/mips/kernel/
Dcevt-r4k.c24 cnt = read_c0_count(); in mips_next_event()
27 res = ((int)(read_c0_count() - cnt) >= 0) ? -ETIME : 0; in mips_next_event()
64 cnt = read_c0_count(); in calculate_min_delta()
66 cnt = read_c0_count() - cnt; in calculate_min_delta()
205 cnt = read_c0_count(); in c0_compare_int_usable()
208 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) in c0_compare_int_usable()
216 cnt = read_c0_count(); in c0_compare_int_usable()
220 if ((int)(read_c0_count() - cnt) < 0) in c0_compare_int_usable()
225 while ((int)(read_c0_count() - cnt) <= 0) in c0_compare_int_usable()
228 while (read_c0_count() < (cnt + COMPARE_INT_SEEN_TICKS)) in c0_compare_int_usable()
[all …]
Dsync-r4k.c60 initcount = read_c0_count(); in synchronise_count_master()
78 write_c0_compare(read_c0_count() + COUNTON); in synchronise_count_master()
115 write_c0_compare(read_c0_count() + COUNTON); in synchronise_count_slave()
Dcsrc-r4k.c16 return read_c0_count(); in c0_hpt_read()
28 return read_c0_count(); in r4k_read_sched_clock()
Dsmp-mt.c43 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()
Dsmp-cmp.c52 write_c0_compare(read_c0_count() + (8 * mips_hpt_frequency / HZ)); in cmp_smp_finish()
Dsmp-bmips.c264 write_c0_compare(read_c0_count() + mips_hpt_frequency / HZ); in bmips_smp_finish()
Dsmp-cps.c386 write_c0_compare(read_c0_count() + (8 * mips_hpt_frequency / HZ)); in cps_smp_finish()
Dtraps.c643 regs->regs[rt] = read_c0_count(); in simulate_rdhwr()
/Linux-v5.4/arch/mips/cobalt/
Dtime.c31 start = read_c0_count(); in plat_time_init()
37 end = read_c0_count(); in plat_time_init()
/Linux-v5.4/arch/mips/include/asm/
Dtimex.h75 return read_c0_count(); in get_cycles()
93 return read_c0_count(); in random_get_entropy()
Dmipsregs.h1640 #define read_c0_count() __read_32bit_c0_register($9, 0) macro
/Linux-v5.4/arch/mips/generic/
Dboard-ranchu.c55 start = read_c0_count(); in ranchu_measure_hpt_freq()
62 count = read_c0_count() - start; in ranchu_measure_hpt_freq()
Dboard-sead3.c206 freq = read_c0_count(); in sead3_measure_hpt_freq()
/Linux-v5.4/arch/mips/sgi-ip22/
Dip22-time.c44 ct0 = read_c0_count(); in dosample()
51 ct1 = read_c0_count(); in dosample()
/Linux-v5.4/arch/mips/sni/
Dtime.c95 ct0 = read_c0_count(); in dosample()
102 ct1 = read_c0_count(); in dosample()
/Linux-v5.4/arch/mips/dec/
Dtime.c144 start = read_c0_count(); in plat_time_init()
150 end = read_c0_count(); in plat_time_init()
/Linux-v5.4/arch/mips/mti-malta/
Dmalta-time.c85 start = read_c0_count(); in estimate_frequencies()
95 count = read_c0_count(); in estimate_frequencies()
/Linux-v5.4/arch/mips/sgi-ip32/
Dip32-setup.c74 mips_hpt_frequency = read_c0_count() * 1000 / WAIT_MS; in plat_time_init()
/Linux-v5.4/arch/mips/paravirt/
Dparavirt-smp.c99 write_c0_compare(read_c0_count() + mips_hpt_frequency / HZ); in paravirt_smp_finish()
/Linux-v5.4/arch/mips/lantiq/
Dclk.c185 write_c0_compare(read_c0_count()); in plat_time_init()
/Linux-v5.4/arch/mips/loongson64/loongson-3/
Dsmp.c278 c0count = read_c0_count(); in loongson3_ipi_interrupt()
340 write_c0_compare(read_c0_count() + mips_hpt_frequency/HZ); in loongson3_smp_finish()
/Linux-v5.4/arch/mips/cavium-octeon/
Dsmp.c280 write_c0_compare(read_c0_count() + mips_hpt_frequency / HZ); in octeon_smp_finish()
/Linux-v5.4/arch/mips/kvm/
Dvz.c396 write_c0_gtoffset(compare - read_c0_count()); in _kvm_vz_restore_stimer()
424 write_c0_gtoffset(start_count - read_c0_count()); in _kvm_vz_restore_htimer()
Demulate.c726 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()