Lines Matching refs:event_waiters
785 struct kfd_event_waiter *event_waiters; in alloc_event_waiters() local
788 event_waiters = kcalloc(num_events, sizeof(struct kfd_event_waiter), in alloc_event_waiters()
790 if (!event_waiters) in alloc_event_waiters()
794 init_wait(&event_waiters[i].wait); in alloc_event_waiters()
796 return event_waiters; in alloc_event_waiters()
839 struct kfd_event_waiter *event_waiters) in test_event_condition() argument
845 if (!READ_ONCE(event_waiters[i].event)) in test_event_condition()
848 if (READ_ONCE(event_waiters[i].activated)) { in test_event_condition()
865 struct kfd_event_waiter *event_waiters, in copy_signaled_event_data() argument
875 waiter = &event_waiters[i]; in copy_signaled_event_data()
949 struct kfd_event_waiter *event_waiters = NULL; in kfd_wait_on_events() local
952 event_waiters = alloc_event_waiters(num_events); in kfd_wait_on_events()
953 if (!event_waiters) { in kfd_wait_on_events()
972 ret = init_event_waiter(p, &event_waiters[i], &event_data); in kfd_wait_on_events()
978 *wait_result = test_event_condition(all, num_events, event_waiters); in kfd_wait_on_events()
981 event_waiters, events); in kfd_wait_on_events()
1019 event_waiters); in kfd_wait_on_events()
1041 event_waiters, events); in kfd_wait_on_events()
1044 free_waiters(num_events, event_waiters, ret == -ERESTARTSYS); in kfd_wait_on_events()