Lines Matching refs:lock
51 msgq->lock = (struct k_spinlock) {}; in k_msgq_init()
132 key = k_spin_lock(&msgq->lock); in z_impl_k_msgq_put()
148 z_reschedule(&msgq->lock, key); in z_impl_k_msgq_put()
174 result = z_pend_curr(&msgq->lock, key, &msgq->wait_q, timeout); in z_impl_k_msgq_put()
181 z_reschedule(&msgq->lock, key); in z_impl_k_msgq_put()
224 key = k_spin_lock(&msgq->lock); in z_impl_k_msgq_get()
256 z_reschedule(&msgq->lock, key); in z_impl_k_msgq_get()
272 result = z_pend_curr(&msgq->lock, key, &msgq->wait_q, timeout); in z_impl_k_msgq_get()
279 k_spin_unlock(&msgq->lock, key); in z_impl_k_msgq_get()
301 key = k_spin_lock(&msgq->lock); in z_impl_k_msgq_peek()
314 k_spin_unlock(&msgq->lock, key); in z_impl_k_msgq_peek()
338 key = k_spin_lock(&msgq->lock); in z_impl_k_msgq_peek_at()
360 k_spin_unlock(&msgq->lock, key); in z_impl_k_msgq_peek_at()
381 key = k_spin_lock(&msgq->lock); in z_impl_k_msgq_purge()
395 z_reschedule(&msgq->lock, key); in z_impl_k_msgq_purge()