Lines Matching refs:lock
102 struct k_mutex lock; member
124 k_mutex_lock(&data->lock, K_FOREVER); in am1805_set_time()
155 k_mutex_unlock(&data->lock); in am1805_set_time()
170 k_mutex_lock(&data->lock, K_FOREVER); in am1805_get_time()
202 k_mutex_unlock(&data->lock); in am1805_get_time()
255 k_mutex_lock(&data->lock, K_FOREVER); in am1805_set_calibration()
271 k_mutex_unlock(&data->lock); in am1805_set_calibration()
286 k_mutex_lock(&data->lock, K_FOREVER); in am1805_get_calibration()
311 k_mutex_unlock(&data->lock); in am1805_get_calibration()
334 k_mutex_lock(&data->lock, K_FOREVER); in am1805_alarm_get_time()
355 k_mutex_unlock(&data->lock); in am1805_alarm_get_time()
379 k_mutex_lock(&data->lock, K_FOREVER); in am1805_alarm_set_time()
437 k_mutex_unlock(&data->lock); in am1805_alarm_set_time()
472 k_mutex_lock(&data->lock, K_FOREVER); in am1805_alarm_set_callback()
478 k_mutex_unlock(&data->lock); in am1805_alarm_set_callback()
518 k_mutex_init(&data->lock); in am1805_init()