Lines Matching defs:args
59 struct drm_xe_wait_user_fence *args)
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)
82 if (args->flags & DRM_XE_UFENCE_WAIT_FLAG_ABSTIME)
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.
107 struct drm_xe_wait_user_fence *args = data;
109 u64 addr = args->addr;
114 if (XE_IOCTL_DBG(xe, args->extensions) || XE_IOCTL_DBG(xe, args->pad) ||
115 XE_IOCTL_DBG(xe, args->pad2) ||
116 XE_IOCTL_DBG(xe, args->reserved[0] || args->reserved[1]))
119 if (XE_IOCTL_DBG(xe, args->flags & ~VALID_FLAGS))
122 if (XE_IOCTL_DBG(xe, args->op > MAX_OP))
128 if (args->exec_queue_id) {
129 q = xe_exec_queue_lookup(xef, args->exec_queue_id);
134 timeout = to_jiffies_timeout(xe, args);
140 err = do_compare(addr, args->value, args->mask, args->op);
166 if (!(args->flags & DRM_XE_UFENCE_WAIT_FLAG_ABSTIME)) {
167 args->timeout -= ktime_to_ns(ktime_sub(ktime_get(), start));
168 if (args->timeout < 0)
169 args->timeout = 0;