Lines Matching full:ticks
24 #define TIMER_FREQ 508469 /* ticks / second */
29 unsigned long long ticks; member
35 unsigned long long ticks = (unsigned long long)usecs * TIMER_FREQ; in usecs_to_ticks() local
36 do_div(ticks, 1000 * 1000); in usecs_to_ticks()
38 return ticks; in usecs_to_ticks()
47 timer.ticks += now - timer.last_read; in read_timer()
50 timer.ticks += TIMER_MAX_VAL - timer.last_read + now; in read_timer()
56 * Get the number of ticks (in CONFIG_SYS_HZ resolution)
64 sys_ticks = timer.ticks * CONFIG_SYS_HZ; in get_ticks()
86 target = timer.ticks + usecs_to_ticks(usec); in __udelay()
88 while (timer.ticks < target) in __udelay()
108 timer.ticks = 0; in timer_init()
115 * On ARM it returns the number of timer ticks per second.