Lines Matching refs:mclk
799 u32 sclk, mclk; in ci_apply_state_adjust_rules() local
828 if (ps->performance_levels[i].mclk > max_limits->mclk) in ci_apply_state_adjust_rules()
829 ps->performance_levels[i].mclk = max_limits->mclk; in ci_apply_state_adjust_rules()
838 mclk = ps->performance_levels[ps->performance_level_count - 1].mclk; in ci_apply_state_adjust_rules()
841 mclk = ps->performance_levels[0].mclk; in ci_apply_state_adjust_rules()
848 if (mclk < rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].mclk) in ci_apply_state_adjust_rules()
849 mclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].mclk; in ci_apply_state_adjust_rules()
853 ps->performance_levels[0].mclk = mclk; in ci_apply_state_adjust_rules()
859 if (ps->performance_levels[0].mclk < ps->performance_levels[1].mclk) in ci_apply_state_adjust_rules()
860 ps->performance_levels[0].mclk = ps->performance_levels[1].mclk; in ci_apply_state_adjust_rules()
862 if (ps->performance_levels[1].mclk < ps->performance_levels[0].mclk) in ci_apply_state_adjust_rules()
863 ps->performance_levels[1].mclk = ps->performance_levels[0].mclk; in ci_apply_state_adjust_rules()
2283 static int ci_populate_mvdd_value(struct radeon_device *rdev, u32 mclk, in ci_populate_mvdd_value() argument
2291 if (mclk <= rdev->pm.dpm.dyn_state.mvdd_dependency_on_mclk.entries[i].clk) { in ci_populate_mvdd_value()
2374 u32 mclk, in ci_populate_phase_value_based_on_mclk() argument
2382 if (mclk < limits->entries[i].mclk) { in ci_populate_phase_value_based_on_mclk()
2500 u32 mclk, in ci_populate_memory_timing_parameters() argument
2507 radeon_atom_set_engine_dram_timings(rdev, sclk, mclk); in ci_populate_memory_timing_parameters()
2513 ci_register_patching_mc_arb(rdev, sclk, mclk, &dram_timing2); in ci_populate_memory_timing_parameters()
2579 boot_state->performance_levels[0].mclk) { in ci_populate_smc_initial_state()
2766 SMU7_Discrete_MemoryLevel *mclk, in ci_calculate_mclk_params() argument
2837 mclk->MclkFrequency = memory_clock; in ci_calculate_mclk_params()
2838 mclk->MpllFuncCntl = mpll_func_cntl; in ci_calculate_mclk_params()
2839 mclk->MpllFuncCntl_1 = mpll_func_cntl_1; in ci_calculate_mclk_params()
2840 mclk->MpllFuncCntl_2 = mpll_func_cntl_2; in ci_calculate_mclk_params()
2841 mclk->MpllAdFuncCntl = mpll_ad_func_cntl; in ci_calculate_mclk_params()
2842 mclk->MpllDqFuncCntl = mpll_dq_func_cntl; in ci_calculate_mclk_params()
2843 mclk->MclkPwrmgtCntl = mclk_pwrmgt_cntl; in ci_calculate_mclk_params()
2844 mclk->DllCntl = dll_cntl; in ci_calculate_mclk_params()
2845 mclk->MpllSs1 = mpll_ss1; in ci_calculate_mclk_params()
2846 mclk->MpllSs2 = mpll_ss2; in ci_calculate_mclk_params()
3747 state->performance_levels[0].mclk, in ci_trim_dpm_states()
3748 state->performance_levels[high_limit_count].mclk); in ci_trim_dpm_states()
3839 u32 mclk = state->performance_levels[state->performance_level_count-1].mclk; in ci_find_dpm_states_clocks_in_dpm_table() local
3858 if (mclk == mclk_table->dpm_levels[i].value) in ci_find_dpm_states_clocks_in_dpm_table()
3876 u32 mclk = state->performance_levels[state->performance_level_count-1].mclk; in ci_populate_and_upload_sclk_mclk_dpm_levels() local
3887 dpm_table->mclk_table.dpm_levels[dpm_table->mclk_table.count-1].value = mclk; in ci_populate_and_upload_sclk_mclk_dpm_levels()
4921 rdev->pm.dpm.dyn_state.max_clock_voltage_on_ac.mclk = in ci_set_private_data_variables_based_on_pptable()
5457 pl->mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); in ci_parse_pplib_clock_info()
5458 pl->mclk |= clock_info->ci.ucMemoryClockHigh << 16; in ci_parse_pplib_clock_info()
5480 pl->mclk = pi->vbios_boot_state.mclk_bootup_value; in ci_parse_pplib_clock_info()
5589 u32 sclk, mclk; in ci_parse_power_table() local
5595 mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); in ci_parse_power_table()
5596 mclk |= clock_info->ci.ucMemoryClockHigh << 16; in ci_parse_power_table()
5598 rdev->pm.dpm.vce_states[i].mclk = mclk; in ci_parse_power_table()
5889 (rdev->pm.dpm.dyn_state.max_clock_voltage_on_dc.mclk == 0)) in ci_dpm_init()
5904 u32 mclk = ci_get_average_mclk_freq(rdev); in ci_dpm_debugfs_print_current_performance_level() local
5909 sclk, mclk); in ci_dpm_debugfs_print_current_performance_level()
5925 i, pl->sclk, pl->mclk, pl->pcie_gen + 1, pl->pcie_lane); in ci_dpm_print_power_state()
5939 u32 mclk = ci_get_average_mclk_freq(rdev); in ci_dpm_get_current_mclk() local
5941 return mclk; in ci_dpm_get_current_mclk()
5961 return requested_state->performance_levels[0].mclk; in ci_dpm_get_mclk()
5963 return requested_state->performance_levels[requested_state->performance_level_count - 1].mclk; in ci_dpm_get_mclk()