Lines Matching refs:wdtdev
34 struct watchdog_device wdtdev; member
90 selector = da9062_wdt_timeout_to_sel(wdt->wdtdev.timeout); in da9062_wdt_start()
222 wdt->wdtdev.info = &da9062_watchdog_info; in da9062_wdt_probe()
223 wdt->wdtdev.ops = &da9062_watchdog_ops; in da9062_wdt_probe()
224 wdt->wdtdev.min_timeout = DA9062_WDT_MIN_TIMEOUT; in da9062_wdt_probe()
225 wdt->wdtdev.max_timeout = DA9062_WDT_MAX_TIMEOUT; in da9062_wdt_probe()
226 wdt->wdtdev.min_hw_heartbeat_ms = DA9062_RESET_PROTECTION_MS; in da9062_wdt_probe()
227 wdt->wdtdev.timeout = DA9062_WDG_DEFAULT_TIMEOUT; in da9062_wdt_probe()
228 wdt->wdtdev.status = WATCHDOG_NOWAYOUT_INIT_STATUS; in da9062_wdt_probe()
229 wdt->wdtdev.parent = dev; in da9062_wdt_probe()
231 watchdog_set_restart_priority(&wdt->wdtdev, 128); in da9062_wdt_probe()
233 watchdog_set_drvdata(&wdt->wdtdev, wdt); in da9062_wdt_probe()
234 dev_set_drvdata(dev, &wdt->wdtdev); in da9062_wdt_probe()
238 wdt->wdtdev.timeout = timeout; in da9062_wdt_probe()
241 watchdog_init_timeout(&wdt->wdtdev, 0, dev); in da9062_wdt_probe()
244 da9062_wdt_set_timeout(&wdt->wdtdev, wdt->wdtdev.timeout); in da9062_wdt_probe()
245 set_bit(WDOG_HW_RUNNING, &wdt->wdtdev.status); in da9062_wdt_probe()
248 return devm_watchdog_register_device(dev, &wdt->wdtdev); in da9062_wdt_probe()