Lines Matching refs:wdd
128 static inline bool watchdog_active(struct watchdog_device *wdd) in watchdog_active() argument
130 return test_bit(WDOG_ACTIVE, &wdd->status); in watchdog_active()
137 static inline bool watchdog_hw_running(struct watchdog_device *wdd) in watchdog_hw_running() argument
139 return test_bit(WDOG_HW_RUNNING, &wdd->status); in watchdog_hw_running()
143 static inline void watchdog_set_nowayout(struct watchdog_device *wdd, bool nowayout) in watchdog_set_nowayout() argument
146 set_bit(WDOG_NO_WAY_OUT, &wdd->status); in watchdog_set_nowayout()
150 static inline void watchdog_stop_on_reboot(struct watchdog_device *wdd) in watchdog_stop_on_reboot() argument
152 set_bit(WDOG_STOP_ON_REBOOT, &wdd->status); in watchdog_stop_on_reboot()
156 static inline void watchdog_stop_on_unregister(struct watchdog_device *wdd) in watchdog_stop_on_unregister() argument
158 set_bit(WDOG_STOP_ON_UNREGISTER, &wdd->status); in watchdog_stop_on_unregister()
162 static inline void watchdog_stop_ping_on_suspend(struct watchdog_device *wdd) in watchdog_stop_ping_on_suspend() argument
164 set_bit(WDOG_NO_PING_ON_SUSPEND, &wdd->status); in watchdog_stop_ping_on_suspend()
168 static inline bool watchdog_timeout_invalid(struct watchdog_device *wdd, unsigned int t) in watchdog_timeout_invalid() argument
181 return t > UINT_MAX / 1000 || t < wdd->min_timeout || in watchdog_timeout_invalid()
182 (!wdd->max_hw_heartbeat_ms && wdd->max_timeout && in watchdog_timeout_invalid()
183 t > wdd->max_timeout); in watchdog_timeout_invalid()
187 static inline bool watchdog_pretimeout_invalid(struct watchdog_device *wdd, in watchdog_pretimeout_invalid() argument
190 return t && wdd->timeout && t >= wdd->timeout; in watchdog_pretimeout_invalid()
194 static inline void watchdog_set_drvdata(struct watchdog_device *wdd, void *data) in watchdog_set_drvdata() argument
196 wdd->driver_data = data; in watchdog_set_drvdata()
199 static inline void *watchdog_get_drvdata(struct watchdog_device *wdd) in watchdog_get_drvdata() argument
201 return wdd->driver_data; in watchdog_get_drvdata()
206 void watchdog_notify_pretimeout(struct watchdog_device *wdd);
208 static inline void watchdog_notify_pretimeout(struct watchdog_device *wdd) in watchdog_notify_pretimeout() argument
210 pr_alert("watchdog%d: pretimeout event\n", wdd->id); in watchdog_notify_pretimeout()
215 void watchdog_set_restart_priority(struct watchdog_device *wdd, int priority);
216 extern int watchdog_init_timeout(struct watchdog_device *wdd,
220 int watchdog_dev_suspend(struct watchdog_device *wdd);
221 int watchdog_dev_resume(struct watchdog_device *wdd);