Lines Matching refs:red
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,
423 var->red.offset = 0; in tgafb_encode_var()
427 var->red.offset = 16; 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()
534 palette[i].red=default_red[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
699 *red = (palette[regno].red<<8) | palette[regno].red; in tgafb_getcolreg()
707 static int tgafb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in tgafb_setcolreg() argument
712 red >>= 8; in tgafb_setcolreg()
715 palette[regno].red = red; in tgafb_setcolreg()
721 fbcon_cfb32_cmap[regno] = (red << 16) | (green << 8) | blue; in tgafb_setcolreg()
727 TGA_WRITE_REG(red|(BT485_DATA_PAL<<8),TGA_RAMDAC_REG); in tgafb_setcolreg()
771 TGA_WRITE_REG(palette[i].red|(BT463_PALETTE<<10), TGA_RAMDAC_REG); in tgafb_update_palette()