Lines Matching refs:mode
52 int mode_defined(u16 mode) in mode_defined() argument
61 if (mi->mode == mode) in mode_defined()
70 static int raw_set_mode(u16 mode, u16 *real_mode) in raw_set_mode() argument
77 mode &= ~VIDEO_RECALC; 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()
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()
145 int set_mode(u16 mode) in set_mode() argument
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()