Lines Matching refs:eg_pi
1313 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_apply_voltage_delta_rules() local
1321 new_voltage = btc_find_voltage(&eg_pi->vddci_voltage_table, in btc_apply_voltage_delta_rules()
1327 new_voltage = btc_find_voltage(&eg_pi->vddc_voltage_table, in btc_apply_voltage_delta_rules()
1389 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_disable_ulv() local
1391 if (eg_pi->ulv.supported) { in btc_disable_ulv()
1402 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_populate_ulv_state() local
1403 struct rv7xx_pl *ulv_pl = eg_pi->ulv.pl; in btc_populate_ulv_state()
1632 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_init_smc_table() local
1669 if (eg_pi->sclk_deep_sleep) in btc_init_smc_table()
1677 if (eg_pi->ulv.supported) { in btc_init_smc_table()
1680 eg_pi->ulv.supported = false; in btc_init_smc_table()
1696 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_set_at_for_uvd() local
1702 if ((idx == 1) && !eg_pi->smu_uvd_hs) { in btc_set_at_for_uvd()
1708 pi->rlp = eg_pi->ats[idx].rlp; in btc_set_at_for_uvd()
1709 pi->rmp = eg_pi->ats[idx].rmp; in btc_set_at_for_uvd()
1710 pi->lhp = eg_pi->ats[idx].lhp; in btc_set_at_for_uvd()
1711 pi->lmp = eg_pi->ats[idx].lmp; in btc_set_at_for_uvd()
1719 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_notify_uvd_to_smc() local
1724 eg_pi->uvd_enabled = true; in btc_notify_uvd_to_smc()
1728 eg_pi->uvd_enabled = false; in btc_notify_uvd_to_smc()
1756 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_read_arb_registers() local
1758 &eg_pi->bootup_arb_registers; in btc_read_arb_registers()
1786 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_set_boot_state_timing() local
1788 if (eg_pi->ulv.supported) in btc_set_boot_state_timing()
1789 btc_set_arb0_registers(rdev, &eg_pi->bootup_arb_registers); in btc_set_boot_state_timing()
1796 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_is_state_ulv_compatible() local
1797 struct rv7xx_pl *ulv_pl = eg_pi->ulv.pl; in btc_is_state_ulv_compatible()
1814 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_set_ulv_dram_timing() local
1815 struct rv7xx_pl *ulv_pl = eg_pi->ulv.pl; in btc_set_ulv_dram_timing()
1842 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_set_power_state_conditionally_enable_ulv() local
1844 if (eg_pi->ulv.supported) { in btc_set_power_state_conditionally_enable_ulv()
2022 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_initialize_mc_reg_table() local
2023 struct evergreen_mc_reg_table *eg_table = &eg_pi->mc_reg_table; in btc_initialize_mc_reg_table()
2263 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_update_current_ps() local
2265 eg_pi->current_rps = *rps; in btc_update_current_ps()
2266 eg_pi->current_ps = *new_ps; in btc_update_current_ps()
2267 eg_pi->current_rps.ps_priv = &eg_pi->current_ps; in btc_update_current_ps()
2274 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_update_requested_ps() local
2276 eg_pi->requested_rps = *rps; in btc_update_requested_ps()
2277 eg_pi->requested_ps = *new_ps; in btc_update_requested_ps()
2278 eg_pi->requested_rps.ps_priv = &eg_pi->requested_ps; in btc_update_requested_ps()
2293 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_pre_set_power_state() local
2299 btc_apply_state_adjust_rules(rdev, &eg_pi->requested_rps); in btc_dpm_pre_set_power_state()
2306 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_set_power_state() local
2307 struct radeon_ps *new_ps = &eg_pi->requested_rps; in btc_dpm_set_power_state()
2308 struct radeon_ps *old_ps = &eg_pi->current_rps; in btc_dpm_set_power_state()
2318 if (eg_pi->pcie_performance_request) in btc_dpm_set_power_state()
2328 if (eg_pi->smu_uvd_hs) in btc_dpm_set_power_state()
2335 if (eg_pi->dynamic_ac_timing) { in btc_dpm_set_power_state()
2357 if (eg_pi->pcie_performance_request) in btc_dpm_set_power_state()
2371 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_post_set_power_state() local
2372 struct radeon_ps *new_ps = &eg_pi->requested_rps; in btc_dpm_post_set_power_state()
2380 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_enable() local
2393 if (eg_pi->ls_clock_gating) in btc_dpm_enable()
2413 if (eg_pi->dynamic_ac_timing) { in btc_dpm_enable()
2416 eg_pi->dynamic_ac_timing = false; in btc_dpm_enable()
2454 if (eg_pi->dynamic_ac_timing) { in btc_dpm_enable()
2471 if (eg_pi->memory_transition) in btc_dpm_enable()
2482 if (eg_pi->ls_clock_gating) in btc_dpm_enable()
2497 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_disable() local
2522 if (eg_pi->ls_clock_gating) in btc_dpm_disable()
2535 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_setup_asic() local
2546 if (eg_pi->pcie_performance_request) in btc_dpm_setup_asic()
2556 struct evergreen_power_info *eg_pi; in btc_dpm_init() local
2560 eg_pi = kzalloc(sizeof(struct evergreen_power_info), GFP_KERNEL); in btc_dpm_init()
2561 if (eg_pi == NULL) in btc_dpm_init()
2563 rdev->pm.dpm.priv = eg_pi; in btc_dpm_init()
2564 pi = &eg_pi->rv7xx; in btc_dpm_init()
2568 eg_pi->ulv.supported = false; in btc_dpm_init()
2570 eg_pi->acpi_vddci = 0; in btc_dpm_init()
2617 eg_pi->mclk_edc_wr_enable_threshold = 40000; in btc_dpm_init()
2624 eg_pi->ats[0].rlp = RV770_RLP_DFLT; in btc_dpm_init()
2625 eg_pi->ats[0].rmp = RV770_RMP_DFLT; in btc_dpm_init()
2626 eg_pi->ats[0].lhp = RV770_LHP_DFLT; in btc_dpm_init()
2627 eg_pi->ats[0].lmp = RV770_LMP_DFLT; in btc_dpm_init()
2629 eg_pi->ats[1].rlp = BTC_RLP_UVD_DFLT; in btc_dpm_init()
2630 eg_pi->ats[1].rmp = BTC_RMP_UVD_DFLT; in btc_dpm_init()
2631 eg_pi->ats[1].lhp = BTC_LHP_UVD_DFLT; in btc_dpm_init()
2632 eg_pi->ats[1].lmp = BTC_LMP_UVD_DFLT; in btc_dpm_init()
2634 eg_pi->smu_uvd_hs = true; in btc_dpm_init()
2642 eg_pi->vddci_control = in btc_dpm_init()
2657 eg_pi->ls_clock_gating = false; in btc_dpm_init()
2658 eg_pi->sclk_deep_sleep = false; in btc_dpm_init()
2676 eg_pi->dynamic_ac_timing = true; in btc_dpm_init()
2677 eg_pi->abm = true; in btc_dpm_init()
2678 eg_pi->mcls = true; in btc_dpm_init()
2679 eg_pi->light_sleep = true; in btc_dpm_init()
2680 eg_pi->memory_transition = true; in btc_dpm_init()
2682 eg_pi->pcie_performance_request = in btc_dpm_init()
2685 eg_pi->pcie_performance_request = false; in btc_dpm_init()
2689 eg_pi->dll_default_on = true; in btc_dpm_init()
2691 eg_pi->dll_default_on = false; in btc_dpm_init()
2693 eg_pi->sclk_deep_sleep = false; in btc_dpm_init()
2739 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_debugfs_print_current_performance_level() local
2740 struct radeon_ps *rps = &eg_pi->current_rps; in btc_dpm_debugfs_print_current_performance_level()
2764 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_get_current_sclk() local
2765 struct radeon_ps *rps = &eg_pi->current_rps; in btc_dpm_get_current_sclk()
2787 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_get_current_mclk() local
2788 struct radeon_ps *rps = &eg_pi->current_rps; in btc_dpm_get_current_mclk()
2810 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_get_sclk() local
2811 struct rv7xx_ps *requested_state = rv770_get_ps(&eg_pi->requested_rps); in btc_dpm_get_sclk()
2821 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_get_mclk() local
2822 struct rv7xx_ps *requested_state = rv770_get_ps(&eg_pi->requested_rps); in btc_dpm_get_mclk()