Lines Matching refs:timeout
62 long timeout; in to_jiffies_timeout() local
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()
83 t = drm_timeout_abs_to_jiffies(args->timeout); in to_jiffies_timeout()
85 t = nsecs_to_jiffies(args->timeout); 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()
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()