Home | History | Annotate | Download | only in ulinux

Lines Matching defs:timeout

610     struct timespec timeout;
665 /* Compute next timeout:
666 * timeout = (next theoretical expiration) - current time
667 * timeout = (previous time + timeout + delay) - current time
668 * timeout = timeout + delay - (current time - previous time)
669 * timeout += delay - delta */
675 timeout.tv_sec = 0;
679 possible that the timeout value is negative. To protect
686 timeout.tv_nsec = (GKI_TICKS_TO_MS(1) * 1000000) * 0.1;
698 timeout.tv_nsec = timeout_ns;
704 err = nanosleep(&timeout, &timeout);
899 ** timeout - (input) the duration that the task wants to wait
903 ** Returns the event mask of received events or zero if timeout
906 UINT16 GKI_wait (UINT16 flag, UINT32 timeout)
917 GKI_TRACE("GKI_wait %d %x %d", (int)rtask, (int)flag, (int)timeout);
926 if (timeout)
930 /* add timeout */
931 sec = timeout / 1000;
932 nano_sec = (timeout % 1000) * NANOSEC_PER_MILLISEC;
956 up after condition pending or timeout */
988 GKI_TRACE("GKI_wait %d %x %d %x done", (int)rtask, (int)flag, (int)timeout, (int)evt);
1000 ** Parameters: timeout - (input) the duration in milliseconds
1006 void GKI_delay (UINT32 timeout)
1012 GKI_TRACE("GKI_delay %d %d", (int)rtask, (int)timeout);
1014 delay.tv_sec = timeout / 1000;
1015 delay.tv_nsec = 1000 * 1000 * (timeout%1000);
1031 GKI_TRACE("GKI_delay %d %d done", (int)rtask, (int)timeout);