Lines Matching refs:ref_div
921 unsigned *fb_div, unsigned *ref_div) in avivo_get_fb_ref_div() argument
927 *ref_div = min(max(den/post_div, 1u), ref_div_max); in avivo_get_fb_ref_div()
928 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in avivo_get_fb_ref_div()
932 *ref_div = (*ref_div * fb_div_max)/(*fb_div); in avivo_get_fb_ref_div()
964 unsigned ref_div_min, ref_div_max, ref_div; in radeon_compute_pll_avivo() local
1042 ref_div_max, &fb_div, &ref_div); in radeon_compute_pll_avivo()
1044 (ref_div * post_div)); in radeon_compute_pll_avivo()
1057 &fb_div, &ref_div); in radeon_compute_pll_avivo()
1061 avivo_reduce_ratio(&fb_div, &ref_div, fb_div_min, ref_div_min); in radeon_compute_pll_avivo()
1069 ref_div *= tmp; in radeon_compute_pll_avivo()
1084 (ref_div * post_div * 10); in radeon_compute_pll_avivo()
1085 *ref_div_p = ref_div; in radeon_compute_pll_avivo()
1090 ref_div, post_div); in radeon_compute_pll_avivo()
1165 uint32_t ref_div; in radeon_compute_pll_legacy() local
1183 for (ref_div = min_ref_div; ref_div <= max_ref_div; ++ref_div) { in radeon_compute_pll_legacy()
1185 uint32_t pll_in = pll->reference_freq / ref_div; in radeon_compute_pll_legacy()
1202 vco = radeon_div(tmp, ref_div); in radeon_compute_pll_legacy()
1216 current_freq = radeon_div(tmp, ref_div * post_div); in radeon_compute_pll_legacy()
1232 best_ref_div = ref_div; in radeon_compute_pll_legacy()
1241 best_ref_div = ref_div; in radeon_compute_pll_legacy()
1247 } else if (((pll->flags & RADEON_PLL_PREFER_LOW_REF_DIV) && (ref_div < best_ref_div)) || in radeon_compute_pll_legacy()
1248 ((pll->flags & RADEON_PLL_PREFER_HIGH_REF_DIV) && (ref_div > best_ref_div)) || in radeon_compute_pll_legacy()
1254 best_ref_div = ref_div; in radeon_compute_pll_legacy()