Lines Matching refs:lock
71 k_spinlock_key_t key = k_spin_lock(&heap->lock); in k_heap_aligned_alloc()
98 (void) z_pend_curr(&heap->lock, key, &heap->wait_q, timeout); in k_heap_aligned_alloc()
99 key = k_spin_lock(&heap->lock); in k_heap_aligned_alloc()
104 k_spin_unlock(&heap->lock, key); in k_heap_aligned_alloc()
143 k_spinlock_key_t key = k_spin_lock(&heap->lock); in k_heap_realloc()
158 (void) z_pend_curr(&heap->lock, key, &heap->wait_q, timeout); in k_heap_realloc()
159 key = k_spin_lock(&heap->lock); in k_heap_realloc()
164 k_spin_unlock(&heap->lock, key); in k_heap_realloc()
170 k_spinlock_key_t key = k_spin_lock(&heap->lock); in k_heap_free()
176 z_reschedule(&heap->lock, key); in k_heap_free()
178 k_spin_unlock(&heap->lock, key); in k_heap_free()