Lines Matching refs:ops
76 if (wdd->ops->ping) in watchdog_ping()
77 err = wdd->ops->ping(wdd); /* ping the watchdog */ in watchdog_ping()
79 err = wdd->ops->start(wdd); /* restart watchdog */ in watchdog_ping()
109 err = wdd->ops->start(wdd); in watchdog_start()
148 err = wdd->ops->stop(wdd); in watchdog_stop()
171 if (!wdd->ops->status) in watchdog_get_status()
181 *status = wdd->ops->status(wdd); in watchdog_get_status()
199 if (!wdd->ops->set_timeout || !(wdd->info->options & WDIOF_SETTIMEOUT)) in watchdog_set_timeout()
212 err = wdd->ops->set_timeout(wdd, timeout); in watchdog_set_timeout()
233 if (!wdd->ops->get_timeleft) in watchdog_get_timeleft()
243 *timeleft = wdd->ops->get_timeleft(wdd); in watchdog_get_timeleft()
262 if (!wdd->ops->ioctl) in watchdog_ioctl_op()
272 err = wdd->ops->ioctl(wdd, cmd, arg); in watchdog_ioctl_op()
433 if (!try_module_get(wdd->ops->owner)) in watchdog_open()
442 if (wdd->ops->ref) in watchdog_open()
443 wdd->ops->ref(wdd); in watchdog_open()
449 module_put(wdd->ops->owner); in watchdog_open()
491 module_put(wdd->ops->owner); in watchdog_release()
497 if (wdd->ops->unref) in watchdog_release()
498 wdd->ops->unref(wdd); in watchdog_release()
548 wdd->cdev.owner = wdd->ops->owner; in watchdog_dev_register()