Lines Matching +full:short +full:- +full:ping
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * MachZ ZF-Logic Watchdog Timer driver for Linux
6 * any of this software. This material is provided "AS-IS" in
15 * wd#1 - 2 seconds;
16 * wd#2 - 7.2 ms;
21 * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com>
79 static unsigned short zf_readw(unsigned char port) in zf_readw()
87 MODULE_DESCRIPTION("MachZ ZF-Logic Watchdog driver");
101 .identity = "ZF-Logic watchdog",
153 static inline unsigned short zf_get_control(void) in zf_get_control()
158 static inline void zf_set_control(unsigned short new) in zf_set_control()
169 static inline void zf_set_timer(unsigned short new, unsigned char n) in zf_set_timer()
191 /* stop internal ping */ in zf_timer_off()
220 /* user land ping */ in zf_timer_on()
223 /* start the timer for internal ping */ in zf_timer_on()
244 dprintk("time_before: %ld\n", next_heartbeat - jiffies); in zf_ping()
286 return -EFAULT; in zf_write()
299 dprintk("user ping at %ld\n", jiffies); in zf_write()
311 return -EFAULT; in zf_ioctl()
320 return -ENOTTY; in zf_ioctl()
328 return -EBUSY; in zf_open()
395 pr_info("MachZ ZF-Logic Watchdog driver initializing\n"); in zf_init()
399 pr_warn("no ZF-Logic found\n"); in zf_init()
400 return -ENODEV; in zf_init()
412 ret = -EBUSY; in zf_init()