Home
last modified time | relevance | path

Searched refs:get_cycles (Results 1 – 25 of 44) sorted by relevance

12

/linux/arch/riscv/include/asm/
H A Dtimex.h18 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 Dtimex.h16 #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 Dtimex.h10 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 Ddelay.c28 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 Dtimex.h17 #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 Dtimex.h16 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 Dtimex.h18 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 Dtimex.h25 static inline cycles_t get_cycles (void) in get_cycles() function
31 #define get_cycles get_cycles macro
/linux/arch/openrisc/lib/
H A Ddelay.c26 *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 Dtsc.h22 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 Dtimex.h72 static inline cycles_t get_cycles(void) in get_cycles() function
79 #define get_cycles get_cycles macro
/linux/include/asm-generic/
H A Dtimex.h9 #ifndef get_cycles
10 static inline cycles_t get_cycles(void) in get_cycles() function
/linux/drivers/misc/sgi-gru/
H A Dgruhandles.c62 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 Dtimex.h13 #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 Ddelay.c14 u64 t0 = get_cycles(); in __delay()
16 while ((unsigned long)(get_cycles() - t0) < cycles) in __delay()
/linux/arch/nios2/lib/
H A Ddelay.c13 cycles_t start = get_cycles(); in __delay()
15 while ((get_cycles() - start) < cycles) in __delay()
/linux/tools/perf/bench/
H A Dmem-functions.c83 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 Ddelay.c78 u64 t0 = get_cycles(); in __delay()
80 while ((unsigned long)(get_cycles() - t0) < cycles) in __delay()
/linux/arch/arm/lib/
H A Ddelay.c47 cycles_t start = get_cycles(); in __timer_delay()
49 while ((get_cycles() - start) < cycles) in __timer_delay()
/linux/arch/parisc/kernel/
H A Dtime.c182 return get_cycles(); in read_cr16_sched_clock()
187 return get_cycles(); in read_cr16()
/linux/arch/x86/kernel/
H A Dtsc.c362 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 Dtimex.h14 #define get_cycles() arch_timer_read_counter() macro
/linux/arch/sparc/include/asm/
H A Dtimex_64.h16 #define get_cycles() tick_ops->get_tick() macro
/linux/arch/m68k/include/asm/
H A Dtimex.h27 static inline cycles_t get_cycles(void) in get_cycles() function
/linux/kernel/kcsan/
H A Ddebugfs.c73 cycles = get_cycles(); in microbenchmark()
80 cycles = get_cycles() - cycles; in microbenchmark()

12