Lines Matching +full:short +full:- +full:ping
1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * any of this software. This material is provided "AS-IS" in
13 * 12/4 - 2000 [Initial revision]
14 * 25/4 - 2000 Added /dev/watchdog support
15 * 09/5 - 2001 [smj@oro.net] fixed fop_write to "return 1"
17 * 12/4 - 2002 [rob@osinvestor.com] eliminate fop_read
28 * 09/8 - 2003 [wim@iguana.be] cleanup of trailing spaces
32 * made the keepalive ping an internal subroutine
39 * *) The driver will ping the watchdog by itself, because this
40 * particular WDT has a very short timeout (one second) and it
67 * You must set these - The driver cannot probe for the settings
97 get seconds to wait for a ping */
122 * we agree to ping the WDT in wdt_timer_ping()
125 /* Ping the WDT by reading from wdt_start */ in wdt_timer_ping()
127 /* Re-set the timer interval */ in wdt_timer_ping()
130 pr_warn("Heartbeat lost! Will not ping the watchdog\n"); in wdt_timer_ping()
156 /* user land ping */ in wdt_keepalive()
181 return -EFAULT; in fop_write()
198 return -EBUSY; in fop_open()
234 return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; in fop_ioctl()
240 int new_options, retval = -EINVAL; in fop_ioctl()
242 return -EFAULT; in fop_ioctl()
260 return -EFAULT; in fop_ioctl()
263 return -EINVAL; in fop_ioctl()
272 return -ENOTTY; in fop_ioctl()
327 int rc = -EBUSY; in sbc60xxwdt_init()
337 rc = -EIO; in sbc60xxwdt_init()
341 /* We cannot reserve 0x45 - the kernel already has! */ in sbc60xxwdt_init()
345 rc = -EIO; in sbc60xxwdt_init()