Lines Matching defs:cycles
27 * convert from cycles(64bits) => nanoseconds (64bits)
29 * ns = cycles / (freq / ns_per_sec)
30 * ns = cycles * (ns_per_sec / freq)
31 * ns = cycles * (10^9 / (cpu_khz * 10^3))
32 * ns = cycles * (10^6 / cpu_khz)
35 * ns = cycles * (10^6 * SC / cpu_khz) / SC
36 * ns = cycles * cyc2ns_scale / SC
141 /* prefer to use cycles since it has higher rating */
153 static int bfin_gptmr0_set_next_event(unsigned long cycles,
158 /* it starts counting three SCLK cycles after the TIMENx bit is set */
159 set_gptimer_pwidth(TIMER0_id, cycles - 3);
250 static int bfin_coretmr_set_next_event(unsigned long cycles,
255 bfin_write_TCOUNT(cycles);