Lines Matching refs:event
62 QDF_STATUS qdf_event_create(qdf_event_t *event) in qdf_event_create() argument
64 QDF_BUG(event); in qdf_event_create()
65 if (!event) in qdf_event_create()
69 QDF_BUG(event->cookie != LINUX_EVENT_COOKIE); in qdf_event_create()
70 if (event->cookie == LINUX_EVENT_COOKIE) in qdf_event_create()
74 init_completion(&event->complete); in qdf_event_create()
75 event->cookie = LINUX_EVENT_COOKIE; in qdf_event_create()
81 QDF_STATUS qdf_event_set(qdf_event_t *event) in qdf_event_set() argument
83 QDF_BUG(event); in qdf_event_set()
84 if (!event) in qdf_event_set()
88 QDF_BUG(event->cookie == LINUX_EVENT_COOKIE); in qdf_event_set()
89 if (event->cookie != LINUX_EVENT_COOKIE) in qdf_event_set()
92 event->done = true; in qdf_event_set()
93 complete(&event->complete); in qdf_event_set()
100 QDF_STATUS qdf_event_set_all(qdf_event_t *event) in qdf_event_set_all() argument
102 QDF_BUG(event); in qdf_event_set_all()
103 if (!event) in qdf_event_set_all()
107 QDF_BUG(event->cookie == LINUX_EVENT_COOKIE); in qdf_event_set_all()
108 if (event->cookie != LINUX_EVENT_COOKIE) in qdf_event_set_all()
111 event->done = true; in qdf_event_set_all()
112 complete_all(&event->complete); in qdf_event_set_all()
134 QDF_STATUS qdf_event_reset(qdf_event_t *event) in qdf_event_reset() argument
136 QDF_BUG(event); in qdf_event_reset()
137 if (!event) in qdf_event_reset()
141 QDF_BUG(event->cookie == LINUX_EVENT_COOKIE); in qdf_event_reset()
142 if (event->cookie != LINUX_EVENT_COOKIE) in qdf_event_reset()
146 event->done = false; in qdf_event_reset()
147 event->force_set = false; in qdf_event_reset()
148 INIT_COMPLETION(event->complete); in qdf_event_reset()
174 QDF_STATUS qdf_event_destroy(qdf_event_t *event) in qdf_event_destroy() argument
176 QDF_BUG(event); in qdf_event_destroy()
177 if (!event) in qdf_event_destroy()
181 QDF_BUG(event->cookie == LINUX_EVENT_COOKIE); in qdf_event_destroy()
182 if (event->cookie != LINUX_EVENT_COOKIE) in qdf_event_destroy()
186 complete_all(&event->complete); in qdf_event_destroy()
189 memset(event, 0, sizeof(qdf_event_t)); in qdf_event_destroy()
207 QDF_STATUS qdf_wait_single_event(qdf_event_t *event, uint32_t timeout) in qdf_wait_single_event() argument
213 QDF_BUG(event); in qdf_wait_single_event()
214 if (!event) in qdf_wait_single_event()
218 QDF_BUG(event->cookie == LINUX_EVENT_COOKIE); in qdf_wait_single_event()
219 if (event->cookie != LINUX_EVENT_COOKIE) in qdf_wait_single_event()
226 &event->complete, in qdf_wait_single_event()
232 wait_for_completion(&event->complete); in qdf_wait_single_event()
294 QDF_STATUS qdf_wait_for_event_completion(qdf_event_t *event, uint32_t timeout) in qdf_wait_for_event_completion() argument
303 QDF_BUG(event); in qdf_wait_for_event_completion()
304 if (!event) in qdf_wait_for_event_completion()
308 QDF_BUG(event->cookie == LINUX_EVENT_COOKIE); in qdf_wait_for_event_completion()
309 if (event->cookie != LINUX_EVENT_COOKIE) in qdf_wait_for_event_completion()
316 event_node->pevent = event; in qdf_wait_for_event_completion()
331 ret = wait_for_completion_timeout(&event->complete, in qdf_wait_for_event_completion()
339 wait_for_completion(&event->complete); in qdf_wait_for_event_completion()
343 if (event->force_set) in qdf_wait_for_event_completion()