Lines Matching full:wd
95 struct watchdog_device wd; member
178 pw->wd.parent = &pdev->dev; in pseries_wdt_probe()
179 pw->wd.info = &pseries_wdt_info; in pseries_wdt_probe()
180 pw->wd.ops = &pseries_wdt_ops; in pseries_wdt_probe()
182 pw->wd.min_timeout = DIV_ROUND_UP(msecs, MSEC_PER_SEC); in pseries_wdt_probe()
183 pw->wd.max_timeout = UINT_MAX / 1000; /* from linux/watchdog.h */ in pseries_wdt_probe()
184 pw->wd.timeout = timeout; in pseries_wdt_probe()
185 if (watchdog_init_timeout(&pw->wd, 0, NULL)) in pseries_wdt_probe()
187 watchdog_set_nowayout(&pw->wd, nowayout); in pseries_wdt_probe()
188 watchdog_stop_on_reboot(&pw->wd); in pseries_wdt_probe()
189 watchdog_stop_on_unregister(&pw->wd); in pseries_wdt_probe()
190 watchdog_set_drvdata(&pw->wd, pw); in pseries_wdt_probe()
192 err = devm_watchdog_register_device(&pdev->dev, &pw->wd); in pseries_wdt_probe()
196 platform_set_drvdata(pdev, &pw->wd); in pseries_wdt_probe()
203 struct watchdog_device *wd = platform_get_drvdata(pdev); in pseries_wdt_suspend() local
205 if (watchdog_active(wd)) in pseries_wdt_suspend()
206 return pseries_wdt_stop(wd); in pseries_wdt_suspend()
212 struct watchdog_device *wd = platform_get_drvdata(pdev); in pseries_wdt_resume() local
214 if (watchdog_active(wd)) in pseries_wdt_resume()
215 return pseries_wdt_start(wd); in pseries_wdt_resume()