Lines Matching refs:lock
33 static struct k_spinlock lock; variable
59 k_spinlock_key_t key = k_spin_lock(&lock); in counter_ambiq_init()
90 k_spin_unlock(&lock, key); in counter_ambiq_init()
98 k_spinlock_key_t key = k_spin_lock(&lock); in counter_ambiq_start()
106 k_spin_unlock(&lock, key); in counter_ambiq_start()
115 k_spinlock_key_t key = k_spin_lock(&lock); in counter_ambiq_stop()
123 k_spin_unlock(&lock, key); in counter_ambiq_stop()
132 k_spinlock_key_t key = k_spin_lock(&lock); in counter_ambiq_get_value()
141 k_spin_unlock(&lock, key); in counter_ambiq_get_value()
156 k_spinlock_key_t key = k_spin_lock(&lock); in counter_ambiq_set_alarm()
183 k_spin_unlock(&lock, key); in counter_ambiq_set_alarm()
192 k_spinlock_key_t key = k_spin_lock(&lock); in counter_ambiq_cancel_alarm()
204 k_spin_unlock(&lock, key); in counter_ambiq_cancel_alarm()