Lines Matching refs:fb_div
928 unsigned *fb_div, unsigned *ref_div) in avivo_get_fb_ref_div() argument
935 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in avivo_get_fb_ref_div()
938 if (*fb_div > fb_div_max) { in avivo_get_fb_ref_div()
939 *ref_div = (*ref_div * fb_div_max)/(*fb_div); in avivo_get_fb_ref_div()
940 *fb_div = fb_div_max; in avivo_get_fb_ref_div()
969 unsigned fb_div_min, fb_div_max, fb_div; in radeon_compute_pll_avivo() local
1049 ref_div_max, &fb_div, &ref_div); in radeon_compute_pll_avivo()
1050 diff = abs(target_clock - (pll->reference_freq * fb_div) / in radeon_compute_pll_avivo()
1064 &fb_div, &ref_div); in radeon_compute_pll_avivo()
1068 avivo_reduce_ratio(&fb_div, &ref_div, fb_div_min, ref_div_min); in radeon_compute_pll_avivo()
1071 if (pll->flags & RADEON_PLL_USE_FRAC_FB_DIV && (fb_div % 10)) { in radeon_compute_pll_avivo()
1072 fb_div_min = max(fb_div_min, (9 - (fb_div % 10)) * 20 + 50); in radeon_compute_pll_avivo()
1073 if (fb_div < fb_div_min) { in radeon_compute_pll_avivo()
1074 unsigned tmp = DIV_ROUND_UP(fb_div_min, fb_div); in radeon_compute_pll_avivo()
1075 fb_div *= tmp; in radeon_compute_pll_avivo()
1082 *fb_div_p = fb_div / 10; in radeon_compute_pll_avivo()
1083 *frac_fb_div_p = fb_div % 10; in radeon_compute_pll_avivo()
1085 *fb_div_p = fb_div; in radeon_compute_pll_avivo()