Lines Matching +defs:val +defs:index
68 static void vga_set_crtc(int index, unsigned char val);
69 static unsigned char vga_get_crtc(int index);
74 unsigned char val, msl;
91 val = vga_get_crtc(VGA_CRTC_CSSL);
92 vga_set_crtc(VGA_CRTC_CSSL, (val & 0xc) | ((msl - 2) & 0x1f));
109 unsigned short val;
112 val = (color << 8) | ' ';
115 VGA_SCREEN[i] = val;
132 unsigned short val;
135 val = (color << 8) | ' ';
141 VGA_SCREEN[i] = val;
166 vga_set_crtc(int index, unsigned char val)
168 outb(VGA_COLOR_CRTC_INDEX, index);
169 outb(VGA_COLOR_CRTC_DATA, val);
173 vga_get_crtc(int index)
175 outb(VGA_COLOR_CRTC_INDEX, index);