/netbsd/sys/arch/arm/nvidia/ |
H A D | tegra_timer.c | 58 struct sysmon_wdog sc_smw; member 114 sc->sc_smw.smw_name = device_xname(self); in tegra_timer_attach() 115 sc->sc_smw.smw_cookie = sc; in tegra_timer_attach() 116 sc->sc_smw.smw_setmode = tegra_timer_wdt_setmode; in tegra_timer_attach() 117 sc->sc_smw.smw_tickle = tegra_timer_wdt_tickle; in tegra_timer_attach() 118 sc->sc_smw.smw_period = TEGRA_TIMER_WDOG_PERIOD_DEFAULT; in tegra_timer_attach() 122 sc->sc_smw.smw_period); in tegra_timer_attach() 124 if (sysmon_wdog_register(&sc->sc_smw) != 0) { in tegra_timer_attach() 139 sc->sc_smw.smw_period = TEGRA_TIMER_WDOG_PERIOD_DEFAULT; in tegra_timer_wdt_setmode() 143 sc->sc_smw.smw_period = smw->smw_period; in tegra_timer_wdt_setmode() [all …]
|
/netbsd/sys/dev/sysmon/ |
H A D | swwdog.c | 62 struct sysmon_wdog sc_smw; member 161 sc->sc_smw.smw_name = device_xname(self); in swwdog_attach() 162 sc->sc_smw.smw_cookie = sc; in swwdog_attach() 163 sc->sc_smw.smw_setmode = swwdog_setmode; in swwdog_attach() 164 sc->sc_smw.smw_tickle = swwdog_tickle; in swwdog_attach() 165 sc->sc_smw.smw_period = SWDOG_DEFAULT; in swwdog_attach() 170 if (sysmon_wdog_register(&sc->sc_smw) == 0) in swwdog_attach() 190 sysmon_wdog_unregister(&sc->sc_smw); in swwdog_detach() 220 sc->sc_smw.smw_period = SWDOG_DEFAULT; in swwdog_setmode() 222 sc->sc_smw.smw_period = smw->smw_period; in swwdog_setmode() [all …]
|
/netbsd/sys/arch/mips/ralink/ |
H A D | ralink_wdog.c | 108 struct sysmon_wdog sc_smw; member 172 sc->sc_smw.smw_name = device_xname(self); in ra_wdog_attach() 173 sc->sc_smw.smw_cookie = sc; in ra_wdog_attach() 174 sc->sc_smw.smw_setmode = ra_wdog_setmode; in ra_wdog_attach() 175 sc->sc_smw.smw_tickle = ra_wdog_tickle; in ra_wdog_attach() 176 sc->sc_smw.smw_period = RA_WDOG_DEFAULT_PERIOD; in ra_wdog_attach() 178 error = sysmon_wdog_register(&sc->sc_smw); in ra_wdog_attach() 195 wdog_modestr[sc->sc_smw.smw_mode]); in ra_wdog_attach() 205 error = sysmon_wdog_setmode(&sc->sc_smw, RA_WDOG_DEFAULT_MODE, in ra_wdog_attach() 213 wdog_modestr[sc->sc_smw.smw_mode], in ra_wdog_attach() [all …]
|
/netbsd/sys/arch/arm/sunxi/ |
H A D | sunxi_wdt.c | 96 struct sysmon_wdog sc_smw; member 136 &sc->sc_smw.smw_period); in sun4i_wdt_setmode() 174 &sc->sc_smw.smw_period); in sun6i_wdt_setmode() 234 sc->sc_smw.smw_name = device_xname(self); in sunxi_wdt_attach() 235 sc->sc_smw.smw_cookie = sc; in sunxi_wdt_attach() 241 sc->sc_smw.smw_setmode = sun4i_wdt_setmode; in sunxi_wdt_attach() 242 sc->sc_smw.smw_tickle = sun4i_wdt_tickle; in sunxi_wdt_attach() 245 sc->sc_smw.smw_setmode = sun6i_wdt_setmode; in sunxi_wdt_attach() 246 sc->sc_smw.smw_tickle = sun6i_wdt_tickle; in sunxi_wdt_attach() 255 sc->sc_smw.smw_period); in sunxi_wdt_attach() [all …]
|
/netbsd/sys/dev/pci/ |
H A D | pwdog.c | 40 struct sysmon_wdog sc_smw; member 103 sc->sc_smw.smw_name = device_xname(self); in pwdog_attach() 104 sc->sc_smw.smw_cookie = sc; in pwdog_attach() 105 sc->sc_smw.smw_setmode = pwdog_setmode; in pwdog_attach() 106 sc->sc_smw.smw_tickle = pwdog_tickle; in pwdog_attach() 107 sc->sc_smw.smw_period = PWDOG_MAX_PERIOD; in pwdog_attach() 109 if (sysmon_wdog_register(&sc->sc_smw)) in pwdog_attach() 122 if ((sc->sc_smw.smw_mode & WDOG_MODE_MASK) in pwdog_detach() 126 sysmon_wdog_unregister(&sc->sc_smw); in pwdog_detach() 162 if ((sc->sc_smw.smw_mode & WDOG_MODE_MASK) != WDOG_MODE_DISARMED) in pwdog_suspend()
|
/netbsd/sys/arch/arm/xscale/ |
H A D | i80321_wdog.c | 60 struct sysmon_wdog sc_smw; member 134 sc->sc_smw.smw_name = xname; in iopwdog_attach() 135 sc->sc_smw.smw_cookie = sc; in iopwdog_attach() 136 sc->sc_smw.smw_setmode = iopwdog_setmode; in iopwdog_attach() 137 sc->sc_smw.smw_tickle = iopwdog_tickle; in iopwdog_attach() 138 sc->sc_smw.smw_period = sc->sc_wdog_period; in iopwdog_attach() 140 if (sysmon_wdog_register(&sc->sc_smw) != 0) in iopwdog_attach()
|
H A D | ixp425_wdog.c | 59 struct sysmon_wdog sc_smw; member 123 sc->sc_smw.smw_name = device_xname(self); in ixpdog_attach() 124 sc->sc_smw.smw_cookie = sc; in ixpdog_attach() 125 sc->sc_smw.smw_setmode = ixpdog_setmode; in ixpdog_attach() 126 sc->sc_smw.smw_tickle = ixpdog_tickle; in ixpdog_attach() 127 sc->sc_smw.smw_period = IXPDOG_DEFAULT_PERIOD; in ixpdog_attach() 129 if (sysmon_wdog_register(&sc->sc_smw) != 0) in ixpdog_attach()
|
/netbsd/sys/dev/ic/ |
H A D | dwc_wdt.c | 137 &sc->sc_smw.smw_period); in dwcwdt_setmode() 160 sc->sc_smw.smw_name = device_xname(sc->sc_dev); in dwcwdt_init() 161 sc->sc_smw.smw_cookie = sc; in dwcwdt_init() 162 sc->sc_smw.smw_period = DWCWDT_PERIOD_DEFAULT; in dwcwdt_init() 163 sc->sc_smw.smw_setmode = dwcwdt_setmode; in dwcwdt_init() 164 sc->sc_smw.smw_tickle = dwcwdt_tickle; in dwcwdt_init() 168 sc->sc_smw.smw_period); in dwcwdt_init() 170 if (sysmon_wdog_register(&sc->sc_smw) != 0) { in dwcwdt_init()
|
/netbsd/sys/arch/evbmips/atheros/ |
H A D | wdog.c | 103 struct sysmon_wdog sc_smw; member 131 sc->sc_smw.smw_name = device_xname(self); in wdog_attach() 132 sc->sc_smw.smw_cookie = sc; in wdog_attach() 133 sc->sc_smw.smw_setmode = wdog_setmode; in wdog_attach() 134 sc->sc_smw.smw_tickle = wdog_tickle; in wdog_attach() 135 sc->sc_smw.smw_period = sc->sc_wdog_period; in wdog_attach() 137 if (sysmon_wdog_register(&sc->sc_smw) != 0) { in wdog_attach()
|
/netbsd/sys/arch/powerpc/ibm4xx/dev/ |
H A D | wdog.c | 67 struct sysmon_wdog sc_smw; member 102 sc->sc_smw.smw_name = device_xname(self); in wdog_attach() 103 sc->sc_smw.smw_cookie = sc; in wdog_attach() 104 sc->sc_smw.smw_setmode = wdog_setmode; in wdog_attach() 105 sc->sc_smw.smw_tickle = wdog_tickle; in wdog_attach() 106 sc->sc_smw.smw_period = sc->sc_wdog_period; in wdog_attach() 108 if (sysmon_wdog_register(&sc->sc_smw) != 0) in wdog_attach()
|
/netbsd/sys/arch/arm/gemini/ |
H A D | obio_wdt.c | 88 sc->sc_smw.smw_name = device_xname(sc->sc_dev); in geminiwdt_attach() 89 sc->sc_smw.smw_cookie = sc; in geminiwdt_attach() 90 sc->sc_smw.smw_setmode = geminiwdt_setmode; in geminiwdt_attach() 91 sc->sc_smw.smw_tickle = geminiwdt_tickle; in geminiwdt_attach() 92 sc->sc_smw.smw_period = 0; in geminiwdt_attach() 103 if (sysmon_wdog_register(&sc->sc_smw) != 0) { in geminiwdt_attach()
|
H A D | gemini_wdt.c | 99 r = (sc->sc_smw.smw_period != 0) ? in geminiwdt_do_set_timeout() 100 WATCHDOG_COUNT(sc->sc_smw.smw_period) : WDT_WDLOAD_DFLT; in geminiwdt_do_set_timeout() 129 if (period != sc->sc_smw.smw_period) { in geminiwdt_set_timeout() 130 sc->sc_smw.smw_period = period; in geminiwdt_set_timeout() 176 sc->sc_smw.smw_period = WDT_WDLOAD_DFLT; in geminiwdt_setmode() 178 sc->sc_smw.smw_period = smw->smw_period; in geminiwdt_setmode() 179 geminiwdt_set_timeout(sc->sc_smw.smw_period); in geminiwdt_setmode()
|
/netbsd/sys/arch/arm/imx/ |
H A D | imxwdog.c | 48 struct sysmon_wdog sc_smw; member 167 sc->sc_smw.smw_name = device_xname(self); in wdog_attach_common() 168 sc->sc_smw.smw_cookie = sc; in wdog_attach_common() 169 sc->sc_smw.smw_setmode = wdog_setmode; in wdog_attach_common() 170 sc->sc_smw.smw_tickle = wdog_tickle; in wdog_attach_common() 171 sc->sc_smw.smw_period = sc->sc_wdog_period; in wdog_attach_common() 173 if (sysmon_wdog_register(&sc->sc_smw) != 0) in wdog_attach_common() 177 int error = sysmon_wdog_setmode(&sc->sc_smw, WDOG_MODE_KTICKLE, in wdog_attach_common()
|
/netbsd/sys/arch/arm/acpi/ |
H A D | sbsawdt_acpi.c | 80 struct sysmon_wdog sc_smw; member 141 sc->sc_smw.smw_name = device_xname(self); in sbsawdt_acpi_attach() 142 sc->sc_smw.smw_cookie = sc; in sbsawdt_acpi_attach() 143 sc->sc_smw.smw_period = sc->sc_max_period; in sbsawdt_acpi_attach() 144 sc->sc_smw.smw_tickle = sbsawdt_acpi_tickle; in sbsawdt_acpi_attach() 145 sc->sc_smw.smw_setmode = sbsawdt_acpi_setmode; in sbsawdt_acpi_attach() 148 sc->sc_smw.smw_period); in sbsawdt_acpi_attach() 150 if (sysmon_wdog_register(&sc->sc_smw) != 0) in sbsawdt_acpi_attach()
|
/netbsd/sys/arch/powerpc/booke/dev/ |
H A D | e500wdog.c | 58 struct sysmon_wdog sc_smw; member 168 sc->sc_smw.smw_name = device_xname(sc->sc_dev); in e500wdog_attach() 169 sc->sc_smw.smw_cookie = sc; in e500wdog_attach() 170 sc->sc_smw.smw_setmode = e500wdog_setmode; in e500wdog_attach() 171 sc->sc_smw.smw_tickle = e500wdog_tickle; in e500wdog_attach() 172 sc->sc_smw.smw_period = sc->sc_wdog_period; in e500wdog_attach() 174 if (sysmon_wdog_register(&sc->sc_smw) != 0) in e500wdog_attach() 179 int error = sysmon_wdog_setmode(&sc->sc_smw, WDOG_MODE_KTICKLE, in e500wdog_attach()
|
/netbsd/sys/arch/mips/sibyte/dev/ |
H A D | sbwdog.c | 66 struct sysmon_wdog sc_smw; member 107 sc->sc_smw.smw_name = device_xname(sc->sc_dev); in sbwdog_attach() 108 sc->sc_smw.smw_cookie = sc; in sbwdog_attach() 109 sc->sc_smw.smw_setmode = sbwdog_setmode; in sbwdog_attach() 110 sc->sc_smw.smw_tickle = sbwdog_tickle; in sbwdog_attach() 111 sc->sc_smw.smw_period = sc->sc_wdog_period; in sbwdog_attach() 113 if (sysmon_wdog_register(&sc->sc_smw) != 0) in sbwdog_attach()
|
/netbsd/sys/arch/arm/broadcom/ |
H A D | bcm2835_pmwdog.c | 72 struct sysmon_wdog sc_smw; member 132 sc->sc_smw.smw_name = device_xname(sc->sc_dev); in bcmpmwdog_attach() 133 sc->sc_smw.smw_cookie = sc; in bcmpmwdog_attach() 134 sc->sc_smw.smw_setmode = bcmpmwdog_setmode; in bcmpmwdog_attach() 135 sc->sc_smw.smw_tickle = bcmpmwdog_tickle; in bcmpmwdog_attach() 136 sc->sc_smw.smw_period = BCM2835_PM_DEFAULT_PERIOD; in bcmpmwdog_attach() 137 if (sysmon_wdog_register(&sc->sc_smw) != 0) in bcmpmwdog_attach()
|
/netbsd/sys/arch/i386/pci/ |
H A D | geodewdg.c | 91 struct sysmon_wdog sc_smw; member 230 sc->sc_smw.smw_name = device_xname(self); in geode_wdog_attach() 231 sc->sc_smw.smw_cookie = sc; in geode_wdog_attach() 232 sc->sc_smw.smw_setmode = geode_wdog_setmode; in geode_wdog_attach() 233 sc->sc_smw.smw_tickle = geode_wdog_tickle; in geode_wdog_attach() 234 sc->sc_smw.smw_period = 32; in geode_wdog_attach() 255 if (sysmon_wdog_register(&sc->sc_smw) != 0) in geode_wdog_attach() 271 if ((rc = sysmon_wdog_unregister(&sc->sc_smw)) != 0) { in geode_wdog_detach()
|
/netbsd/sys/arch/arm/nxp/ |
H A D | imxwdog.c | 46 struct sysmon_wdog sc_smw; member 212 sc->sc_smw.smw_name = device_xname(self); in imxwdog_attach() 213 sc->sc_smw.smw_cookie = sc; in imxwdog_attach() 214 sc->sc_smw.smw_setmode = wdog_setmode; in imxwdog_attach() 215 sc->sc_smw.smw_tickle = wdog_tickle; in imxwdog_attach() 216 sc->sc_smw.smw_period = sc->sc_wdog_period; in imxwdog_attach() 218 if (sysmon_wdog_register(&sc->sc_smw) != 0) in imxwdog_attach() 222 error = sysmon_wdog_setmode(&sc->sc_smw, WDOG_MODE_KTICKLE, in imxwdog_attach()
|
/netbsd/sys/arch/arm/cortex/ |
H A D | a9wdt.c | 53 struct sysmon_wdog sc_smw; member 243 sc->sc_smw.smw_name = device_xname(self); in a9wdt_attach() 244 sc->sc_smw.smw_cookie = sc; in a9wdt_attach() 245 sc->sc_smw.smw_setmode = a9wdt_setmode; in a9wdt_attach() 246 sc->sc_smw.smw_tickle = a9wdt_tickle; in a9wdt_attach() 247 sc->sc_smw.smw_period = sc->sc_wdog_period; in a9wdt_attach() 250 int error = sysmon_wdog_setmode(&sc->sc_smw, WDOG_MODE_KTICKLE, in a9wdt_attach() 257 if (sysmon_wdog_register(&sc->sc_smw) != 0) in a9wdt_attach()
|
/netbsd/sys/arch/sparc64/dev/ |
H A D | pld_wdog.c | 67 struct sysmon_wdog sc_smw; member 196 sc->sc_smw.smw_name = device_xname(sc->sc_dev); in pldwdog_attach() 197 sc->sc_smw.smw_cookie = sc; in pldwdog_attach() 198 sc->sc_smw.smw_setmode = pldwdog_setmode; in pldwdog_attach() 199 sc->sc_smw.smw_tickle = pldwdog_tickle; in pldwdog_attach() 200 sc->sc_smw.smw_period = sc->sc_wdog_period; in pldwdog_attach() 202 if (sysmon_wdog_register(&sc->sc_smw) != 0) in pldwdog_attach()
|
/netbsd/sys/dev/acpi/ |
H A D | acpi_wdrt.c | 85 struct sysmon_wdog sc_smw; member 218 sc->sc_smw.smw_name = device_xname(self); in acpi_wdrt_attach() 219 sc->sc_smw.smw_cookie = sc; in acpi_wdrt_attach() 220 sc->sc_smw.smw_setmode = acpi_wdrt_setmode; in acpi_wdrt_attach() 221 sc->sc_smw.smw_tickle = acpi_wdrt_tickle; in acpi_wdrt_attach() 222 sc->sc_smw.smw_period = sc->sc_max_period; in acpi_wdrt_attach() 224 if (sysmon_wdog_register(&sc->sc_smw)) in acpi_wdrt_attach() 237 (sc->sc_smw.smw_mode & WDOG_MODE_MASK) != WDOG_MODE_DISARMED) in acpi_wdrt_detach() 241 sysmon_wdog_unregister(&sc->sc_smw); in acpi_wdrt_detach() 259 if ((sc->sc_smw.smw_mode & WDOG_MODE_MASK) != WDOG_MODE_DISARMED) in acpi_wdrt_suspend()
|
/netbsd/sys/arch/x86/pci/ |
H A D | tco.c | 57 struct sysmon_wdog sc_smw; member 179 sc->sc_smw.smw_name = device_xname(self); in tco_attach() 180 sc->sc_smw.smw_cookie = sc; in tco_attach() 181 sc->sc_smw.smw_setmode = tcotimer_setmode; in tco_attach() 182 sc->sc_smw.smw_tickle = tcotimer_tickle; in tco_attach() 202 sc->sc_smw.smw_period = tcotimer_tick_to_second(sc->sc_max_t); in tco_attach() 208 if (sysmon_wdog_register(&sc->sc_smw)) in tco_attach() 227 if ((rc = sysmon_wdog_unregister(&sc->sc_smw)) != 0) { in tco_detach() 250 return ((sc->sc_smw.smw_mode & WDOG_MODE_MASK) == WDOG_MODE_DISARMED); in tco_suspend()
|
/netbsd/sys/arch/arm/samsung/ |
H A D | exynos_wdt.c | 60 struct sysmon_wdog sc_smw; member 268 sc->sc_smw.smw_name = device_xname(self); in exynos_wdt_attach() 269 sc->sc_smw.smw_cookie = sc; in exynos_wdt_attach() 270 sc->sc_smw.smw_setmode = exynos_wdt_setmode; in exynos_wdt_attach() 271 sc->sc_smw.smw_tickle = exynos_wdt_tickle; in exynos_wdt_attach() 272 sc->sc_smw.smw_period = sc->sc_wdog_period; in exynos_wdt_attach() 275 error = sysmon_wdog_setmode(&sc->sc_smw, WDOG_MODE_KTICKLE, in exynos_wdt_attach()
|
/netbsd/sys/arch/mips/cavium/ |
H A D | octeon_cpunode.c | 346 struct sysmon_wdog sc_smw; member 461 sc->sc_smw.smw_name = device_xname(self); in wdog_cpunode_attach() 462 sc->sc_smw.smw_cookie = sc; in wdog_cpunode_attach() 463 sc->sc_smw.smw_setmode = wdog_cpunode_setmode; in wdog_cpunode_attach() 464 sc->sc_smw.smw_tickle = wdog_cpunode_tickle; in wdog_cpunode_attach() 465 sc->sc_smw.smw_period = OCTEON_WDOG_PERIOD_DEFAULT; in wdog_cpunode_attach() 466 sc->sc_wdog_period = sc->sc_smw.smw_period; in wdog_cpunode_attach() 482 if (sysmon_wdog_register(&sc->sc_smw) != 0) { in wdog_cpunode_attach() 488 int error = sysmon_wdog_setmode(&sc->sc_smw, WDOG_MODE_KTICKLE, in wdog_cpunode_attach()
|