Lines Matching refs:dividers
320 struct atom_clock_dividers *dividers, in rv770_calculate_fractional_mpll_feedback_divider() argument
332 post_divider = dividers->post_div; in rv770_calculate_fractional_mpll_feedback_divider()
333 reference_divider = dividers->ref_div; in rv770_calculate_fractional_mpll_feedback_divider()
402 struct atom_clock_dividers dividers; in rv770_populate_mclk_value() local
410 memory_clock, false, ÷rs); in rv770_populate_mclk_value()
414 if ((dividers.ref_div < 1) || (dividers.ref_div > 5)) in rv770_populate_mclk_value()
419 ÷rs, &clkf, &clkfrac); in rv770_populate_mclk_value()
421 ret = rv770_encode_yclk_post_div(dividers.post_div, &postdiv_yclk); in rv770_populate_mclk_value()
432 mpll_ad_func_cntl |= CLKR(encoded_reference_dividers[dividers.ref_div - 1]); in rv770_populate_mclk_value()
438 if (dividers.vco_mode) in rv770_populate_mclk_value()
447 ÷rs, &clkf, &clkfrac); in rv770_populate_mclk_value()
451 ret = rv770_encode_yclk_post_div(dividers.post_div, &postdiv_yclk); in rv770_populate_mclk_value()
460 mpll_dq_func_cntl |= CLKR(encoded_reference_dividers[dividers.ref_div - 1]); in rv770_populate_mclk_value()
466 if (dividers.vco_mode) in rv770_populate_mclk_value()
488 struct atom_clock_dividers dividers; in rv770_populate_sclk_value() local
506 engine_clock, false, ÷rs); in rv770_populate_sclk_value()
510 reference_divider = 1 + dividers.ref_div; in rv770_populate_sclk_value()
512 if (dividers.enable_post_div) in rv770_populate_sclk_value()
513 post_divider = (0x0f & (dividers.post_div >> 4)) + (0x0f & dividers.post_div) + 2; in rv770_populate_sclk_value()
521 if (dividers.enable_post_div) in rv770_populate_sclk_value()
526 spll_func_cntl |= SPLL_REF_DIV(dividers.ref_div); in rv770_populate_sclk_value()
527 spll_func_cntl |= SPLL_HILEN((dividers.post_div >> 4) & 0xf); in rv770_populate_sclk_value()
528 spll_func_cntl |= SPLL_LOLEN(dividers.post_div & 0xf); in rv770_populate_sclk_value()
2346 struct atom_clock_dividers dividers; in rv770_dpm_init() local
2374 0, false, ÷rs); in rv770_dpm_init()
2376 pi->ref_div = dividers.ref_div + 1; in rv770_dpm_init()