/linux/arch/riscv/include/asm/ |
H A D | timex.h | 18 static inline cycles_t get_cycles(void) in get_cycles() function 23 static inline u32 get_cycles(void) in get_cycles() function 27 #define get_cycles get_cycles macro 45 return get_cycles(); in random_get_entropy() 51 static inline cycles_t get_cycles(void) in get_cycles() function 55 #define get_cycles get_cycles macro 68 return get_cycles(); in get_cycles64() 77 lo = get_cycles(); in get_cycles64() 87 *timer_val = get_cycles(); in read_current_timer()
|
/linux/arch/openrisc/include/asm/ |
H A D | timex.h | 16 #define get_cycles get_cycles macro 22 static inline cycles_t get_cycles(void) in get_cycles() function 26 #define get_cycles get_cycles macro
|
/linux/arch/nios2/include/asm/ |
H A D | timex.h | 10 extern cycles_t get_cycles(void); 11 #define get_cycles get_cycles macro 13 #define random_get_entropy() (((unsigned long)get_cycles()) ?: random_get_entropy_fallback())
|
/linux/arch/arm64/lib/ |
H A D | delay.c | 28 cycles_t start = get_cycles(); in __delay() 38 while ((get_cycles() - start) < cycles) in __delay() 44 while ((get_cycles() - start + timer_evt_period) < cycles) in __delay() 48 while ((get_cycles() - start) < cycles) in __delay()
|
/linux/arch/loongarch/include/asm/ |
H A D | timex.h | 17 #define get_cycles get_cycles macro 19 static inline cycles_t get_cycles(void) in get_cycles() function
|
/linux/arch/parisc/include/asm/ |
H A D | timex.h | 16 static inline cycles_t get_cycles(void) in get_cycles() function 20 #define get_cycles get_cycles macro
|
/linux/arch/powerpc/include/asm/ |
H A D | timex.h | 18 static inline cycles_t get_cycles(void) in get_cycles() function 22 #define get_cycles get_cycles macro
|
/linux/arch/alpha/include/asm/ |
H A D | timex.h | 25 static inline cycles_t get_cycles (void) in get_cycles() function 31 #define get_cycles get_cycles macro
|
/linux/arch/openrisc/lib/ |
H A D | delay.c | 26 *timer_value = get_cycles(); in read_current_timer() 32 cycles_t start = get_cycles(); in __delay() 34 while ((get_cycles() - start) < cycles) in __delay()
|
/linux/arch/x86/include/asm/ |
H A D | tsc.h | 22 static inline cycles_t get_cycles(void) in get_cycles() function 29 #define get_cycles get_cycles macro
|
/linux/arch/mips/include/asm/ |
H A D | timex.h | 72 static inline cycles_t get_cycles(void) in get_cycles() function 79 #define get_cycles get_cycles macro
|
/linux/include/asm-generic/ |
H A D | timex.h | 9 #ifndef get_cycles 10 static inline cycles_t get_cycles(void) in get_cycles() function
|
/linux/drivers/misc/sgi-gru/ |
H A D | gruhandles.c | 62 unsigned long start_time = get_cycles(); in wait_instruction_complete() 69 if (GRU_OPERATION_TIMEOUT < (get_cycles() - start_time)) { in wait_instruction_complete() 71 start_time = get_cycles(); in wait_instruction_complete() 75 update_mcs_stats(opc, get_cycles() - start_time); in wait_instruction_complete()
|
/linux/arch/arm/include/asm/ |
H A D | timex.h | 13 #define get_cycles() ({ cycles_t c; read_current_timer(&c) ? 0 : c; }) macro 14 #define random_get_entropy() (((unsigned long)get_cycles()) ?: random_get_entropy_fallback())
|
/linux/arch/loongarch/lib/ |
H A D | delay.c | 14 u64 t0 = get_cycles(); in __delay() 16 while ((unsigned long)(get_cycles() - t0) < cycles) in __delay()
|
/linux/arch/nios2/lib/ |
H A D | delay.c | 13 cycles_t start = get_cycles(); in __delay() 15 while ((get_cycles() - start) < cycles) in __delay()
|
/linux/tools/perf/bench/ |
H A D | mem-functions.c | 83 static u64 get_cycles(void) in get_cycles() function 246 cycle_start = get_cycles(); in do_memcpy_cycles() 249 cycle_end = get_cycles(); in do_memcpy_cycles() 316 cycle_start = get_cycles(); in do_memset_cycles() 319 cycle_end = get_cycles(); in do_memset_cycles()
|
/linux/arch/riscv/lib/ |
H A D | delay.c | 78 u64 t0 = get_cycles(); in __delay() 80 while ((unsigned long)(get_cycles() - t0) < cycles) in __delay()
|
/linux/arch/arm/lib/ |
H A D | delay.c | 47 cycles_t start = get_cycles(); in __timer_delay() 49 while ((get_cycles() - start) < cycles) in __timer_delay()
|
/linux/arch/parisc/kernel/ |
H A D | time.c | 182 return get_cycles(); in read_cr16_sched_clock() 187 return get_cycles(); in read_cr16()
|
/linux/arch/x86/kernel/ |
H A D | tsc.c | 362 t1 = get_cycles(); in tsc_read_refs() 367 t2 = get_cycles(); in tsc_read_refs() 459 tsc = t1 = t2 = get_cycles(); in pit_calibrate_tsc() 465 t2 = get_cycles(); in pit_calibrate_tsc() 544 tsc = get_cycles(); in pit_expect_msb() 546 *deltap = get_cycles() - prev_tsc; in pit_expect_msb()
|
/linux/arch/arm64/include/asm/ |
H A D | timex.h | 14 #define get_cycles() arch_timer_read_counter() macro
|
/linux/arch/sparc/include/asm/ |
H A D | timex_64.h | 16 #define get_cycles() tick_ops->get_tick() macro
|
/linux/arch/m68k/include/asm/ |
H A D | timex.h | 27 static inline cycles_t get_cycles(void) in get_cycles() function
|
/linux/kernel/kcsan/ |
H A D | debugfs.c | 73 cycles = get_cycles(); in microbenchmark() 80 cycles = get_cycles() - cycles; in microbenchmark()
|