Lines Matching full:timeout

7  * in the many subsystems. The watchdog has 16 different timeout periods
51 /* There are sixteen TOPs (timeout periods) that can be set in the watchdog. */
93 u32 timeout; member
123 unsigned int timeout, u32 *top_val) in dw_wdt_find_best_top() argument
128 * Find a TOP with timeout greater or equal to the requested number. in dw_wdt_find_best_top()
129 * Note we'll select a TOP with maximum timeout if the requested in dw_wdt_find_best_top()
130 * timeout couldn't be reached. in dw_wdt_find_best_top()
133 if (dw_wdt->timeouts[idx].sec >= timeout) in dw_wdt_find_best_top()
150 * We'll find a timeout greater or equal to one second anyway because in dw_wdt_get_min_timeout()
163 struct dw_wdt_timeout *timeout = &dw_wdt->timeouts[DW_WDT_NUM_TOPS - 1]; in dw_wdt_get_max_timeout_ms() local
166 msec = (u64)timeout->sec * MSEC_PER_SEC + timeout->msec; in dw_wdt_get_max_timeout_ms()
182 * In IRQ mode due to the two stages counter, the actual timeout is in dw_wdt_get_timeout()
201 unsigned int timeout; in dw_wdt_set_timeout() local
205 * Note IRQ mode being enabled means having a non-zero pre-timeout in dw_wdt_set_timeout()
207 * requested timeout as possible since DW Watchdog IRQ mode is designed in dw_wdt_set_timeout()
208 * in two stages way - first timeout rises the pre-timeout interrupt, in dw_wdt_set_timeout()
209 * second timeout performs the system reset. So basically the effective in dw_wdt_set_timeout()
212 timeout = dw_wdt_find_best_top(dw_wdt, DIV_ROUND_UP(top_s, dw_wdt->rmod), in dw_wdt_set_timeout()
215 wdd->pretimeout = timeout; in dw_wdt_set_timeout()
233 * In case users set bigger timeout value than HW can support, in dw_wdt_set_timeout()
238 wdd->timeout = timeout * dw_wdt->rmod; in dw_wdt_set_timeout()
240 wdd->timeout = top_s; in dw_wdt_set_timeout()
250 * We ignore actual value of the timeout passed from user-space in dw_wdt_set_pretimeout()
255 dw_wdt_set_timeout(wdd, wdd->timeout); in dw_wdt_set_pretimeout()
278 dw_wdt_set_timeout(wdd, wdd->timeout); in dw_wdt_start()
383 dw_wdt->timeout = readl(dw_wdt->regs + WDOG_TIMEOUT_RANGE_REG_OFFSET); in dw_wdt_suspend()
405 writel(dw_wdt->timeout, dw_wdt->regs + WDOG_TIMEOUT_RANGE_REG_OFFSET); in dw_wdt_resume()
595 /* Enable normal reset without pre-timeout by default. */ in dw_wdt_drv_probe()
599 * Pre-timeout IRQ is optional, since some hardware may lack support in dw_wdt_drv_probe()
638 * timeout. Otherwise use the default or the value provided through in dw_wdt_drv_probe()
642 wdd->timeout = dw_wdt_get_timeout(dw_wdt); in dw_wdt_drv_probe()
645 wdd->timeout = DW_WDT_DEFAULT_SECONDS; in dw_wdt_drv_probe()
647 /* Limit timeout value to hardware constraints. */ in dw_wdt_drv_probe()
648 dw_wdt_set_timeout(wdd, wdd->timeout); in dw_wdt_drv_probe()