Lines Matching defs:mode

219  * This takes a standard fbdev screeninfo struct and all of its monitor mode
721 * Not used by X Windows or text-mode console. But useful for testing.
1052 * Check whether a video mode is supported by the DisplayLink chip
1055 static int dlfb_is_valid_mode(struct fb_videomode *mode, struct dlfb_data *dlfb)
1057 if (mode->xres * mode->yres > dlfb->sku_pixel_limit)
1078 struct fb_videomode mode;
1081 /* set device-specific elements of var unrelated to mode */
1084 fb_var_to_videomode(&mode, var);
1086 if (!dlfb_is_valid_mode(&mode, dlfb))
1151 * In order to come back from full DPMS off, we need to set the mode again
1159 dev_dbg(info->dev, "blank, mode %d --> %d\n",
1273 * 3) Allocate virtual framebuffer memory to back highest res mode
1276 * fb_var_screeninfo contains the timing of the monitor's preferred mode
1281 * monspecs is NULL, and fb_var_screeninfo is set to safe VESA mode
1291 struct fb_videomode *mode;
1353 /* If we've got modes, let's pick a best default mode */
1357 mode = &info->monspecs.modedb[i];
1358 if (dlfb_is_valid_mode(mode, dlfb)) {
1359 fb_add_videomode(mode, &info->modelist);
1361 dev_dbg(dev, "Specified mode %dx%d too big\n",
1362 mode->xres, mode->yres);
1364 /* if we've removed top/best mode */
1374 /* If everything else has failed, fall back to safe default mode */
1386 mode = (struct fb_videomode *)&vesa_modes[i];
1387 if (dlfb_is_valid_mode(mode, dlfb))
1388 fb_add_videomode(mode, &info->modelist);
1390 dev_dbg(dev, "VESA mode %dx%d too big\n",
1391 mode->xres, mode->yres);
1405 /* If we have good mode and no active clients*/
1412 * with mode size info, we can now alloc our framebuffer.
1526 .attr.mode = 0666,
1727 "unable to find common mode for display and adapter\n");
1994 MODULE_PARM_DESC(pixel_limit, "Force limit on max mode (in x*y pixels)");