Lines Matching full:best

648 		u32 best, diff, tdiff;  in fb_find_mode()  local
771 best = -1; in fb_find_mode()
791 best = i; in fb_find_mode()
795 if (best != -1) { in fb_find_mode()
796 fb_try_mode(var, info, &db[best], bpp); in fb_find_mode()
801 best = -1; in fb_find_mode()
802 DPRINTK("Trying best-fit modes\n"); in fb_find_mode()
818 best = i; in fb_find_mode()
822 if (best != -1) { in fb_find_mode()
823 fb_try_mode(var, info, &db[best], bpp); in fb_find_mode()
938 * fb_find_best_mode - find best matching videomode
950 * Finds best matching videomode which has an equal or greater dimension than
959 struct fb_videomode *mode, *best = NULL; in fb_find_best_mode() local
973 best = mode; in fb_find_best_mode()
974 } else if (diff == d && best && in fb_find_best_mode()
975 mode->refresh > best->refresh) in fb_find_best_mode()
976 best = mode; in fb_find_best_mode()
979 return best; in fb_find_best_mode()
988 * Finds best matching videomode, smaller or greater in dimension.
997 struct fb_videomode *cmode, *best = NULL; in fb_find_nearest_mode() local
1011 best = cmode; in fb_find_nearest_mode()
1016 best = cmode; in fb_find_nearest_mode()
1021 return best; in fb_find_nearest_mode()
1148 const struct fb_videomode *m, *m1 = NULL, *md = NULL, *best = NULL; in fb_find_best_display() local
1172 best = md; in fb_find_best_display()
1176 /* find best mode based on display width and height */ in fb_find_best_display()
1185 best = m; in fb_find_best_display()
1192 best = md; in fb_find_best_display()
1197 best = m1; in fb_find_best_display()
1199 return best; in fb_find_best_display()