Lines Matching refs:red
82 static struct { u_short blue, green, red, pad; } palette[256]; member
289 static int vesa_getcolreg(unsigned regno, unsigned *red, unsigned *green, in vesa_getcolreg() argument
301 *red = palette[regno].red; in vesa_getcolreg()
310 static void vesa_setpalette(int regno, unsigned red, unsigned green, unsigned blue) in vesa_setpalette() argument
313 struct { u_char blue, green, red, pad; } entry; in vesa_setpalette() member
316 entry.red = red >> 10; in vesa_setpalette()
332 outb_p(red >> 10, dac_val); in vesa_setpalette()
342 static int vesa_setcolreg(unsigned regno, unsigned red, unsigned green, in vesa_setcolreg() argument
356 palette[regno].red = red; in vesa_setcolreg()
363 vesa_setpalette(regno,red,green,blue); in vesa_setcolreg()
369 if (vesafb_defined.red.offset == 10) { in vesa_setcolreg()
372 ((red & 0xf800) >> 1) | in vesa_setcolreg()
378 ((red & 0xf800) ) | in vesa_setcolreg()
386 red >>= 8; in vesa_setcolreg()
390 (red << vesafb_defined.red.offset) | in vesa_setcolreg()
397 red >>= 8; in vesa_setcolreg()
401 (red << vesafb_defined.red.offset) | in vesa_setcolreg()
632 vesafb_defined.red.offset = screen_info.red_pos; in vesafb_init()
633 vesafb_defined.red.length = screen_info.red_size; in vesafb_init()
652 vesafb_defined.red.length = 6; in vesafb_init()
657 palette[i].red = default_red[j]; in vesafb_init()