Lines Matching refs:wdt_softc
113 static struct mv_wdt_softc *wdt_softc = NULL; variable
159 if (wdt_softc != NULL) in mv_wdt_attach()
163 wdt_softc = sc; in mv_wdt_attach()
179 if (wdt_softc->wdt_config->wdt_disable != NULL) in mv_wdt_attach()
180 wdt_softc->wdt_config->wdt_disable(); in mv_wdt_attach()
190 return (bus_read_4(wdt_softc->wdt_res, CPU_TIMER_CONTROL)); in mv_get_timer_control()
197 bus_write_4(wdt_softc->wdt_res, CPU_TIMER_CONTROL, val); in mv_set_timer_control()
204 bus_write_4(wdt_softc->wdt_res, CPU_TIMER0 + timer * 0x8, val); in mv_set_timer()
350 if (wdt_softc->wdt_config->wdt_disable != NULL) in mv_watchdog_event()
351 wdt_softc->wdt_config->wdt_disable(); in mv_watchdog_event()
360 if (wdt_softc->wdt_config->wdt_disable != NULL) in mv_watchdog_event()
361 wdt_softc->wdt_config->wdt_disable(); in mv_watchdog_event()
364 mv_set_timer(wdt_softc->wdt_config->wdt_timer, ticks); in mv_watchdog_event()
365 if (wdt_softc->wdt_config->wdt_enable != NULL) in mv_watchdog_event()
366 wdt_softc->wdt_config->wdt_enable(); in mv_watchdog_event()