Lines Matching refs:vco_freq
533 static inline u32 rv6xx_calculate_spread_spectrum_clk_v(u32 vco_freq, u32 ref_freq, in rv6xx_calculate_spread_spectrum_clk_v() argument
537 u32 fb_divider = vco_freq / ref_freq; in rv6xx_calculate_spread_spectrum_clk_v()
540 (5375 * ((vco_freq * 10) / (4096 >> fb_divider_scale)))); in rv6xx_calculate_spread_spectrum_clk_v()
555 u32 vco_freq, clk_v, clk_s; in rv6xx_program_engine_spread_spectrum() local
561 vco_freq = rv6xx_calculate_vco_frequency(ref_clk, ÷rs, in rv6xx_program_engine_spread_spectrum()
565 ASIC_INTERNAL_ENGINE_SS, vco_freq)) { in rv6xx_program_engine_spread_spectrum()
566 clk_v = rv6xx_calculate_spread_spectrum_clk_v(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()
681 if (vco_freq) { in rv6xx_program_mclk_spread_spectrum_parameters()
683 ASIC_INTERNAL_MEMORY_SS, vco_freq)) { in rv6xx_program_mclk_spread_spectrum_parameters()
684 clk_v = rv6xx_calculate_spread_spectrum_clk_v(vco_freq, in rv6xx_program_mclk_spread_spectrum_parameters()