Lines Matching +full:timeout +full:- +full:minutes
1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * -----------------------
9 * -----------------------
10 * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com>
12 * 19-Dec-2001 Woody Suwalski: Netwinder fixes, ioctl interface
13 * 06-Jan-2002 Woody Suwalski: For compatibility, convert all timeouts
14 * from minutes to seconds.
15 * 07-Jul-2003 Daniele Bellucci: Audit return code of misc_register in
17 * 25-Oct-2005 Woody Suwalski: Convert addresses to #defs, add spinlocks
38 #include <asm/mach-types.h>
51 #define DEFAULT_TIMEOUT 60 /* default timeout in seconds */
53 static int timeout = DEFAULT_TIMEOUT; variable
54 static int timeoutM; /* timeout in minutes */
60 module_param(timeout, int, 0);
61 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (60..15300, default="
87 * F2 has the timeout in minutes in wdt977_start()
89 * at timeout, and to reset timer on kbd/mouse activity (not impl.) in wdt977_start()
90 * F4 is used to just clear the TIMEOUT'ed state (bit 0) in wdt977_start()
137 * F4 can clear the TIMEOUT'ed state (bit 0) - back to default in wdt977_stop()
169 * This is done by simply re-writing the timeout to reg. 0xF2
182 /* F2 has the timeout in minutes */ in wdt977_keepalive()
196 * Set the watchdog timeout value
203 /* convert seconds to minutes, rounding up */ in wdt977_set_timeout()
208 * only 30sec. This limits the max timeout to half of device in wdt977_set_timeout()
209 * max of 255 minutes... in wdt977_set_timeout()
215 return -EINVAL; in wdt977_set_timeout()
217 /* timeout is the timeout in seconds, timeoutM is in wdt977_set_timeout()
218 the timeout in minutes) */ in wdt977_set_timeout()
219 timeout = t; in wdt977_set_timeout()
266 return -EBUSY; in wdt977_open()
317 return -EFAULT; in wdt977_write()
352 int new_options, retval = -EINVAL; in wdt977_ioctl()
364 sizeof(ident)) ? -EFAULT : 0; in wdt977_ioctl()
375 return -EFAULT; in wdt977_ioctl()
395 return -EFAULT; in wdt977_ioctl()
398 return -EINVAL; in wdt977_ioctl()
404 return put_user(timeout, uarg.i); in wdt977_ioctl()
407 return -ENOTTY; in wdt977_ioctl()
446 /* Check that the timeout value is within its range; in wd977_init()
448 if (wdt977_set_timeout(timeout)) { in wd977_init()
450 pr_info("timeout value must be 60 < timeout < 15300, using %d\n", in wd977_init()
455 * arch/arm/mach-footbridge/netwinder-hw.c in wd977_init()
461 rc = -EIO; in wd977_init()
479 pr_info("initialized. timeout=%d sec (nowayout=%d, testmode=%i)\n", in wd977_init()
480 timeout, nowayout, testmode); in wd977_init()