Home
last modified time | relevance | path

Searched refs:clk_mgr_dce (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_clk_mgr.c39 (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/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/
H A Ddce_clk_mgr.c114 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 …]
H A Ddce_clk_mgr.h33 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/drivers/gpu/drm/amd/display/dc/clk_mgr/dce120/
H A Ddce120_clk_mgr.c56 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/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/
H A Ddce112_clk_mgr.c72 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()
115 if (clk_mgr_dce->dfs_bypass_disp_clk != actual_clock) in dce112_set_clock()
120 clk_mgr_dce->dfs_bypass_disp_clk = actual_clock; in dce112_set_clock()
195 struct clk_mgr_internal *clk_mgr_dce = TO_CLK_MGR_INTERNAL(clk_mgr_base); in dce112_update_clocks() local
200 if (!clk_mgr_dce->dfs_bypass_active) in dce112_update_clocks()
205 if ((level_change_req.power_level < clk_mgr_dce->cur_min_clks_state && safe_to_lower) in dce112_update_clocks()
206 || level_change_req.power_level > clk_mgr_dce->cur_min_clks_state) { in dce112_update_clocks()
208 clk_mgr_dce->cur_min_clks_state = level_change_req.power_level; in dce112_update_clocks()
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dce60/
H A Ddce60_clk_mgr.c124 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()
H A Ddce60_clk_mgr.h34 struct clk_mgr_internal *clk_mgr_dce);
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/
H A Ddce110_clk_mgr.c253 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()