Lines Matching refs:et
85 struct eventtimer et; member
119 static int mv_timer_start(struct eventtimer *et,
121 static int mv_timer_stop(struct eventtimer *et);
248 sc->et.et_name = "CPUTimer0"; in mv_timer_attach()
249 sc->et.et_flags = ET_FLAGS_PERIODIC | ET_FLAGS_ONESHOT; in mv_timer_attach()
250 sc->et.et_quality = 1000; in mv_timer_attach()
252 sc->et.et_frequency = sc->config->clock_src; in mv_timer_attach()
253 sc->et.et_min_period = (0x00000002LLU << 32) / sc->et.et_frequency; in mv_timer_attach()
254 sc->et.et_max_period = (0xfffffffeLLU << 32) / sc->et.et_frequency; in mv_timer_attach()
255 sc->et.et_start = mv_timer_start; in mv_timer_attach()
256 sc->et.et_stop = mv_timer_stop; in mv_timer_attach()
257 sc->et.et_priv = sc; in mv_timer_attach()
258 et_register(&sc->et); in mv_timer_attach()
279 if (sc->et.et_active) in mv_hardclock()
280 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in mv_hardclock()
506 mv_timer_start(struct eventtimer *et, sbintime_t first, sbintime_t period) in mv_timer_start() argument
512 sc = (struct mv_timer_softc *)et->et_priv; in mv_timer_start()
514 val = ((uint32_t)sc->et.et_frequency * period) >> 32; in mv_timer_start()
518 val1 = ((uint32_t)sc->et.et_frequency * first) >> 32; in mv_timer_start()
536 mv_timer_stop(struct eventtimer *et) in mv_timer_stop() argument