Lines Matching refs:async
40 static inline void mbox_async_alloc(struct k_mbox_async **async) in mbox_async_alloc() argument
42 (void)k_stack_pop(&async_msg_free, (stack_data_t *)async, K_FOREVER); in mbox_async_alloc()
46 static inline void mbox_async_free(struct k_mbox_async *async) in mbox_async_free() argument
48 k_stack_push(&async_msg_free, (stack_data_t)async); in mbox_async_free()
314 struct k_mbox_async *async; in k_mbox_async_put() local
322 mbox_async_alloc(&async); in k_mbox_async_put()
324 async->thread.prio = arch_current_thread()->base.prio; in k_mbox_async_put()
326 async->tx_msg = *tx_msg; in k_mbox_async_put()
327 async->tx_msg._syncing_thread = (struct k_thread *)&async->thread; in k_mbox_async_put()
328 async->tx_msg._async_sem = sem; in k_mbox_async_put()
330 (void)mbox_message_put(mbox, &async->tx_msg, K_FOREVER); in k_mbox_async_put()