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
212 struct syncobj_wait_entry *wait);
241 struct syncobj_wait_entry *wait)
245 if (wait->fence)
254 if (!fence || dma_fence_chain_find_seqno(&fence, wait->point)) {
256 list_add_tail(&wait->node, &syncobj->cb_list);
258 wait->fence = dma_fence_get_stub();
260 wait->fence = fence;
266 struct syncobj_wait_entry *wait)
268 if (!wait->node.next)
272 list_del_init(&wait->node);
361 /* 5s default for wait submission */
383 struct syncobj_wait_entry wait;
413 memset(&wait, 0, sizeof(wait));
414 wait.task = current;
415 wait.point = point;
416 drm_syncobj_fence_add_wait(syncobj, &wait);
420 if (wait.fence) {
438 *fence = wait.fence;
440 if (wait.node.next)
441 drm_syncobj_remove_wait(syncobj, &wait);
914 struct syncobj_wait_entry *wait =
917 wake_up_process(wait->task);
921 struct syncobj_wait_entry *wait)
929 if (!fence || dma_fence_chain_find_seqno(&fence, wait->point)) {
933 wait->fence = dma_fence_get_stub();
935 wait->fence = fence;
938 wake_up_process(wait->task);
939 list_del_init(&wait->node);
1017 * fallthough and try a 0 timeout wait!
1121 struct drm_syncobj_wait *wait,
1129 timeout = drm_timeout_abs_to_jiffies(wait->timeout_nsec);
1132 wait->count_handles,
1133 wait->flags,
1137 wait->first_signaled = first;