Lines Matching refs:eg_pi
1312 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_apply_voltage_delta_rules() local
1320 new_voltage = btc_find_voltage(&eg_pi->vddci_voltage_table, in btc_apply_voltage_delta_rules()
1326 new_voltage = btc_find_voltage(&eg_pi->vddc_voltage_table, in btc_apply_voltage_delta_rules()
1388 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_disable_ulv() local
1390 if (eg_pi->ulv.supported) { in btc_disable_ulv()
1401 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_populate_ulv_state() local
1402 struct rv7xx_pl *ulv_pl = eg_pi->ulv.pl; in btc_populate_ulv_state()
1631 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_init_smc_table() local
1668 if (eg_pi->sclk_deep_sleep) in btc_init_smc_table()
1676 if (eg_pi->ulv.supported) { in btc_init_smc_table()
1679 eg_pi->ulv.supported = false; in btc_init_smc_table()
1695 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_set_at_for_uvd() local
1701 if ((idx == 1) && !eg_pi->smu_uvd_hs) { in btc_set_at_for_uvd()
1707 pi->rlp = eg_pi->ats[idx].rlp; in btc_set_at_for_uvd()
1708 pi->rmp = eg_pi->ats[idx].rmp; in btc_set_at_for_uvd()
1709 pi->lhp = eg_pi->ats[idx].lhp; in btc_set_at_for_uvd()
1710 pi->lmp = eg_pi->ats[idx].lmp; in btc_set_at_for_uvd()
1718 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_notify_uvd_to_smc() local
1723 eg_pi->uvd_enabled = true; in btc_notify_uvd_to_smc()
1727 eg_pi->uvd_enabled = false; in btc_notify_uvd_to_smc()
1755 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_read_arb_registers() local
1757 &eg_pi->bootup_arb_registers; in btc_read_arb_registers()
1785 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_set_boot_state_timing() local
1787 if (eg_pi->ulv.supported) in btc_set_boot_state_timing()
1788 btc_set_arb0_registers(rdev, &eg_pi->bootup_arb_registers); in btc_set_boot_state_timing()
1795 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_is_state_ulv_compatible() local
1796 struct rv7xx_pl *ulv_pl = eg_pi->ulv.pl; in btc_is_state_ulv_compatible()
1813 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_set_ulv_dram_timing() local
1814 struct rv7xx_pl *ulv_pl = eg_pi->ulv.pl; in btc_set_ulv_dram_timing()
1841 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_set_power_state_conditionally_enable_ulv() local
1843 if (eg_pi->ulv.supported) { in btc_set_power_state_conditionally_enable_ulv()
2021 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_initialize_mc_reg_table() local
2022 struct evergreen_mc_reg_table *eg_table = &eg_pi->mc_reg_table; in btc_initialize_mc_reg_table()
2262 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_update_current_ps() local
2264 eg_pi->current_rps = *rps; in btc_update_current_ps()
2265 eg_pi->current_ps = *new_ps; in btc_update_current_ps()
2266 eg_pi->current_rps.ps_priv = &eg_pi->current_ps; in btc_update_current_ps()
2273 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_update_requested_ps() local
2275 eg_pi->requested_rps = *rps; in btc_update_requested_ps()
2276 eg_pi->requested_ps = *new_ps; in btc_update_requested_ps()
2277 eg_pi->requested_rps.ps_priv = &eg_pi->requested_ps; in btc_update_requested_ps()
2292 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_pre_set_power_state() local
2298 btc_apply_state_adjust_rules(rdev, &eg_pi->requested_rps); in btc_dpm_pre_set_power_state()
2305 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_set_power_state() local
2306 struct radeon_ps *new_ps = &eg_pi->requested_rps; in btc_dpm_set_power_state()
2307 struct radeon_ps *old_ps = &eg_pi->current_rps; in btc_dpm_set_power_state()
2317 if (eg_pi->pcie_performance_request) in btc_dpm_set_power_state()
2327 if (eg_pi->smu_uvd_hs) in btc_dpm_set_power_state()
2334 if (eg_pi->dynamic_ac_timing) { in btc_dpm_set_power_state()
2356 if (eg_pi->pcie_performance_request) in btc_dpm_set_power_state()
2370 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_post_set_power_state() local
2371 struct radeon_ps *new_ps = &eg_pi->requested_rps; in btc_dpm_post_set_power_state()
2379 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_enable() local
2392 if (eg_pi->ls_clock_gating) in btc_dpm_enable()
2412 if (eg_pi->dynamic_ac_timing) { in btc_dpm_enable()
2415 eg_pi->dynamic_ac_timing = false; in btc_dpm_enable()
2453 if (eg_pi->dynamic_ac_timing) { in btc_dpm_enable()
2470 if (eg_pi->memory_transition) in btc_dpm_enable()
2481 if (eg_pi->ls_clock_gating) in btc_dpm_enable()
2496 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_disable() local
2521 if (eg_pi->ls_clock_gating) in btc_dpm_disable()
2534 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_setup_asic() local
2545 if (eg_pi->pcie_performance_request) in btc_dpm_setup_asic()
2555 struct evergreen_power_info *eg_pi; in btc_dpm_init() local
2559 eg_pi = kzalloc(sizeof(struct evergreen_power_info), GFP_KERNEL); in btc_dpm_init()
2560 if (eg_pi == NULL) in btc_dpm_init()
2562 rdev->pm.dpm.priv = eg_pi; in btc_dpm_init()
2563 pi = &eg_pi->rv7xx; in btc_dpm_init()
2567 eg_pi->ulv.supported = false; in btc_dpm_init()
2569 eg_pi->acpi_vddci = 0; in btc_dpm_init()
2614 eg_pi->mclk_edc_wr_enable_threshold = 40000; in btc_dpm_init()
2621 eg_pi->ats[0].rlp = RV770_RLP_DFLT; in btc_dpm_init()
2622 eg_pi->ats[0].rmp = RV770_RMP_DFLT; in btc_dpm_init()
2623 eg_pi->ats[0].lhp = RV770_LHP_DFLT; in btc_dpm_init()
2624 eg_pi->ats[0].lmp = RV770_LMP_DFLT; in btc_dpm_init()
2626 eg_pi->ats[1].rlp = BTC_RLP_UVD_DFLT; in btc_dpm_init()
2627 eg_pi->ats[1].rmp = BTC_RMP_UVD_DFLT; in btc_dpm_init()
2628 eg_pi->ats[1].lhp = BTC_LHP_UVD_DFLT; in btc_dpm_init()
2629 eg_pi->ats[1].lmp = BTC_LMP_UVD_DFLT; in btc_dpm_init()
2631 eg_pi->smu_uvd_hs = true; in btc_dpm_init()
2639 eg_pi->vddci_control = in btc_dpm_init()
2654 eg_pi->ls_clock_gating = false; in btc_dpm_init()
2655 eg_pi->sclk_deep_sleep = false; in btc_dpm_init()
2673 eg_pi->dynamic_ac_timing = true; in btc_dpm_init()
2674 eg_pi->abm = true; in btc_dpm_init()
2675 eg_pi->mcls = true; in btc_dpm_init()
2676 eg_pi->light_sleep = true; in btc_dpm_init()
2677 eg_pi->memory_transition = true; in btc_dpm_init()
2679 eg_pi->pcie_performance_request = in btc_dpm_init()
2682 eg_pi->pcie_performance_request = false; in btc_dpm_init()
2686 eg_pi->dll_default_on = true; in btc_dpm_init()
2688 eg_pi->dll_default_on = false; in btc_dpm_init()
2690 eg_pi->sclk_deep_sleep = false; in btc_dpm_init()
2736 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_debugfs_print_current_performance_level() local
2737 struct radeon_ps *rps = &eg_pi->current_rps; in btc_dpm_debugfs_print_current_performance_level()
2761 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_get_current_sclk() local
2762 struct radeon_ps *rps = &eg_pi->current_rps; in btc_dpm_get_current_sclk()
2784 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_get_current_mclk() local
2785 struct radeon_ps *rps = &eg_pi->current_rps; in btc_dpm_get_current_mclk()
2807 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_get_sclk() local
2808 struct rv7xx_ps *requested_state = rv770_get_ps(&eg_pi->requested_rps); in btc_dpm_get_sclk()
2818 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_get_mclk() local
2819 struct rv7xx_ps *requested_state = rv770_get_ps(&eg_pi->requested_rps); in btc_dpm_get_mclk()