Lines Matching refs:eg_pi
1310 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_apply_voltage_delta_rules() local
1318 new_voltage = btc_find_voltage(&eg_pi->vddci_voltage_table, in btc_apply_voltage_delta_rules()
1324 new_voltage = btc_find_voltage(&eg_pi->vddc_voltage_table, in btc_apply_voltage_delta_rules()
1386 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_disable_ulv() local
1388 if (eg_pi->ulv.supported) { in btc_disable_ulv()
1399 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_populate_ulv_state() local
1400 struct rv7xx_pl *ulv_pl = eg_pi->ulv.pl; in btc_populate_ulv_state()
1629 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_init_smc_table() local
1666 if (eg_pi->sclk_deep_sleep) in btc_init_smc_table()
1674 if (eg_pi->ulv.supported) { in btc_init_smc_table()
1677 eg_pi->ulv.supported = false; in btc_init_smc_table()
1693 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_set_at_for_uvd() local
1699 if ((idx == 1) && !eg_pi->smu_uvd_hs) { in btc_set_at_for_uvd()
1705 pi->rlp = eg_pi->ats[idx].rlp; in btc_set_at_for_uvd()
1706 pi->rmp = eg_pi->ats[idx].rmp; in btc_set_at_for_uvd()
1707 pi->lhp = eg_pi->ats[idx].lhp; in btc_set_at_for_uvd()
1708 pi->lmp = eg_pi->ats[idx].lmp; in btc_set_at_for_uvd()
1716 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_notify_uvd_to_smc() local
1721 eg_pi->uvd_enabled = true; in btc_notify_uvd_to_smc()
1725 eg_pi->uvd_enabled = false; in btc_notify_uvd_to_smc()
1753 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_read_arb_registers() local
1755 &eg_pi->bootup_arb_registers; in btc_read_arb_registers()
1783 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_set_boot_state_timing() local
1785 if (eg_pi->ulv.supported) in btc_set_boot_state_timing()
1786 btc_set_arb0_registers(rdev, &eg_pi->bootup_arb_registers); in btc_set_boot_state_timing()
1793 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_is_state_ulv_compatible() local
1794 struct rv7xx_pl *ulv_pl = eg_pi->ulv.pl; in btc_is_state_ulv_compatible()
1811 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_set_ulv_dram_timing() local
1812 struct rv7xx_pl *ulv_pl = eg_pi->ulv.pl; in btc_set_ulv_dram_timing()
1839 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_set_power_state_conditionally_enable_ulv() local
1841 if (eg_pi->ulv.supported) { in btc_set_power_state_conditionally_enable_ulv()
2019 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_initialize_mc_reg_table() local
2020 struct evergreen_mc_reg_table *eg_table = &eg_pi->mc_reg_table; in btc_initialize_mc_reg_table()
2260 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_update_current_ps() local
2262 eg_pi->current_rps = *rps; in btc_update_current_ps()
2263 eg_pi->current_ps = *new_ps; in btc_update_current_ps()
2264 eg_pi->current_rps.ps_priv = &eg_pi->current_ps; in btc_update_current_ps()
2271 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_update_requested_ps() local
2273 eg_pi->requested_rps = *rps; in btc_update_requested_ps()
2274 eg_pi->requested_ps = *new_ps; in btc_update_requested_ps()
2275 eg_pi->requested_rps.ps_priv = &eg_pi->requested_ps; in btc_update_requested_ps()
2290 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_pre_set_power_state() local
2296 btc_apply_state_adjust_rules(rdev, &eg_pi->requested_rps); in btc_dpm_pre_set_power_state()
2303 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_set_power_state() local
2304 struct radeon_ps *new_ps = &eg_pi->requested_rps; in btc_dpm_set_power_state()
2305 struct radeon_ps *old_ps = &eg_pi->current_rps; in btc_dpm_set_power_state()
2315 if (eg_pi->pcie_performance_request) in btc_dpm_set_power_state()
2325 if (eg_pi->smu_uvd_hs) in btc_dpm_set_power_state()
2332 if (eg_pi->dynamic_ac_timing) { in btc_dpm_set_power_state()
2354 if (eg_pi->pcie_performance_request) in btc_dpm_set_power_state()
2368 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_post_set_power_state() local
2369 struct radeon_ps *new_ps = &eg_pi->requested_rps; in btc_dpm_post_set_power_state()
2377 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_enable() local
2390 if (eg_pi->ls_clock_gating) in btc_dpm_enable()
2410 if (eg_pi->dynamic_ac_timing) { in btc_dpm_enable()
2413 eg_pi->dynamic_ac_timing = false; in btc_dpm_enable()
2451 if (eg_pi->dynamic_ac_timing) { in btc_dpm_enable()
2468 if (eg_pi->memory_transition) in btc_dpm_enable()
2479 if (eg_pi->ls_clock_gating) in btc_dpm_enable()
2494 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_disable() local
2519 if (eg_pi->ls_clock_gating) in btc_dpm_disable()
2532 struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); in btc_dpm_setup_asic() local
2543 if (eg_pi->pcie_performance_request) in btc_dpm_setup_asic()
2553 struct evergreen_power_info *eg_pi; in btc_dpm_init() local
2557 eg_pi = kzalloc(sizeof(struct evergreen_power_info), GFP_KERNEL); in btc_dpm_init()
2558 if (eg_pi == NULL) in btc_dpm_init()
2560 rdev->pm.dpm.priv = eg_pi; in btc_dpm_init()
2561 pi = &eg_pi->rv7xx; in btc_dpm_init()
2565 eg_pi->ulv.supported = false; in btc_dpm_init()
2567 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()