Home
last modified time | relevance | path

Searched refs:pll_req (Results 1 – 7 of 7) sorted by relevance

/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/
H A Ddcn30_clk_mgr.c175 struct fixed31_32 pll_req; in dcn30_get_vco_frequency_from_reg() local
183 pll_req = dc_fixpt_from_int(pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_int); in dcn30_get_vco_frequency_from_reg()
184 pll_req.value |= pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_frac; in dcn30_get_vco_frequency_from_reg()
187 pll_req = dc_fixpt_mul_int(pll_req, clk_mgr->dfs_ref_freq_khz); in dcn30_get_vco_frequency_from_reg()
189 return dc_fixpt_floor(pll_req); in dcn30_get_vco_frequency_from_reg()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/
H A Ddcn20_clk_mgr.c537 struct fixed31_32 pll_req; in dcn20_clk_mgr_construct() local
567 pll_req = dc_fixpt_from_int(pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_int); in dcn20_clk_mgr_construct()
568 pll_req.value |= pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_frac; in dcn20_clk_mgr_construct()
571 pll_req = dc_fixpt_mul_int(pll_req, 100000); in dcn20_clk_mgr_construct()
574 clk_mgr->base.dentist_vco_freq_khz = dc_fixpt_floor(pll_req); in dcn20_clk_mgr_construct()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/
H A Dvg_clk_mgr.c188 struct fixed31_32 pll_req; in get_vco_frequency_from_reg() local
201 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
207 pll_req.value |= fbmult_frac_val << 16; in get_vco_frequency_from_reg()
210 pll_req = dc_fixpt_mul_int(pll_req, clk_mgr->dfs_ref_freq_khz); in get_vco_frequency_from_reg()
213 return dc_fixpt_floor(pll_req); in get_vco_frequency_from_reg()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
H A Drn_clk_mgr.c256 struct fixed31_32 pll_req; in get_vco_frequency_from_reg() local
269 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
275 pll_req.value |= fbmult_frac_val << 16; in get_vco_frequency_from_reg()
278 pll_req = dc_fixpt_mul_int(pll_req, clk_mgr->dfs_ref_freq_khz); in get_vco_frequency_from_reg()
281 return dc_fixpt_floor(pll_req); in get_vco_frequency_from_reg()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/
H A Ddcn31_clk_mgr.c262 struct fixed31_32 pll_req; in get_vco_frequency_from_reg() local
274 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
280 pll_req.value |= fbmult_frac_val << 16; in get_vco_frequency_from_reg()
283 pll_req = dc_fixpt_mul_int(pll_req, clk_mgr->dfs_ref_freq_khz); in get_vco_frequency_from_reg()
286 return dc_fixpt_floor(pll_req); in get_vco_frequency_from_reg()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/
H A Ddcn314_clk_mgr.c290 struct fixed31_32 pll_req; in get_vco_frequency_from_reg() local
302 pll_req = dc_fixpt_from_int(fbmult_int_val); in get_vco_frequency_from_reg()
308 pll_req.value |= fbmult_frac_val << 16; in get_vco_frequency_from_reg()
311 pll_req = dc_fixpt_mul_int(pll_req, clk_mgr->dfs_ref_freq_khz); in get_vco_frequency_from_reg()
314 return dc_fixpt_floor(pll_req); in get_vco_frequency_from_reg()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/
H A Ddcn32_clk_mgr.c662 struct fixed31_32 pll_req; in dcn32_get_vco_frequency_from_reg() local
675 pll_req = dc_fixpt_from_int(pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_int); in dcn32_get_vco_frequency_from_reg()
676 pll_req.value |= pll_req_reg & clk_mgr->clk_mgr_mask->FbMult_frac; in dcn32_get_vco_frequency_from_reg()
679 pll_req = dc_fixpt_mul_int(pll_req, clk_mgr->dfs_ref_freq_khz); in dcn32_get_vco_frequency_from_reg()
681 return dc_fixpt_floor(pll_req); in dcn32_get_vco_frequency_from_reg()