Lines Matching defs:mode
12 * arch/i386/boot/video-mode.c
14 * Set the video mode. This is separated out into a different
29 int do_restore; /* Screen contents changed during mode flip */
30 int graphic_mode; /* Graphic mode with linear frame buffer */
32 /* Probe the video drivers and have them generate their mode lists. */
53 /* Test if a mode is defined */
54 int mode_defined(u16 mode)
63 if (mi->mode == mode)
71 /* Set mode (without recalc) */
72 static int raw_set_mode(u16 mode, u16 *real_mode)
79 mode &= ~VIDEO_RECALC;
81 /* Scan for mode based on fixed ID, position, or resolution */
88 if ((mode == nmode && visible) ||
89 mode == mi->mode ||
90 mode == (mi->y << 8)+mi->x) {
91 *real_mode = mi->mode;
100 /* Nothing found? Is it an "exceptional" (unprobed) mode? */
102 if (mode >= card->xmode_first &&
103 mode < card->xmode_first+card->xmode_n) {
105 *real_mode = mix.mode = mode;
146 /* Set mode (with recalc if specified) */
147 int set_mode(u16 mode)
152 /* Very special mode numbers... */
153 if (mode == VIDEO_CURRENT_MODE)
155 else if (mode == NORMAL_VGA)
156 mode = VIDEO_80x25;
157 else if (mode == EXTENDED_VGA)
158 mode = VIDEO_8POINT;
160 rv = raw_set_mode(mode, &real_mode);
164 if (mode & VIDEO_RECALC)
167 /* Save the canonical mode number for the kernel, not