Home | History | Annotate | Download | only in dev

Lines Matching defs:smw

52 static int admwdog_setmode(struct sysmon_wdog *smw);
53 static int admwdog_tickle(struct sysmon_wdog *smw);
86 admwdog_setmode(struct sysmon_wdog *smw)
88 struct admsw_softc *sc = smw->smw_cookie;
90 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
95 if (smw->smw_period == WDOG_PERIOD_DEFAULT)
96 smw->smw_period = 32;
97 else if (smw->smw_period > ADMWDOG_MAX_PERIOD)
106 admwdog_tickle(struct sysmon_wdog *smw)
108 struct admsw_softc *sc = smw->smw_cookie;
117 struct sysmon_wdog *smw = &sc->sc_smw;
122 smw->smw_name = device_xname(sc->sc_dev);
123 smw->smw_cookie = sc;
124 smw->smw_setmode = admwdog_setmode;
125 smw->smw_tickle = admwdog_tickle;
126 smw->smw_period = ADMWDOG_MAX_PERIOD;