Lines Matching refs:timeout
62 long timeout;
65 * For negative timeout we want to wait "forever" by setting
67 * to args->timeout to avoid being zeroed on the signal delivery
70 if (args->timeout < 0) {
71 args->timeout = MAX_SCHEDULE_TIMEOUT;
75 if (args->timeout == 0)
79 * Save the timeout to an u64 variable because nsecs_to_jiffies
83 t = drm_timeout_abs_to_jiffies(args->timeout);
85 t = nsecs_to_jiffies(args->timeout);
91 * args->timeout should have been set to a negative value.
94 timeout = MAX_SCHEDULE_TIMEOUT - 1;
96 timeout = t;
98 return timeout ?: 1;
111 long timeout;
134 timeout = to_jiffies_timeout(xe, args);
157 if (!timeout) {
162 timeout = wait_woken(&w_wait, TASK_INTERRUPTIBLE, timeout);
167 args->timeout -= ktime_to_ns(ktime_sub(ktime_get(), start));
168 if (args->timeout < 0)
169 args->timeout = 0;
172 if (!timeout && !(err < 0))