Lines Matching refs:ops
18 const struct wdt_ops *ops = device_get_ops(dev); in wdt_start() local
20 if (!ops->start) in wdt_start()
23 return ops->start(dev, timeout_ms, flags); in wdt_start()
28 const struct wdt_ops *ops = device_get_ops(dev); in wdt_stop() local
30 if (!ops->stop) in wdt_stop()
33 return ops->stop(dev); in wdt_stop()
38 const struct wdt_ops *ops = device_get_ops(dev); in wdt_reset() local
40 if (!ops->reset) in wdt_reset()
43 return ops->reset(dev); in wdt_reset()
49 const struct wdt_ops *ops; in wdt_expire_now() local
52 ops = device_get_ops(dev); in wdt_expire_now()
53 if (ops->expire_now) { in wdt_expire_now()
54 return ops->expire_now(dev, flags); in wdt_expire_now()
56 if (!ops->start) in wdt_expire_now()
59 ret = ops->start(dev, 1, flags); in wdt_expire_now()