Lines Matching refs:lock
52 struct k_spinlock lock; member
104 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_sam_set_time()
127 k_spin_unlock(&data->lock, key); in rtc_sam_set_time()
136 k_spin_unlock(&data->lock, key); in rtc_sam_set_time()
369 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_sam_alarm_set_time()
384 k_spin_unlock(&data->lock, key); in rtc_sam_alarm_set_time()
402 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_sam_alarm_get_time()
407 k_spin_unlock(&data->lock, key); in rtc_sam_alarm_get_time()
426 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_sam_alarm_is_pending()
429 k_spin_unlock(&data->lock, key); in rtc_sam_alarm_is_pending()
435 k_spin_unlock(&data->lock, key); in rtc_sam_alarm_is_pending()
450 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_sam_alarm_set_callback()
463 k_spin_unlock(&data->lock, key); in rtc_sam_alarm_set_callback()
476 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_sam_update_set_callback()
491 k_spin_unlock(&data->lock, key); in rtc_sam_update_set_callback()
556 k_spinlock_key_t key = k_spin_lock(&data->lock); in rtc_sam_set_calibration()
581 k_spin_unlock(&data->lock, key); in rtc_sam_set_calibration()