Lines Matching refs:wdd
129 static inline bool watchdog_active(struct watchdog_device *wdd) in watchdog_active() argument
131 return test_bit(WDOG_ACTIVE, &wdd->status); in watchdog_active()
138 static inline bool watchdog_hw_running(struct watchdog_device *wdd) in watchdog_hw_running() argument
140 return test_bit(WDOG_HW_RUNNING, &wdd->status); in watchdog_hw_running()
144 static inline void watchdog_set_nowayout(struct watchdog_device *wdd, bool nowayout) in watchdog_set_nowayout() argument
147 set_bit(WDOG_NO_WAY_OUT, &wdd->status); in watchdog_set_nowayout()
151 static inline void watchdog_stop_on_reboot(struct watchdog_device *wdd) in watchdog_stop_on_reboot() argument
153 set_bit(WDOG_STOP_ON_REBOOT, &wdd->status); in watchdog_stop_on_reboot()
157 static inline void watchdog_stop_on_unregister(struct watchdog_device *wdd) in watchdog_stop_on_unregister() argument
159 set_bit(WDOG_STOP_ON_UNREGISTER, &wdd->status); in watchdog_stop_on_unregister()
163 static inline bool watchdog_timeout_invalid(struct watchdog_device *wdd, unsigned int t) in watchdog_timeout_invalid() argument
176 return t > UINT_MAX / 1000 || t < wdd->min_timeout || in watchdog_timeout_invalid()
177 (!wdd->max_hw_heartbeat_ms && wdd->max_timeout && in watchdog_timeout_invalid()
178 t > wdd->max_timeout); in watchdog_timeout_invalid()
182 static inline bool watchdog_pretimeout_invalid(struct watchdog_device *wdd, in watchdog_pretimeout_invalid() argument
185 return t && wdd->timeout && t >= wdd->timeout; in watchdog_pretimeout_invalid()
189 static inline void watchdog_set_drvdata(struct watchdog_device *wdd, void *data) in watchdog_set_drvdata() argument
191 wdd->driver_data = data; in watchdog_set_drvdata()
194 static inline void *watchdog_get_drvdata(struct watchdog_device *wdd) in watchdog_get_drvdata() argument
196 return wdd->driver_data; in watchdog_get_drvdata()
201 void watchdog_notify_pretimeout(struct watchdog_device *wdd);
203 static inline void watchdog_notify_pretimeout(struct watchdog_device *wdd) in watchdog_notify_pretimeout() argument
205 pr_alert("watchdog%d: pretimeout event\n", wdd->id); in watchdog_notify_pretimeout()
210 void watchdog_set_restart_priority(struct watchdog_device *wdd, int priority);
211 extern int watchdog_init_timeout(struct watchdog_device *wdd,