Lines Matching refs:dividers

142 	struct atom_clock_dividers dividers;  in rv6xx_convert_clock_to_stepping()  local
145 clock, false, &dividers); in rv6xx_convert_clock_to_stepping()
149 if (dividers.enable_post_div) in rv6xx_convert_clock_to_stepping()
150 step->post_divider = 2 + (dividers.post_div & 0xF) + (dividers.post_div >> 4); in rv6xx_convert_clock_to_stepping()
526 struct atom_clock_dividers *dividers, in rv6xx_calculate_vco_frequency() argument
529 return ref_clock * ((dividers->fb_div & ~1) << fb_divider_scale) / in rv6xx_calculate_vco_frequency()
530 (dividers->ref_div + 1); in rv6xx_calculate_vco_frequency()
553 struct atom_clock_dividers dividers; in rv6xx_program_engine_spread_spectrum() local
560 …if (radeon_atom_get_clock_dividers(rdev, COMPUTE_ENGINE_PLL_PARAM, clock, false, &dividers) == 0) { in rv6xx_program_engine_spread_spectrum()
561 vco_freq = rv6xx_calculate_vco_frequency(ref_clk, &dividers, in rv6xx_program_engine_spread_spectrum()
567 (ref_clk / (dividers.ref_div + 1)), in rv6xx_program_engine_spread_spectrum()
573 (ref_clk / (dividers.ref_div + 1))); in rv6xx_program_engine_spread_spectrum()
600 struct atom_clock_dividers dividers; in rv6xx_program_mclk_stepping_entry() local
602 if (radeon_atom_get_clock_dividers(rdev, COMPUTE_MEMORY_PLL_PARAM, clock, false, &dividers)) in rv6xx_program_mclk_stepping_entry()
606 rv6xx_memory_clock_entry_set_reference_divider(rdev, entry, dividers.ref_div); in rv6xx_program_mclk_stepping_entry()
607 rv6xx_memory_clock_entry_set_feedback_divider(rdev, entry, dividers.fb_div); in rv6xx_program_mclk_stepping_entry()
608 rv6xx_memory_clock_entry_set_post_divider(rdev, entry, dividers.post_div); in rv6xx_program_mclk_stepping_entry()
610 if (dividers.enable_post_div) in rv6xx_program_mclk_stepping_entry()
633 struct atom_clock_dividers *dividers, in rv6xx_find_memory_clock_with_highest_vco() argument
646 *dividers = req_dividers; in rv6xx_find_memory_clock_with_highest_vco()
656 struct atom_clock_dividers dividers; in rv6xx_program_mclk_spread_spectrum_parameters() local
666 &dividers, in rv6xx_program_mclk_spread_spectrum_parameters()
672 &dividers, in rv6xx_program_mclk_spread_spectrum_parameters()
678 &dividers, in rv6xx_program_mclk_spread_spectrum_parameters()
685 (ref_clk / (dividers.ref_div + 1)), in rv6xx_program_mclk_spread_spectrum_parameters()
691 (ref_clk / (dividers.ref_div + 1))); in rv6xx_program_mclk_spread_spectrum_parameters()
1935 struct atom_clock_dividers dividers; in rv6xx_dpm_init() local
1958 0, false, &dividers); in rv6xx_dpm_init()
1960 pi->spll_ref_div = dividers.ref_div + 1; in rv6xx_dpm_init()
1965 0, false, &dividers); in rv6xx_dpm_init()
1967 pi->mpll_ref_div = dividers.ref_div + 1; in rv6xx_dpm_init()