Lines Matching refs:red
166 static struct { u_short red, green, blue, alpha; } palette[256]; member
233 static int pvr2_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue,
235 static int pvr2_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
545 var->red.offset = 11; var->red.length = 5; in set_color_bitfields()
551 var->red.offset = 16; var->red.length = 8; in set_color_bitfields()
557 var->red.offset = 16; var->red.length = 8; in set_color_bitfields()
565 static int pvr2_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in pvr2_getcolreg() argument
571 *red = palette[regno].red; in pvr2_getcolreg()
578 static int pvr2_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in pvr2_setcolreg() argument
584 palette[regno].red = red; in pvr2_setcolreg()
592 fbcon_cmap.cfb16[regno] = (red & 0xf800) | in pvr2_setcolreg()
599 red >>= 8; green >>= 8; blue >>= 8; in pvr2_setcolreg()
600 fbcon_cmap.cfb24[regno] = (red << 16) | (green << 8) | blue; in pvr2_setcolreg()
605 red >>= 8; green >>= 8; blue >>= 8; in pvr2_setcolreg()
606 fbcon_cmap.cfb32[regno] = (red << 16) | (green << 8) | blue; in pvr2_setcolreg()