Lines Matching refs:hpwdt_dev
60 static struct watchdog_device hpwdt_dev; variable
188 unsigned int val = max((unsigned int)kdumptimeout, hpwdt_dev.timeout); in hpwdt_pretimeout()
224 static struct watchdog_device hpwdt_dev = { variable
325 set_bit(WDOG_HW_RUNNING, &hpwdt_dev.status); in hpwdt_init_one()
333 watchdog_stop_on_unregister(&hpwdt_dev); in hpwdt_init_one()
334 watchdog_set_nowayout(&hpwdt_dev, nowayout); in hpwdt_init_one()
335 watchdog_init_timeout(&hpwdt_dev, soft_margin, NULL); in hpwdt_init_one()
342 if (pretimeout && hpwdt_dev.timeout <= PRETIMEOUT_SEC) { in hpwdt_init_one()
346 hpwdt_dev.pretimeout = pretimeout ? PRETIMEOUT_SEC : 0; in hpwdt_init_one()
349 hpwdt_dev.parent = &dev->dev; in hpwdt_init_one()
350 retval = watchdog_register_device(&hpwdt_dev); in hpwdt_init_one()
357 hpwdt_dev.timeout, nowayout); in hpwdt_init_one()
375 watchdog_unregister_device(&hpwdt_dev); in hpwdt_exit()
383 if (watchdog_active(&hpwdt_dev)) in hpwdt_suspend()
391 if (watchdog_active(&hpwdt_dev)) in hpwdt_resume()
392 hpwdt_start(&hpwdt_dev); in hpwdt_resume()