Lines Matching refs:mutex
104 struct mutex mutex; member
428 mutex_lock(&data->mutex); in bmg160_get_temp()
431 mutex_unlock(&data->mutex); in bmg160_get_temp()
439 mutex_unlock(&data->mutex); in bmg160_get_temp()
445 mutex_unlock(&data->mutex); in bmg160_get_temp()
457 mutex_lock(&data->mutex); in bmg160_get_axis()
460 mutex_unlock(&data->mutex); in bmg160_get_axis()
469 mutex_unlock(&data->mutex); in bmg160_get_axis()
475 mutex_unlock(&data->mutex); in bmg160_get_axis()
533 mutex_lock(&data->mutex); in bmg160_read_raw()
535 mutex_unlock(&data->mutex); in bmg160_read_raw()
551 mutex_lock(&data->mutex); in bmg160_write_raw()
561 mutex_unlock(&data->mutex); in bmg160_write_raw()
567 mutex_unlock(&data->mutex); in bmg160_write_raw()
571 mutex_unlock(&data->mutex); in bmg160_write_raw()
577 mutex_lock(&data->mutex); in bmg160_write_raw()
581 mutex_unlock(&data->mutex); in bmg160_write_raw()
587 mutex_unlock(&data->mutex); in bmg160_write_raw()
591 mutex_unlock(&data->mutex); in bmg160_write_raw()
667 mutex_lock(&data->mutex); in bmg160_write_event_config()
671 mutex_unlock(&data->mutex); in bmg160_write_event_config()
685 mutex_unlock(&data->mutex); in bmg160_write_event_config()
692 mutex_unlock(&data->mutex); in bmg160_write_event_config()
697 mutex_unlock(&data->mutex); in bmg160_write_event_config()
775 mutex_lock(&data->mutex); in bmg160_trigger_handler()
781 mutex_unlock(&data->mutex); in bmg160_trigger_handler()
786 mutex_unlock(&data->mutex); in bmg160_trigger_handler()
825 mutex_lock(&data->mutex); in bmg160_data_rdy_trigger_set_state()
829 mutex_unlock(&data->mutex); in bmg160_data_rdy_trigger_set_state()
839 mutex_unlock(&data->mutex); in bmg160_data_rdy_trigger_set_state()
848 mutex_unlock(&data->mutex); in bmg160_data_rdy_trigger_set_state()
856 mutex_unlock(&data->mutex); in bmg160_data_rdy_trigger_set_state()
1014 mutex_init(&data->mutex); in bmg160_core_probe()
1129 mutex_lock(&data->mutex); in bmg160_core_remove()
1131 mutex_unlock(&data->mutex); in bmg160_core_remove()
1141 mutex_lock(&data->mutex); in bmg160_suspend()
1143 mutex_unlock(&data->mutex); in bmg160_suspend()
1153 mutex_lock(&data->mutex); in bmg160_resume()
1157 mutex_unlock(&data->mutex); in bmg160_resume()