Lines Matching refs:sec
122 int sec = 0; in watchdog_get_timeout() local
126 if (ioctl(watchdog_fd, WDIOC_GETTIMEOUT, &sec) < 0) in watchdog_get_timeout()
129 assert(sec > 0); in watchdog_get_timeout()
130 watchdog_timeout = sec * USEC_PER_SEC; in watchdog_get_timeout()
136 int sec; in watchdog_set_timeout() local
141 sec = saturated_usec_to_sec(watchdog_timeout); in watchdog_set_timeout()
143 if (ioctl(watchdog_fd, WDIOC_SETTIMEOUT, &sec) < 0) in watchdog_set_timeout()
146 assert(sec > 0); /* buggy driver ? */ in watchdog_set_timeout()
147 watchdog_timeout = sec * USEC_PER_SEC; in watchdog_set_timeout()
153 int sec = 0; in watchdog_get_pretimeout() local
157 if (ioctl(watchdog_fd, WDIOC_GETPRETIMEOUT, &sec) < 0) { in watchdog_get_pretimeout()
162 watchdog_pretimeout = sec * USEC_PER_SEC; in watchdog_get_pretimeout()
168 int sec; in watchdog_set_pretimeout() local
173 sec = saturated_usec_to_sec(watchdog_pretimeout); in watchdog_set_pretimeout()
175 if (ioctl(watchdog_fd, WDIOC_SETPRETIMEOUT, &sec) < 0) { in watchdog_set_pretimeout()
183 …n log_error_errno(errno, "Failed to set pretimeout to %s: %m", FORMAT_TIMESPAN(sec, USEC_PER_SEC)); in watchdog_set_pretimeout()