Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_atombios.c982 struct atom_mpll_param *mpll_param) in amdgpu_atombios_get_memory_pll_dividers() argument
989 memset(mpll_param, 0, sizeof(struct atom_mpll_param)); in amdgpu_atombios_get_memory_pll_dividers()
1006 mpll_param->clkfrac = le16_to_cpu(args.ulFbDiv.usFbDivFrac); in amdgpu_atombios_get_memory_pll_dividers()
1007 mpll_param->clkf = le16_to_cpu(args.ulFbDiv.usFbDiv); in amdgpu_atombios_get_memory_pll_dividers()
1008 mpll_param->post_div = args.ucPostDiv; in amdgpu_atombios_get_memory_pll_dividers()
1009 mpll_param->dll_speed = args.ucDllSpeed; in amdgpu_atombios_get_memory_pll_dividers()
1010 mpll_param->bwcntl = args.ucBWCntl; in amdgpu_atombios_get_memory_pll_dividers()
1011 mpll_param->vco_mode = in amdgpu_atombios_get_memory_pll_dividers()
1013 mpll_param->yclk_sel = in amdgpu_atombios_get_memory_pll_dividers()
1015 mpll_param->qdr = in amdgpu_atombios_get_memory_pll_dividers()
[all …]
Damdgpu_atombios.h160 struct atom_mpll_param *mpll_param);
Dci_dpm.c2904 struct atom_mpll_param mpll_param; in ci_calculate_mclk_params() local
2907 ret = amdgpu_atombios_get_memory_pll_dividers(adev, memory_clock, strobe_mode, &mpll_param); in ci_calculate_mclk_params()
2912 mpll_func_cntl |= (mpll_param.bwcntl << MPLL_FUNC_CNTL__BWCTRL__SHIFT); in ci_calculate_mclk_params()
2916 mpll_func_cntl_1 |= (mpll_param.clkf) << MPLL_FUNC_CNTL_1__CLKF__SHIFT | in ci_calculate_mclk_params()
2917 (mpll_param.clkfrac << MPLL_FUNC_CNTL_1__CLKFRAC__SHIFT) | in ci_calculate_mclk_params()
2918 (mpll_param.vco_mode << MPLL_FUNC_CNTL_1__VCO_MODE__SHIFT); in ci_calculate_mclk_params()
2921 mpll_ad_func_cntl |= (mpll_param.post_div << MPLL_AD_FUNC_CNTL__YCLK_POST_DIV__SHIFT); in ci_calculate_mclk_params()
2926 mpll_dq_func_cntl |= (mpll_param.yclk_sel << MPLL_DQ_FUNC_CNTL__YCLK_SEL__SHIFT) | in ci_calculate_mclk_params()
2927 (mpll_param.post_div << MPLL_AD_FUNC_CNTL__YCLK_POST_DIV__SHIFT); in ci_calculate_mclk_params()
2936 if (mpll_param.qdr == 1) in ci_calculate_mclk_params()
[all …]
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_atombios.c2944 struct atom_mpll_param *mpll_param) in radeon_atom_get_memory_pll_dividers() argument
2951 memset(mpll_param, 0, sizeof(struct atom_mpll_param)); in radeon_atom_get_memory_pll_dividers()
2968 mpll_param->clkfrac = le16_to_cpu(args.ulFbDiv.usFbDivFrac); in radeon_atom_get_memory_pll_dividers()
2969 mpll_param->clkf = le16_to_cpu(args.ulFbDiv.usFbDiv); in radeon_atom_get_memory_pll_dividers()
2970 mpll_param->post_div = args.ucPostDiv; in radeon_atom_get_memory_pll_dividers()
2971 mpll_param->dll_speed = args.ucDllSpeed; in radeon_atom_get_memory_pll_dividers()
2972 mpll_param->bwcntl = args.ucBWCntl; in radeon_atom_get_memory_pll_dividers()
2973 mpll_param->vco_mode = in radeon_atom_get_memory_pll_dividers()
2975 mpll_param->yclk_sel = in radeon_atom_get_memory_pll_dividers()
2977 mpll_param->qdr = in radeon_atom_get_memory_pll_dividers()
[all …]
Dci_dpm.c2774 struct atom_mpll_param mpll_param; in ci_calculate_mclk_params() local
2777 ret = radeon_atom_get_memory_pll_dividers(rdev, memory_clock, strobe_mode, &mpll_param); in ci_calculate_mclk_params()
2782 mpll_func_cntl |= BWCTRL(mpll_param.bwcntl); in ci_calculate_mclk_params()
2785 mpll_func_cntl_1 |= CLKF(mpll_param.clkf) | in ci_calculate_mclk_params()
2786 CLKFRAC(mpll_param.clkfrac) | VCO_MODE(mpll_param.vco_mode); in ci_calculate_mclk_params()
2789 mpll_ad_func_cntl |= YCLK_POST_DIV(mpll_param.post_div); in ci_calculate_mclk_params()
2793 mpll_dq_func_cntl |= YCLK_SEL(mpll_param.yclk_sel) | in ci_calculate_mclk_params()
2794 YCLK_POST_DIV(mpll_param.post_div); in ci_calculate_mclk_params()
2803 if (mpll_param.qdr == 1) in ci_calculate_mclk_params()
2804 freq_nom = memory_clock * 4 * (1 << mpll_param.post_div); in ci_calculate_mclk_params()
[all …]
Dsi_dpm.c4903 struct atom_mpll_param mpll_param; in si_populate_mclk_value() local
4906 ret = radeon_atom_get_memory_pll_dividers(rdev, memory_clock, strobe_mode, &mpll_param); in si_populate_mclk_value()
4911 mpll_func_cntl |= BWCTRL(mpll_param.bwcntl); in si_populate_mclk_value()
4914 mpll_func_cntl_1 |= CLKF(mpll_param.clkf) | in si_populate_mclk_value()
4915 CLKFRAC(mpll_param.clkfrac) | VCO_MODE(mpll_param.vco_mode); in si_populate_mclk_value()
4918 mpll_ad_func_cntl |= YCLK_POST_DIV(mpll_param.post_div); in si_populate_mclk_value()
4922 mpll_dq_func_cntl |= YCLK_SEL(mpll_param.yclk_sel) | in si_populate_mclk_value()
4923 YCLK_POST_DIV(mpll_param.post_div); in si_populate_mclk_value()
4953 mclk_pwrmgt_cntl |= DLL_SPEED(mpll_param.dll_speed); in si_populate_mclk_value()
Dradeon.h293 struct atom_mpll_param *mpll_param);