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
135 * handles as well as an array of u64 points and does a host-side wait on all
138 * &DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT also adds the ability to wait for a given
141 * requirement is inherited from the wait-before-signal behavior required by
144 * Alternatively, &DRM_IOCTL_SYNCOBJ_EVENTFD can be used to wait without
146 * integrate the wait in an event loop.
224 struct syncobj_wait_entry *wait);
267 struct syncobj_wait_entry *wait)
271 if (wait->fence)
280 if (!fence || dma_fence_chain_find_seqno(&fence, wait->point)) {
282 list_add_tail(&wait->node, &syncobj->cb_list);
284 wait->fence = dma_fence_get_stub();
286 wait->fence = fence;
292 struct syncobj_wait_entry *wait)
294 if (!wait->node.next)
298 list_del_init(&wait->node);
419 /* 5s default for wait submission */
441 struct syncobj_wait_entry wait;
485 memset(&wait, 0, sizeof(wait));
486 wait.task = current;
487 wait.point = point;
488 drm_syncobj_fence_add_wait(syncobj, &wait);
492 if (wait.fence) {
510 *fence = wait.fence;
512 if (wait.node.next)
513 drm_syncobj_remove_wait(syncobj, &wait);
1007 struct syncobj_wait_entry *wait =
1010 wake_up_process(wait->task);
1014 struct syncobj_wait_entry *wait)
1022 if (!fence || dma_fence_chain_find_seqno(&fence, wait->point)) {
1026 wait->fence = dma_fence_get_stub();
1028 wait->fence = fence;
1031 wake_up_process(wait->task);
1032 list_del_init(&wait->node);
1117 * fallthough and try a 0 timeout wait!
1231 struct drm_syncobj_wait *wait,
1240 timeout = drm_timeout_abs_to_jiffies(wait->timeout_nsec);
1243 wait->count_handles,
1244 wait->flags,
1249 wait->first_signaled = first;