Lines Matching refs:lock
84 struct k_sem lock; member
174 k_sem_take(&data->lock, K_FOREVER); in maxim_ds3231_ctrl_update()
178 k_sem_give(&data->lock); in maxim_ds3231_ctrl_update()
231 k_sem_take(&data->lock, K_FOREVER); in maxim_ds3231_stat_update()
235 k_sem_give(&data->lock); in maxim_ds3231_stat_update()
486 k_sem_take(&data->lock, K_FOREVER); in maxim_ds3231_get_alarm()
504 k_sem_give(&data->lock); in maxim_ds3231_get_alarm()
533 k_sem_take(&data->lock, K_FOREVER); in ds3231_counter_cancel_alarm()
537 k_sem_give(&data->lock); in ds3231_counter_cancel_alarm()
603 k_sem_take(&data->lock, K_FOREVER); in maxim_ds3231_set_alarm()
607 k_sem_give(&data->lock); in maxim_ds3231_set_alarm()
618 k_sem_take(&data->lock, K_FOREVER); in maxim_ds3231_check_alarms()
629 k_sem_give(&data->lock); in maxim_ds3231_check_alarms()
670 k_sem_take(&data->lock, K_FOREVER); in alarm_worker()
702 k_sem_give(&data->lock); in alarm_worker()
706 k_sem_take(&data->lock, K_FOREVER); in alarm_worker()
710 k_sem_give(&data->lock); in alarm_worker()
714 k_sem_take(&data->lock, K_FOREVER); in alarm_worker()
720 k_sem_give(&data->lock); in alarm_worker()
766 k_sem_take(&data->lock, K_FOREVER); in ds3231_counter_get_value()
770 k_sem_give(&data->lock); in ds3231_counter_get_value()
797 k_sem_give(&data->lock); in sync_finish()
934 k_sem_take(&data->lock, K_FOREVER); in sync_worker()
958 k_sem_give(&data->lock); in sync_worker()
985 k_sem_take(&data->lock, K_FOREVER); in z_impl_maxim_ds3231_get_syncpoint()
994 k_sem_give(&data->lock); in z_impl_maxim_ds3231_get_syncpoint()
1016 k_sem_take(&data->lock, K_FOREVER); in maxim_ds3231_synchronize()
1028 k_sem_give(&data->lock); in maxim_ds3231_synchronize()
1050 k_sem_take(&data->lock, K_FOREVER); in z_impl_maxim_ds3231_req_syncpoint()
1062 k_sem_give(&data->lock); in z_impl_maxim_ds3231_req_syncpoint()
1090 k_sem_take(&data->lock, K_FOREVER); in maxim_ds3231_set()
1103 k_sem_give(&data->lock); in maxim_ds3231_set()
1120 k_sem_init(&data->lock, 0, 1); in ds3231_init()
1181 k_sem_give(&data->lock); in ds3231_init()
1216 k_sem_take(&data->lock, K_FOREVER); in ds3231_counter_set_alarm()
1246 k_sem_give(&data->lock); in ds3231_counter_set_alarm()