Lines Matching full:timers

3  * Freescale General-purpose Timers Module
72 struct gtm_timer timers[4]; member
95 for (i = 0; i < ARRAY_SIZE(gtm->timers); i++) { in gtm_get_timer16()
96 if (!gtm->timers[i].requested) { in gtm_get_timer16()
97 gtm->timers[i].requested = true; in gtm_get_timer16()
99 return &gtm->timers[i]; in gtm_get_timer16()
132 if (gtm->timers[timer].requested) in gtm_get_specific_timer16()
135 ret = &gtm->timers[timer]; in gtm_get_specific_timer16()
169 int num = tmr - &gtm->timers[0]; in gtm_set_ref_timer16()
206 * Properly reset timers: stop, reset, set up prescalers, reference in gtm_set_ref_timer16()
305 int num = tmr - &gtm->timers[0]; in gtm_stop_timer16()
318 * gtm_ack_timer16 - acknowledge timer event (free-run timers only)
333 struct gtm_timer *timers, in gtm_set_shortcuts() argument
337 * Yeah, I don't like this either, but timers' registers a bit messed, in gtm_set_shortcuts()
342 timers[0].gtcfr = &regs->gtcfr1; in gtm_set_shortcuts()
343 timers[0].gtmdr = &regs->gtmdr1; in gtm_set_shortcuts()
344 timers[0].gtcnr = &regs->gtcnr1; in gtm_set_shortcuts()
345 timers[0].gtrfr = &regs->gtrfr1; in gtm_set_shortcuts()
346 timers[0].gtevr = &regs->gtevr1; in gtm_set_shortcuts()
348 timers[1].gtcfr = &regs->gtcfr1; in gtm_set_shortcuts()
349 timers[1].gtmdr = &regs->gtmdr2; in gtm_set_shortcuts()
350 timers[1].gtcnr = &regs->gtcnr2; in gtm_set_shortcuts()
351 timers[1].gtrfr = &regs->gtrfr2; in gtm_set_shortcuts()
352 timers[1].gtevr = &regs->gtevr2; in gtm_set_shortcuts()
354 timers[2].gtcfr = &regs->gtcfr2; in gtm_set_shortcuts()
355 timers[2].gtmdr = &regs->gtmdr3; in gtm_set_shortcuts()
356 timers[2].gtcnr = &regs->gtcnr3; in gtm_set_shortcuts()
357 timers[2].gtrfr = &regs->gtrfr3; in gtm_set_shortcuts()
358 timers[2].gtevr = &regs->gtevr3; in gtm_set_shortcuts()
360 timers[3].gtcfr = &regs->gtcfr2; in gtm_set_shortcuts()
361 timers[3].gtmdr = &regs->gtmdr4; in gtm_set_shortcuts()
362 timers[3].gtcnr = &regs->gtcnr4; in gtm_set_shortcuts()
363 timers[3].gtrfr = &regs->gtrfr4; in gtm_set_shortcuts()
364 timers[3].gtevr = &regs->gtevr4; in gtm_set_shortcuts()
368 timers[0].gtpsr = &regs->gtpsr1; in gtm_set_shortcuts()
369 timers[1].gtpsr = &regs->gtpsr2; in gtm_set_shortcuts()
370 timers[2].gtpsr = &regs->gtpsr3; in gtm_set_shortcuts()
371 timers[3].gtpsr = &regs->gtpsr4; in gtm_set_shortcuts()
401 for (i = 0; i < ARRAY_SIZE(gtm->timers); i++) { in fsl_gtm_init()
410 gtm->timers[i].irq = irq; in fsl_gtm_init()
411 gtm->timers[i].gtm = gtm; in fsl_gtm_init()
421 gtm_set_shortcuts(np, gtm->timers, gtm->regs); in fsl_gtm_init()