• Home
  • Raw
  • Download

Lines Matching refs:wdt_dev

83 	struct watchdog_device wdt_dev;  member
89 static int pdc_wdt_keepalive(struct watchdog_device *wdt_dev) in pdc_wdt_keepalive() argument
91 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); in pdc_wdt_keepalive()
99 static int pdc_wdt_stop(struct watchdog_device *wdt_dev) in pdc_wdt_stop() argument
102 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); in pdc_wdt_stop()
109 pdc_wdt_keepalive(wdt_dev); in pdc_wdt_stop()
120 val |= order_base_2(wdt->wdt_dev.timeout * clk_rate) - 1; in __pdc_wdt_set_timeout()
124 static int pdc_wdt_set_timeout(struct watchdog_device *wdt_dev, in pdc_wdt_set_timeout() argument
127 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); in pdc_wdt_set_timeout()
129 wdt->wdt_dev.timeout = new_timeout; in pdc_wdt_set_timeout()
137 static int pdc_wdt_start(struct watchdog_device *wdt_dev) in pdc_wdt_start() argument
140 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); in pdc_wdt_start()
151 static int pdc_wdt_restart(struct watchdog_device *wdt_dev, in pdc_wdt_restart() argument
154 struct pdc_wdt_dev *wdt = watchdog_get_drvdata(wdt_dev); in pdc_wdt_restart()
244 pdc_wdt->wdt_dev.min_timeout = PDC_WDT_MIN_TIMEOUT + 1; in pdc_wdt_probe()
246 pdc_wdt->wdt_dev.min_timeout = PDC_WDT_MIN_TIMEOUT; in pdc_wdt_probe()
248 pdc_wdt->wdt_dev.info = &pdc_wdt_info; in pdc_wdt_probe()
249 pdc_wdt->wdt_dev.ops = &pdc_wdt_ops; in pdc_wdt_probe()
253 pdc_wdt->wdt_dev.max_timeout = div; in pdc_wdt_probe()
254 pdc_wdt->wdt_dev.timeout = PDC_WDT_DEF_TIMEOUT; in pdc_wdt_probe()
255 pdc_wdt->wdt_dev.parent = dev; in pdc_wdt_probe()
256 watchdog_set_drvdata(&pdc_wdt->wdt_dev, pdc_wdt); in pdc_wdt_probe()
258 watchdog_init_timeout(&pdc_wdt->wdt_dev, heartbeat, dev); in pdc_wdt_probe()
260 pdc_wdt_stop(&pdc_wdt->wdt_dev); in pdc_wdt_probe()
268 pdc_wdt->wdt_dev.bootstatus |= WDIOF_CARDRESET; in pdc_wdt_probe()
288 watchdog_set_nowayout(&pdc_wdt->wdt_dev, nowayout); in pdc_wdt_probe()
289 watchdog_set_restart_priority(&pdc_wdt->wdt_dev, 128); in pdc_wdt_probe()
293 watchdog_stop_on_reboot(&pdc_wdt->wdt_dev); in pdc_wdt_probe()
294 watchdog_stop_on_unregister(&pdc_wdt->wdt_dev); in pdc_wdt_probe()
295 return devm_watchdog_register_device(dev, &pdc_wdt->wdt_dev); in pdc_wdt_probe()