Lines Matching full:wdog
117 struct watchdog_device wdog; member
601 static int __abx80x_wdog_set_timeout(struct watchdog_device *wdog, in __abx80x_wdog_set_timeout() argument
604 struct abx80x_priv *priv = watchdog_get_drvdata(wdog); in __abx80x_wdog_set_timeout()
614 static int abx80x_wdog_set_timeout(struct watchdog_device *wdog, in abx80x_wdog_set_timeout() argument
619 if (watchdog_hw_running(wdog)) in abx80x_wdog_set_timeout()
620 err = __abx80x_wdog_set_timeout(wdog, new_timeout); in abx80x_wdog_set_timeout()
623 wdog->timeout = new_timeout; in abx80x_wdog_set_timeout()
628 static int abx80x_wdog_ping(struct watchdog_device *wdog) in abx80x_wdog_ping() argument
630 return __abx80x_wdog_set_timeout(wdog, wdog->timeout); in abx80x_wdog_ping()
633 static int abx80x_wdog_start(struct watchdog_device *wdog) in abx80x_wdog_start() argument
635 return __abx80x_wdog_set_timeout(wdog, wdog->timeout); in abx80x_wdog_start()
638 static int abx80x_wdog_stop(struct watchdog_device *wdog) in abx80x_wdog_stop() argument
640 return __abx80x_wdog_set_timeout(wdog, 0); in abx80x_wdog_stop()
658 priv->wdog.parent = &priv->client->dev; in abx80x_setup_watchdog()
659 priv->wdog.ops = &abx80x_wdog_ops; in abx80x_setup_watchdog()
660 priv->wdog.info = &abx80x_wdog_info; in abx80x_setup_watchdog()
661 priv->wdog.min_timeout = 1; in abx80x_setup_watchdog()
662 priv->wdog.max_timeout = ABX8XX_WDT_MAX_TIME; in abx80x_setup_watchdog()
663 priv->wdog.timeout = ABX8XX_WDT_MAX_TIME; in abx80x_setup_watchdog()
665 watchdog_set_drvdata(&priv->wdog, priv); in abx80x_setup_watchdog()
667 return devm_watchdog_register_device(&priv->client->dev, &priv->wdog); in abx80x_setup_watchdog()