Lines Matching full:et
101 struct eventtimer et; member
123 sp804_timer_start(struct eventtimer *et, sbintime_t first, sbintime_t period) in sp804_timer_start() argument
125 struct sp804_timer_softc *sc = et->et_priv; in sp804_timer_start()
131 count = ((uint32_t)et->et_frequency * first) >> 32; in sp804_timer_start()
150 sp804_timer_stop(struct eventtimer *et) in sp804_timer_stop() argument
152 struct sp804_timer_softc *sc = et->et_priv; in sp804_timer_stop()
172 if (sc->et.et_active) { in sp804_timer_intr()
173 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in sp804_timer_intr()
264 sc->et.et_name = "SP804-2"; in sp804_timer_attach()
265 sc->et.et_flags = ET_FLAGS_PERIODIC | ET_FLAGS_ONESHOT; in sp804_timer_attach()
266 sc->et.et_quality = 1000; in sp804_timer_attach()
267 sc->et.et_frequency = sc->sysclk_freq / DEFAULT_DIVISOR; in sp804_timer_attach()
268 sc->et.et_min_period = (0x00000002LLU << 32) / sc->et.et_frequency; in sp804_timer_attach()
269 sc->et.et_max_period = (0xfffffffeLLU << 32) / sc->et.et_frequency; in sp804_timer_attach()
270 sc->et.et_start = sp804_timer_start; in sp804_timer_attach()
271 sc->et.et_stop = sp804_timer_stop; in sp804_timer_attach()
272 sc->et.et_priv = sc; in sp804_timer_attach()
273 et_register(&sc->et); in sp804_timer_attach()