Lines Matching defs:post_div

169     uint32_t post_div;
190 min_post_div = max_post_div = pll->post_div;
197 for (post_div = min_post_div; post_div <= max_post_div; ++post_div) {
200 if ((flags & RADEON_PLL_NO_ODD_POST_DIV) && (post_div & 1))
205 if ((post_div == 5) ||
206 (post_div == 7) ||
207 (post_div == 9) ||
208 (post_div == 10) ||
209 (post_div == 11))
246 current_freq = RADEONDiv(tmp, ref_div * post_div);
260 best_post_div = post_div;
269 best_post_div = post_div;
280 ((flags & RADEON_PLL_PREFER_LOW_POST_DIV) && (post_div < best_post_div)) ||
281 ((flags & RADEON_PLL_PREFER_HIGH_POST_DIV) && (post_div > best_post_div))) {
282 best_post_div = post_div;
326 int post_div,
332 float vco_freq = ffreq * post_div;
355 int post_div,
365 if (calc_fb_div(pll, freq, flags, post_div, (*ref_div), fb_div, fb_div_frac)) {
371 pll_out = vco / post_div;
393 int fb_div = 0, fb_div_frac = 0, post_div = 0, ref_div = 0;
397 post_div = pll->post_div;
398 if ((post_div < pll->min_post_div) || (post_div > pll->max_post_div))
400 vco_frequency = ffreq * post_div;
408 if (!calc_fb_div(pll, freq, flags, post_div, ref_div, &fb_div, &fb_div_frac))
412 for (post_div = pll->max_post_div; post_div >= pll->min_post_div; --post_div) {
414 if ((post_div == 5) ||
415 (post_div == 7) ||
416 (post_div == 9) ||
417 (post_div == 10) ||
418 (post_div == 11))
421 if ((flags & RADEON_PLL_NO_ODD_POST_DIV) && (post_div & 1))
424 vco_frequency = ffreq * post_div;
431 if (calc_fb_div(pll, freq, flags, post_div, ref_div, &fb_div, &fb_div_frac))
434 if (calc_fb_ref_div(pll, freq, flags, post_div, &fb_div, &fb_div_frac, &ref_div))
442 best_freq = best_freq / (ref_div * post_div);
449 ErrorF("best_post_div: %u\n", (unsigned int)post_div);
460 *chosen_post_div = post_div;