Lines Matching full:et
88 struct eventtimer et; member
260 sc->et.et_name = "iMXGPT"; in imx_gpt_attach()
261 sc->et.et_flags = ET_FLAGS_ONESHOT | ET_FLAGS_PERIODIC; in imx_gpt_attach()
262 sc->et.et_quality = 800; in imx_gpt_attach()
263 sc->et.et_frequency = sc->clkfreq; in imx_gpt_attach()
264 sc->et.et_min_period = ((uint64_t)setup_ticks << 32) / sc->clkfreq; in imx_gpt_attach()
265 sc->et.et_max_period = ((uint64_t)0xfffffffe << 32) / sc->clkfreq; in imx_gpt_attach()
266 sc->et.et_start = imx_gpt_timer_start; in imx_gpt_attach()
267 sc->et.et_stop = imx_gpt_timer_stop; in imx_gpt_attach()
268 sc->et.et_priv = sc; in imx_gpt_attach()
269 et_register(&sc->et); in imx_gpt_attach()
285 imx_gpt_timer_start(struct eventtimer *et, sbintime_t first, sbintime_t period) in imx_gpt_timer_start() argument
290 sc = (struct imx_gpt_softc *)et->et_priv; in imx_gpt_timer_start()
293 sc->sc_period = ((uint32_t)et->et_frequency * period) >> 32; in imx_gpt_timer_start()
306 ticks = ((uint32_t)et->et_frequency * first) >> 32; in imx_gpt_timer_start()
320 imx_gpt_timer_stop(struct eventtimer *et) in imx_gpt_timer_stop() argument
324 sc = (struct imx_gpt_softc *)et->et_priv; in imx_gpt_timer_stop()
355 if (sc->et.et_active) { in imx_gpt_intr()
356 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in imx_gpt_intr()
362 if (sc->et.et_active) in imx_gpt_intr()
363 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in imx_gpt_intr()