Lines Matching refs:timeout
269 struct sys_timeo *timeout, *t; in sys_timeout_debug() local
271 timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT); in sys_timeout_debug()
272 if (timeout == NULL) { in sys_timeout_debug()
273 LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL); in sys_timeout_debug()
276 timeout->next = NULL; in sys_timeout_debug()
277 timeout->h = handler; in sys_timeout_debug()
278 timeout->arg = arg; in sys_timeout_debug()
279 timeout->time = msecs; in sys_timeout_debug()
281 timeout->handler_name = handler_name; in sys_timeout_debug()
283 (void *)timeout, msecs, handler_name, (void *)arg)); in sys_timeout_debug()
287 next_timeout = timeout; in sys_timeout_debug()
293 timeout->next = next_timeout; in sys_timeout_debug()
294 next_timeout = timeout; in sys_timeout_debug()
297 timeout->time -= t->time; in sys_timeout_debug()
298 if (t->next == NULL || t->next->time > timeout->time) { in sys_timeout_debug()
300 t->next->time -= timeout->time; in sys_timeout_debug()
302 timeout->next = t->next; in sys_timeout_debug()
303 t->next = timeout; in sys_timeout_debug()