Lines Matching refs:wait

3  * Parts ported from amdgpu (fence wait code).
107 * Host-side wait on syncobjs
111 * host-side wait on all of the syncobj fences simultaneously.
112 * If &DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL is set, the wait ioctl will wait on
119 * the host-side wait will first wait for the syncobj to receive a non-NULL
120 * fence and then wait on that fence.
124 * to do a host wait in one thread (or process) which waits on GPU work
130 * handles as well as an array of u64 points and does a host-side wait on all
133 * &DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT also adds the ability to wait for a given
136 * requirement is inherited from the wait-before-signal behavior required by
139 * Alternatively, &DRM_IOCTL_SYNCOBJ_EVENTFD can be used to wait without
141 * integrate the wait in an event loop.
222 struct syncobj_wait_entry *wait);
265 struct syncobj_wait_entry *wait)
269 if (wait->fence)
278 if (!fence || dma_fence_chain_find_seqno(&fence, wait->point)) {
280 list_add_tail(&wait->node, &syncobj->cb_list);
282 wait->fence = dma_fence_get_stub();
284 wait->fence = fence;
290 struct syncobj_wait_entry *wait)
292 if (!wait->node.next)
296 list_del_init(&wait->node);
419 /* 5s default for wait submission */
441 struct syncobj_wait_entry wait;
480 memset(&wait, 0, sizeof(wait));
482 wait.task = current;
484 wait.task = curproc;
486 wait.point = point;
487 drm_syncobj_fence_add_wait(syncobj, &wait);
491 if (wait.fence) {
509 *fence = wait.fence;
511 if (wait.node.next)
512 drm_syncobj_remove_wait(syncobj, &wait);
1059 struct syncobj_wait_entry *wait =
1062 wake_up_process(wait->task);
1066 struct syncobj_wait_entry *wait)
1074 if (!fence || dma_fence_chain_find_seqno(&fence, wait->point)) {
1078 wait->fence = dma_fence_get_stub();
1080 wait->fence = fence;
1083 wake_up_process(wait->task);
1084 list_del_init(&wait->node);
1170 * fallthough and try a 0 timeout wait!
1275 struct drm_syncobj_wait *wait,
1283 timeout = drm_timeout_abs_to_jiffies(wait->timeout_nsec);
1286 wait->count_handles,
1287 wait->flags,
1291 wait->first_signaled = first;