• Home
  • Raw
  • Download

Lines Matching refs:lock_rc

293 				int lock_rc)  in server_state_unlock()  argument
300 if (lock_rc == 0) in server_state_unlock()
318 int lock_rc; in server_state_rdlock() local
323 lock_rc = pthread_rwlock_rdlock(&client_int->server_state_rwlock); in server_state_rdlock()
324 if (lock_rc != 0) in server_state_rdlock()
325 return lock_rc; in server_state_rdlock()
623 int lock_rc; in disconnect_transition_action() local
634 lock_rc = server_state_wrlock(client); in disconnect_transition_action()
640 server_state_unlock(client, lock_rc); in disconnect_transition_action()
1654 int lock_rc; in client_attach_shm() local
1657 lock_rc = server_state_wrlock(client); in client_attach_shm()
1686 server_state_unlock(client, lock_rc); in client_attach_shm()
2558 int lock_rc; in cras_client_get_system_volume() local
2560 lock_rc = server_state_rdlock(client); in cras_client_get_system_volume()
2561 if (lock_rc) in cras_client_get_system_volume()
2565 server_state_unlock(client, lock_rc); in cras_client_get_system_volume()
2572 int lock_rc; in cras_client_get_system_capture_gain() local
2574 lock_rc = server_state_rdlock(client); in cras_client_get_system_capture_gain()
2575 if (lock_rc) in cras_client_get_system_capture_gain()
2579 server_state_unlock(client, lock_rc); in cras_client_get_system_capture_gain()
2586 int lock_rc; in cras_client_get_system_muted() local
2588 lock_rc = server_state_rdlock(client); in cras_client_get_system_muted()
2589 if (lock_rc) in cras_client_get_system_muted()
2593 server_state_unlock(client, lock_rc); in cras_client_get_system_muted()
2600 int lock_rc; in cras_client_get_user_muted() local
2602 lock_rc = server_state_rdlock(client); in cras_client_get_user_muted()
2603 if (lock_rc) in cras_client_get_user_muted()
2607 server_state_unlock(client, lock_rc); in cras_client_get_user_muted()
2614 int lock_rc; in cras_client_get_system_capture_muted() local
2616 lock_rc = server_state_rdlock(client); in cras_client_get_system_capture_muted()
2617 if (lock_rc) in cras_client_get_system_capture_muted()
2621 server_state_unlock(client, lock_rc); in cras_client_get_system_capture_muted()
2628 int lock_rc; in cras_client_get_system_min_volume() local
2630 lock_rc = server_state_rdlock(client); in cras_client_get_system_min_volume()
2631 if (lock_rc) in cras_client_get_system_min_volume()
2635 server_state_unlock(client, lock_rc); in cras_client_get_system_min_volume()
2642 int lock_rc; in cras_client_get_system_max_volume() local
2644 lock_rc = server_state_rdlock(client); in cras_client_get_system_max_volume()
2645 if (lock_rc) in cras_client_get_system_max_volume()
2649 server_state_unlock(client, lock_rc); in cras_client_get_system_max_volume()
2656 int lock_rc; in cras_client_get_system_min_capture_gain() local
2658 lock_rc = server_state_rdlock(client); in cras_client_get_system_min_capture_gain()
2659 if (lock_rc) in cras_client_get_system_min_capture_gain()
2663 server_state_unlock(client, lock_rc); in cras_client_get_system_min_capture_gain()
2670 int lock_rc; in cras_client_get_system_max_capture_gain() local
2672 lock_rc = server_state_rdlock(client); in cras_client_get_system_max_capture_gain()
2673 if (lock_rc) in cras_client_get_system_max_capture_gain()
2677 server_state_unlock(client, lock_rc); in cras_client_get_system_max_capture_gain()
2685 int lock_rc; in cras_client_get_audio_debug_info() local
2687 lock_rc = server_state_rdlock(client); in cras_client_get_audio_debug_info()
2688 if (lock_rc) in cras_client_get_audio_debug_info()
2692 server_state_unlock(client, lock_rc); in cras_client_get_audio_debug_info()
2701 int lock_rc; in cras_client_get_audio_thread_snapshot_buffer() local
2703 lock_rc = server_state_rdlock(client); in cras_client_get_audio_thread_snapshot_buffer()
2704 if (lock_rc) in cras_client_get_audio_thread_snapshot_buffer()
2708 server_state_unlock(client, lock_rc); in cras_client_get_audio_thread_snapshot_buffer()
2716 int lock_rc; in cras_client_get_num_active_streams() local
2718 lock_rc = server_state_rdlock(client); in cras_client_get_num_active_streams()
2719 if (lock_rc) in cras_client_get_num_active_streams()
2737 server_state_unlock(client, lock_rc); in cras_client_get_num_active_streams()
2813 int lock_rc; in cras_client_get_output_devices() local
2815 lock_rc = server_state_rdlock(client); in cras_client_get_output_devices()
2816 if (lock_rc) in cras_client_get_output_devices()
2828 server_state_unlock(client, lock_rc); in cras_client_get_output_devices()
2843 int lock_rc; in cras_client_get_input_devices() local
2845 lock_rc = server_state_rdlock(client); in cras_client_get_input_devices()
2858 server_state_unlock(client, lock_rc); in cras_client_get_input_devices()
2872 int lock_rc; in cras_client_get_attached_clients() local
2874 lock_rc = server_state_rdlock(client); in cras_client_get_attached_clients()
2875 if (lock_rc) in cras_client_get_attached_clients()
2885 server_state_unlock(client, lock_rc); in cras_client_get_attached_clients()
3266 int lock_rc; in cras_client_get_first_node_type_idx() local
3268 lock_rc = server_state_rdlock(client); in cras_client_get_first_node_type_idx()
3269 if (lock_rc) in cras_client_get_first_node_type_idx()
3286 server_state_unlock(client, lock_rc); in cras_client_get_first_node_type_idx()
3292 server_state_unlock(client, lock_rc); in cras_client_get_first_node_type_idx()
3371 int lock_rc; in cras_client_get_aec_supported() local
3373 lock_rc = server_state_rdlock(client); in cras_client_get_aec_supported()
3374 if (lock_rc) in cras_client_get_aec_supported()
3378 server_state_unlock(client, lock_rc); in cras_client_get_aec_supported()