Lines Matching refs:tm
38 struct smt_timer *tm ;
47 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) {
48 if (tm == timer) {
49 *prev = tm->tm_next ;
50 if (tm->tm_next) {
51 tm->tm_next->tm_delta += tm->tm_delta ;
62 struct smt_timer *tm ;
88 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) {
89 if (delta + tm->tm_delta > time) {
92 delta += tm->tm_delta ;
96 timer->tm_next = tm ;
98 if (tm)
99 tm->tm_delta -= timer->tm_delta ;
119 struct smt_timer *tm ;
126 tm = smc->t.st_queue ;
127 while (tm && !done) {
128 if (delta >= tm->tm_delta) {
129 tm->tm_active = FALSE ;
130 delta -= tm->tm_delta ;
131 last = &tm->tm_next ;
132 tm = tm->tm_next ;
135 tm->tm_delta -= delta ;
142 smc->t.st_queue = tm ;
144 for ( tm = next ; tm ; tm = next) {
145 next = tm->tm_next ;
146 timer_event(smc,tm->tm_token) ;