Lines Matching defs:timeout
103 unsigned int timeout;
208 amdsbwd_tmr_set(struct amdsbwd_softc *sc, uint16_t timeout)
211 timeout &= AMDSB_WD_COUNT_MASK;
212 wdcount_write(sc, timeout);
213 sc->timeout = timeout;
214 amdsbwd_verbose_printf(sc->dev, "timeout set to %u ticks\n", timeout);
221 uint64_t timeout;
224 timeout = 0;
227 timeout = (uint64_t)1 << (cmd - WD_TO_1MS);
228 timeout = timeout / sc->ms_per_tick;
230 /* For a too short timeout use 1 tick. */
231 if (timeout == 0)
232 timeout = 1;
233 /* For a too long timeout stop the timer. */
234 if (timeout > sc->max_ticks)
235 timeout = 0;
237 timeout = 0;
240 if (timeout != 0) {
241 if (timeout != sc->timeout)
242 amdsbwd_tmr_set(sc, timeout);
593 amdsbwd_tmr_set(sc, sc->timeout);