Lines Matching refs:notify
178 static inline uint32_t sys_notify_get_method(const struct sys_notify *notify) in sys_notify_get_method() argument
180 uint32_t method = notify->flags >> SYS_NOTIFY_METHOD_POS; in sys_notify_get_method()
204 int sys_notify_validate(struct sys_notify *notify);
222 sys_notify_generic_callback sys_notify_finalize(struct sys_notify *notify,
237 static inline int sys_notify_fetch_result(const struct sys_notify *notify, in sys_notify_fetch_result() argument
240 __ASSERT_NO_MSG(notify != NULL); in sys_notify_fetch_result()
244 if (sys_notify_get_method(notify) == SYS_NOTIFY_METHOD_COMPLETED) { in sys_notify_fetch_result()
246 *result = notify->result; in sys_notify_fetch_result()
264 static inline void sys_notify_init_spinwait(struct sys_notify *notify) in sys_notify_init_spinwait() argument
266 __ASSERT_NO_MSG(notify != NULL); in sys_notify_init_spinwait()
268 *notify = (struct sys_notify){ in sys_notify_init_spinwait()
292 static inline void sys_notify_init_signal(struct sys_notify *notify, in sys_notify_init_signal() argument
295 __ASSERT_NO_MSG(notify != NULL); in sys_notify_init_signal()
298 *notify = (struct sys_notify){ in sys_notify_init_signal()
321 static inline void sys_notify_init_callback(struct sys_notify *notify, in sys_notify_init_callback() argument
324 __ASSERT_NO_MSG(notify != NULL); in sys_notify_init_callback()
327 *notify = (struct sys_notify){ in sys_notify_init_callback()
346 static inline bool sys_notify_uses_callback(const struct sys_notify *notify) in sys_notify_uses_callback() argument
348 __ASSERT_NO_MSG(notify != NULL); in sys_notify_uses_callback()
350 return sys_notify_get_method(notify) == SYS_NOTIFY_METHOD_CALLBACK; in sys_notify_uses_callback()