Lines Matching defs:tfp
203 timer_factors_t *tfp = &sc->sc_tf;
207 GEMINI_TIMERn_COUNTER(n), tfp->tf_counter);
209 GEMINI_TIMERn_LOAD(n), tfp->tf_reload);
211 GEMINI_TIMERn_MATCH1(n), tfp->tf_match1);
213 GEMINI_TIMERn_MATCH2(n), tfp->tf_match2);
218 r |= tfp->tf_tmcr & GEMINI_TIMER_TMnCR_MASK(n);
369 timer_factors_t *tfp = &sc->sc_tf;
379 tfp->tf_tmcr = TIMER_TMCR_TMnENABLE(n);
382 tfp->tf_counter = ~0U;
388 tfp->tf_counter = count_freq;
390 tfp->tf_counts_per_usec = GEMINI_TIMER_CLOCK_FREQ / us_per_sec;
393 tfp->tf_reload = tfp->tf_counter; /* auto-reload */
395 tfp->tf_reload = 0; /* no-auto_reload */
397 tfp->tf_match1 = 0;
398 tfp->tf_match2 = 0;
401 tfprint(sc->sc_timerno, tfp);
408 tfprint(uint n, timer_factors_t *tfp)
411 printf("\ttf_counts_per_usec: %#x\n", tfp->tf_counts_per_usec);
412 printf("\ttf_tmcr: %#x\n", tfp->tf_tmcr);
413 printf("\ttf_counter: %#x\n", tfp->tf_counter);
414 printf("\ttf_reload: %#x\n", tfp->tf_reload);
415 printf("\ttf_match1: %#x\n", tfp->tf_match1);
416 printf("\ttf_match2: %#x\n", tfp->tf_match2);