Lines Matching defs:tm
34 struct smt_timer *tm ;
43 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) {
44 if (tm == timer) {
45 *prev = tm->tm_next ;
46 if (tm->tm_next) {
47 tm->tm_next->tm_delta += tm->tm_delta ;
58 struct smt_timer *tm ;
84 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) {
85 if (delta + tm->tm_delta > time) {
88 delta += tm->tm_delta ;
92 timer->tm_next = tm ;
94 if (tm)
95 tm->tm_delta -= timer->tm_delta ;
115 struct smt_timer *tm ;
122 tm = smc->t.st_queue ;
123 while (tm && !done) {
124 if (delta >= tm->tm_delta) {
125 tm->tm_active = FALSE ;
126 delta -= tm->tm_delta ;
127 last = &tm->tm_next ;
128 tm = tm->tm_next ;
131 tm->tm_delta -= delta ;
138 smc->t.st_queue = tm ;
140 for ( tm = next ; tm ; tm = next) {
141 next = tm->tm_next ;
142 timer_event(smc,tm->tm_token) ;