Lines Matching refs:mode
10 * arch/i386/boot/video-mode.c
12 * Set the video mode. This is separated out into a different
27 int do_restore; /* Screen contents changed during mode flip */
28 int graphic_mode; /* Graphic mode with linear frame buffer */
30 /* Probe the video drivers and have them generate their mode lists. */
51 /* Test if a mode is defined */
52 int mode_defined(u16 mode)
61 if (mi->mode == mode)
69 /* Set mode (without recalc) */
70 static int raw_set_mode(u16 mode, u16 *real_mode)
77 mode &= ~VIDEO_RECALC;
79 /* Scan for mode based on fixed ID, position, or resolution */
86 if ((mode == nmode && visible) ||
87 mode == mi->mode ||
88 mode == (mi->y << 8)+mi->x) {
89 *real_mode = mi->mode;
98 /* Nothing found? Is it an "exceptional" (unprobed) mode? */
100 if (mode >= card->xmode_first &&
101 mode < card->xmode_first+card->xmode_n) {
103 *real_mode = mix.mode = mode;
144 /* Set mode (with recalc if specified) */
145 int set_mode(u16 mode)
150 /* Very special mode numbers... */
151 if (mode == VIDEO_CURRENT_MODE)
153 else if (mode == NORMAL_VGA)
154 mode = VIDEO_80x25;
155 else if (mode == EXTENDED_VGA)
156 mode = VIDEO_8POINT;
158 rv = raw_set_mode(mode, &real_mode);
162 if (mode & VIDEO_RECALC)
165 /* Save the canonical mode number for the kernel, not