/linux/drivers/gpu/drm/vc4/ |
A D | vc4_hdmi_phy.c | 167 while (vco_freq < 3000000000ULL) { in phy_get_vco_freq() 172 if (vco_freq > 4500000000ULL) in phy_get_vco_freq() 178 return vco_freq; in phy_get_vco_freq() 183 if (vco_freq < 3700000000ULL) in phy_get_cp_current() 195 offset = vco_freq * 2; in phy_get_rm_offset() 205 if (vco_freq < 3350000000ULL) in phy_get_vco_gain() 208 if (vco_freq < 3700000000ULL) in phy_get_vco_gain() 211 if (vco_freq < 4050000000ULL) in phy_get_vco_gain() 214 if (vco_freq < 4800000000ULL) in phy_get_vco_gain() 217 if (vco_freq < 5200000000ULL) in phy_get_vco_gain() [all …]
|
/linux/drivers/clk/ |
A D | clk-plldig.c | 62 unsigned int vco_freq; member 125 return DIV_ROUND_UP(data->vco_freq, rfdphi1); in plldig_recalc_rate() 133 div = DIV_ROUND_CLOSEST(vco_freq, target_rate); in plldig_calc_target_div() 147 req->rate = DIV_ROUND_UP(data->vco_freq, div); in plldig_determine_rate() 200 if (data->vco_freq) { in plldig_init() 201 mfd = data->vco_freq / parent_rate; in plldig_init() 202 lltmp = data->vco_freq % parent_rate; in plldig_init() 208 data->vco_freq = parent_rate * mfd; in plldig_init() 262 &data->vco_freq)) { in plldig_clk_probe() 263 if (data->vco_freq < PLLDIG_MIN_VCO_FREQ || in plldig_clk_probe() [all …]
|
A D | clk-highbank.c | 97 unsigned long divf, divq, vco_freq, reg; in clk_pll_recalc_rate() local 105 vco_freq = parent_rate * (divf + 1); in clk_pll_recalc_rate() 107 return vco_freq / (1 << divq); in clk_pll_recalc_rate() 114 unsigned long vco_freq; in clk_pll_calc() local 126 vco_freq = rate * (1 << divq); in clk_pll_calc() 127 divf = (vco_freq + (ref_freq / 2)) / ref_freq; in clk_pll_calc()
|
/linux/drivers/clk/socfpga/ |
A D | clk-pll-s10.c | 66 unsigned long long vco_freq; in agilex_clk_pll_recalc_rate() local 72 vco_freq = (unsigned long long)parent_rate / arefdiv; in agilex_clk_pll_recalc_rate() 78 vco_freq = (unsigned long long)vco_freq * mdiv; in agilex_clk_pll_recalc_rate() 79 return (unsigned long)vco_freq; in agilex_clk_pll_recalc_rate() 89 unsigned long long vco_freq; in clk_pll_recalc_rate() local 95 vco_freq = parent_rate; in clk_pll_recalc_rate() 96 do_div(vco_freq, refdiv); in clk_pll_recalc_rate() 101 vco_freq = (unsigned long long)vco_freq * (mdiv + 6); in clk_pll_recalc_rate() 103 return (unsigned long)vco_freq; in clk_pll_recalc_rate()
|
A D | clk-pll-a10.c | 39 unsigned long long vco_freq; in clk_pll_recalc_rate() local 45 vco_freq = (unsigned long long)parent_rate * (divf + 1); in clk_pll_recalc_rate() 46 do_div(vco_freq, (1 + divq)); in clk_pll_recalc_rate() 47 return (unsigned long)vco_freq; in clk_pll_recalc_rate()
|
A D | clk-pll.c | 43 unsigned long long vco_freq; in clk_pll_recalc_rate() local 53 vco_freq = (unsigned long long)parent_rate * (divf + 1); in clk_pll_recalc_rate() 54 do_div(vco_freq, (1 + divq)); in clk_pll_recalc_rate() 55 return (unsigned long)vco_freq; in clk_pll_recalc_rate()
|
/linux/drivers/gpu/drm/radeon/ |
A D | radeon_uvd.c | 919 static unsigned radeon_uvd_calc_upll_post_div(unsigned vco_freq, in radeon_uvd_calc_upll_post_div() argument 924 unsigned post_div = vco_freq / target_freq; in radeon_uvd_calc_upll_post_div() 931 if ((vco_freq / post_div) > target_freq) in radeon_uvd_calc_upll_post_div() 971 unsigned vco_freq, ref_freq = rdev->clock.spll.reference_freq; in radeon_uvd_calc_upll_dividers() local 978 for (vco_freq = vco_min; vco_freq <= vco_max; vco_freq += 100) { in radeon_uvd_calc_upll_dividers() 980 uint64_t fb_div = (uint64_t)vco_freq * fb_factor; in radeon_uvd_calc_upll_dividers() 992 vclk_div = radeon_uvd_calc_upll_post_div(vco_freq, vclk, in radeon_uvd_calc_upll_dividers() 998 dclk_div = radeon_uvd_calc_upll_post_div(vco_freq, dclk, in radeon_uvd_calc_upll_dividers() 1004 score = vclk - (vco_freq / vclk_div) + dclk - (vco_freq / dclk_div); in radeon_uvd_calc_upll_dividers()
|
A D | rv6xx_dpm.c | 537 u32 fb_divider = vco_freq / ref_freq; in rv6xx_calculate_spread_spectrum_clk_v() 555 u32 vco_freq, clk_v, clk_s; in rv6xx_program_engine_spread_spectrum() local 565 ASIC_INTERNAL_ENGINE_SS, vco_freq)) { in rv6xx_program_engine_spread_spectrum() 634 u32 *vco_freq) in rv6xx_find_memory_clock_with_highest_vco() argument 645 if (vco_freq_temp > *vco_freq) { in rv6xx_find_memory_clock_with_highest_vco() 647 *vco_freq = vco_freq_temp; in rv6xx_find_memory_clock_with_highest_vco() 658 u32 vco_freq = 0, clk_v, clk_s; in rv6xx_program_mclk_spread_spectrum_parameters() local 667 &vco_freq); in rv6xx_program_mclk_spread_spectrum_parameters() 673 &vco_freq); in rv6xx_program_mclk_spread_spectrum_parameters() 679 &vco_freq); in rv6xx_program_mclk_spread_spectrum_parameters() [all …]
|
A D | rv740_dpm.c | 159 u32 vco_freq = engine_clock * dividers.post_div; in rv740_populate_sclk_value() local 162 ASIC_INTERNAL_ENGINE_SS, vco_freq)) { in rv740_populate_sclk_value() 246 u32 vco_freq = memory_clock * dividers.post_div; in rv740_populate_mclk_value() local 249 ASIC_INTERNAL_MEMORY_SS, vco_freq)) { in rv740_populate_mclk_value()
|
A D | rv730_dpm.c | 90 u32 vco_freq = engine_clock * post_divider; in rv730_populate_sclk_value() local 93 ASIC_INTERNAL_ENGINE_SS, vco_freq)) { in rv730_populate_sclk_value() 165 u32 vco_freq = memory_clock * post_divider; in rv730_populate_mclk_value() local 168 ASIC_INTERNAL_MEMORY_SS, vco_freq)) { in rv730_populate_mclk_value()
|
A D | radeon_atombios.c | 1117 rdev->clock.vco_freq = in radeon_atombios_get_dentist_vco_freq() 1274 rdev->clock.vco_freq = in radeon_atom_get_clock_info() 1277 rdev->clock.vco_freq = rdev->clock.current_dispclk; in radeon_atom_get_clock_info() 1281 rdev->clock.vco_freq = rdev->clock.current_dispclk; in radeon_atom_get_clock_info() 1283 if (rdev->clock.vco_freq == 0) in radeon_atom_get_clock_info() 1284 rdev->clock.vco_freq = 360000; /* 3.6 GHz */ in radeon_atom_get_clock_info()
|
A D | radeon_audio.c | 687 radeon_audio_set_dto(encoder, rdev->clock.vco_freq * 10); in radeon_audio_dp_mode_set()
|
A D | ni_dpm.c | 2042 u32 vco_freq = engine_clock * dividers.post_div; in ni_calculate_sclk_params() local 2045 ASIC_INTERNAL_ENGINE_SS, vco_freq)) { in ni_calculate_sclk_params() 2238 u32 vco_freq = memory_clock * dividers.post_div; in ni_populate_mclk_value() local 2241 ASIC_INTERNAL_MEMORY_SS, vco_freq)) { in ni_populate_mclk_value()
|
A D | cypress_dpm.c | 554 u32 vco_freq = memory_clock * dividers.post_div; in cypress_populate_mclk_value() local 557 ASIC_INTERNAL_MEMORY_SS, vco_freq)) { in cypress_populate_mclk_value()
|
A D | rv770_dpm.c | 541 u32 vco_freq = engine_clock * post_divider; in rv770_populate_sclk_value() local 544 ASIC_INTERNAL_ENGINE_SS, vco_freq)) { in rv770_populate_sclk_value()
|
/linux/drivers/gpu/drm/msm/hdmi/ |
A D | hdmi_phy_8996.c | 74 u64 vco_freq; member 171 u64 vco_freq[60]; in pll_get_post_div() local 187 vco_freq[vco_freq_index++] = vco; in pll_get_post_div() 192 u64 vco_tmp = vco_freq[i]; in pll_get_post_div() 207 pd->vco_freq = vco_optimal; in pll_get_post_div() 248 dec_start = pd.vco_freq; in pll_calculate() 252 frac_start = pd.vco_freq * (1 << 20); in pll_calculate() 265 fdata = pd.vco_freq; in pll_calculate() 270 DBG("VCO freq: %llu", pd.vco_freq); in pll_calculate()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | si.c | 1671 static unsigned si_uvd_calc_upll_post_div(unsigned vco_freq, in si_uvd_calc_upll_post_div() argument 1676 unsigned post_div = vco_freq / target_freq; in si_uvd_calc_upll_post_div() 1683 if ((vco_freq / post_div) > target_freq) in si_uvd_calc_upll_post_div() 1723 unsigned vco_freq, ref_freq = adev->clock.spll.reference_freq; in si_calc_upll_dividers() local 1730 for (vco_freq = vco_min; vco_freq <= vco_max; vco_freq += 100) { in si_calc_upll_dividers() 1731 uint64_t fb_div = (uint64_t)vco_freq * fb_factor; in si_calc_upll_dividers() 1743 vclk_div = si_uvd_calc_upll_post_div(vco_freq, vclk, in si_calc_upll_dividers() 1749 dclk_div = si_uvd_calc_upll_post_div(vco_freq, dclk, in si_calc_upll_dividers() 1755 score = vclk - (vco_freq / vclk_div) + dclk - (vco_freq / dclk_div); in si_calc_upll_dividers()
|
/linux/drivers/media/dvb-frontends/ |
A D | stv6110.c | 252 u32 divider, ref, p, presc, i, result_freq, vco_freq; in stv6110_set_frequency() local 329 vco_freq = divider * ((priv->mclk / 1000) / ((1 << (r_div_opt + 1)))); in stv6110_set_frequency() 331 ret, result_freq, vco_freq); in stv6110_set_frequency()
|
/linux/drivers/iio/frequency/ |
A D | ad9523.c | 276 unsigned long vco_freq; member 864 st->vco_freq = div_u64((unsigned long long)pdata->vcxo_freq * in ad9523_setup() 887 st->vco_freq / pdata->pll2_vco_div_m1; in ad9523_setup() 891 st->vco_freq / pdata->pll2_vco_div_m2; in ad9523_setup()
|
/linux/drivers/gpu/drm/amd/display/dc/inc/ |
A D | clock_source.h | 110 uint32_t vco_freq; member
|
/linux/drivers/media/tuners/ |
A D | r820t.c | 521 u32 vco_freq; in r820t_set_pll() local 612 vco_freq = freq * mix_div; in r820t_set_pll() 613 nint = vco_freq / (2 * pll_ref); in r820t_set_pll() 614 vco_fra = vco_freq - 2 * pll_ref * nint; in r820t_set_pll()
|
/linux/drivers/net/wireless/broadcom/b43/ |
A D | phy_lp.c | 2484 u32 freqref, vco_freq, val1, val2, val3, timeout, timeoutref, count; in lpphy_b2063_tune() local 2516 vco_freq = chandata->freq << 1; in lpphy_b2063_tune() 2518 vco_freq = chandata->freq << 2; in lpphy_b2063_tune() 2523 val3 = lpphy_qdiv_roundup(vco_freq, 3, 16); in lpphy_b2063_tune()
|
/linux/drivers/gpu/drm/amd/display/dc/dce/ |
A D | dce_clock_source.c | 242 pll_settings->vco_freq = in calc_fb_divider_checking_tolerance()
|
/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
A D | fiji_smumgr.c | 902 uint32_t vco_freq = clock * dividers.uc_pll_post_div; in fiji_calculate_sclk_params() local 904 vco_freq, &ssInfo)) { in fiji_calculate_sclk_params()
|
A D | ci_smumgr.c | 342 uint32_t vco_freq = clock * dividers.uc_pll_post_div; in ci_calculate_sclk_params() local 345 vco_freq, &ss_info)) { in ci_calculate_sclk_params()
|