Lines Matching defs:timers
33 * This driver configures the 2 64-bit count-up timers as 4 independent
34 * 32-bit count-up timers used as follows:
99 static struct timer_s timers[];
124 soc_info->timer_info->timers;
125 int event_timer = ID_TO_TIMER(timers[TID_CLOCKEVENT].id);
176 static struct timer_s timers[] = {
199 struct davinci_timer_instance *dtip = soc_info->timer_info->timers;
214 /* reset both timers, no pre-scaler for timer34 */
218 /* Set both timers to unchained 32-bit */
222 /* Unreset timers */
233 for (i=0; i< ARRAY_SIZE(timers); i++) {
234 struct timer_s *t = &timers[i];
270 struct timer_s *t = &timers[TID_CLOCKSOURCE];
289 struct timer_s *t = &timers[TID_CLOCKEVENT];
299 struct timer_s *t = &timers[TID_CLOCKEVENT];
343 timers[TID_CLOCKEVENT].id = clockevent_id;
344 timers[TID_CLOCKSOURCE].id = clocksource_id;
353 soc_info->timer_info->timers;
356 /* Only bottom timers can use compare regs */
359 " of system timers. Results unpredictable.\n");
365 timers[TID_CLOCKEVENT].opts |= TIMER_OPTS_USE_COMPARE;
388 clockevent_davinci.name = id_to_name[timers[TID_CLOCKEVENT].id];
398 for (i=0; i< ARRAY_SIZE(timers); i++)
399 timer32_config(&timers[i]);