Lines Matching defs:timeout
33 /* default timeout in seconds */
65 * @load_val: load value to be set for current timeout
91 /* This routine finds load value that will reset system in required timeout */
92 static int wdt_setload(struct watchdog_device *wdd, unsigned int timeout)
105 load = div_u64(rate, 2) * timeout - 1;
112 /* roundup timeout to closest positive integer value */
113 wdd->timeout = div_u64((load + 1) * 2 + (rate / 2), rate);
279 * If 'timeout-sec' devicetree property is specified, use that.
282 wdt->wdd.timeout = DEFAULT_TIMEOUT;
284 wdt_setload(&wdt->wdd, wdt->wdd.timeout);