Lines Matching refs:timeouts
89 struct dw_wdt_timeout timeouts[DW_WDT_NUM_TOPS];
134 if (dw_wdt->timeouts[idx].sec >= timeout)
141 *top_val = dw_wdt->timeouts[idx].top_val;
143 return dw_wdt->timeouts[idx].sec;
155 if (dw_wdt->timeouts[idx].sec)
159 return dw_wdt->timeouts[idx].sec;
164 struct dw_wdt_timeout *timeout = &dw_wdt->timeouts[DW_WDT_NUM_TOPS - 1];
178 if (dw_wdt->timeouts[idx].top_val == top_val)
186 return dw_wdt->timeouts[idx].sec * dw_wdt->rmod;
422 * passed TOPs array to pre-calculate the effective timeouts and to sort the
423 * TOP items out in the ascending order with respect to the timeouts.
434 * timeouts in seconds and milliseconds. The milliseconds granularity
435 * is needed to distinguish the TOPs with very close timeouts and to
446 * Find a suitable place for the current TOP in the timeouts
450 dst = &dw_wdt->timeouts[tidx];
458 dw_wdt->timeouts[val] = tout;
488 /* Convert the specified TOPs into an array of watchdog timeouts. */
490 if (!dw_wdt->timeouts[DW_WDT_NUM_TOPS - 1].sec) {