Lines Matching refs:mode
27 * MacOS video mode definitions
134 * Mapping between MacOS video mode numbers and video mode definitions
143 const struct fb_videomode *mode;
179 * Mapping between monitor sense values and MacOS video mode numbers
211 * @vmode: MacOS video mode
212 * @cmode: MacOS color mode
213 * @var: frame buffer video mode structure
216 * mode structure.
224 const struct fb_videomode *mode = NULL;
229 mode = map->mode;
232 if (!mode)
272 var->xres = mode->xres;
273 var->yres = mode->yres;
274 var->xres_virtual = mode->xres;
275 var->yres_virtual = mode->yres;
278 var->pixclock = mode->pixclock;
279 var->left_margin = mode->left_margin;
280 var->right_margin = mode->right_margin;
281 var->upper_margin = mode->upper_margin;
282 var->lower_margin = mode->lower_margin;
283 var->hsync_len = mode->hsync_len;
284 var->vsync_len = mode->vsync_len;
285 var->sync = mode->sync;
286 var->vmode = mode->vmode;
293 * @var: frame buffer video mode structure
294 * @vmode: MacOS video mode
295 * @cmode: MacOS color mode
297 * Converts a frame buffer video mode structure to a MacOS
323 const struct fb_videomode *mode = map->mode;
325 if (var->xres > mode->xres || var->yres > mode->yres)
327 if (var->xres_virtual > mode->xres || var->yres_virtual > mode->yres)
329 if (var->pixclock > mode->pixclock)
331 if ((var->vmode & FB_VMODE_MASK) != mode->vmode)
341 const struct fb_videomode *clk_mode = map->mode;
343 if (mode->xres != clk_mode->xres || mode->yres != clk_mode->yres)
345 if (var->pixclock > mode->pixclock)
347 if (mode->vmode != clk_mode->vmode)
364 * Returns MacOS vmode video mode number.
380 * mac_find_mode - find a video mode
383 * @mode_option: video mode name (see mac_modedb[])
386 * Finds a suitable video mode. Tries to set mode specified
387 * by @mode_option. If the name of the wanted mode begins with
388 * 'mac', the Mac video mode database will be used, otherwise it
389 * will fall back to the standard video mode database.
415 MODULE_DESCRIPTION("MacOS video mode library");