Lines Matching defs:db
455 * @db: video mode database
456 * @dbsize: size of @db
494 const struct fb_videomode *db, unsigned int dbsize,
501 if (!db) {
502 db = modedb;
507 default_mode = &db[0];
620 if (db != modedb &&
633 if ((name_matches(db[i], name, namelen) ||
634 (res_specified && res_matches(db[i], xres, yres))) &&
635 !fb_try_mode(var, info, &db[i], bpp)) {
636 if (refresh_specified && db[i].refresh == refresh) {
639 if (abs(db[i].refresh - refresh) < diff) {
640 diff = abs(db[i].refresh - refresh);
647 fb_try_mode(var, info, &db[best], bpp);
655 DPRINTK("Trying %ix%i\n", db[i].xres, db[i].yres);
656 if (!fb_try_mode(var, info, &db[i], bpp)) {
657 tdiff = abs(db[i].xres - xres) +
658 abs(db[i].yres - yres);
664 if (xres > db[i].xres || yres > db[i].yres)
674 fb_try_mode(var, info, &db[best], bpp);
685 if (!fb_try_mode(var, info, &db[i], default_bpp))