Lines Matching refs:timeout
80 unsigned int t = wdd->timeout * 1000;
86 * - The driver provided a value for the maximum hardware timeout, and
89 * - Userspace requests a longer timeout than the hardware can handle.
102 unsigned int timeout_ms = wdd->timeout * 1000;
118 * To ensure that the watchdog times out wdd->timeout seconds
120 * worker ping has to come in hw_heartbeat_ms before this timeout.
360 * watchdog_set_timeout - set the watchdog timer timeout
361 * @wdd: The watchdog device to set the timeout for
362 * @timeout: Timeout to set in seconds
369 unsigned int timeout)
376 if (watchdog_timeout_invalid(wdd, timeout))
380 err = wdd->ops->set_timeout(wdd, timeout);
381 trace_watchdog_set_timeout(wdd, timeout, err);
383 wdd->timeout = timeout;
384 /* Disable pretimeout if it doesn't fit the new timeout */
385 if (wdd->pretimeout >= wdd->timeout)
396 * @wdd: The watchdog device to set the timeout for
397 * @timeout: pretimeout to set in seconds
402 unsigned int timeout)
409 if (watchdog_pretimeout_invalid(wdd, timeout))
413 err = wdd->ops->set_pretimeout(wdd, timeout);
415 wdd->pretimeout = timeout;
520 return sysfs_emit(buf, "%u\n", wdd->timeout);
522 static DEVICE_ATTR_RO(timeout);
814 * possible that it takes the new timeout) */
820 /* timeout == 0 means that we don't know the timeout */
821 if (wdd->timeout == 0) {
825 err = put_user(wdd->timeout, p);