HomeSort by: relevance | last modified time | path
    Searched refs:smw (Results 1 - 25 of 42) sorted by relevancy

1 2

  /src/sys/dev/sysmon/
sysmon_wdog.c 161 struct sysmon_wdog *smw; local in function:sysmonclose_wdog
172 if ((smw = sysmon_armed_wdog) != NULL) {
173 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_UTICKLE) {
174 error = sysmon_wdog_setmode(smw,
175 WDOG_MODE_DISARMED, smw->smw_period);
179 smw->smw_name);
199 struct sysmon_wdog *smw; local in function:sysmonioctl_wdog
208 smw = sysmon_wdog_find(wm->wm_name);
209 if (smw == NULL) {
214 wm->wm_mode = smw->smw_mode
382 struct sysmon_wdog *smw = sysmon_armed_wdog; local in function:sysmon_wdog_critpoll
404 struct sysmon_wdog *smw; local in function:sysmon_wdog_find
515 struct sysmon_wdog *smw; local in function:sysmon_wdog_ktickle
541 struct sysmon_wdog *smw; local in function:sysmon_wdog_shutdown
    [all...]
  /src/sys/arch/mips/adm5120/dev/
admwdog.c 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; local in function:admwdog_attach
    [all...]
  /src/sys/arch/evbmips/atheros/
wdog.c 144 wdog_tickle(struct sysmon_wdog *smw)
146 struct wdog_softc *sc = smw->smw_cookie;
153 wdog_setmode(struct sysmon_wdog *smw)
155 struct wdog_softc *sc = smw->smw_cookie;
157 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
161 if (smw->smw_period == WDOG_PERIOD_DEFAULT)
162 smw->smw_period = sc->sc_wdog_period;
163 else if (smw->smw_period != sc->sc_wdog_period) {
168 if (smw->smw_period > sc->sc_wdog_max) {
171 sc->sc_wdog_period = smw->smw_period
    [all...]
  /src/sys/arch/arm/xscale/
i80321_wdog.c 75 iopwdog_tickle(struct sysmon_wdog *smw)
84 iopwdog_setmode(struct sysmon_wdog *smw)
86 struct iopwdog_softc *sc = smw->smw_cookie;
88 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
93 if (smw->smw_period == WDOG_PERIOD_DEFAULT)
94 smw->smw_period = sc->sc_wdog_period;
95 else if (smw->smw_period != sc->sc_wdog_period) {
101 iopwdog_tickle(smw);
ixp425_wdog.c 159 ixpdog_tickle(struct sysmon_wdog *smw)
161 struct ixpdog_softc *sc = smw->smw_cookie;
177 ixpdog_setmode(struct sysmon_wdog *smw)
179 struct ixpdog_softc *sc = smw->smw_cookie;
181 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED)
184 if (smw->smw_period == WDOG_PERIOD_DEFAULT)
185 smw->smw_period = IXPDOG_DEFAULT_PERIOD;
186 sc->sc_preset = IXPDOG_COUNTS_PER_SEC * hz * smw->smw_period;
188 sc->sc_preset < smw->smw_period)
  /src/sys/arch/powerpc/ibm4xx/dev/
wdog.c 113 wdog_tickle(struct sysmon_wdog *smw)
124 wdog_setmode(struct sysmon_wdog *smw)
126 struct wdog_softc * const sc = smw->smw_cookie;
128 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
136 if (smw->smw_period == WDOG_PERIOD_DEFAULT)
137 smw->smw_period = sc->sc_wdog_period;
138 else if (smw->smw_period != sc->sc_wdog_period) {
153 wdog_tickle(smw);
  /src/sys/arch/arm/imx/
imxwdog.c 78 wdog_tickle(struct sysmon_wdog *smw)
80 struct wdog_softc * const sc = smw->smw_cookie;
89 wdog_setmode(struct sysmon_wdog *smw)
91 struct wdog_softc * const sc = smw->smw_cookie;
94 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
103 if (sc->sc_wdog_armed && smw->smw_period == sc->sc_wdog_period) {
104 wdog_tickle(smw);
110 if (smw->smw_period == WDOG_PERIOD_DEFAULT) {
112 smw->smw_period = IMXWDOG_PERIOD_DEFAULT;
118 if (smw->smw_period >= sc->sc_wdog_max_period
    [all...]
  /src/sys/arch/arm/sunxi/
sunxi_wdt.c 124 sun4i_wdt_setmode(struct sysmon_wdog *smw)
126 struct sunxi_wdt_softc * const sc = smw->smw_cookie;
130 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
133 if (smw->smw_period == WDOG_PERIOD_DEFAULT)
134 smw->smw_period = SUNXI_WDT_PERIOD_DEFAULT;
135 intv = sunxi_wdt_map_period(sc, smw->smw_period,
150 sun4i_wdt_tickle(struct sysmon_wdog *smw)
152 struct sunxi_wdt_softc * const sc = smw->smw_cookie;
162 sun6i_wdt_setmode(struct sysmon_wdog *smw)
164 struct sunxi_wdt_softc * const sc = smw->smw_cookie
    [all...]
  /src/sys/arch/mips/sibyte/dev/
sbwdog.c 122 sbwdog_tickle(struct sysmon_wdog *smw)
124 struct sbwdog_softc *sc = smw->smw_cookie;
144 sbwdog_setmode(struct sysmon_wdog *smw)
146 struct sbwdog_softc *sc = smw->smw_cookie;
148 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
152 if (smw->smw_period == WDOG_PERIOD_DEFAULT) {
154 smw->smw_period = SBWDOG_DEFAULT_PERIOD; /* XXX needed?? */
155 } else if (smw->smw_period > 8) {
159 sc->sc_wdog_period = smw->smw_period;
165 sbwdog_tickle(smw);
    [all...]
  /src/sys/arch/arm/acpi/
sbsawdt_acpi.c 155 sbsawdt_acpi_tickle(struct sysmon_wdog *smw)
157 struct sbsawdt_acpi_softc * const sc = smw->smw_cookie;
165 sbsawdt_acpi_setmode(struct sysmon_wdog *smw)
167 struct sbsawdt_acpi_softc * const sc = smw->smw_cookie;
169 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
174 if (smw->smw_period == WDOG_PERIOD_DEFAULT)
175 smw->smw_period = sc->sc_max_period;
176 else if (smw->smw_period > sc->sc_max_period)
185 const uint32_t wor = smw->smw_period * sc->sc_cntfreq / 2;
  /src/sys/arch/arm/amlogic/
meson_wdt.c 75 meson_wdt_setmode(struct sysmon_wdog *smw)
77 struct meson_wdt_softc * const sc = smw->smw_cookie;
80 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
88 if (smw->smw_period == WDOG_PERIOD_DEFAULT) {
90 } else if (smw->smw_period == 0 ||
91 smw->smw_period > WATCHDOG_PERIOD_MAX) {
94 sc->sc_wdog.smw_period = smw->smw_period;
106 meson_wdt_tickle(struct sysmon_wdog *smw)
108 struct meson_wdt_softc * const sc = smw->smw_cookie;
mesongx_wdt.c 78 mesongx_wdt_setmode(struct sysmon_wdog *smw)
80 struct mesongx_wdt_softc * const sc = smw->smw_cookie;
82 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
87 if (smw->smw_period == WDOG_PERIOD_DEFAULT) {
89 } else if (smw->smw_period == 0 ||
90 smw->smw_period > WATCHDOG_PERIOD_MAX) {
93 sc->sc_wdog.smw_period = smw->smw_period;
110 mesongx_wdt_tickle(struct sysmon_wdog *smw)
112 struct mesongx_wdt_softc * const sc = smw->smw_cookie;
  /src/sys/arch/arm/nvidia/
tegra_timer.c 131 tegra_timer_wdt_setmode(struct sysmon_wdog *smw)
133 struct tegra_timer_softc * const sc = smw->smw_cookie;
135 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
138 if (smw->smw_period == WDOG_PERIOD_DEFAULT) {
140 } else if (smw->smw_period == 0 || smw->smw_period > 1000) {
143 sc->sc_smw.smw_period = smw->smw_period;
155 tegra_timer_wdt_tickle(struct sysmon_wdog *smw)
157 struct tegra_timer_softc * const sc = smw->smw_cookie;
  /src/sys/dev/ic/
dwc_wdt.c 110 dwcwdt_tickle(struct sysmon_wdog *smw)
112 struct dwcwdt_softc * const sc = smw->smw_cookie;
122 dwcwdt_setmode(struct sysmon_wdog *smw)
124 struct dwcwdt_softc * const sc = smw->smw_cookie;
128 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
133 if (smw->smw_period == WDOG_PERIOD_DEFAULT)
134 smw->smw_period = DWCWDT_PERIOD_DEFAULT;
136 intv = dwcwdt_map_period(sc, smw->smw_period,
143 dwcwdt_tickle(smw);
  /src/sys/arch/powerpc/booke/dev/
e500wdog.c 90 e500wdog_tickle(struct sysmon_wdog *smw)
97 e500wdog_setmode(struct sysmon_wdog *smw)
99 struct e500wdog_softc * const sc = smw->smw_cookie;
101 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
112 && smw->smw_period == sc->sc_wdog_period) {
117 sc->sc_wdog_period, smw->smw_period);
118 if (smw->smw_period == WDOG_PERIOD_DEFAULT) {
120 smw->smw_period = PQ3WDOG_PERIOD_DEFAULT;
  /src/sys/arch/sparc64/dev/
pld_wdog.c 82 pldwdog_tickle(struct sysmon_wdog *smw)
84 struct pldwdog_softc *sc = smw->smw_cookie;
88 device_xname(sc->sc_dev), smw->smw_mode, smw->smw_period);
93 smw->smw_period * 10);
100 pldwdog_setmode(struct sysmon_wdog *smw)
102 struct pldwdog_softc *sc = smw->smw_cookie;
106 smw->smw_mode);
109 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
112 if (smw->smw_period == WDOG_PERIOD_DEFAULT
    [all...]
  /src/sys/arch/arm/nxp/
imxwdog.c 96 wdog_tickle(struct sysmon_wdog *smw)
98 struct imxwdog_softc * const sc = smw->smw_cookie;
107 wdog_setmode(struct sysmon_wdog *smw)
109 struct imxwdog_softc * const sc = smw->smw_cookie;
112 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
121 if (sc->sc_wdog_armed && smw->smw_period == sc->sc_wdog_period) {
122 wdog_tickle(smw);
128 if (smw->smw_period == WDOG_PERIOD_DEFAULT) {
130 smw->smw_period = IMXWDOG_PERIOD_DEFAULT;
136 if (smw->smw_period >= sc->sc_wdog_max_period
    [all...]
  /src/sys/dev/acpi/
acpi_wdrt.c 266 acpi_wdrt_setmode(struct sysmon_wdog *smw)
268 struct acpi_wdrt_softc *sc = smw->smw_cookie;
272 __func__, smw->smw_mode, smw->smw_period));
274 switch (smw->smw_mode & WDOG_MODE_MASK) {
285 if (smw->smw_period == 0)
287 if (smw->smw_period > sc->sc_max_period)
288 smw->smw_period = sc->sc_max_period;
299 if (acpi_wdrt_tickle(smw))
314 acpi_wdrt_tickle(struct sysmon_wdog *smw)
    [all...]
  /src/sys/arch/i386/pci/
geodewdg.c 153 geode_wdog_tickle(struct sysmon_wdog *smw)
156 struct geode_wdog_softc *sc = smw->smw_cookie;
165 geode_wdog_setmode(struct sysmon_wdog *smw)
167 struct geode_wdog_softc *sc = smw->smw_cookie;
171 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
177 if (smw->smw_period == WDOG_PERIOD_DEFAULT)
178 smw->smw_period = 32;
179 else if (smw->smw_period > SC1100_WDIVL_MAX) /* too big? */
182 GEODE_DPRINTF(("%s: period %u\n", __func__, smw->smw_period));
184 ticks = smw->smw_period * SC1100_WDCLK_HZ
    [all...]
  /src/sys/arch/arm/broadcom/
bcm2835_pmwdog.c 179 bcmpmwdog_setmode(struct sysmon_wdog *smw)
181 struct bcm2835pmwdog_softc *sc = smw->smw_cookie;
184 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
188 if (smw->smw_period == WDOG_PERIOD_DEFAULT)
189 smw->smw_period = BCM2835_PM_DEFAULT_PERIOD;
190 if (smw->smw_period > (BCM2835_PM_WDOG_TIMEMASK >> 16))
192 error = bcmpmwdog_tickle(smw);
210 bcmpmwdog_tickle(struct sysmon_wdog *smw)
212 struct bcm2835pmwdog_softc *sc = smw->smw_cookie;
213 uint32_t timeout = smw->smw_period << 16
    [all...]
  /src/sys/arch/arm/gemini/
gemini_wdt.c 167 geminiwdt_setmode(struct sysmon_wdog *smw)
169 geminiwdt_softc_t *sc = smw->smw_cookie;
172 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
175 if (smw->smw_period == WDOG_PERIOD_DEFAULT)
178 sc->sc_smw.smw_period = smw->smw_period;
186 geminiwdt_tickle(struct sysmon_wdog *smw)
  /src/sys/arch/arm/cortex/
a9wdt.c 115 a9wdt_tickle(struct sysmon_wdog *smw)
117 struct a9wdt_softc * const sc = smw->smw_cookie;
128 a9wdt_setmode(struct sysmon_wdog *smw)
130 struct a9wdt_softc * const sc = smw->smw_cookie;
132 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
148 if (sc->sc_wdog_armed && smw->smw_period == sc->sc_wdog_period) {
159 if (smw->smw_period == WDOG_PERIOD_DEFAULT) {
161 smw->smw_period = A9WDT_PERIOD_DEFAULT;
167 if (smw->smw_period >= sc->sc_wdog_max_period) {
  /src/sys/arch/arm/samsung/
exynos_wdt.c 104 exynos_wdt_tickle(struct sysmon_wdog *smw)
106 struct exynos_wdt_softc * const sc = smw->smw_cookie;
117 exynos_wdt_setmode(struct sysmon_wdog *smw)
119 struct exynos_wdt_softc * const sc = smw->smw_cookie;
121 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
135 if (sc->sc_wdog_armed && smw->smw_period == sc->sc_wdog_period) {
148 if (smw->smw_period == WDOG_PERIOD_DEFAULT) {
150 smw->smw_period = EXYNOS_WDT_PERIOD_DEFAULT;
156 if (smw->smw_period * sc->sc_freq >= UINT16_MAX) {
  /src/sys/dev/isa/
weasel_isa.c 220 weasel_isa_wdog_setmode(struct sysmon_wdog *smw)
222 struct weasel_handle *wh = smw->smw_cookie;
225 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
228 if (smw->smw_period == WDOG_PERIOD_DEFAULT)
229 smw->smw_period = wh->wh_wdog_period;
230 else if (smw->smw_period != wh->wh_wdog_period) {
235 weasel_isa_wdog_tickle(smw);
242 weasel_isa_wdog_tickle(struct sysmon_wdog *smw)
244 struct weasel_handle *wh = smw->smw_cookie;
  /src/sys/arch/x86/pci/
tcpcib.c 312 struct sysmon_wdog *smw = &sc->sc_wdt_smw; local in function:tcpcib_resume
315 if ((smw->smw_mode & WDOG_MODE_MASK) != WDOG_MODE_DISARMED &&
316 smw->smw_period > 0) {
317 tcpcib_wdt_init(sc, smw->smw_period);
328 tcpcib_wdt_setmode(struct sysmon_wdog *smw)
330 struct tcpcib_softc *sc = smw->smw_cookie;
333 period = smw->smw_period;
334 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) {
344 tcpcib_wdt_tickle(smw);
351 tcpcib_wdt_tickle(struct sysmon_wdog *smw)
    [all...]

Completed in 19 milliseconds

1 2