Lines Matching refs:next_timeout
64 static struct sys_timeo *next_timeout;
286 if (next_timeout == NULL) {
287 next_timeout = timeout;
291 if (next_timeout->time > msecs) {
292 next_timeout->time -= msecs;
293 timeout->next = next_timeout;
294 next_timeout = timeout;
296 for(t = next_timeout; t != NULL; t = t->next) {
325 if (next_timeout == NULL) {
329 for (t = next_timeout, prev_t = NULL; t != NULL; prev_t = t, t = t->next) {
334 next_timeout = t->next;
360 if (next_timeout) {
377 tmptimeout = next_timeout;
383 next_timeout = tmptimeout->next;
431 if (!next_timeout) {
434 if (next_timeout->time > 0) {
435 time_needed = sys_arch_mbox_fetch(mbox, msg, next_timeout->time);
444 tmptimeout = next_timeout;
445 next_timeout = tmptimeout->next;
470 if (time_needed < next_timeout->time) {
471 next_timeout->time -= time_needed;
473 next_timeout->time = 0;