Lines Matching refs:dividers

322 							     struct atom_clock_dividers *dividers,  in rv770_calculate_fractional_mpll_feedback_divider()  argument
334 post_divider = dividers->post_div; in rv770_calculate_fractional_mpll_feedback_divider()
335 reference_divider = dividers->ref_div; in rv770_calculate_fractional_mpll_feedback_divider()
404 struct atom_clock_dividers dividers; in rv770_populate_mclk_value() local
412 memory_clock, false, &dividers); in rv770_populate_mclk_value()
416 if ((dividers.ref_div < 1) || (dividers.ref_div > 5)) in rv770_populate_mclk_value()
421 &dividers, &clkf, &clkfrac); in rv770_populate_mclk_value()
423 ret = rv770_encode_yclk_post_div(dividers.post_div, &postdiv_yclk); in rv770_populate_mclk_value()
434 mpll_ad_func_cntl |= CLKR(encoded_reference_dividers[dividers.ref_div - 1]); in rv770_populate_mclk_value()
440 if (dividers.vco_mode) in rv770_populate_mclk_value()
449 &dividers, &clkf, &clkfrac); in rv770_populate_mclk_value()
453 ret = rv770_encode_yclk_post_div(dividers.post_div, &postdiv_yclk); in rv770_populate_mclk_value()
462 mpll_dq_func_cntl |= CLKR(encoded_reference_dividers[dividers.ref_div - 1]); in rv770_populate_mclk_value()
468 if (dividers.vco_mode) in rv770_populate_mclk_value()
490 struct atom_clock_dividers dividers; in rv770_populate_sclk_value() local
508 engine_clock, false, &dividers); in rv770_populate_sclk_value()
512 reference_divider = 1 + dividers.ref_div; in rv770_populate_sclk_value()
514 if (dividers.enable_post_div) in rv770_populate_sclk_value()
515 post_divider = (0x0f & (dividers.post_div >> 4)) + (0x0f & dividers.post_div) + 2; in rv770_populate_sclk_value()
523 if (dividers.enable_post_div) in rv770_populate_sclk_value()
528 spll_func_cntl |= SPLL_REF_DIV(dividers.ref_div); in rv770_populate_sclk_value()
529 spll_func_cntl |= SPLL_HILEN((dividers.post_div >> 4) & 0xf); in rv770_populate_sclk_value()
530 spll_func_cntl |= SPLL_LOLEN(dividers.post_div & 0xf); in rv770_populate_sclk_value()
2348 struct atom_clock_dividers dividers; in rv770_dpm_init() local
2376 0, false, &dividers); in rv770_dpm_init()
2378 pi->ref_div = dividers.ref_div + 1; in rv770_dpm_init()