Lines Matching refs:timeout
42 * adjust the timeout back down to is seven ticks, so set the minimum
43 * timeout to at least that value for the sake of consistency.
55 * This starts the timer running with the current timeout value. If
65 /* 0 means "use default timeout" */
71 /* Honor user-specified minimum timeout */
72 if ( timer->timeout < timer->min_timeout )
73 timer->timeout = timer->min_timeout;
76 timer, timer->start, ( timer->start + timer->timeout ) );
80 * Start timer with a specified fixed timeout
83 * @v timeout Timeout, in ticks
85 void start_timer_fixed ( struct retry_timer *timer, unsigned long timeout ) {
87 timer->timeout = timeout;
89 timer, ( timer->start + timer->timeout ) );
97 * This stops the timer and updates the timer's timeout value.
100 unsigned long old_timeout = timer->timeout;
117 * t = timeout value (i.e. timer->timeout)
132 timer->timeout -= ( timer->timeout >> 3 );
133 timer->timeout += ( runtime >> 1 );
134 if ( timer->timeout != old_timeout ) {
135 DBG ( "Timer %p timeout updated to %ld\n",
136 timer, timer->timeout );
157 /* Back off the timeout value */
158 timer->timeout <<= 1;
159 if ( timer->max_timeout == 0 ) /* 0 means "use default timeout" */
161 if ( ( fail = ( timer->timeout > timer->max_timeout ) ) )
162 timer->timeout = timer->max_timeout;
163 DBG ( "Timer %p timeout backed off to %ld\n",
164 timer, timer->timeout );
183 if ( used >= timer->timeout )