Lines Matching refs:dividers
319 struct atom_clock_dividers *dividers, in rv770_calculate_fractional_mpll_feedback_divider() argument
331 post_divider = dividers->post_div; in rv770_calculate_fractional_mpll_feedback_divider()
332 reference_divider = dividers->ref_div; in rv770_calculate_fractional_mpll_feedback_divider()
401 struct atom_clock_dividers dividers; in rv770_populate_mclk_value() local
409 memory_clock, false, ÷rs); in rv770_populate_mclk_value()
413 if ((dividers.ref_div < 1) || (dividers.ref_div > 5)) in rv770_populate_mclk_value()
418 ÷rs, &clkf, &clkfrac); in rv770_populate_mclk_value()
420 ret = rv770_encode_yclk_post_div(dividers.post_div, &postdiv_yclk); in rv770_populate_mclk_value()
431 mpll_ad_func_cntl |= CLKR(encoded_reference_dividers[dividers.ref_div - 1]); in rv770_populate_mclk_value()
437 if (dividers.vco_mode) in rv770_populate_mclk_value()
446 ÷rs, &clkf, &clkfrac); in rv770_populate_mclk_value()
450 ret = rv770_encode_yclk_post_div(dividers.post_div, &postdiv_yclk); in rv770_populate_mclk_value()
459 mpll_dq_func_cntl |= CLKR(encoded_reference_dividers[dividers.ref_div - 1]); in rv770_populate_mclk_value()
465 if (dividers.vco_mode) in rv770_populate_mclk_value()
487 struct atom_clock_dividers dividers; in rv770_populate_sclk_value() local
505 engine_clock, false, ÷rs); in rv770_populate_sclk_value()
509 reference_divider = 1 + dividers.ref_div; in rv770_populate_sclk_value()
511 if (dividers.enable_post_div) in rv770_populate_sclk_value()
512 post_divider = (0x0f & (dividers.post_div >> 4)) + (0x0f & dividers.post_div) + 2; in rv770_populate_sclk_value()
520 if (dividers.enable_post_div) in rv770_populate_sclk_value()
525 spll_func_cntl |= SPLL_REF_DIV(dividers.ref_div); in rv770_populate_sclk_value()
526 spll_func_cntl |= SPLL_HILEN((dividers.post_div >> 4) & 0xf); in rv770_populate_sclk_value()
527 spll_func_cntl |= SPLL_LOLEN(dividers.post_div & 0xf); in rv770_populate_sclk_value()
2342 struct atom_clock_dividers dividers; in rv770_dpm_init() local
2370 0, false, ÷rs); in rv770_dpm_init()
2372 pi->ref_div = dividers.ref_div + 1; in rv770_dpm_init()