Lines Matching refs:blue
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,
425 var->blue.offset = 0; in tgafb_encode_var()
429 var->blue.offset = 0; 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()
536 palette[i].blue=default_blu[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
701 *blue = (palette[regno].blue<<8) | palette[regno].blue; in tgafb_getcolreg()
707 static int tgafb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in tgafb_setcolreg() argument
714 blue >>= 8; in tgafb_setcolreg()
717 palette[regno].blue = blue; in tgafb_setcolreg()
721 fbcon_cfb32_cmap[regno] = (red << 16) | (green << 8) | blue; in tgafb_setcolreg()
729 TGA_WRITE_REG(blue|(BT485_DATA_PAL<<8),TGA_RAMDAC_REG); in tgafb_setcolreg()
773 TGA_WRITE_REG(palette[i].blue|(BT463_PALETTE<<10), TGA_RAMDAC_REG); in tgafb_update_palette()