Home
last modified time | relevance | path

Searched refs:mpll_param (Results 1 – 13 of 13) sorted by relevance

/Linux-v6.6/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dppatomctrl.c288 pp_atomctrl_memory_clock_param *mpll_param, in atomctrl_get_memory_pll_dividers_si() argument
303 mpll_param->mpll_fb_divider.clk_frac = in atomctrl_get_memory_pll_dividers_si()
305 mpll_param->mpll_fb_divider.cl_kf = in atomctrl_get_memory_pll_dividers_si()
307 mpll_param->mpll_post_divider = in atomctrl_get_memory_pll_dividers_si()
309 mpll_param->vco_mode = in atomctrl_get_memory_pll_dividers_si()
312 mpll_param->yclk_sel = in atomctrl_get_memory_pll_dividers_si()
315 mpll_param->qdr = in atomctrl_get_memory_pll_dividers_si()
318 mpll_param->half_rate = in atomctrl_get_memory_pll_dividers_si()
321 mpll_param->dll_speed = in atomctrl_get_memory_pll_dividers_si()
323 mpll_param->bw_ctrl = in atomctrl_get_memory_pll_dividers_si()
[all …]
Dppatomctrl.h305 …pp_hwmgr *hwmgr, uint32_t clock_value, pp_atomctrl_memory_clock_param *mpll_param, bool strobe_mod…
311 uint32_t clock_value, pp_atomctrl_memory_clock_param *mpll_param);
313 uint32_t clock_value, pp_atomctrl_memory_clock_param_ai *mpll_param);
/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/
Damdgpu_atombios.c1090 struct atom_mpll_param *mpll_param) in amdgpu_atombios_get_memory_pll_dividers() argument
1097 memset(mpll_param, 0, sizeof(struct atom_mpll_param)); in amdgpu_atombios_get_memory_pll_dividers()
1114 mpll_param->clkfrac = le16_to_cpu(args.ulFbDiv.usFbDivFrac); in amdgpu_atombios_get_memory_pll_dividers()
1115 mpll_param->clkf = le16_to_cpu(args.ulFbDiv.usFbDiv); in amdgpu_atombios_get_memory_pll_dividers()
1116 mpll_param->post_div = args.ucPostDiv; in amdgpu_atombios_get_memory_pll_dividers()
1117 mpll_param->dll_speed = args.ucDllSpeed; in amdgpu_atombios_get_memory_pll_dividers()
1118 mpll_param->bwcntl = args.ucBWCntl; in amdgpu_atombios_get_memory_pll_dividers()
1119 mpll_param->vco_mode = in amdgpu_atombios_get_memory_pll_dividers()
1121 mpll_param->yclk_sel = in amdgpu_atombios_get_memory_pll_dividers()
1123 mpll_param->qdr = in amdgpu_atombios_get_memory_pll_dividers()
[all …]
Damdgpu_atombios.h164 struct atom_mpll_param *mpll_param);
/Linux-v6.6/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Diceland_smumgr.c1064 pp_atomctrl_memory_clock_param mpll_param; in iceland_calculate_mclk_params() local
1068 memory_clock, &mpll_param, strobe_mode); in iceland_calculate_mclk_params()
1073 mpll_func_cntl = PHM_SET_FIELD(mpll_func_cntl, MPLL_FUNC_CNTL, BWCTRL, mpll_param.bw_ctrl); in iceland_calculate_mclk_params()
1077 MPLL_FUNC_CNTL_1, CLKF, mpll_param.mpll_fb_divider.cl_kf); in iceland_calculate_mclk_params()
1079 MPLL_FUNC_CNTL_1, CLKFRAC, mpll_param.mpll_fb_divider.clk_frac); in iceland_calculate_mclk_params()
1081 MPLL_FUNC_CNTL_1, VCO_MODE, mpll_param.vco_mode); in iceland_calculate_mclk_params()
1085 MPLL_AD_FUNC_CNTL, YCLK_POST_DIV, mpll_param.mpll_post_divider); in iceland_calculate_mclk_params()
1090 MPLL_DQ_FUNC_CNTL, YCLK_SEL, mpll_param.yclk_sel); in iceland_calculate_mclk_params()
1092 MPLL_DQ_FUNC_CNTL, YCLK_POST_DIV, mpll_param.mpll_post_divider); in iceland_calculate_mclk_params()
1118 if (1 == mpll_param.qdr) in iceland_calculate_mclk_params()
[all …]
Dci_smumgr.c1042 pp_atomctrl_memory_clock_param mpll_param; in ci_calculate_mclk_params() local
1046 memory_clock, &mpll_param, strobe_mode); in ci_calculate_mclk_params()
1050 mpll_func_cntl = PHM_SET_FIELD(mpll_func_cntl, MPLL_FUNC_CNTL, BWCTRL, mpll_param.bw_ctrl); in ci_calculate_mclk_params()
1053 MPLL_FUNC_CNTL_1, CLKF, mpll_param.mpll_fb_divider.cl_kf); in ci_calculate_mclk_params()
1055 MPLL_FUNC_CNTL_1, CLKFRAC, mpll_param.mpll_fb_divider.clk_frac); in ci_calculate_mclk_params()
1057 MPLL_FUNC_CNTL_1, VCO_MODE, mpll_param.vco_mode); in ci_calculate_mclk_params()
1060 MPLL_AD_FUNC_CNTL, YCLK_POST_DIV, mpll_param.mpll_post_divider); in ci_calculate_mclk_params()
1064 MPLL_DQ_FUNC_CNTL, YCLK_SEL, mpll_param.yclk_sel); in ci_calculate_mclk_params()
1066 MPLL_DQ_FUNC_CNTL, YCLK_POST_DIV, mpll_param.mpll_post_divider); in ci_calculate_mclk_params()
1077 if (1 == mpll_param.qdr) in ci_calculate_mclk_params()
[all …]
Dtonga_smumgr.c807 pp_atomctrl_memory_clock_param mpll_param; in tonga_calculate_mclk_params() local
811 memory_clock, &mpll_param, strobe_mode); in tonga_calculate_mclk_params()
819 mpll_param.bw_ctrl); in tonga_calculate_mclk_params()
824 mpll_param.mpll_fb_divider.cl_kf); in tonga_calculate_mclk_params()
827 mpll_param.mpll_fb_divider.clk_frac); in tonga_calculate_mclk_params()
830 mpll_param.vco_mode); in tonga_calculate_mclk_params()
835 mpll_param.mpll_post_divider); in tonga_calculate_mclk_params()
841 mpll_param.yclk_sel); in tonga_calculate_mclk_params()
844 mpll_param.mpll_post_divider); in tonga_calculate_mclk_params()
870 if (1 == mpll_param.qdr) in tonga_calculate_mclk_params()
[all …]
Dvegam_smumgr.c966 struct pp_atomctrl_memory_clock_param_ai mpll_param; in vegam_calculate_mclk_params() local
969 clock, &mpll_param), in vegam_calculate_mclk_params()
973 mem_level->MclkFrequency = (uint32_t)mpll_param.ulClock; in vegam_calculate_mclk_params()
974 mem_level->Fcw_int = (uint16_t)mpll_param.ulMclk_fcw_int; in vegam_calculate_mclk_params()
975 mem_level->Fcw_frac = (uint16_t)mpll_param.ulMclk_fcw_frac; in vegam_calculate_mclk_params()
976 mem_level->Postdiv = (uint8_t)mpll_param.ulPostDiv; in vegam_calculate_mclk_params()
/Linux-v6.6/drivers/gpu/drm/radeon/
Dradeon_atombios.c2952 struct atom_mpll_param *mpll_param) in radeon_atom_get_memory_pll_dividers() argument
2959 memset(mpll_param, 0, sizeof(struct atom_mpll_param)); in radeon_atom_get_memory_pll_dividers()
2976 mpll_param->clkfrac = le16_to_cpu(args.ulFbDiv.usFbDivFrac); in radeon_atom_get_memory_pll_dividers()
2977 mpll_param->clkf = le16_to_cpu(args.ulFbDiv.usFbDiv); in radeon_atom_get_memory_pll_dividers()
2978 mpll_param->post_div = args.ucPostDiv; in radeon_atom_get_memory_pll_dividers()
2979 mpll_param->dll_speed = args.ucDllSpeed; in radeon_atom_get_memory_pll_dividers()
2980 mpll_param->bwcntl = args.ucBWCntl; in radeon_atom_get_memory_pll_dividers()
2981 mpll_param->vco_mode = in radeon_atom_get_memory_pll_dividers()
2983 mpll_param->yclk_sel = in radeon_atom_get_memory_pll_dividers()
2985 mpll_param->qdr = in radeon_atom_get_memory_pll_dividers()
[all …]
Dci_dpm.c2765 struct atom_mpll_param mpll_param; in ci_calculate_mclk_params() local
2768 ret = radeon_atom_get_memory_pll_dividers(rdev, memory_clock, strobe_mode, &mpll_param); in ci_calculate_mclk_params()
2773 mpll_func_cntl |= BWCTRL(mpll_param.bwcntl); in ci_calculate_mclk_params()
2776 mpll_func_cntl_1 |= CLKF(mpll_param.clkf) | in ci_calculate_mclk_params()
2777 CLKFRAC(mpll_param.clkfrac) | VCO_MODE(mpll_param.vco_mode); in ci_calculate_mclk_params()
2780 mpll_ad_func_cntl |= YCLK_POST_DIV(mpll_param.post_div); in ci_calculate_mclk_params()
2784 mpll_dq_func_cntl |= YCLK_SEL(mpll_param.yclk_sel) | in ci_calculate_mclk_params()
2785 YCLK_POST_DIV(mpll_param.post_div); in ci_calculate_mclk_params()
2794 if (mpll_param.qdr == 1) in ci_calculate_mclk_params()
2795 freq_nom = memory_clock * 4 * (1 << mpll_param.post_div); in ci_calculate_mclk_params()
[all …]
Dsi_dpm.c4872 struct atom_mpll_param mpll_param; in si_populate_mclk_value() local
4875 ret = radeon_atom_get_memory_pll_dividers(rdev, memory_clock, strobe_mode, &mpll_param); in si_populate_mclk_value()
4880 mpll_func_cntl |= BWCTRL(mpll_param.bwcntl); in si_populate_mclk_value()
4883 mpll_func_cntl_1 |= CLKF(mpll_param.clkf) | in si_populate_mclk_value()
4884 CLKFRAC(mpll_param.clkfrac) | VCO_MODE(mpll_param.vco_mode); in si_populate_mclk_value()
4887 mpll_ad_func_cntl |= YCLK_POST_DIV(mpll_param.post_div); in si_populate_mclk_value()
4891 mpll_dq_func_cntl |= YCLK_SEL(mpll_param.yclk_sel) | in si_populate_mclk_value()
4892 YCLK_POST_DIV(mpll_param.post_div); in si_populate_mclk_value()
4922 mclk_pwrmgt_cntl |= DLL_SPEED(mpll_param.dll_speed); in si_populate_mclk_value()
Dradeon.h302 struct atom_mpll_param *mpll_param);
/Linux-v6.6/drivers/gpu/drm/amd/pm/legacy-dpm/
Dsi_dpm.c5374 struct atom_mpll_param mpll_param; in si_populate_mclk_value() local
5377 ret = amdgpu_atombios_get_memory_pll_dividers(adev, memory_clock, strobe_mode, &mpll_param); in si_populate_mclk_value()
5382 mpll_func_cntl |= BWCTRL(mpll_param.bwcntl); in si_populate_mclk_value()
5385 mpll_func_cntl_1 |= CLKF(mpll_param.clkf) | in si_populate_mclk_value()
5386 CLKFRAC(mpll_param.clkfrac) | VCO_MODE(mpll_param.vco_mode); in si_populate_mclk_value()
5389 mpll_ad_func_cntl |= YCLK_POST_DIV(mpll_param.post_div); in si_populate_mclk_value()
5393 mpll_dq_func_cntl |= YCLK_SEL(mpll_param.yclk_sel) | in si_populate_mclk_value()
5394 YCLK_POST_DIV(mpll_param.post_div); in si_populate_mclk_value()
5424 mclk_pwrmgt_cntl |= DLL_SPEED(mpll_param.dll_speed); in si_populate_mclk_value()