Lines Matching refs:wait

150 				      struct syncobj_wait_entry *wait);
179 struct syncobj_wait_entry *wait) in drm_syncobj_fence_add_wait() argument
183 if (wait->fence) in drm_syncobj_fence_add_wait()
192 if (!fence || dma_fence_chain_find_seqno(&fence, wait->point)) { in drm_syncobj_fence_add_wait()
194 list_add_tail(&wait->node, &syncobj->cb_list); in drm_syncobj_fence_add_wait()
196 wait->fence = dma_fence_get_stub(); in drm_syncobj_fence_add_wait()
198 wait->fence = fence; in drm_syncobj_fence_add_wait()
204 struct syncobj_wait_entry *wait) in drm_syncobj_remove_wait() argument
206 if (!wait->node.next) in drm_syncobj_remove_wait()
210 list_del_init(&wait->node); in drm_syncobj_remove_wait()
321 struct syncobj_wait_entry wait; in drm_syncobj_find_fence() local
343 memset(&wait, 0, sizeof(wait)); in drm_syncobj_find_fence()
344 wait.task = current; in drm_syncobj_find_fence()
345 wait.point = point; in drm_syncobj_find_fence()
346 drm_syncobj_fence_add_wait(syncobj, &wait); in drm_syncobj_find_fence()
350 if (wait.fence) { in drm_syncobj_find_fence()
368 *fence = wait.fence; in drm_syncobj_find_fence()
370 if (wait.node.next) in drm_syncobj_find_fence()
371 drm_syncobj_remove_wait(syncobj, &wait); in drm_syncobj_find_fence()
841 struct syncobj_wait_entry *wait = in syncobj_wait_fence_func() local
844 wake_up_process(wait->task); in syncobj_wait_fence_func()
848 struct syncobj_wait_entry *wait) in syncobj_wait_syncobj_func() argument
856 if (!fence || dma_fence_chain_find_seqno(&fence, wait->point)) { in syncobj_wait_syncobj_func()
860 wait->fence = dma_fence_get_stub(); in syncobj_wait_syncobj_func()
862 wait->fence = fence; in syncobj_wait_syncobj_func()
865 wake_up_process(wait->task); in syncobj_wait_syncobj_func()
866 list_del_init(&wait->node); in syncobj_wait_syncobj_func()
1047 struct drm_syncobj_wait *wait, in drm_syncobj_array_wait() argument
1055 timeout = drm_timeout_abs_to_jiffies(wait->timeout_nsec); in drm_syncobj_array_wait()
1058 wait->count_handles, in drm_syncobj_array_wait()
1059 wait->flags, in drm_syncobj_array_wait()
1063 wait->first_signaled = first; in drm_syncobj_array_wait()