Lines Matching refs:hwmgr_func

160 	if (hwmgr->hwmgr_func->notify_cac_buffer_info)  in pp_reserve_vram_for_smu()
161 r = hwmgr->hwmgr_func->notify_cac_buffer_info(hwmgr, in pp_reserve_vram_for_smu()
301 if (hwmgr->hwmgr_func->update_clock_gatings == NULL) { in pp_set_clockgating_by_smu()
306 return hwmgr->hwmgr_func->update_clock_gatings(hwmgr, &msg_id); in pp_set_clockgating_by_smu()
369 if (hwmgr->hwmgr_func->get_sclk == NULL) { in pp_dpm_get_sclk()
373 return hwmgr->hwmgr_func->get_sclk(hwmgr, low); in pp_dpm_get_sclk()
383 if (hwmgr->hwmgr_func->get_mclk == NULL) { in pp_dpm_get_mclk()
387 return hwmgr->hwmgr_func->get_mclk(hwmgr, low); in pp_dpm_get_mclk()
397 if (hwmgr->hwmgr_func->powergate_vce == NULL) { in pp_dpm_powergate_vce()
401 hwmgr->hwmgr_func->powergate_vce(hwmgr, gate); in pp_dpm_powergate_vce()
411 if (hwmgr->hwmgr_func->powergate_uvd == NULL) { in pp_dpm_powergate_uvd()
415 hwmgr->hwmgr_func->powergate_uvd(hwmgr, gate); in pp_dpm_powergate_uvd()
468 if (hwmgr->hwmgr_func->set_fan_control_mode == NULL) in pp_dpm_set_fan_control_mode()
474 hwmgr->hwmgr_func->set_fan_control_mode(hwmgr, mode); in pp_dpm_set_fan_control_mode()
486 if (hwmgr->hwmgr_func->get_fan_control_mode == NULL) in pp_dpm_get_fan_control_mode()
492 *fan_mode = hwmgr->hwmgr_func->get_fan_control_mode(hwmgr); in pp_dpm_get_fan_control_mode()
503 if (hwmgr->hwmgr_func->set_fan_speed_pwm == NULL) in pp_dpm_set_fan_speed_pwm()
509 return hwmgr->hwmgr_func->set_fan_speed_pwm(hwmgr, speed); in pp_dpm_set_fan_speed_pwm()
519 if (hwmgr->hwmgr_func->get_fan_speed_pwm == NULL) in pp_dpm_get_fan_speed_pwm()
525 return hwmgr->hwmgr_func->get_fan_speed_pwm(hwmgr, speed); in pp_dpm_get_fan_speed_pwm()
535 if (hwmgr->hwmgr_func->get_fan_speed_rpm == NULL) in pp_dpm_get_fan_speed_rpm()
541 return hwmgr->hwmgr_func->get_fan_speed_rpm(hwmgr, rpm); in pp_dpm_get_fan_speed_rpm()
551 if (hwmgr->hwmgr_func->set_fan_speed_rpm == NULL) in pp_dpm_set_fan_speed_rpm()
557 return hwmgr->hwmgr_func->set_fan_speed_rpm(hwmgr, rpm); in pp_dpm_set_fan_speed_rpm()
647 if (hwmgr->hwmgr_func->avfs_control) in pp_dpm_set_pp_table()
648 ret = hwmgr->hwmgr_func->avfs_control(hwmgr, false); in pp_dpm_set_pp_table()
661 if (hwmgr->hwmgr_func->force_clock_level == NULL) { in pp_dpm_force_clock_level()
671 return hwmgr->hwmgr_func->force_clock_level(hwmgr, type, mask); in pp_dpm_force_clock_level()
684 if (!hwmgr->hwmgr_func->emit_clock_levels) in pp_dpm_emit_clock_levels()
687 return hwmgr->hwmgr_func->emit_clock_levels(hwmgr, type, buf, offset); in pp_dpm_emit_clock_levels()
698 if (hwmgr->hwmgr_func->print_clock_levels == NULL) { in pp_dpm_print_clock_levels()
702 return hwmgr->hwmgr_func->print_clock_levels(hwmgr, type, buf); in pp_dpm_print_clock_levels()
712 if (hwmgr->hwmgr_func->get_sclk_od == NULL) { in pp_dpm_get_sclk_od()
716 return hwmgr->hwmgr_func->get_sclk_od(hwmgr); in pp_dpm_get_sclk_od()
726 if (hwmgr->hwmgr_func->set_sclk_od == NULL) { in pp_dpm_set_sclk_od()
731 return hwmgr->hwmgr_func->set_sclk_od(hwmgr, value); in pp_dpm_set_sclk_od()
741 if (hwmgr->hwmgr_func->get_mclk_od == NULL) { in pp_dpm_get_mclk_od()
745 return hwmgr->hwmgr_func->get_mclk_od(hwmgr); in pp_dpm_get_mclk_od()
755 if (hwmgr->hwmgr_func->set_mclk_od == NULL) { in pp_dpm_set_mclk_od()
759 return hwmgr->hwmgr_func->set_mclk_od(hwmgr, value); in pp_dpm_set_mclk_od()
784 return hwmgr->hwmgr_func->read_sensor(hwmgr, idx, value, size); in pp_dpm_read_sensor()
805 if (!hwmgr || !hwmgr->pm_en || !hwmgr->hwmgr_func->get_power_profile_mode) in pp_get_power_profile_mode()
810 return hwmgr->hwmgr_func->get_power_profile_mode(hwmgr, buf); in pp_get_power_profile_mode()
817 if (!hwmgr || !hwmgr->pm_en || !hwmgr->hwmgr_func->set_power_profile_mode) in pp_set_power_profile_mode()
825 return hwmgr->hwmgr_func->set_power_profile_mode(hwmgr, input, size); in pp_set_power_profile_mode()
835 if (hwmgr->hwmgr_func->set_fine_grain_clk_vol == NULL) in pp_set_fine_grain_clk_vol()
838 return hwmgr->hwmgr_func->set_fine_grain_clk_vol(hwmgr, type, input, size); in pp_set_fine_grain_clk_vol()
848 if (hwmgr->hwmgr_func->odn_edit_dpm_table == NULL) { in pp_odn_edit_dpm_table()
853 return hwmgr->hwmgr_func->odn_edit_dpm_table(hwmgr, type, input, size); in pp_odn_edit_dpm_table()
866 if (hwmgr->hwmgr_func->set_mp1_state) in pp_dpm_set_mp1_state()
867 return hwmgr->hwmgr_func->set_mp1_state(hwmgr, mp1_state); in pp_dpm_set_mp1_state()
882 if (hwmgr->hwmgr_func->set_power_profile_mode == NULL) { in pp_dpm_switch_power_profile()
903 hwmgr->hwmgr_func->disable_power_features_for_compute_performance) { in pp_dpm_switch_power_profile()
904 if (hwmgr->hwmgr_func->disable_power_features_for_compute_performance(hwmgr, en)) in pp_dpm_switch_power_profile()
909 hwmgr->hwmgr_func->set_power_profile_mode(hwmgr, &workload, 0); in pp_dpm_switch_power_profile()
922 if (hwmgr->hwmgr_func->set_power_limit == NULL) { in pp_set_power_limit()
939 hwmgr->hwmgr_func->set_power_limit(hwmgr, limit); in pp_set_power_limit()
1134 if (hwmgr->hwmgr_func->powergate_mmhub == NULL) { in pp_dpm_powergate_mmhub()
1139 return hwmgr->hwmgr_func->powergate_mmhub(hwmgr); in pp_dpm_powergate_mmhub()
1149 if (hwmgr->hwmgr_func->powergate_gfx == NULL) { in pp_dpm_powergate_gfx()
1154 return hwmgr->hwmgr_func->powergate_gfx(hwmgr, gate); in pp_dpm_powergate_gfx()
1164 if (hwmgr->hwmgr_func->powergate_acp == NULL) { in pp_dpm_powergate_acp()
1169 hwmgr->hwmgr_func->powergate_acp(hwmgr, gate); in pp_dpm_powergate_acp()
1179 if (hwmgr->hwmgr_func->powergate_sdma == NULL) { in pp_dpm_powergate_sdma()
1184 hwmgr->hwmgr_func->powergate_sdma(hwmgr, gate); in pp_dpm_powergate_sdma()
1230 if (hwmgr->hwmgr_func->smus_notify_pwe == NULL) { in pp_notify_smu_enable_pwe()
1235 hwmgr->hwmgr_func->smus_notify_pwe(hwmgr); in pp_notify_smu_enable_pwe()
1248 hwmgr->hwmgr_func->enable_mgpu_fan_boost == NULL) in pp_enable_mgpu_fan_boost()
1251 hwmgr->hwmgr_func->enable_mgpu_fan_boost(hwmgr); in pp_enable_mgpu_fan_boost()
1263 if (hwmgr->hwmgr_func->set_min_deep_sleep_dcefclk == NULL) { in pp_set_min_deep_sleep_dcefclk()
1268 hwmgr->hwmgr_func->set_min_deep_sleep_dcefclk(hwmgr, clock); in pp_set_min_deep_sleep_dcefclk()
1280 if (hwmgr->hwmgr_func->set_hard_min_dcefclk_by_freq == NULL) { in pp_set_hard_min_dcefclk_by_freq()
1285 hwmgr->hwmgr_func->set_hard_min_dcefclk_by_freq(hwmgr, clock); in pp_set_hard_min_dcefclk_by_freq()
1297 if (hwmgr->hwmgr_func->set_hard_min_fclk_by_freq == NULL) { in pp_set_hard_min_fclk_by_freq()
1302 hwmgr->hwmgr_func->set_hard_min_fclk_by_freq(hwmgr, clock); in pp_set_hard_min_fclk_by_freq()
1326 !hwmgr->hwmgr_func->get_asic_baco_capability) in pp_get_asic_baco_capability()
1329 hwmgr->hwmgr_func->get_asic_baco_capability(hwmgr, cap); in pp_get_asic_baco_capability()
1341 if (!hwmgr->pm_en || !hwmgr->hwmgr_func->get_asic_baco_state) in pp_get_asic_baco_state()
1344 hwmgr->hwmgr_func->get_asic_baco_state(hwmgr, (enum BACO_STATE *)state); in pp_get_asic_baco_state()
1357 !hwmgr->hwmgr_func->set_asic_baco_state) in pp_set_asic_baco_state()
1360 hwmgr->hwmgr_func->set_asic_baco_state(hwmgr, (enum BACO_STATE)state); in pp_set_asic_baco_state()
1372 if (hwmgr->hwmgr_func->get_ppfeature_status == NULL) { in pp_get_ppfeature_status()
1377 return hwmgr->hwmgr_func->get_ppfeature_status(hwmgr, buf); in pp_get_ppfeature_status()
1387 if (hwmgr->hwmgr_func->set_ppfeature_status == NULL) { in pp_set_ppfeature_status()
1392 return hwmgr->hwmgr_func->set_ppfeature_status(hwmgr, ppfeature_masks); in pp_set_ppfeature_status()
1402 if (hwmgr->hwmgr_func->asic_reset == NULL) { in pp_asic_reset_mode_2()
1407 return hwmgr->hwmgr_func->asic_reset(hwmgr, SMU_ASIC_RESET_MODE_2); in pp_asic_reset_mode_2()
1417 if (hwmgr->hwmgr_func->smu_i2c_bus_access == NULL) { in pp_smu_i2c_bus_access()
1422 return hwmgr->hwmgr_func->smu_i2c_bus_access(hwmgr, acquire); in pp_smu_i2c_bus_access()
1432 if (!hwmgr->pm_en || !hwmgr->hwmgr_func->set_df_cstate) in pp_set_df_cstate()
1435 hwmgr->hwmgr_func->set_df_cstate(hwmgr, state); in pp_set_df_cstate()
1447 if (!hwmgr->pm_en || !hwmgr->hwmgr_func->set_xgmi_pstate) in pp_set_xgmi_pstate()
1450 hwmgr->hwmgr_func->set_xgmi_pstate(hwmgr, pstate); in pp_set_xgmi_pstate()
1462 if (!hwmgr->pm_en || !hwmgr->hwmgr_func->get_gpu_metrics) in pp_get_gpu_metrics()
1465 return hwmgr->hwmgr_func->get_gpu_metrics(hwmgr, table); in pp_get_gpu_metrics()
1475 if (hwmgr->hwmgr_func->gfx_state_change == NULL) { in pp_gfx_state_change_set()
1480 hwmgr->hwmgr_func->gfx_state_change(hwmgr, state); in pp_gfx_state_change_set()