Lines Matching full:ticks
19 ulong ticks; in usec2ticks() local
22 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks()
24 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks()
27 return (ticks); in usec2ticks()
34 * microseconds to wait) into a number of time base ticks; then we
39 ulong ticks = usec2ticks (usec); in __udelay() local
40 wait_ticks (ticks); in __udelay()
45 unsigned long ticks2usec(unsigned long ticks) in ticks2usec() argument
49 /* usec = ticks * 1000000 / tbclk in ticks2usec()
50 * Multiplication would overflow at ~4.2e3 ticks, in ticks2usec()
52 * usec = ( ( ticks * 1000) / tbclk ) * 1000; in ticks2usec()
54 ticks *= 1000L; in ticks2usec()
55 ticks /= tbclk; in ticks2usec()
56 ticks *= 1000L; in ticks2usec()
58 return ((ulong)ticks); in ticks2usec()