Lines Matching refs:lock
57 struct k_sem lock; member
351 k_sem_take(&data->lock, K_FOREVER); in mcp7940n_handle_interrupt()
370 k_sem_give(&data->lock); in mcp7940n_handle_interrupt()
409 k_sem_take(&data->lock, K_FOREVER); in mcp7940n_rtc_set_time()
427 k_sem_give(&data->lock); in mcp7940n_rtc_set_time()
437 k_sem_take(&data->lock, K_FOREVER); in mcp7940n_counter_start()
444 k_sem_give(&data->lock); in mcp7940n_counter_start()
454 k_sem_take(&data->lock, K_FOREVER); in mcp7940n_counter_stop()
461 k_sem_give(&data->lock); in mcp7940n_counter_stop()
473 k_sem_take(&data->lock, K_FOREVER); in mcp7940n_counter_get_value()
483 k_sem_give(&data->lock); in mcp7940n_counter_get_value()
500 k_sem_take(&data->lock, K_FOREVER); in mcp7940n_counter_set_alarm()
557 k_sem_give(&data->lock); in mcp7940n_counter_set_alarm()
567 k_sem_take(&data->lock, K_FOREVER); in mcp7940n_counter_cancel_alarm()
583 k_sem_give(&data->lock); in mcp7940n_counter_cancel_alarm()
608 k_sem_take(&data->lock, K_FOREVER); in mcp7940n_counter_get_pending_int()
647 k_sem_give(&data->lock); in mcp7940n_counter_get_pending_int()
668 k_sem_init(&data->lock, 0, 1); in mcp7940n_init()
731 k_sem_give(&data->lock); in mcp7940n_init()