Lines Matching refs:mutex
49 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_sclk()
52 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_sclk()
65 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_mclk()
68 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_mclk()
85 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_powergating_by_smu()
107 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_powergating_by_smu()
117 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_gfx_power_up_by_imu()
119 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_gfx_power_up_by_imu()
135 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_baco_enter()
140 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_baco_enter()
154 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_baco_exit()
159 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_baco_exit()
171 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_mp1_state()
177 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_mp1_state()
204 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_is_baco_supported()
209 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_is_baco_supported()
223 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_mode2_reset()
227 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_mode2_reset()
241 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_enable_gfx_features()
245 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_enable_gfx_features()
259 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_baco_reset()
270 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_baco_reset()
280 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_is_mode1_reset_supported()
282 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_is_mode1_reset_supported()
294 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_mode1_reset()
296 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_mode1_reset()
313 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_switch_power_profile()
316 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_switch_power_profile()
329 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_xgmi_pstate()
332 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_xgmi_pstate()
346 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_df_cstate()
348 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_df_cstate()
360 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_allow_xgmi_power_down()
362 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_allow_xgmi_power_down()
376 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_enable_mgpu_fan_boost()
378 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_enable_mgpu_fan_boost()
393 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_clockgating_by_smu()
396 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_clockgating_by_smu()
411 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_smu_i2c_bus_access()
414 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_smu_i2c_bus_access()
423 mutex_lock(&adev->pm.mutex); in amdgpu_pm_acpi_event_handler()
436 mutex_unlock(&adev->pm.mutex); in amdgpu_pm_acpi_event_handler()
450 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_read_sensor()
455 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_read_sensor()
467 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_apu_thermal_limit()
469 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_apu_thermal_limit()
481 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_apu_thermal_limit()
483 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_apu_thermal_limit()
509 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_compute_clocks()
511 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_compute_clocks()
519 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_enable_uvd()
526 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_enable_uvd()
543 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_enable_vce()
551 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_enable_vce()
581 mutex_lock(&adev->pm.mutex); in amdgpu_pm_load_smu_firmware()
592 mutex_unlock(&adev->pm.mutex); in amdgpu_pm_load_smu_firmware()
601 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_handle_passthrough_sbr()
604 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_handle_passthrough_sbr()
618 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_send_hbm_bad_pages_num()
620 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_send_hbm_bad_pages_num()
633 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_send_hbm_bad_channel_flag()
635 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_send_hbm_bad_channel_flag()
653 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_dpm_freq_range()
658 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_dpm_freq_range()
677 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_soft_freq_range()
682 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_soft_freq_range()
695 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_write_watermarks_table()
697 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_write_watermarks_table()
712 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_wait_for_event()
714 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_wait_for_event()
727 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_residency_gfxoff()
729 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_residency_gfxoff()
742 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_residency_gfxoff()
744 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_residency_gfxoff()
757 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_entrycount_gfxoff()
759 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_entrycount_gfxoff()
772 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_status_gfxoff()
774 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_status_gfxoff()
797 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_gfx_state_change()
802 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_gfx_state_change()
814 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_ecc_info()
816 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_ecc_info()
830 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_vce_clock_state()
833 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_vce_clock_state()
843 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_current_power_state()
856 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_current_power_state()
862 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_power_state()
864 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_power_state()
883 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_performance_level()
888 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_performance_level()
948 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_force_performance_level()
952 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_force_performance_level()
958 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_force_performance_level()
972 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_pp_num_states()
975 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_pp_num_states()
990 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_dispatch_task()
994 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_dispatch_task()
1007 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_pp_table()
1010 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_pp_table()
1026 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_fine_grain_clk_vol()
1031 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_fine_grain_clk_vol()
1047 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_odn_edit_dpm_table()
1052 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_odn_edit_dpm_table()
1067 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_print_clock_levels()
1071 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_print_clock_levels()
1087 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_emit_clock_levels()
1092 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_emit_clock_levels()
1106 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_ppfeature_status()
1109 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_ppfeature_status()
1122 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_ppfeature_status()
1125 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_ppfeature_status()
1140 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_force_clock_level()
1144 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_force_clock_level()
1157 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_sclk_od()
1159 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_sclk_od()
1171 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_sclk_od()
1174 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_sclk_od()
1194 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_mclk_od()
1196 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_mclk_od()
1208 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_mclk_od()
1211 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_mclk_od()
1232 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_power_profile_mode()
1235 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_power_profile_mode()
1249 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_power_profile_mode()
1253 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_power_profile_mode()
1266 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_gpu_metrics()
1269 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_gpu_metrics()
1283 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_fan_control_mode()
1286 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_fan_control_mode()
1300 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_fan_speed_pwm()
1303 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_fan_speed_pwm()
1317 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_fan_speed_pwm()
1320 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_fan_speed_pwm()
1334 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_fan_speed_rpm()
1337 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_fan_speed_rpm()
1351 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_fan_speed_rpm()
1354 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_fan_speed_rpm()
1368 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_fan_control_mode()
1371 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_fan_control_mode()
1387 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_power_limit()
1392 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_power_limit()
1406 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_power_limit()
1409 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_power_limit()
1421 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_is_cclk_dpm_supported()
1423 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_is_cclk_dpm_supported()
1436 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_debugfs_print_current_performance_level()
1439 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_debugfs_print_current_performance_level()
1454 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_smu_prv_buf_details()
1458 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_smu_prv_buf_details()
1495 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_pp_table()
1499 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_pp_table()
1531 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_display_configuration_change()
1534 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_display_configuration_change()
1549 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_clock_by_type()
1553 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_clock_by_type()
1567 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_display_mode_validation_clks()
1570 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_display_mode_validation_clks()
1585 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_clock_by_type_with_latency()
1589 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_clock_by_type_with_latency()
1604 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_clock_by_type_with_voltage()
1608 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_clock_by_type_with_voltage()
1622 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_watermarks_for_clocks_ranges()
1625 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_watermarks_for_clocks_ranges()
1639 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_display_clock_voltage_request()
1642 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_display_clock_voltage_request()
1656 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_current_clocks()
1659 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_current_clocks()
1671 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_notify_smu_enable_pwe()
1673 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_notify_smu_enable_pwe()
1685 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_active_display_count()
1688 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_active_display_count()
1702 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_min_deep_sleep_dcefclk()
1705 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_min_deep_sleep_dcefclk()
1718 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_hard_min_dcefclk_by_freq()
1721 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_hard_min_dcefclk_by_freq()
1732 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_set_hard_min_fclk_by_freq()
1735 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_set_hard_min_fclk_by_freq()
1747 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_display_disable_memory_clock_switch()
1750 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_display_disable_memory_clock_switch()
1764 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_max_sustainable_clocks_by_dc()
1767 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_max_sustainable_clocks_by_dc()
1782 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_uclk_dpm_states()
1786 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_uclk_dpm_states()
1800 mutex_lock(&adev->pm.mutex); in amdgpu_dpm_get_dpm_clock_table()
1803 mutex_unlock(&adev->pm.mutex); in amdgpu_dpm_get_dpm_clock_table()