Lines Matching defs: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.
218 struct syncobj_wait_entry *wait);
261 struct syncobj_wait_entry *wait)
265 if (wait->fence)
274 if (!fence || dma_fence_chain_find_seqno(&fence, wait->point)) {
276 list_add_tail(&wait->node, &syncobj->cb_list);
278 wait->fence = dma_fence_get_stub();
280 wait->fence = fence;
286 struct syncobj_wait_entry *wait)
288 if (!wait->node.next)
292 list_del_init(&wait->node);
413 /* 5s default for wait submission */
435 struct syncobj_wait_entry wait;
474 memset(&wait, 0, sizeof(wait));
475 wait.task = current;
476 wait.point = point;
477 drm_syncobj_fence_add_wait(syncobj, &wait);
481 if (wait.fence) {
499 *fence = wait.fence;
501 if (wait.node.next)
502 drm_syncobj_remove_wait(syncobj, &wait);
997 struct syncobj_wait_entry *wait =
1000 wake_up_process(wait->task);
1004 struct syncobj_wait_entry *wait)
1012 if (!fence || dma_fence_chain_find_seqno(&fence, wait->point)) {
1016 wait->fence = dma_fence_get_stub();
1018 wait->fence = fence;
1021 wake_up_process(wait->task);
1022 list_del_init(&wait->node);
1104 * fallthough and try a 0 timeout wait!
1209 struct drm_syncobj_wait *wait,
1217 timeout = drm_timeout_abs_to_jiffies(wait->timeout_nsec);
1220 wait->count_handles,
1221 wait->flags,
1225 wait->first_signaled = first;