Lines Matching full: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) in mode_defined() argument
61 if (mi->mode == mode) in mode_defined()
69 /* Set mode (without recalc) */
70 static int raw_set_mode(u16 mode, u16 *real_mode) in raw_set_mode() argument
77 mode &= ~VIDEO_RECALC; in raw_set_mode()
79 /* Scan for mode based on fixed ID, position, or resolution */ in raw_set_mode()
86 if ((mode == nmode && visible) || in raw_set_mode()
87 mode == mi->mode || in raw_set_mode()
88 mode == (mi->y << 8)+mi->x) { in raw_set_mode()
89 *real_mode = mi->mode; in raw_set_mode()
98 /* Nothing found? Is it an "exceptional" (unprobed) mode? */ in raw_set_mode()
100 if (mode >= card->xmode_first && in raw_set_mode()
101 mode < card->xmode_first+card->xmode_n) { in raw_set_mode()
103 *real_mode = mix.mode = mode; in raw_set_mode()
144 /* Set mode (with recalc if specified) */
145 int set_mode(u16 mode) in set_mode() argument
150 /* Very special mode numbers... */ in set_mode()
151 if (mode == VIDEO_CURRENT_MODE) in set_mode()
153 else if (mode == NORMAL_VGA) in set_mode()
154 mode = VIDEO_80x25; in set_mode()
155 else if (mode == EXTENDED_VGA) in set_mode()
156 mode = VIDEO_8POINT; in set_mode()
158 rv = raw_set_mode(mode, &real_mode); in set_mode()
162 if (mode & VIDEO_RECALC) in set_mode()
165 /* Save the canonical mode number for the kernel, not in set_mode()