Lines Matching refs:green
69 static struct { u_char red, green, blue, pad; } palette[256]; member
276 static int tgafb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue,
278 static int tgafb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
424 var->green.offset = 0; in tgafb_encode_var()
428 var->green.offset = 8; in tgafb_encode_var()
433 var->red.length = var->green.length = var->blue.length = 8; in tgafb_encode_var()
434 var->red.msb_right = var->green.msb_right = var->blue.msb_right = 0; in tgafb_encode_var()
535 palette[i].green=default_grn[j]; in tgafb_set_par()
694 static int tgafb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in tgafb_getcolreg() argument
700 *green = (palette[regno].green<<8) | palette[regno].green; in tgafb_getcolreg()
707 static int tgafb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in tgafb_setcolreg() argument
713 green >>= 8; in tgafb_setcolreg()
716 palette[regno].green = green; in tgafb_setcolreg()
721 fbcon_cfb32_cmap[regno] = (red << 16) | (green << 8) | blue; in tgafb_setcolreg()
728 TGA_WRITE_REG(green|(BT485_DATA_PAL<<8),TGA_RAMDAC_REG); in tgafb_setcolreg()
772 TGA_WRITE_REG(palette[i].green|(BT463_PALETTE<<10), TGA_RAMDAC_REG); in tgafb_update_palette()