Lines Matching refs:green
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,
546 var->green.offset = 5; var->green.length = 6; in set_color_bitfields()
552 var->green.offset = 8; var->green.length = 8; in set_color_bitfields()
558 var->green.offset = 8; var->green.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
572 *green = palette[regno].green; in pvr2_getcolreg()
578 static int pvr2_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in pvr2_setcolreg() argument
585 palette[regno].green = green; in pvr2_setcolreg()
593 ((green & 0xfc00) >> 5) | 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()