Lines Matching refs:wddev
56 struct watchdog_device wddev; member
245 static int watchdog_set_timeout(struct watchdog_device *wddev, in watchdog_set_timeout() argument
248 struct sch56xx_watchdog_data *data = watchdog_get_drvdata(wddev); in watchdog_set_timeout()
284 wddev->timeout = data->watchdog_preset * resolution; in watchdog_set_timeout()
289 static int watchdog_start(struct watchdog_device *wddev) in watchdog_start() argument
291 struct sch56xx_watchdog_data *data = watchdog_get_drvdata(wddev); in watchdog_start()
341 static int watchdog_trigger(struct watchdog_device *wddev) in watchdog_trigger() argument
343 struct sch56xx_watchdog_data *data = watchdog_get_drvdata(wddev); in watchdog_trigger()
355 static int watchdog_stop(struct watchdog_device *wddev) in watchdog_stop() argument
357 struct sch56xx_watchdog_data *data = watchdog_get_drvdata(wddev); in watchdog_stop()
418 data->wddev.info = &data->wdinfo; in sch56xx_watchdog_register()
419 data->wddev.ops = &watchdog_ops; in sch56xx_watchdog_register()
420 data->wddev.parent = parent; in sch56xx_watchdog_register()
421 data->wddev.timeout = 60; in sch56xx_watchdog_register()
422 data->wddev.min_timeout = 1; in sch56xx_watchdog_register()
423 data->wddev.max_timeout = 255 * 60; in sch56xx_watchdog_register()
425 set_bit(WDOG_NO_WAY_OUT, &data->wddev.status); in sch56xx_watchdog_register()
427 set_bit(WDOG_HW_RUNNING, &data->wddev.status); in sch56xx_watchdog_register()
440 watchdog_set_drvdata(&data->wddev, data); in sch56xx_watchdog_register()
441 err = watchdog_register_device(&data->wddev); in sch56xx_watchdog_register()
454 watchdog_unregister_device(&data->wddev); in sch56xx_watchdog_unregister()