Home | History | Annotate | Download | only in sys

Lines Matching refs:tmo

471  *      dhd_timeout_start(&tmo, usec);
472 * while (!dhd_timeout_expired(&tmo))
475 * if (dhd_timeout_expired(&tmo))
480 dhd_timeout_start(dhd_timeout_t *tmo, uint usec)
482 tmo->limit = usec;
483 tmo->increment = 0;
484 tmo->elapsed = 0;
485 tmo->tick = 1000000 / HZ;
489 dhd_timeout_expired(dhd_timeout_t *tmo)
492 if (tmo->increment == 0) {
493 tmo->increment = 1;
497 if (tmo->elapsed >= tmo->limit)
501 tmo->elapsed += tmo->increment;
503 if (tmo->increment < tmo->tick) {
504 OSL_DELAY(tmo->increment);
505 tmo->increment *= 2;
506 if (tmo->increment > tmo->tick)
507 tmo->increment = tmo->tick;