Lines Matching refs:lock
34 key = k_spin_lock(&slab->lock); in k_mem_slab_stats_raw()
36 k_spin_unlock(&slab->lock, key); in k_mem_slab_stats_raw()
50 key = k_spin_lock(&slab->lock); in k_mem_slab_stats_query()
59 k_spin_unlock(&slab->lock, key); in k_mem_slab_stats_query()
72 key = k_spin_lock(&slab->lock); in k_mem_slab_stats_reset()
78 k_spin_unlock(&slab->lock, key); in k_mem_slab_stats_reset()
180 slab->lock = (struct k_spinlock) {}; in k_mem_slab_init()
223 k_spinlock_key_t key = k_spin_lock(&slab->lock); in k_mem_slab_alloc()
253 result = z_pend_curr(&slab->lock, key, &slab->wait_q, timeout); in k_mem_slab_alloc()
265 k_spin_unlock(&slab->lock, key); in k_mem_slab_alloc()
278 k_spinlock_key_t key = k_spin_lock(&slab->lock); in k_mem_slab_free()
289 z_reschedule(&slab->lock, key); in k_mem_slab_free()
299 k_spin_unlock(&slab->lock, key); in k_mem_slab_free()
308 k_spinlock_key_t key = k_spin_lock(&slab->lock); in k_mem_slab_runtime_stats_get()
320 k_spin_unlock(&slab->lock, key); in k_mem_slab_runtime_stats_get()
332 k_spinlock_key_t key = k_spin_lock(&slab->lock); in k_mem_slab_runtime_stats_reset_max()
336 k_spin_unlock(&slab->lock, key); in k_mem_slab_runtime_stats_reset_max()