Lines Matching refs:wddev
61 struct watchdog_device wddev; member
250 static int watchdog_set_timeout(struct watchdog_device *wddev, in watchdog_set_timeout() argument
253 struct sch56xx_watchdog_data *data = watchdog_get_drvdata(wddev); in watchdog_set_timeout()
289 wddev->timeout = data->watchdog_preset * resolution; in watchdog_set_timeout()
294 static int watchdog_start(struct watchdog_device *wddev) in watchdog_start() argument
296 struct sch56xx_watchdog_data *data = watchdog_get_drvdata(wddev); in watchdog_start()
346 static int watchdog_trigger(struct watchdog_device *wddev) in watchdog_trigger() argument
348 struct sch56xx_watchdog_data *data = watchdog_get_drvdata(wddev); in watchdog_trigger()
360 static int watchdog_stop(struct watchdog_device *wddev) in watchdog_stop() argument
362 struct sch56xx_watchdog_data *data = watchdog_get_drvdata(wddev); in watchdog_stop()
422 data->wddev.info = &data->wdinfo; in sch56xx_watchdog_register()
423 data->wddev.ops = &watchdog_ops; in sch56xx_watchdog_register()
424 data->wddev.parent = parent; in sch56xx_watchdog_register()
425 data->wddev.timeout = 60; in sch56xx_watchdog_register()
426 data->wddev.min_timeout = 1; in sch56xx_watchdog_register()
427 data->wddev.max_timeout = 255 * 60; in sch56xx_watchdog_register()
428 watchdog_set_nowayout(&data->wddev, nowayout); in sch56xx_watchdog_register()
430 set_bit(WDOG_HW_RUNNING, &data->wddev.status); in sch56xx_watchdog_register()
443 watchdog_set_drvdata(&data->wddev, data); in sch56xx_watchdog_register()
444 err = devm_watchdog_register_device(parent, &data->wddev); in sch56xx_watchdog_register()