/netbsd-6-1-5-RELEASE/sys/dev/sysmon/ |
H A D | sysmon_wdog.c | 112 struct sysmon_wdog *smw; local 123 if ((smw = sysmon_armed_wdog) != NULL) { 124 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_UTICKLE) { 125 error = sysmon_wdog_setmode(smw, 126 WDOG_MODE_DISARMED, smw->smw_period); 130 smw->smw_name); 150 struct sysmon_wdog *smw; local 159 smw = sysmon_wdog_find(wm->wm_name); 160 if (smw == NULL) { 165 wm->wm_mode = smw 274 sysmon_wdog_register(struct sysmon_wdog *smw) argument 305 sysmon_wdog_unregister(struct sysmon_wdog *smw) argument 331 struct sysmon_wdog *smw = sysmon_armed_wdog; local 353 struct sysmon_wdog *smw; local 375 sysmon_wdog_release(struct sysmon_wdog *smw) argument 386 sysmon_wdog_ref(struct sysmon_wdog *smw) argument 399 sysmon_wdog_setmode(struct sysmon_wdog *smw, int mode, u_int period) argument 464 struct sysmon_wdog *smw; local 490 struct sysmon_wdog *smw; local [all...] |
H A D | swwdog.c | 185 swwdog_setmode(struct sysmon_wdog *smw) argument 187 struct swwdog_softc *sc = smw->smw_cookie; 190 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) { 193 if (smw->smw_period == 0) 195 else if (smw->smw_period == WDOG_PERIOD_DEFAULT) 198 sc->sc_smw.smw_period = smw->smw_period; 205 swwdog_tickle(struct sysmon_wdog *smw) argument 208 return swwdog_arm(smw->smw_cookie);
|
/netbsd-6-1-5-RELEASE/sys/arch/mips/adm5120/dev/ |
H A D | 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) argument 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) argument 108 struct admsw_softc *sc = smw 117 struct sysmon_wdog *smw = &sc->sc_smw; local [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/evbmips/atheros/ |
H A D | wdog.c | 144 wdog_tickle(struct sysmon_wdog *smw) argument 146 struct wdog_softc *sc = smw->smw_cookie; 153 wdog_setmode(struct sysmon_wdog *smw) argument 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 [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/arm/xscale/ |
H A D | i80321_wdog.c | 75 iopwdog_tickle(struct sysmon_wdog *smw) argument 84 iopwdog_setmode(struct sysmon_wdog *smw) argument 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);
|
H A D | ixp425_wdog.c | 162 ixpdog_tickle(struct sysmon_wdog *smw) argument 164 struct ixpdog_softc *sc = smw->smw_cookie; 180 ixpdog_setmode(struct sysmon_wdog *smw) argument 182 struct ixpdog_softc *sc = smw->smw_cookie; 184 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) 187 if (smw->smw_period == WDOG_PERIOD_DEFAULT) 188 smw->smw_period = IXPDOG_DEFAULT_PERIOD; 189 sc->sc_preset = IXPDOG_COUNTS_PER_SEC * hz * smw->smw_period; 191 sc->sc_preset < smw->smw_period)
|
/netbsd-6-1-5-RELEASE/sys/arch/sparc64/dev/ |
H A D | pld_wdog.c | 79 pldwdog_tickle(struct sysmon_wdog *smw) argument 81 struct pldwdog_softc *sc = smw->smw_cookie; 85 device_xname(&sc->sc_dev), smw->smw_mode, smw->smw_period); 90 smw->smw_period * 10); 97 pldwdog_setmode(struct sysmon_wdog *smw) argument 99 struct pldwdog_softc *sc = smw->smw_cookie; 103 smw->smw_mode); 106 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) { 109 if (smw [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/powerpc/ibm4xx/dev/ |
H A D | wdog.c | 113 wdog_tickle(struct sysmon_wdog *smw) argument 124 wdog_setmode(struct sysmon_wdog *smw) argument 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);
|
/netbsd-6-1-5-RELEASE/sys/arch/mips/sibyte/dev/ |
H A D | sbwdog.c | 120 sbwdog_tickle(struct sysmon_wdog *smw) argument 122 struct sbwdog_softc *sc = smw->smw_cookie; 142 sbwdog_setmode(struct sysmon_wdog *smw) argument 144 struct sbwdog_softc *sc = smw->smw_cookie; 146 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) { 150 if (smw->smw_period == WDOG_PERIOD_DEFAULT) { 152 smw->smw_period = SBWDOG_DEFAULT_PERIOD; /* XXX needed?? */ 153 } else if (smw->smw_period > 8) { 157 sc->sc_wdog_period = smw->smw_period; 163 sbwdog_tickle(smw); [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/arm/broadcom/ |
H A D | bcm2835_pm.c | 149 bcmpm_wdog_setmode(struct sysmon_wdog *smw) argument 151 struct bcm2835pm_softc *sc = smw->smw_cookie; 154 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) { 158 if (smw->smw_period == WDOG_PERIOD_DEFAULT) 159 smw->smw_period = BCM2835_PM_DEFAULT_PERIOD; 160 if (smw->smw_period > (BCM2835_PM_WDOG_TIMEMASK >> 16)) 162 error = bcmpm_wdog_tickle(smw); 169 bcmpm_wdog_tickle(struct sysmon_wdog *smw) argument 171 struct bcm2835pm_softc *sc = smw->smw_cookie; 172 uint32_t timeout = smw [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/powerpc/booke/dev/ |
H A D | e500wdog.c | 91 e500wdog_tickle(struct sysmon_wdog *smw) argument 98 e500wdog_setmode(struct sysmon_wdog *smw) argument 100 struct e500wdog_softc * const sc = smw->smw_cookie; 102 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) { 113 && smw->smw_period == sc->sc_wdog_period) { 118 sc->sc_wdog_period, smw->smw_period); 119 if (smw->smw_period == WDOG_PERIOD_DEFAULT) { 121 smw->smw_period = PQ3WDOG_PERIOD_DEFAULT;
|
/netbsd-6-1-5-RELEASE/sys/dev/acpi/ |
H A D | acpi_wdrt.c | 266 acpi_wdrt_setmode(struct sysmon_wdog *smw) argument 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) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/i386/pci/ |
H A D | geodewdg.c | 153 geode_wdog_tickle(struct sysmon_wdog *smw) argument 156 struct geode_wdog_softc *sc = smw->smw_cookie; 165 geode_wdog_setmode(struct sysmon_wdog *smw) argument 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 [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/arm/marvell/ |
H A D | mvsoctmr.c | 308 mvsoctmr_wdog_setmode(struct sysmon_wdog *smw) argument 310 struct mvsoctmr_softc *sc = smw->smw_cookie; 312 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) { 317 if (smw->smw_period == WDOG_PERIOD_DEFAULT) 318 smw->smw_period = MVSOC_WDOG_MAX_PERIOD; 319 else if (smw->smw_period > MVSOC_WDOG_MAX_PERIOD || 320 smw->smw_period <= 0) 322 sc->sc_wdog_period = smw->smw_period * mvTclk; 330 mvsoctmr_wdog_tickle(struct sysmon_wdog *smw) argument 332 struct mvsoctmr_softc *sc = smw [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/arm/gemini/ |
H A D | gemini_wdt.c | 168 geminiwdt_setmode(struct sysmon_wdog *smw) argument 170 geminiwdt_softc_t *sc = smw->smw_cookie; 173 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) { 176 if (smw->smw_period == WDOG_PERIOD_DEFAULT) 179 sc->sc_smw.smw_period = smw->smw_period; 187 geminiwdt_tickle(struct sysmon_wdog *smw) argument
|
/netbsd-6-1-5-RELEASE/sys/arch/arm/omap/ |
H A D | omap_wdt.c | 176 omapwdt32k_setmode(struct sysmon_wdog *smw) argument 178 struct omapwdt32k_softc *sc = smw->smw_cookie; 181 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) { 184 if (smw->smw_period == WDOG_PERIOD_DEFAULT) 187 sc->sc_smw.smw_period = smw->smw_period; 195 omapwdt32k_tickle(struct sysmon_wdog *smw) argument
|
/netbsd-6-1-5-RELEASE/sys/dev/isa/ |
H A D | weasel_isa.c | 220 weasel_isa_wdog_setmode(struct sysmon_wdog *smw) argument 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) argument 244 struct weasel_handle *wh = smw->smw_cookie;
|
H A D | itesio_isa.c | 558 itesio_wdt_setmode(struct sysmon_wdog *smw) argument 560 struct itesio_softc *sc = smw->smw_cookie; 561 int period = smw->smw_period; 568 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) { 577 period = smw->smw_period = ITESIO_WDT_MAXTIMO; 597 itesio_wdt_tickle(struct sysmon_wdog *smw) argument 599 struct itesio_softc *sc = smw->smw_cookie; 600 int period = smw->smw_period * 2;
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.dg/ |
H A D | 20020430-1.c | 113 SimpleMenuWidget smw = (SimpleMenuWidget)w; local 139 if (x_loc < 0 || x_loc >= (((RectObj)smw)->rectangle.width) || 140 y_loc < 0 || y_loc >= (((RectObj)smw)->rectangle.height)) 145 if (smw->simple_menu.entry_set) { 147 (((RectObj)smw->simple_menu.entry_set)->rectangle.x) 148 + (((RectObj)smw->simple_menu.entry_set)->rectangle.width) + 1, 169 if (smw->simple_menu.entry_set) { 170 entry = DoGetEventEntry(w, (((RectObj)smw->simple_menu.entry_set)->rectangle.x) - 1,
|
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.dg/ |
H A D | 20020430-1.c | 113 SimpleMenuWidget smw = (SimpleMenuWidget)w; local 139 if (x_loc < 0 || x_loc >= (((RectObj)smw)->rectangle.width) || 140 y_loc < 0 || y_loc >= (((RectObj)smw)->rectangle.height)) 145 if (smw->simple_menu.entry_set) { 147 (((RectObj)smw->simple_menu.entry_set)->rectangle.x) 148 + (((RectObj)smw->simple_menu.entry_set)->rectangle.width) + 1, 169 if (smw->simple_menu.entry_set) { 170 entry = DoGetEventEntry(w, (((RectObj)smw->simple_menu.entry_set)->rectangle.x) - 1,
|
/netbsd-6-1-5-RELEASE/sys/dev/pci/ |
H A D | pwdog.c | 167 pwdog_setmode(struct sysmon_wdog *smw) argument 169 struct pwdog_softc *sc = smw->smw_cookie; 171 switch (smw->smw_mode & WDOG_MODE_MASK) { 186 pwdog_tickle(struct sysmon_wdog *smw) argument 188 struct pwdog_softc *sc = smw->smw_cookie;
|
H A D | weasel_pci.c | 283 weasel_pci_wdog_setmode(struct sysmon_wdog *smw) argument 285 struct weasel_softc *sc = smw->smw_cookie; 288 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) { 291 if (smw->smw_period == WDOG_PERIOD_DEFAULT) 292 smw->smw_period = sc->sc_wdog_period; 293 else if (smw->smw_period != sc->sc_wdog_period) { 298 weasel_pci_wdog_tickle(smw); 305 weasel_pci_wdog_tickle(struct sysmon_wdog *smw) argument 307 struct weasel_softc *sc = smw->smw_cookie; 335 sysmon_wdog_setmode(smw, WDOG_MODE_DISARME [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/mips/ralink/ |
H A D | ralink_wdog.c | 220 * ra_wdog_tickle - smw watchdog service function 223 ra_wdog_tickle(struct sysmon_wdog *smw) argument 225 const ra_wdog_softc_t * const sc = smw->smw_cookie; 242 ra_wdog_setmode(struct sysmon_wdog *smw) argument 244 const ra_wdog_softc_t * const sc = smw->smw_cookie; 245 u_int period = smw->smw_period; 249 if (((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_KTICKLE) && 259 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED)
|
/netbsd-6-1-5-RELEASE/sys/arch/x86/pci/ |
H A D | rdcpcib.c | 246 rdc_wdtimer_setmode(struct sysmon_wdog *smw) argument 248 struct rdcpcib_softc *sc = smw->smw_cookie; 251 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) { 255 period = smw->smw_period * RDC_WDT0_FREQ; 276 rdc_wdtimer_tickle(struct sysmon_wdog *smw) argument 278 struct rdcpcib_softc *sc = smw->smw_cookie;
|
/netbsd-6-1-5-RELEASE/sys/dev/ic/ |
H A D | gcscpcib.c | 73 static int gcscpcib_wdog_setmode(struct sysmon_wdog *smw); 74 static int gcscpcib_wdog_tickle(struct sysmon_wdog *smw); 309 gcscpcib_wdog_setmode(struct sysmon_wdog *smw) argument 311 struct gcscpcib_softc *sc = smw->smw_cookie; 313 if ((smw->smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED) { 318 if (smw->smw_period == WDOG_PERIOD_DEFAULT) 319 smw->smw_period = 32; 320 else if (smw->smw_period > AMD553X_WDT_COUNTMAX) /* too big */ 340 gcscpcib_wdog_tickle(struct sysmon_wdog *smw) argument 342 struct gcscpcib_softc *sc = smw [all...] |