Lines Matching refs:timeout
168 struct timer_entry *timeout = NULL;
175 timeout = (struct timer_entry *)memp_malloc(MEMP_SYS_TIMEOUT);
176 if (timeout == NULL) {
177 LWIP_DEBUGF(LOWPOWER_DEBUG, ("sys_timeout_reg: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty"));
181 timeout->handler = handler;
182 timeout->clock_max = msec / TIMEOUT_TICK; /* time interval */
183 timeout->next_tick = next_tick;
184 timeout->timeout = sys_now();
185 timeout->args = arg;
186 timeout->enable = 0;
189 timeout->name = name;
193 timeout->next = NULL;
195 g_timer_header = timeout;
201 temp->next = timeout;
207 /* deal timeout and return next timer prev */
213 LWIP_DEBUGF(LOWPOWER_DEBUG, ("%s timeout: now:%u\n", t->name, now));
219 t->timeout += t->clock_max * TIMEOUT_TICK;
227 /* disable lowpower, need to timeout once a tick */
290 t->timeout = now;
295 if (temp <= now - t->timeout) {
305 temp = temp - (now - t->timeout);
324 LWIP_DEBUGF(LOWPOWER_DEBUG, ("\n**********timeout**************\n"));
334 msec = now - t->timeout;