Lines Matching full:timeout
25 * Watchdog selector to timeout in seconds.
27 * others: timeout = 2048 ms * 2^(TWDSCALE-1).
53 * Read the currently active timeout.
73 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument
79 * The watchdog triggers a reboot if a timeout value is already in da9063_wdt_update_timeout()
80 * programmed because the timeout value combines two functions in da9063_wdt_update_timeout()
82 * The watchdog must be disabled to be able to change the timeout in da9063_wdt_update_timeout()
84 * new timeout value which enables the watchdog again. in da9063_wdt_update_timeout()
91 regval = da9063_wdt_timeout_to_sel(timeout); in da9063_wdt_update_timeout()
102 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start()
145 unsigned int timeout) in da9063_wdt_set_timeout() argument
152 * 1. The watchdog is off and someone wants to set the timeout for the in da9063_wdt_set_timeout()
154 * 2. The watchdog is already running and a new timeout value should be in da9063_wdt_set_timeout()
157 * The watchdog can't store a timeout value not equal zero without in da9063_wdt_set_timeout()
158 * enabling the watchdog, so the timeout must be buffered by the driver. in da9063_wdt_set_timeout()
161 ret = da9063_wdt_update_timeout(da9063, timeout); in da9063_wdt_set_timeout()
164 dev_err(da9063->dev, "Failed to set watchdog timeout (err = %d)\n", in da9063_wdt_set_timeout()
167 wdd->timeout = wdt_timeout[da9063_wdt_timeout_to_sel(timeout)]; in da9063_wdt_set_timeout()
211 unsigned int timeout; in da9063_wdt_probe() local
238 wdd->timeout = DA9063_WDG_TIMEOUT; in da9063_wdt_probe()
240 /* Use pre-configured timeout if watchdog is already running. */ in da9063_wdt_probe()
241 timeout = da9063_wdt_read_timeout(da9063); in da9063_wdt_probe()
242 if (timeout) in da9063_wdt_probe()
243 wdd->timeout = timeout; in da9063_wdt_probe()
245 /* Set timeout, maybe override it with DT value, scale it */ in da9063_wdt_probe()
247 da9063_wdt_set_timeout(wdd, wdd->timeout); in da9063_wdt_probe()
249 /* Update timeout if the watchdog is already running. */ in da9063_wdt_probe()
250 if (timeout) { in da9063_wdt_probe()
251 da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_probe()