Lines Matching refs:hwmgr

32 static int vega12_get_current_rpm(struct pp_hwmgr *hwmgr, uint32_t *current_rpm)  in vega12_get_current_rpm()  argument
34 PP_ASSERT_WITH_CODE(!smum_send_msg_to_smc(hwmgr, in vega12_get_current_rpm()
43 int vega12_fan_ctrl_get_fan_speed_info(struct pp_hwmgr *hwmgr, in vega12_fan_ctrl_get_fan_speed_info() argument
55 int vega12_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t *speed) in vega12_fan_ctrl_get_fan_speed_rpm() argument
59 return vega12_get_current_rpm(hwmgr, speed); in vega12_fan_ctrl_get_fan_speed_rpm()
68 static int vega12_enable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega12_enable_fan_control_feature() argument
71 struct vega12_hwmgr *data = (struct vega12_hwmgr *)(hwmgr->backend); in vega12_enable_fan_control_feature()
75 hwmgr, true, in vega12_enable_fan_control_feature()
86 static int vega12_disable_fan_control_feature(struct pp_hwmgr *hwmgr) in vega12_disable_fan_control_feature() argument
89 struct vega12_hwmgr *data = (struct vega12_hwmgr *)(hwmgr->backend); in vega12_disable_fan_control_feature()
93 hwmgr, false, in vega12_disable_fan_control_feature()
104 int vega12_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr) in vega12_fan_ctrl_start_smc_fan_control() argument
106 struct vega12_hwmgr *data = (struct vega12_hwmgr *)(hwmgr->backend); in vega12_fan_ctrl_start_smc_fan_control()
110 !vega12_enable_fan_control_feature(hwmgr), in vega12_fan_ctrl_start_smc_fan_control()
118 int vega12_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr) in vega12_fan_ctrl_stop_smc_fan_control() argument
120 struct vega12_hwmgr *data = (struct vega12_hwmgr *)(hwmgr->backend); in vega12_fan_ctrl_stop_smc_fan_control()
123 PP_ASSERT_WITH_CODE(!vega12_disable_fan_control_feature(hwmgr), in vega12_fan_ctrl_stop_smc_fan_control()
135 int vega12_fan_ctrl_reset_fan_speed_to_default(struct pp_hwmgr *hwmgr) in vega12_fan_ctrl_reset_fan_speed_to_default() argument
137 return vega12_fan_ctrl_start_smc_fan_control(hwmgr); in vega12_fan_ctrl_reset_fan_speed_to_default()
145 int vega12_thermal_get_temperature(struct pp_hwmgr *hwmgr) in vega12_thermal_get_temperature() argument
147 struct amdgpu_device *adev = hwmgr->adev; in vega12_thermal_get_temperature()
170 static int vega12_thermal_set_temperature_range(struct pp_hwmgr *hwmgr, in vega12_thermal_set_temperature_range() argument
174 (struct phm_ppt_v3_information *)hwmgr->pptable; in vega12_thermal_set_temperature_range()
175 struct amdgpu_device *adev = hwmgr->adev; in vega12_thermal_set_temperature_range()
209 static int vega12_thermal_enable_alert(struct pp_hwmgr *hwmgr) in vega12_thermal_enable_alert() argument
211 struct amdgpu_device *adev = hwmgr->adev; in vega12_thermal_enable_alert()
227 int vega12_thermal_disable_alert(struct pp_hwmgr *hwmgr) in vega12_thermal_disable_alert() argument
229 struct amdgpu_device *adev = hwmgr->adev; in vega12_thermal_disable_alert()
241 int vega12_thermal_stop_thermal_controller(struct pp_hwmgr *hwmgr) in vega12_thermal_stop_thermal_controller() argument
243 int result = vega12_thermal_disable_alert(hwmgr); in vega12_thermal_stop_thermal_controller()
252 static int vega12_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) in vega12_thermal_setup_fan_table() argument
255 struct vega12_hwmgr *data = (struct vega12_hwmgr *)(hwmgr->backend); in vega12_thermal_setup_fan_table()
258 ret = smum_send_msg_to_smc_with_parameter(hwmgr, in vega12_thermal_setup_fan_table()
271 static int vega12_thermal_start_smc_fan_control(struct pp_hwmgr *hwmgr) in vega12_thermal_start_smc_fan_control() argument
279 vega12_fan_ctrl_start_smc_fan_control(hwmgr); in vega12_thermal_start_smc_fan_control()
285 int vega12_start_thermal_controller(struct pp_hwmgr *hwmgr, in vega12_start_thermal_controller() argument
293 ret = vega12_thermal_set_temperature_range(hwmgr, range); in vega12_start_thermal_controller()
297 vega12_thermal_enable_alert(hwmgr); in vega12_start_thermal_controller()
303 ret = vega12_thermal_setup_fan_table(hwmgr); in vega12_start_thermal_controller()
307 vega12_thermal_start_smc_fan_control(hwmgr); in vega12_start_thermal_controller()