Lines Matching refs:timeouts
88 struct dw_wdt_timeout timeouts[DW_WDT_NUM_TOPS];
133 if (dw_wdt->timeouts[idx].sec >= timeout)
140 *top_val = dw_wdt->timeouts[idx].top_val;
142 return dw_wdt->timeouts[idx].sec;
154 if (dw_wdt->timeouts[idx].sec)
158 return dw_wdt->timeouts[idx].sec;
163 struct dw_wdt_timeout *timeout = &dw_wdt->timeouts[DW_WDT_NUM_TOPS - 1];
177 if (dw_wdt->timeouts[idx].top_val == top_val)
185 return dw_wdt->timeouts[idx].sec * dw_wdt->rmod;
419 * passed TOPs array to pre-calculate the effective timeouts and to sort the
420 * TOP items out in the ascending order with respect to the timeouts.
431 * timeouts in seconds and milliseconds. The milliseconds granularity
432 * is needed to distinguish the TOPs with very close timeouts and to
443 * Find a suitable place for the current TOP in the timeouts
447 dst = &dw_wdt->timeouts[tidx];
455 dw_wdt->timeouts[val] = tout;
485 /* Convert the specified TOPs into an array of watchdog timeouts. */
487 if (!dw_wdt->timeouts[DW_WDT_NUM_TOPS - 1].sec) {