• Home
  • Raw
  • Download

Lines Matching refs:wdd

84 	struct watchdog_device	wdd;  member
118 static int sbsa_gwdt_set_timeout(struct watchdog_device *wdd, in sbsa_gwdt_set_timeout() argument
121 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_set_timeout()
123 wdd->timeout = timeout; in sbsa_gwdt_set_timeout()
140 static unsigned int sbsa_gwdt_get_timeleft(struct watchdog_device *wdd) in sbsa_gwdt_get_timeleft() argument
142 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_get_timeleft()
162 static int sbsa_gwdt_keepalive(struct watchdog_device *wdd) in sbsa_gwdt_keepalive() argument
164 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_keepalive()
175 static int sbsa_gwdt_start(struct watchdog_device *wdd) in sbsa_gwdt_start() argument
177 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_start()
185 static int sbsa_gwdt_stop(struct watchdog_device *wdd) in sbsa_gwdt_stop() argument
187 struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); in sbsa_gwdt_stop()
223 struct watchdog_device *wdd; in sbsa_gwdt_probe() local
250 wdd = &gwdt->wdd; in sbsa_gwdt_probe()
251 wdd->parent = dev; in sbsa_gwdt_probe()
252 wdd->info = &sbsa_gwdt_info; in sbsa_gwdt_probe()
253 wdd->ops = &sbsa_gwdt_ops; in sbsa_gwdt_probe()
254 wdd->min_timeout = 1; in sbsa_gwdt_probe()
255 wdd->max_hw_heartbeat_ms = U32_MAX / gwdt->clk * 1000; in sbsa_gwdt_probe()
256 wdd->timeout = DEFAULT_TIMEOUT; in sbsa_gwdt_probe()
257 watchdog_set_drvdata(wdd, gwdt); in sbsa_gwdt_probe()
258 watchdog_set_nowayout(wdd, nowayout); in sbsa_gwdt_probe()
263 wdd->bootstatus |= WDIOF_CARDRESET; in sbsa_gwdt_probe()
266 set_bit(WDOG_HW_RUNNING, &wdd->status); in sbsa_gwdt_probe()
294 wdd->max_hw_heartbeat_ms *= 2; in sbsa_gwdt_probe()
296 watchdog_init_timeout(wdd, timeout, dev); in sbsa_gwdt_probe()
302 sbsa_gwdt_set_timeout(wdd, wdd->timeout); in sbsa_gwdt_probe()
304 watchdog_stop_on_reboot(wdd); in sbsa_gwdt_probe()
305 ret = devm_watchdog_register_device(dev, wdd); in sbsa_gwdt_probe()
310 wdd->timeout, gwdt->clk, action, in sbsa_gwdt_probe()
321 if (watchdog_active(&gwdt->wdd)) in sbsa_gwdt_suspend()
322 sbsa_gwdt_stop(&gwdt->wdd); in sbsa_gwdt_suspend()
332 if (watchdog_active(&gwdt->wdd)) in sbsa_gwdt_resume()
333 sbsa_gwdt_start(&gwdt->wdd); in sbsa_gwdt_resume()