Lines Matching defs:mode
34 u16 mode;
54 while ((mode = rdfs16(mode_ptr)) != 0xffff) {
58 break; /* Heap full, can't save mode info */
60 if (mode & ~0x1ff)
66 ireg.cx = mode;
77 mi->mode = mode + VIDEO_FIRST_VESA;
87 /* Graphics mode, color, linear frame buffer
88 supported. Only register the mode if
92 mi->mode = mode + VIDEO_FIRST_VESA;
104 static int vesa_set_mode(struct mode_info *mode)
108 u16 vesa_mode = mode->mode - VIDEO_FIRST_VESA;
122 /* It's a supported text mode */
126 /* It's a graphics mode with linear frame buffer */
131 return -1; /* Invalid mode */
145 /* Text mode */
146 force_x = mode->x;
147 force_y = mode->y;
150 /* Graphics mode */
160 /* Switch DAC to 8-bit mode */
166 /* If possible, switch the DAC to 8-bit mode */
188 /* Save the VESA protected mode info */
205 * Save video mode parameters for graphics mode
209 /* Tell the kernel we're in VESA graphics mode */
234 * after mode-setting.