Lines Matching +full:milli +full:- +full:seconds
1 /* SPDX-License-Identifier: GPL-2.0 */
25 /** struct watchdog_ops - The watchdog-devices operations
32 * @set_timeout:The routine for setting the watchdog devices timeout value (in seconds).
34 * @get_timeleft:The routine that gets the time left before a reset (in seconds).
38 * The watchdog_ops structure contains a list of low-level operations
58 /** struct watchdog_device - The structure that defines a watchdog device
68 * @timeout: The watchdog devices timeout value (in seconds).
70 * @min_timeout:The watchdog devices minimum timeout value (in seconds).
71 * @max_timeout:The watchdog devices maximum timeout value (in seconds)
76 * in milli-seconds.
78 * Hardware limit for maximum timeout, in milli-seconds.
91 * The driver-data field may not be accessed directly. It must be accessed
130 return test_bit(WDOG_ACTIVE, &wdd->status); in watchdog_active()
139 return test_bit(WDOG_HW_RUNNING, &wdd->status); in watchdog_hw_running()
146 set_bit(WDOG_NO_WAY_OUT, &wdd->status); in watchdog_set_nowayout()
152 set_bit(WDOG_STOP_ON_REBOOT, &wdd->status); in watchdog_stop_on_reboot()
158 set_bit(WDOG_STOP_ON_UNREGISTER, &wdd->status); in watchdog_stop_on_unregister()
164 set_bit(WDOG_NO_PING_ON_SUSPEND, &wdd->status); in watchdog_stop_ping_on_suspend()
172 * - the requested value is larger than UINT_MAX / 1000 in watchdog_timeout_invalid()
173 * (since internal calculations are done in milli-seconds), in watchdog_timeout_invalid()
175 * - the requested value is smaller than the configured minimum timeout, in watchdog_timeout_invalid()
177 * - a maximum hardware timeout is not configured, a maximum timeout in watchdog_timeout_invalid()
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()
190 return t && wdd->timeout && t >= wdd->timeout; in watchdog_pretimeout_invalid()
196 wdd->driver_data = data; in watchdog_set_drvdata()
201 return wdd->driver_data; in watchdog_get_drvdata()
210 pr_alert("watchdog%d: pretimeout event\n", wdd->id); in watchdog_notify_pretimeout()