Home
last modified time | relevance | path

Searched refs:cyc (Results 1 – 9 of 9) sorted by relevance

/arch/arm/kernel/
Dsched_clock.c44 static inline u64 cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns() argument
46 return (cyc * mult) >> shift; in cyc_to_ns()
49 static unsigned long long cyc_to_sched_clock(u32 cyc, u32 mask) in cyc_to_sched_clock() argument
71 return epoch_ns + cyc_to_ns((cyc - epoch_cyc) & mask, cd.mult, cd.shift); in cyc_to_sched_clock()
80 u32 cyc; in update_sched_clock() local
83 cyc = read_sched_clock(); in update_sched_clock()
85 cyc_to_ns((cyc - cd.epoch_cyc) & sched_clock_mask, in update_sched_clock()
92 cd.epoch_cyc_copy = cyc; in update_sched_clock()
96 cd.epoch_cyc = cyc; in update_sched_clock()
165 u32 cyc = read_sched_clock(); in sched_clock() local
[all …]
/arch/x86/include/asm/
Dtimer.h58 static inline unsigned long long __cycles_2_ns(unsigned long long cyc) in __cycles_2_ns() argument
62 ns += mult_frac(cyc, per_cpu(cyc2ns, cpu), in __cycles_2_ns()
67 static inline unsigned long long cycles_2_ns(unsigned long long cyc) in cycles_2_ns() argument
73 ns = __cycles_2_ns(cyc); in cycles_2_ns()
/arch/arm/plat-s3c24xx/
Ds3c2410-iotiming.c87 static inline unsigned int to_div(unsigned int cyc, unsigned int hclk_tns) in to_div() argument
89 if (cyc == 0) in to_div()
92 return DIV_ROUND_UP(cyc, hclk_tns); in to_div()
105 static unsigned int calc_0124(unsigned int cyc, unsigned long hclk_tns, in calc_0124() argument
108 unsigned int div = to_div(cyc, hclk_tns); in calc_0124()
112 __func__, cyc, hclk_tns, shift, div); in calc_0124()
136 int calc_tacp(unsigned int cyc, unsigned long hclk, unsigned long *v) in calc_tacp() argument
153 static int calc_tacc(unsigned int cyc, int nwait_en, in calc_tacc() argument
156 unsigned int div = to_div(cyc, hclk_tns); in calc_tacc()
160 __func__, cyc, nwait_en, hclk_tns, div); in calc_tacc()
/arch/arm/mach-pxa/
Dmp900.c33 int cyc = delay / 10; in isp116x_pfm_delay() local
39 :"=r" (cyc) in isp116x_pfm_delay()
40 :"0"(cyc) in isp116x_pfm_delay()
/arch/mn10300/proc-mn103e010/include/proc/
Ddmactl-regs.h95 u32 cyc; member
/arch/mn10300/proc-mn2ws0050/include/proc/
Ddmactl-regs.h96 u32 cyc; member
/arch/microblaze/kernel/
Dtimer.c302 cycle_t cyc = cnt32_to_63(cs->read(NULL)) & LLONG_MAX; in sched_clock() local
303 return clocksource_cyc2ns(cyc, cs->mult, cs->shift); in sched_clock()
/arch/x86/platform/uv/
Dtlb_uv.c401 static inline unsigned long cycles_2_us(unsigned long long cyc) in cycles_2_us() argument
407 ns = (cyc * per_cpu(cyc2ns, cpu)) >> CYC2NS_SCALE_FACTOR; in cycles_2_us()
703 cycles_t cyc; in sec_2_cycles() local
706 cyc = (ns << CYC2NS_SCALE_FACTOR)/(per_cpu(cyc2ns, smp_processor_id())); in sec_2_cycles()
707 return cyc; in sec_2_cycles()
1326 unsigned long long cyc; in usec_2_cycles() local
1329 cyc = (ns << CYC2NS_SCALE_FACTOR)/(per_cpu(cyc2ns, smp_processor_id())); in usec_2_cycles()
1330 return cyc; in usec_2_cycles()
/arch/ia64/kernel/
Dtime.c84 extern cputime_t cycle_to_cputime(u64 cyc);