tmr 108 bsp/drv/dev/block/fdd.c timer_t tmr; /* timer id */ tmr 199 bsp/drv/dev/block/fdd.c timer_stop(&sc->tmr); tmr 216 bsp/drv/dev/block/fdd.c timer_callout(&sc->tmr, 250, &fdc_timeout, sc); tmr 242 bsp/drv/dev/block/fdd.c timer_callout(&sc->tmr, 500, &fdc_timeout, sc); tmr 259 bsp/drv/dev/block/fdd.c timer_callout(&sc->tmr, 5000, &fdc_timeout, sc); tmr 279 bsp/drv/dev/block/fdd.c timer_callout(&sc->tmr, 4000, &fdc_timeout, sc); tmr 314 bsp/drv/dev/block/fdd.c timer_callout(&sc->tmr, 2000, &fdc_timeout, sc); tmr 343 bsp/drv/dev/block/fdd.c timer_callout(&sc->tmr, 5000, &fdc_timeout, sc); tmr 394 bsp/drv/dev/block/fdd.c timer_stop(&sc->tmr); tmr 405 bsp/drv/dev/block/fdd.c timer_stop(&sc->tmr); tmr 69 sys/kern/timer.c timer_add(struct timer *tmr, u_long ticks) tmr 77 sys/kern/timer.c tmr->expire = lbolt + ticks; tmr 78 sys/kern/timer.c tmr->state = TM_ACTIVE; tmr 87 sys/kern/timer.c if (time_before(tmr->expire, t->expire)) tmr 90 sys/kern/timer.c list_insert(list_prev(n), &tmr->link); tmr 97 sys/kern/timer.c timer_stop(struct timer *tmr) tmr 101 sys/kern/timer.c ASSERT(tmr != NULL); tmr 104 sys/kern/timer.c if (tmr->state == TM_ACTIVE) { tmr 105 sys/kern/timer.c list_remove(&tmr->link); tmr 106 sys/kern/timer.c tmr->state = TM_STOP; tmr 119 sys/kern/timer.c timer_callout(struct timer *tmr, u_long msec, void (*fn)(void *), void *arg) tmr 123 sys/kern/timer.c ASSERT(tmr != NULL); tmr 128 sys/kern/timer.c if (tmr->state == TM_ACTIVE) tmr 129 sys/kern/timer.c list_remove(&tmr->link); tmr 131 sys/kern/timer.c tmr->func = fn; tmr 132 sys/kern/timer.c tmr->arg = arg; tmr 133 sys/kern/timer.c tmr->interval = 0; tmr 134 sys/kern/timer.c timer_add(tmr, mstohz(msec)); tmr 149 sys/kern/timer.c struct timer *tmr; tmr 155 sys/kern/timer.c tmr = &curthread->timeout; tmr 156 sys/kern/timer.c remain = hztoms(time_remain(tmr->expire)); tmr 206 sys/kern/timer.c struct timer *tmr; tmr 211 sys/kern/timer.c tmr = &curtask->alarm; tmr 217 sys/kern/timer.c if (tmr->state == TM_ACTIVE) tmr 218 sys/kern/timer.c left = hztoms(time_remain(tmr->expire)); tmr 221 sys/kern/timer.c timer_stop(tmr); tmr 223 sys/kern/timer.c timer_callout(tmr, msec, &alarm_expire, curtask); tmr 242 sys/kern/timer.c struct timer *tmr; tmr 258 sys/kern/timer.c tmr = t->periodic; tmr 263 sys/kern/timer.c if (tmr == NULL || tmr->state != TM_ACTIVE) { tmr 267 sys/kern/timer.c timer_stop(tmr); tmr 269 sys/kern/timer.c if (tmr == NULL) { tmr 275 sys/kern/timer.c if ((tmr = kmem_alloc(sizeof(tmr))) == NULL) { tmr 279 sys/kern/timer.c memset(tmr, 0, sizeof(*tmr)); tmr 280 sys/kern/timer.c event_init(&tmr->event, "periodic"); tmr 281 sys/kern/timer.c t->periodic = tmr; tmr 287 sys/kern/timer.c tmr->interval = mstohz(period); tmr 288 sys/kern/timer.c if (tmr->interval == 0) tmr 289 sys/kern/timer.c tmr->interval = 1; tmr 290 sys/kern/timer.c timer_add(tmr, mstohz(start)); tmr 308 sys/kern/timer.c struct timer *tmr; tmr 311 sys/kern/timer.c tmr = curthread->periodic; tmr 312 sys/kern/timer.c if (tmr == NULL || tmr->state != TM_ACTIVE) tmr 315 sys/kern/timer.c if (time_before(lbolt, tmr->expire)) { tmr 319 sys/kern/timer.c rc = sched_sleep(&tmr->event); tmr 349 sys/kern/timer.c struct timer *tmr; tmr 363 sys/kern/timer.c tmr = timer_next(&expire_list); tmr 364 sys/kern/timer.c list_remove(&tmr->link); tmr 365 sys/kern/timer.c tmr->state = TM_STOP; tmr 368 sys/kern/timer.c (*tmr->func)(tmr->arg); tmr 391 sys/kern/timer.c struct timer *tmr; tmr 407 sys/kern/timer.c tmr = timer_next(&timer_list); tmr 408 sys/kern/timer.c if (time_before(lbolt, tmr->expire)) tmr 411 sys/kern/timer.c list_remove(&tmr->link); tmr 412 sys/kern/timer.c if (tmr->interval != 0) { tmr 416 sys/kern/timer.c ticks = time_remain(tmr->expire + tmr->interval); tmr 417 sys/kern/timer.c timer_add(tmr, ticks); tmr 418 sys/kern/timer.c sched_wakeup(&tmr->event); tmr 423 sys/kern/timer.c list_insert(&expire_list, &tmr->link);