Lines Matching refs:wdd

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