Lines Matching refs:wdog

129 	struct watchdog_device wdog;  member
613 static int __abx80x_wdog_set_timeout(struct watchdog_device *wdog, in __abx80x_wdog_set_timeout() argument
616 struct abx80x_priv *priv = watchdog_get_drvdata(wdog); in __abx80x_wdog_set_timeout()
626 static int abx80x_wdog_set_timeout(struct watchdog_device *wdog, in abx80x_wdog_set_timeout() argument
631 if (watchdog_hw_running(wdog)) in abx80x_wdog_set_timeout()
632 err = __abx80x_wdog_set_timeout(wdog, new_timeout); in abx80x_wdog_set_timeout()
635 wdog->timeout = new_timeout; in abx80x_wdog_set_timeout()
640 static int abx80x_wdog_ping(struct watchdog_device *wdog) in abx80x_wdog_ping() argument
642 return __abx80x_wdog_set_timeout(wdog, wdog->timeout); in abx80x_wdog_ping()
645 static int abx80x_wdog_start(struct watchdog_device *wdog) in abx80x_wdog_start() argument
647 return __abx80x_wdog_set_timeout(wdog, wdog->timeout); in abx80x_wdog_start()
650 static int abx80x_wdog_stop(struct watchdog_device *wdog) in abx80x_wdog_stop() argument
652 return __abx80x_wdog_set_timeout(wdog, 0); in abx80x_wdog_stop()
670 priv->wdog.parent = &priv->client->dev; in abx80x_setup_watchdog()
671 priv->wdog.ops = &abx80x_wdog_ops; in abx80x_setup_watchdog()
672 priv->wdog.info = &abx80x_wdog_info; in abx80x_setup_watchdog()
673 priv->wdog.min_timeout = 1; in abx80x_setup_watchdog()
674 priv->wdog.max_timeout = ABX8XX_WDT_MAX_TIME; in abx80x_setup_watchdog()
675 priv->wdog.timeout = ABX8XX_WDT_MAX_TIME; in abx80x_setup_watchdog()
677 watchdog_set_drvdata(&priv->wdog, priv); in abx80x_setup_watchdog()
679 return devm_watchdog_register_device(&priv->client->dev, &priv->wdog); in abx80x_setup_watchdog()