Lines Matching defs:mode

26      *  MacOS video mode definitions
133 * Mapping between MacOS video mode numbers and video mode definitions
142 const struct fb_videomode *mode;
178 * Mapping between monitor sense values and MacOS video mode numbers
210 * @vmode: MacOS video mode
211 * @cmode: MacOS color mode
212 * @var: frame buffer video mode structure
215 * mode structure.
223 const struct fb_videomode *mode = NULL;
228 mode = map->mode;
231 if (!mode)
271 var->xres = mode->xres;
272 var->yres = mode->yres;
273 var->xres_virtual = mode->xres;
274 var->yres_virtual = mode->yres;
277 var->pixclock = mode->pixclock;
278 var->left_margin = mode->left_margin;
279 var->right_margin = mode->right_margin;
280 var->upper_margin = mode->upper_margin;
281 var->lower_margin = mode->lower_margin;
282 var->hsync_len = mode->hsync_len;
283 var->vsync_len = mode->vsync_len;
284 var->sync = mode->sync;
285 var->vmode = mode->vmode;
292 * @var: frame buffer video mode structure
293 * @vmode: MacOS video mode
294 * @cmode: MacOS color mode
296 * Converts a frame buffer video mode structure to a MacOS
322 const struct fb_videomode *mode = map->mode;
324 if (var->xres > mode->xres || var->yres > mode->yres)
326 if (var->xres_virtual > mode->xres || var->yres_virtual > mode->yres)
328 if (var->pixclock > mode->pixclock)
330 if ((var->vmode & FB_VMODE_MASK) != mode->vmode)
340 const struct fb_videomode *clk_mode = map->mode;
342 if (mode->xres != clk_mode->xres || mode->yres != clk_mode->yres)
344 if (var->pixclock > mode->pixclock)
346 if (mode->vmode != clk_mode->vmode)
363 * Returns MacOS vmode video mode number.
379 * mac_find_mode - find a video mode
382 * @mode_option: video mode name (see mac_modedb[])
385 * Finds a suitable video mode. Tries to set mode specified
386 * by @mode_option. If the name of the wanted mode begins with
387 * 'mac', the Mac video mode database will be used, otherwise it
388 * will fall back to the standard video mode database.