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