Lines Matching refs:events

45 	uint32_t events;  member
54 event->events = 0; in z_impl_k_event_init()
108 if (are_wait_conditions_met(thread->events, event_data->events, in event_walk_op()
131 static uint32_t k_event_post_internal(struct k_event *event, uint32_t events, in k_event_post_internal() argument
142 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_event, post, event, events, in k_event_post_internal()
145 previous_events = event->events & events_mask; in k_event_post_internal()
146 events = (event->events & ~events_mask) | in k_event_post_internal()
147 (events & events_mask); in k_event_post_internal()
148 event->events = events; in k_event_post_internal()
149 data.events = events; in k_event_post_internal()
167 thread->events = events; in k_event_post_internal()
176 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_event, post, event, events, in k_event_post_internal()
182 uint32_t z_impl_k_event_post(struct k_event *event, uint32_t events) in z_impl_k_event_post() argument
184 return k_event_post_internal(event, events, events); in z_impl_k_event_post()
188 uint32_t z_vrfy_k_event_post(struct k_event *event, uint32_t events) in z_vrfy_k_event_post() argument
191 return z_impl_k_event_post(event, events); in z_vrfy_k_event_post()
196 uint32_t z_impl_k_event_set(struct k_event *event, uint32_t events) in z_impl_k_event_set() argument
198 return k_event_post_internal(event, events, ~0); in z_impl_k_event_set()
202 uint32_t z_vrfy_k_event_set(struct k_event *event, uint32_t events) in z_vrfy_k_event_set() argument
205 return z_impl_k_event_set(event, events); in z_vrfy_k_event_set()
210 uint32_t z_impl_k_event_set_masked(struct k_event *event, uint32_t events, in z_impl_k_event_set_masked() argument
213 return k_event_post_internal(event, events, events_mask); in z_impl_k_event_set_masked()
217 uint32_t z_vrfy_k_event_set_masked(struct k_event *event, uint32_t events, in z_vrfy_k_event_set_masked() argument
221 return z_impl_k_event_set_masked(event, events, events_mask); in z_vrfy_k_event_set_masked()
226 uint32_t z_impl_k_event_clear(struct k_event *event, uint32_t events) in z_impl_k_event_clear() argument
228 return k_event_post_internal(event, 0, events); in z_impl_k_event_clear()
232 uint32_t z_vrfy_k_event_clear(struct k_event *event, uint32_t events) in z_vrfy_k_event_clear() argument
235 return z_impl_k_event_clear(event, events); in z_vrfy_k_event_clear()
240 static uint32_t k_event_wait_internal(struct k_event *event, uint32_t events, in k_event_wait_internal() argument
250 SYS_PORT_TRACING_OBJ_FUNC_ENTER(k_event, wait, event, events, in k_event_wait_internal()
253 if (events == 0) { in k_event_wait_internal()
254 SYS_PORT_TRACING_OBJ_FUNC_EXIT(k_event, wait, event, events, 0); in k_event_wait_internal()
264 event->events = 0; in k_event_wait_internal()
269 if (are_wait_conditions_met(events, event->events, wait_condition)) { in k_event_wait_internal()
270 rv = event->events; in k_event_wait_internal()
288 thread->events = events; in k_event_wait_internal()
291 SYS_PORT_TRACING_OBJ_FUNC_BLOCKING(k_event, wait, event, events, in k_event_wait_internal()
296 rv = thread->events; in k_event_wait_internal()
301 events, rv & events); in k_event_wait_internal()
303 return rv & events; in k_event_wait_internal()
309 uint32_t z_impl_k_event_wait(struct k_event *event, uint32_t events, in z_impl_k_event_wait() argument
314 return k_event_wait_internal(event, events, options, timeout); in z_impl_k_event_wait()
317 uint32_t z_vrfy_k_event_wait(struct k_event *event, uint32_t events, in z_vrfy_k_event_wait() argument
321 return z_impl_k_event_wait(event, events, reset, timeout); in z_vrfy_k_event_wait()
329 uint32_t z_impl_k_event_wait_all(struct k_event *event, uint32_t events, in z_impl_k_event_wait_all() argument
335 return k_event_wait_internal(event, events, options, timeout); in z_impl_k_event_wait_all()
339 uint32_t z_vrfy_k_event_wait_all(struct k_event *event, uint32_t events, in z_vrfy_k_event_wait_all() argument
343 return z_impl_k_event_wait_all(event, events, reset, timeout); in z_vrfy_k_event_wait_all()