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 >m->timers[i]; in gtm_get_timer16()
132 if (gtm->timers[timer].requested) in gtm_get_specific_timer16()
135 ret = >m->timers[timer]; in gtm_get_specific_timer16()
169 int num = tmr - >m->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 - >m->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 = ®s->gtcfr1; in gtm_set_shortcuts()
343 timers[0].gtmdr = ®s->gtmdr1; in gtm_set_shortcuts()
344 timers[0].gtcnr = ®s->gtcnr1; in gtm_set_shortcuts()
345 timers[0].gtrfr = ®s->gtrfr1; in gtm_set_shortcuts()
346 timers[0].gtevr = ®s->gtevr1; in gtm_set_shortcuts()
348 timers[1].gtcfr = ®s->gtcfr1; in gtm_set_shortcuts()
349 timers[1].gtmdr = ®s->gtmdr2; in gtm_set_shortcuts()
350 timers[1].gtcnr = ®s->gtcnr2; in gtm_set_shortcuts()
351 timers[1].gtrfr = ®s->gtrfr2; in gtm_set_shortcuts()
352 timers[1].gtevr = ®s->gtevr2; in gtm_set_shortcuts()
354 timers[2].gtcfr = ®s->gtcfr2; in gtm_set_shortcuts()
355 timers[2].gtmdr = ®s->gtmdr3; in gtm_set_shortcuts()
356 timers[2].gtcnr = ®s->gtcnr3; in gtm_set_shortcuts()
357 timers[2].gtrfr = ®s->gtrfr3; in gtm_set_shortcuts()
358 timers[2].gtevr = ®s->gtevr3; in gtm_set_shortcuts()
360 timers[3].gtcfr = ®s->gtcfr2; in gtm_set_shortcuts()
361 timers[3].gtmdr = ®s->gtmdr4; in gtm_set_shortcuts()
362 timers[3].gtcnr = ®s->gtcnr4; in gtm_set_shortcuts()
363 timers[3].gtrfr = ®s->gtrfr4; in gtm_set_shortcuts()
364 timers[3].gtevr = ®s->gtevr4; in gtm_set_shortcuts()
368 timers[0].gtpsr = ®s->gtpsr1; in gtm_set_shortcuts()
369 timers[1].gtpsr = ®s->gtpsr2; in gtm_set_shortcuts()
370 timers[2].gtpsr = ®s->gtpsr3; in gtm_set_shortcuts()
371 timers[3].gtpsr = ®s->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()