Home
last modified time | relevance | path

Searched refs:timer_get_cycles (Results 1 – 5 of 5) sorted by relevance

/linux/tools/testing/selftests/kvm/loongarch/
H A Darch_timer.c53 xcnt = timer_get_cycles(); in guest_irq_handler()
72 shared_data->xcnt = timer_get_cycles(); in guest_test_period_timer()
99 shared_data->xcnt = timer_get_cycles(); in guest_test_oneshot_timer()
125 shared_data->xcnt = timer_get_cycles(); in guest_test_emulate_timer()
131 xcnt_diff_us = cycles_to_usec(timer_get_cycles() - shared_data->xcnt); in guest_test_emulate_timer()
145 start = timer_get_cycles(); in guest_time_count_test()
153 start = timer_get_cycles(); in guest_time_count_test()
158 start = timer_get_cycles(); in guest_time_count_test()
/linux/tools/testing/selftests/kvm/include/riscv/
H A Darch_timer.h25 static inline uint64_t timer_get_cycles(void) in timer_get_cycles() function
52 uint64_t now_ct = timer_get_cycles(); in timer_set_next_cmp_ms()
60 uint64_t start = timer_get_cycles(); in __delay()
62 while ((timer_get_cycles() - start) < cycles) in __delay()
/linux/tools/testing/selftests/kvm/include/loongarch/
H A Darch_timer.h16 static inline unsigned long timer_get_cycles(void) in timer_get_cycles() function
75 uint64_t start = timer_get_cycles(); in __delay()
77 while ((timer_get_cycles() - start) < cycles) in __delay()
/linux/tools/testing/selftests/kvm/riscv/
H A Darch_timer.c27 xcnt = timer_get_cycles(); in guest_irq_handler()
51 shared_data->xcnt = timer_get_cycles(); in guest_run()
/linux/arch/hexagon/kernel/
H A Dtime.c72 static u64 timer_get_cycles(struct clocksource *cs) in timer_get_cycles() function
80 .read = timer_get_cycles,