Lines Matching refs:wdd
126 static inline bool watchdog_active(struct watchdog_device *wdd) in watchdog_active() argument
128 return test_bit(WDOG_ACTIVE, &wdd->status); in watchdog_active()
135 static inline bool watchdog_hw_running(struct watchdog_device *wdd) in watchdog_hw_running() argument
137 return test_bit(WDOG_HW_RUNNING, &wdd->status); in watchdog_hw_running()
141 static inline void watchdog_set_nowayout(struct watchdog_device *wdd, bool nowayout) in watchdog_set_nowayout() argument
144 set_bit(WDOG_NO_WAY_OUT, &wdd->status); in watchdog_set_nowayout()
148 static inline void watchdog_stop_on_reboot(struct watchdog_device *wdd) in watchdog_stop_on_reboot() argument
150 set_bit(WDOG_STOP_ON_REBOOT, &wdd->status); in watchdog_stop_on_reboot()
154 static inline void watchdog_stop_on_unregister(struct watchdog_device *wdd) in watchdog_stop_on_unregister() argument
156 set_bit(WDOG_STOP_ON_UNREGISTER, &wdd->status); in watchdog_stop_on_unregister()
160 static inline bool watchdog_timeout_invalid(struct watchdog_device *wdd, unsigned int t) in watchdog_timeout_invalid() argument
173 return t > UINT_MAX / 1000 || t < wdd->min_timeout || in watchdog_timeout_invalid()
174 (!wdd->max_hw_heartbeat_ms && wdd->max_timeout && in watchdog_timeout_invalid()
175 t > wdd->max_timeout); in watchdog_timeout_invalid()
179 static inline bool watchdog_pretimeout_invalid(struct watchdog_device *wdd, in watchdog_pretimeout_invalid() argument
182 return t && wdd->timeout && t >= wdd->timeout; in watchdog_pretimeout_invalid()
186 static inline void watchdog_set_drvdata(struct watchdog_device *wdd, void *data) in watchdog_set_drvdata() argument
188 wdd->driver_data = data; in watchdog_set_drvdata()
191 static inline void *watchdog_get_drvdata(struct watchdog_device *wdd) in watchdog_get_drvdata() argument
193 return wdd->driver_data; in watchdog_get_drvdata()
198 void watchdog_notify_pretimeout(struct watchdog_device *wdd);
200 static inline void watchdog_notify_pretimeout(struct watchdog_device *wdd) in watchdog_notify_pretimeout() argument
202 pr_alert("watchdog%d: pretimeout event\n", wdd->id); in watchdog_notify_pretimeout()
207 void watchdog_set_restart_priority(struct watchdog_device *wdd, int priority);
208 extern int watchdog_init_timeout(struct watchdog_device *wdd,