Lines Matching refs:eg_pi
2389 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_populate_power_containment_values() local
2447 ret = si_populate_voltage_value(adev, &eg_pi->vddc_voltage_table, in si_populate_power_containment_values()
2456 ret = si_populate_voltage_value(adev, &eg_pi->vddc_voltage_table, in si_populate_power_containment_values()
3150 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in ni_update_current_ps() local
3153 eg_pi->current_rps = *rps; in ni_update_current_ps()
3155 eg_pi->current_rps.ps_priv = &ni_pi->current_ps; in ni_update_current_ps()
3156 adev->pm.dpm.current_ps = &eg_pi->current_rps; in ni_update_current_ps()
3163 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in ni_update_requested_ps() local
3166 eg_pi->requested_rps = *rps; in ni_update_requested_ps()
3168 eg_pi->requested_rps.ps_priv = &ni_pi->requested_ps; in ni_update_requested_ps()
3169 adev->pm.dpm.requested_ps = &eg_pi->requested_rps; in ni_update_requested_ps()
3318 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in btc_apply_voltage_delta_rules() local
3326 new_voltage = btc_find_voltage(&eg_pi->vddci_voltage_table, in btc_apply_voltage_delta_rules()
3332 new_voltage = btc_find_voltage(&eg_pi->vddc_voltage_table, in btc_apply_voltage_delta_rules()
4131 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_program_ds_registers() local
4140 if (eg_pi->sclk_deep_sleep) { in si_program_ds_registers()
4423 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_construct_voltage_tables() local
4429 VOLTAGE_OBJ_GPIO_LUT, &eg_pi->vddc_voltage_table); in si_construct_voltage_tables()
4433 if (eg_pi->vddc_voltage_table.count > SISLANDS_MAX_NO_VREG_STEPS) in si_construct_voltage_tables()
4436 &eg_pi->vddc_voltage_table); in si_construct_voltage_tables()
4440 &eg_pi->vddc_voltage_table); in si_construct_voltage_tables()
4447 if (eg_pi->vddci_control) { in si_construct_voltage_tables()
4449 VOLTAGE_OBJ_GPIO_LUT, &eg_pi->vddci_voltage_table); in si_construct_voltage_tables()
4453 if (eg_pi->vddci_voltage_table.count > SISLANDS_MAX_NO_VREG_STEPS) in si_construct_voltage_tables()
4456 &eg_pi->vddci_voltage_table); in si_construct_voltage_tables()
4461 &eg_pi->vddci_voltage_table); in si_construct_voltage_tables()
4514 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_populate_smc_voltage_tables() local
4526 if (eg_pi->vddc_voltage_table.count) { in si_populate_smc_voltage_tables()
4527 si_populate_smc_voltage_table(adev, &eg_pi->vddc_voltage_table, table); in si_populate_smc_voltage_tables()
4529 cpu_to_be32(eg_pi->vddc_voltage_table.mask_low); in si_populate_smc_voltage_tables()
4531 for (i = 0; i < eg_pi->vddc_voltage_table.count; i++) { in si_populate_smc_voltage_tables()
4532 if (pi->max_vddc_in_table <= eg_pi->vddc_voltage_table.entries[i].value) { in si_populate_smc_voltage_tables()
4539 if (eg_pi->vddci_voltage_table.count) { in si_populate_smc_voltage_tables()
4540 si_populate_smc_voltage_table(adev, &eg_pi->vddci_voltage_table, table); in si_populate_smc_voltage_tables()
4543 cpu_to_be32(eg_pi->vddci_voltage_table.mask_low); in si_populate_smc_voltage_tables()
4836 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_populate_smc_initial_state() local
4884 ret = si_populate_voltage_value(adev, &eg_pi->vddc_voltage_table, in si_populate_smc_initial_state()
4900 if (eg_pi->vddci_control) in si_populate_smc_initial_state()
4902 &eg_pi->vddci_voltage_table, in si_populate_smc_initial_state()
4955 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_populate_smc_acpi_state() local
4976 ret = si_populate_voltage_value(adev, &eg_pi->vddc_voltage_table, in si_populate_smc_acpi_state()
4999 ret = si_populate_voltage_value(adev, &eg_pi->vddc_voltage_table, in si_populate_smc_acpi_state()
5028 if (eg_pi->acpi_vddci) in si_populate_smc_acpi_state()
5029 si_populate_voltage_value(adev, &eg_pi->vddci_voltage_table, in si_populate_smc_acpi_state()
5030 eg_pi->acpi_vddci, in si_populate_smc_acpi_state()
5075 if (eg_pi->dynamic_ac_timing) in si_populate_smc_acpi_state()
5096 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_populate_ulv_state() local
5105 if (eg_pi->sclk_deep_sleep) { in si_populate_ulv_state()
5444 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_convert_power_level_to_smc() local
5451 if (eg_pi->pcie_performance_request && in si_convert_power_level_to_smc()
5465 !eg_pi->uvd_enabled && in si_convert_power_level_to_smc()
5478 if (pl->mclk > eg_pi->mclk_edc_wr_enable_threshold) in si_convert_power_level_to_smc()
5508 &eg_pi->vddc_voltage_table, in si_convert_power_level_to_smc()
5523 if (eg_pi->vddci_control) { in si_convert_power_level_to_smc()
5524 ret = si_populate_voltage_value(adev, &eg_pi->vddci_voltage_table, in si_convert_power_level_to_smc()
5655 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_convert_power_state_to_smc() local
5669 eg_pi->uvd_enabled = true; in si_convert_power_state_to_smc()
5670 if (eg_pi->smu_uvd_hs) in si_convert_power_state_to_smc()
5673 eg_pi->uvd_enabled = false; in si_convert_power_state_to_smc()
5681 if (eg_pi->sclk_deep_sleep) { in si_convert_power_state_to_smc()
5706 if (eg_pi->dynamic_ac_timing) in si_convert_power_state_to_smc()
6266 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev);
6268 if (eg_pi->sclk_deep_sleep) {
6784 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_dpm_enable() local
6802 if (eg_pi->dynamic_ac_timing) { in si_dpm_enable()
6805 eg_pi->dynamic_ac_timing = false; in si_dpm_enable()
6848 if (eg_pi->dynamic_ac_timing) { in si_dpm_enable()
6941 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_dpm_pre_set_power_state() local
6946 si_apply_state_adjust_rules(adev, &eg_pi->requested_rps); in si_dpm_pre_set_power_state()
6980 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_dpm_set_power_state() local
6981 struct amdgpu_ps *new_ps = &eg_pi->requested_rps; in si_dpm_set_power_state()
6982 struct amdgpu_ps *old_ps = &eg_pi->current_rps; in si_dpm_set_power_state()
6995 if (eg_pi->pcie_performance_request) in si_dpm_set_power_state()
7028 if (eg_pi->dynamic_ac_timing) { in si_dpm_set_power_state()
7053 if (eg_pi->pcie_performance_request) in si_dpm_set_power_state()
7083 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_dpm_post_set_power_state() local
7084 struct amdgpu_ps *new_ps = &eg_pi->requested_rps; in si_dpm_post_set_power_state()
7137 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_parse_pplib_clock_info() local
7167 eg_pi->acpi_vddci = pl->vddci; in si_parse_pplib_clock_info()
7308 struct evergreen_power_info *eg_pi; in si_dpm_init() local
7319 eg_pi = &ni_pi->eg; in si_dpm_init()
7320 pi = &eg_pi->rv7xx; in si_dpm_init()
7334 eg_pi->acpi_vddci = 0; in si_dpm_init()
7380 eg_pi->smu_uvd_hs = false; in si_dpm_init()
7388 eg_pi->mclk_edc_wr_enable_threshold = 40000; in si_dpm_init()
7390 ni_pi->mclk_rtt_mode_threshold = eg_pi->mclk_edc_wr_enable_threshold; in si_dpm_init()
7408 eg_pi->vddci_control = in si_dpm_init()
7411 if (!eg_pi->vddci_control) in si_dpm_init()
7428 eg_pi->sclk_deep_sleep = true; in si_dpm_init()
7436 eg_pi->dynamic_ac_timing = true; in si_dpm_init()
7438 eg_pi->light_sleep = true; in si_dpm_init()
7440 eg_pi->pcie_performance_request = in si_dpm_init()
7443 eg_pi->pcie_performance_request = false; in si_dpm_init()
7486 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_dpm_debugfs_print_current_performance_level() local
7487 struct amdgpu_ps *rps = &eg_pi->current_rps; in si_dpm_debugfs_print_current_performance_level()
7873 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_dpm_get_sclk() local
7874 struct si_ps *requested_state = si_get_ps(&eg_pi->requested_rps); in si_dpm_get_sclk()
7885 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_dpm_get_mclk() local
7886 struct si_ps *requested_state = si_get_ps(&eg_pi->requested_rps); in si_dpm_get_mclk()
7987 struct evergreen_power_info *eg_pi = evergreen_get_pi(adev); in si_dpm_read_sensor() local
7988 struct amdgpu_ps *rps = &eg_pi->current_rps; in si_dpm_read_sensor()