Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching full:timeout

58 	struct eloop_timeout *timeout;
230 struct eloop_timeout *timeout, *tmp, *prev;
232 timeout = os_malloc(sizeof(*timeout));
233 if (timeout == NULL)
235 if (os_get_time(&timeout->time) < 0) {
236 os_free(timeout);
239 timeout->time.sec += secs;
240 timeout->time.usec += usecs;
241 while (timeout->time.usec >= 1000000) {
242 timeout->time.sec++;
243 timeout->time.usec -= 1000000;
245 timeout->eloop_data = eloop_data;
246 timeout->user_data = user_data;
247 timeout->handler = handler;
248 timeout->next = NULL;
250 if (eloop.timeout == NULL) {
251 eloop.timeout = timeout;
256 tmp = eloop.timeout;
258 if (os_time_before(&timeout->time, &tmp->time))
265 timeout->next = eloop.timeout;
266 eloop.timeout = timeout;
268 timeout->next = prev->next;
269 prev->next = timeout;
279 struct eloop_timeout *timeout, *prev, *next;
283 timeout = eloop.timeout;
284 while (timeout != NULL) {
285 next = timeout->next;
287 if (timeout->handler == handler &&
288 (timeout->eloop_data == eloop_data ||
290 (timeout->user_data == user_data ||
293 eloop.timeout = next;
296 os_free(timeout);
299 prev = timeout;
301 timeout = next;
313 tmp = eloop.timeout;
453 (eloop.timeout || eloop.readers.count > 0 ||
455 if (eloop.timeout) {
457 if (os_time_before(&now, &eloop.timeout->time))
458 os_time_sub(&eloop.timeout->time, &now, &tv);
462 printf("next timeout in %lu.%06lu sec\n",
473 eloop.timeout ? &_tv : NULL);
481 if (eloop.timeout) {
485 if (!os_time_before(&now, &eloop.timeout->time)) {
486 tmp = eloop.timeout;
487 eloop.timeout = eloop.timeout->next;
518 struct eloop_timeout *timeout, *prev;
520 timeout = eloop.timeout;
521 while (timeout != NULL) {
522 prev = timeout;
523 timeout = timeout->next;