Searched refs:clk_mgr_dce (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_clk_mgr.c | 39 (clk_mgr_dce->regs->reg) 43 clk_mgr_dce->clk_mgr_shift->field_name, clk_mgr_dce->clk_mgr_mask->field_name 46 clk_mgr_dce->base.ctx 133 static int clk_mgr_adjust_dp_ref_freq_for_ss(struct dce_clk_mgr *clk_mgr_dce, int dp_ref_clk_khz) in clk_mgr_adjust_dp_ref_freq_for_ss() argument 135 if (clk_mgr_dce->ss_on_dprefclk && clk_mgr_dce->dprefclk_ss_divider != 0) { in clk_mgr_adjust_dp_ref_freq_for_ss() 137 dc_fixpt_from_fraction(clk_mgr_dce->dprefclk_ss_percentage, in clk_mgr_adjust_dp_ref_freq_for_ss() 138 clk_mgr_dce->dprefclk_ss_divider), 200); in clk_mgr_adjust_dp_ref_freq_for_ss() 150 struct dce_clk_mgr *clk_mgr_dce = TO_DCE_CLK_MGR(clk_mgr); in dce_get_dp_ref_freq_khz() local 169 * clk_mgr_dce->dentist_vco_freq_khz) / target_div; in dce_get_dp_ref_freq_khz() 171 return clk_mgr_adjust_dp_ref_freq_for_ss(clk_mgr_dce, dp_ref_clk_khz); in dce_get_dp_ref_freq_khz() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/ |
D | dce_clk_mgr.c | 114 int dce_adjust_dp_ref_freq_for_ss(struct clk_mgr_internal *clk_mgr_dce, int dp_ref_clk_khz) in dce_adjust_dp_ref_freq_for_ss() argument 116 if (clk_mgr_dce->ss_on_dprefclk && clk_mgr_dce->dprefclk_ss_divider != 0) { in dce_adjust_dp_ref_freq_for_ss() 118 dc_fixpt_from_fraction(clk_mgr_dce->dprefclk_ss_percentage, in dce_adjust_dp_ref_freq_for_ss() 119 clk_mgr_dce->dprefclk_ss_divider), 200); in dce_adjust_dp_ref_freq_for_ss() 157 struct clk_mgr_internal *clk_mgr_dce = TO_CLK_MGR_INTERNAL(clk_mgr_base); in dce12_get_dp_ref_freq_khz() local 159 return dce_adjust_dp_ref_freq_for_ss(clk_mgr_dce, clk_mgr_base->dprefclk_khz); in dce12_get_dp_ref_freq_khz() 198 struct clk_mgr_internal *clk_mgr_dce = TO_CLK_MGR_INTERNAL(clk_mgr_base); in dce_get_required_clocks_state() local 207 for (i = clk_mgr_dce->max_clks_state; i >= DM_PP_CLOCKS_STATE_ULTRA_LOW; i--) in dce_get_required_clocks_state() 209 clk_mgr_dce->max_clks_by_state[i].display_clk_khz in dce_get_required_clocks_state() 211 clk_mgr_dce->max_clks_by_state[i].pixel_clk_khz) in dce_get_required_clocks_state() [all …]
|
D | dce_clk_mgr.h | 33 int dce_adjust_dp_ref_freq_for_ss(struct clk_mgr_internal *clk_mgr_dce, int dp_ref_clk_khz); 44 struct clk_mgr_internal *clk_mgr_dce);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/ |
D | dce120_clk_mgr.c | 56 static void dce121_clock_patch_xgmi_ss_info(struct clk_mgr_internal *clk_mgr_dce) in dce121_clock_patch_xgmi_ss_info() argument 60 struct dc_bios *bp = clk_mgr_dce->base.ctx->dc_bios; in dce121_clock_patch_xgmi_ss_info() 62 clk_mgr_dce->xgmi_enabled = false; in dce121_clock_patch_xgmi_ss_info() 67 clk_mgr_dce->xgmi_enabled = true; in dce121_clock_patch_xgmi_ss_info() 68 clk_mgr_dce->ss_on_dprefclk = true; in dce121_clock_patch_xgmi_ss_info() 69 clk_mgr_dce->dprefclk_ss_divider = in dce121_clock_patch_xgmi_ss_info() 78 clk_mgr_dce->dprefclk_ss_percentage = in dce121_clock_patch_xgmi_ss_info() 88 struct clk_mgr_internal *clk_mgr_dce = TO_CLK_MGR_INTERNAL(clk_mgr_base); in dce12_update_clocks() local 94 if (!clk_mgr_dce->dfs_bypass_active) in dce12_update_clocks() 103 if (clk_mgr_dce->xgmi_enabled) in dce12_update_clocks() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/ |
D | dce112_clk_mgr.c | 72 struct clk_mgr_internal *clk_mgr_dce = TO_CLK_MGR_INTERNAL(clk_mgr_base); in dce112_set_clock() local 83 clk_mgr_dce->base.dentist_vco_freq_khz / 62); in dce112_set_clock() 97 clk_mgr_dce->cur_min_clks_state = DM_PP_CLOCKS_STATE_NOMINAL; in dce112_set_clock() 116 if (clk_mgr_dce->dfs_bypass_disp_clk != actual_clock) in dce112_set_clock() 122 clk_mgr_dce->dfs_bypass_disp_clk = actual_clock; in dce112_set_clock() 199 struct clk_mgr_internal *clk_mgr_dce = TO_CLK_MGR_INTERNAL(clk_mgr_base); in dce112_update_clocks() local 204 if (!clk_mgr_dce->dfs_bypass_active) in dce112_update_clocks() 209 if ((level_change_req.power_level < clk_mgr_dce->cur_min_clks_state && safe_to_lower) in dce112_update_clocks() 210 || level_change_req.power_level > clk_mgr_dce->cur_min_clks_state) { in dce112_update_clocks() 212 clk_mgr_dce->cur_min_clks_state = level_change_req.power_level; in dce112_update_clocks()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dce60/ |
D | dce60_clk_mgr.c | 124 struct clk_mgr_internal *clk_mgr_dce = TO_CLK_MGR_INTERNAL(clk_mgr_base); in dce60_update_clocks() local 129 if (!clk_mgr_dce->dfs_bypass_active) in dce60_update_clocks() 134 if ((level_change_req.power_level < clk_mgr_dce->cur_min_clks_state && safe_to_lower) in dce60_update_clocks() 135 || level_change_req.power_level > clk_mgr_dce->cur_min_clks_state) { in dce60_update_clocks() 137 clk_mgr_dce->cur_min_clks_state = level_change_req.power_level; in dce60_update_clocks()
|
D | dce60_clk_mgr.h | 34 struct clk_mgr_internal *clk_mgr_dce);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
D | dce110_clk_mgr.c | 253 struct clk_mgr_internal *clk_mgr_dce = TO_CLK_MGR_INTERNAL(clk_mgr_base); in dce11_update_clocks() local 258 if (!clk_mgr_dce->dfs_bypass_active) in dce11_update_clocks() 263 if ((level_change_req.power_level < clk_mgr_dce->cur_min_clks_state && safe_to_lower) in dce11_update_clocks() 264 || level_change_req.power_level > clk_mgr_dce->cur_min_clks_state) { in dce11_update_clocks() 266 clk_mgr_dce->cur_min_clks_state = level_change_req.power_level; in dce11_update_clocks()
|