Lines Matching refs:lock
135 struct k_mutex lock; member
353 k_mutex_init(&data->lock); in rtc_stm32_init()
393 k_mutex_lock(&data->lock, K_FOREVER); in rtc_stm32_init()
396 k_mutex_unlock(&data->lock); in rtc_stm32_init()
420 err = k_mutex_lock(&data->lock, K_NO_WAIT); in rtc_stm32_set_time()
461 k_mutex_unlock(&data->lock); in rtc_stm32_set_time()
491 int err = k_mutex_lock(&data->lock, K_NO_WAIT); in rtc_stm32_get_time()
502 k_mutex_unlock(&data->lock); in rtc_stm32_get_time()
522 k_mutex_unlock(&data->lock); in rtc_stm32_get_time()
724 k_mutex_lock(&data->lock, K_FOREVER); in rtc_stm32_alarm_get_time()
752 k_mutex_unlock(&data->lock); in rtc_stm32_alarm_get_time()
766 k_mutex_lock(&data->lock, K_FOREVER); in rtc_stm32_alarm_set_time()
885 k_mutex_unlock(&data->lock); in rtc_stm32_alarm_set_time()
913 k_mutex_lock(&data->lock, K_FOREVER); in rtc_stm32_alarm_set_callback()
930 k_mutex_unlock(&data->lock); in rtc_stm32_alarm_set_callback()
941 k_mutex_lock(&data->lock, K_FOREVER); in rtc_stm32_alarm_is_pending()
959 k_mutex_unlock(&data->lock); in rtc_stm32_alarm_is_pending()