Lines Matching refs:timeout
451 int timeout = 1000; /* 10 ms per system tick */
456 delay.tv_sec = timeout / 1000;
457 delay.tv_nsec = 1000 * 1000 * (timeout%1000);
632 ** timeout - (input) the duration that the task wants to wait
636 ** Returns the event mask of received events or zero if timeout
639 UINT16 GKI_wait (UINT16 flag, UINT32 timeout)
648 GKI_TRACE_3("GKI_wait %d %x %d", rtask, flag, timeout);
685 if (timeout)
687 // timeout = GKI_MS_TO_TICKS(timeout); /* convert from milliseconds to ticks */
695 /* add timeout */
696 sec = timeout / 1000;
697 nano_sec = (timeout % 1000) * NANOSEC_PER_MILLISEC;
719 // no need to call GKI_disable() here as we know that we will have some events as we've been waking up after condition pending or timeout
753 GKI_TRACE_4("GKI_wait %d %x %d %x resumed", rtask, flag, timeout, evt);
766 ** Parameters: timeout - (input) the duration in milliseconds
772 void GKI_delay (UINT32 timeout)
778 GKI_TRACE_2("GKI_delay %d %d", rtask, timeout);
780 delay.tv_sec = timeout / 1000;
781 delay.tv_nsec = 1000 * 1000 * (timeout%1000);
798 GKI_TRACE_2("GKI_delay %d %d done", rtask, timeout);