Lines Matching defs:post_div

913  * @post_div: post divider
922 static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div,
927 ref_div_max = max(min(100 / post_div, ref_div_max), 1u);
930 *ref_div = min(max(den/post_div, 1u), ref_div_max);
931 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den);
951 * dot_clock = (ref_freq * feedback_div) / (ref_div * post_div)
965 unsigned post_div_min, post_div_max, post_div;
996 post_div_min = pll->post_div;
997 post_div_max = pll->post_div;
1041 for (post_div = post_div_min; post_div <= post_div_max; ++post_div) {
1043 avivo_get_fb_ref_div(nom, den, post_div, fb_div_max,
1046 (ref_div * post_div));
1051 post_div_best = post_div;
1055 post_div = post_div_best;
1058 avivo_get_fb_ref_div(nom, den, post_div, fb_div_max, ref_div_max,
1086 (ref_div * post_div * 10);
1088 *post_div_p = post_div;
1092 ref_div, post_div);
1128 uint32_t post_div;
1161 min_post_div = max_post_div = pll->post_div;
1168 for (post_div = max_post_div; post_div >= min_post_div; --post_div) {
1171 if ((pll->flags & RADEON_PLL_NO_ODD_POST_DIV) && (post_div & 1))
1176 if ((post_div == 5) ||
1177 (post_div == 7) ||
1178 (post_div == 9) ||
1179 (post_div == 10) ||
1180 (post_div == 11) ||
1181 (post_div == 13) ||
1182 (post_div == 14) ||
1183 (post_div == 15))
1220 current_freq = radeon_div(tmp, ref_div * post_div);
1235 best_post_div = post_div;
1244 best_post_div = post_div;
1255 ((pll->flags & RADEON_PLL_PREFER_LOW_POST_DIV) && (post_div < best_post_div)) ||
1256 ((pll->flags & RADEON_PLL_PREFER_HIGH_POST_DIV) && (post_div > best_post_div))) {
1257 best_post_div = post_div;