Lines Matching refs:event_waiters
784 struct kfd_event_waiter *event_waiters; in alloc_event_waiters() local
787 event_waiters = kcalloc(num_events, sizeof(struct kfd_event_waiter), in alloc_event_waiters()
789 if (!event_waiters) in alloc_event_waiters()
793 init_wait(&event_waiters[i].wait); in alloc_event_waiters()
795 return event_waiters; in alloc_event_waiters()
838 struct kfd_event_waiter *event_waiters) in test_event_condition() argument
844 if (!READ_ONCE(event_waiters[i].event)) in test_event_condition()
847 if (READ_ONCE(event_waiters[i].activated)) { in test_event_condition()
864 struct kfd_event_waiter *event_waiters, in copy_signaled_event_data() argument
874 waiter = &event_waiters[i]; in copy_signaled_event_data()
944 struct kfd_event_waiter *event_waiters = NULL; in kfd_wait_on_events() local
947 event_waiters = alloc_event_waiters(num_events); in kfd_wait_on_events()
948 if (!event_waiters) { in kfd_wait_on_events()
967 ret = init_event_waiter(p, &event_waiters[i], &event_data); in kfd_wait_on_events()
973 *wait_result = test_event_condition(all, num_events, event_waiters); in kfd_wait_on_events()
976 event_waiters, events); in kfd_wait_on_events()
1014 event_waiters); in kfd_wait_on_events()
1036 event_waiters, events); in kfd_wait_on_events()
1039 free_waiters(num_events, event_waiters, ret == -ERESTARTSYS); in kfd_wait_on_events()