Lines Matching refs:lock
91 mbox->lock = (struct k_spinlock) {}; in k_mbox_init()
226 key = k_spin_lock(&mbox->lock); in mbox_message_put()
251 z_reschedule(&mbox->lock, key); in mbox_message_put()
261 int ret = z_pend_curr(&mbox->lock, key, NULL, K_FOREVER); in mbox_message_put()
273 k_spin_unlock(&mbox->lock, key); in mbox_message_put()
281 k_spin_unlock(&mbox->lock, key); in mbox_message_put()
288 int ret = z_pend_curr(&mbox->lock, key, &mbox->tx_msg_queue, timeout); in mbox_message_put()
394 key = k_spin_lock(&mbox->lock); in k_mbox_get()
405 k_spin_unlock(&mbox->lock, key); in k_mbox_get()
421 k_spin_unlock(&mbox->lock, key); in k_mbox_get()
429 result = z_pend_curr(&mbox->lock, key, &mbox->rx_msg_queue, timeout); in k_mbox_get()