Lines Matching full:wdd
32 * @wdd: watchdog device;
45 struct watchdog_device wdd; member
66 if (!(wdt->wdd.info->options & WDIOF_CARDRESET)) in mlxreg_wdt_check_card_reset()
73 wdt->wdd.bootstatus = WDIOF_CARDRESET; in mlxreg_wdt_check_card_reset()
74 dev_info(wdt->wdd.parent, in mlxreg_wdt_check_card_reset()
80 static int mlxreg_wdt_start(struct watchdog_device *wdd) in mlxreg_wdt_start() argument
82 struct mlxreg_wdt *wdt = watchdog_get_drvdata(wdd); in mlxreg_wdt_start()
89 static int mlxreg_wdt_stop(struct watchdog_device *wdd) in mlxreg_wdt_stop() argument
91 struct mlxreg_wdt *wdt = watchdog_get_drvdata(wdd); in mlxreg_wdt_stop()
98 static int mlxreg_wdt_ping(struct watchdog_device *wdd) in mlxreg_wdt_ping() argument
100 struct mlxreg_wdt *wdt = watchdog_get_drvdata(wdd); in mlxreg_wdt_ping()
107 static int mlxreg_wdt_set_timeout(struct watchdog_device *wdd, in mlxreg_wdt_set_timeout() argument
110 struct mlxreg_wdt *wdt = watchdog_get_drvdata(wdd); in mlxreg_wdt_set_timeout()
150 wdd->timeout = set_time; in mlxreg_wdt_set_timeout()
156 if (watchdog_active(wdd)) { in mlxreg_wdt_set_timeout()
157 rc = mlxreg_wdt_stop(wdd); in mlxreg_wdt_set_timeout()
159 rc = mlxreg_wdt_start(wdd); in mlxreg_wdt_set_timeout()
166 static unsigned int mlxreg_wdt_get_timeleft(struct watchdog_device *wdd) in mlxreg_wdt_get_timeleft() argument
168 struct mlxreg_wdt *wdt = watchdog_get_drvdata(wdd); in mlxreg_wdt_get_timeleft()
245 wdt->wdd.info = &mlxreg_wdt_main_info; in mlxreg_wdt_config()
247 wdt->wdd.info = &mlxreg_wdt_aux_info; in mlxreg_wdt_config()
252 wdt->wdd.ops = &mlxreg_wdt_ops_type1; in mlxreg_wdt_config()
253 wdt->wdd.max_timeout = MLXREG_WDT_MAX_TIMEOUT_TYPE1; in mlxreg_wdt_config()
256 wdt->wdd.ops = &mlxreg_wdt_ops_type2; in mlxreg_wdt_config()
257 wdt->wdd.max_timeout = MLXREG_WDT_MAX_TIMEOUT_TYPE2; in mlxreg_wdt_config()
260 wdt->wdd.ops = &mlxreg_wdt_ops_type2; in mlxreg_wdt_config()
261 wdt->wdd.max_timeout = MLXREG_WDT_MAX_TIMEOUT_TYPE3; in mlxreg_wdt_config()
267 wdt->wdd.min_timeout = MLXREG_WDT_MIN_TIMEOUT; in mlxreg_wdt_config()
276 return mlxreg_wdt_set_timeout(&wdt->wdd, timeout); in mlxreg_wdt_init_timeout()
295 wdt->wdd.parent = dev; in mlxreg_wdt_probe()
305 watchdog_set_nowayout(&wdt->wdd, WATCHDOG_NOWAYOUT); in mlxreg_wdt_probe()
306 watchdog_stop_on_reboot(&wdt->wdd); in mlxreg_wdt_probe()
307 watchdog_stop_on_unregister(&wdt->wdd); in mlxreg_wdt_probe()
308 watchdog_set_drvdata(&wdt->wdd, wdt); in mlxreg_wdt_probe()
314 rc = mlxreg_wdt_start(&wdt->wdd); in mlxreg_wdt_probe()
317 set_bit(WDOG_HW_RUNNING, &wdt->wdd.status); in mlxreg_wdt_probe()
320 rc = devm_watchdog_register_device(dev, &wdt->wdd); in mlxreg_wdt_probe()