Lines Matching full:wdd

56 	struct watchdog_device	wdd;  member
67 static int asm9260_wdt_feed(struct watchdog_device *wdd) in asm9260_wdt_feed() argument
69 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_wdt_feed()
77 static unsigned int asm9260_wdt_gettimeleft(struct watchdog_device *wdd) in asm9260_wdt_gettimeleft() argument
79 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_wdt_gettimeleft()
87 static int asm9260_wdt_updatetimeout(struct watchdog_device *wdd) in asm9260_wdt_updatetimeout() argument
89 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_wdt_updatetimeout()
92 counter = wdd->timeout * priv->wdt_freq; in asm9260_wdt_updatetimeout()
99 static int asm9260_wdt_enable(struct watchdog_device *wdd) in asm9260_wdt_enable() argument
101 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_wdt_enable()
109 asm9260_wdt_updatetimeout(wdd); in asm9260_wdt_enable()
111 asm9260_wdt_feed(wdd); in asm9260_wdt_enable()
116 static int asm9260_wdt_disable(struct watchdog_device *wdd) in asm9260_wdt_disable() argument
118 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_wdt_disable()
127 static int asm9260_wdt_settimeout(struct watchdog_device *wdd, unsigned int to) in asm9260_wdt_settimeout() argument
129 wdd->timeout = to; in asm9260_wdt_settimeout()
130 asm9260_wdt_updatetimeout(wdd); in asm9260_wdt_settimeout()
143 asm9260_wdt_feed(&priv->wdd); in asm9260_wdt_sys_reset()
172 static int asm9260_restart(struct watchdog_device *wdd, unsigned long action, in asm9260_restart() argument
175 struct asm9260_wdt_priv *priv = watchdog_get_drvdata(wdd); in asm9260_restart()
289 struct watchdog_device *wdd; in asm9260_wdt_probe() local
311 wdd = &priv->wdd; in asm9260_wdt_probe()
312 wdd->info = &asm9260_wdt_ident; in asm9260_wdt_probe()
313 wdd->ops = &asm9260_wdt_ops; in asm9260_wdt_probe()
314 wdd->min_timeout = 1; in asm9260_wdt_probe()
315 wdd->max_timeout = BM_WDTC_MAX(priv->wdt_freq); in asm9260_wdt_probe()
316 wdd->parent = dev; in asm9260_wdt_probe()
318 watchdog_set_drvdata(wdd, priv); in asm9260_wdt_probe()
325 wdd->timeout = ASM9260_WDT_DEFAULT_TIMEOUT; in asm9260_wdt_probe()
326 watchdog_init_timeout(wdd, 0, dev); in asm9260_wdt_probe()
344 watchdog_set_restart_priority(wdd, 128); in asm9260_wdt_probe()
346 watchdog_stop_on_reboot(wdd); in asm9260_wdt_probe()
347 watchdog_stop_on_unregister(wdd); in asm9260_wdt_probe()
348 ret = devm_watchdog_register_device(dev, wdd); in asm9260_wdt_probe()
355 wdd->timeout, mode_name[priv->mode]); in asm9260_wdt_probe()