Lines Matching refs:regno

124 static int offb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue,
126 static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
725 static int offb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in offb_getcolreg() argument
730 if (!info2->cmap_adr || regno > 255) in offb_getcolreg()
733 *red = (info2->palette[regno].red<<8) | info2->palette[regno].red; in offb_getcolreg()
734 *green = (info2->palette[regno].green<<8) | info2->palette[regno].green; in offb_getcolreg()
735 *blue = (info2->palette[regno].blue<<8) | info2->palette[regno].blue; in offb_getcolreg()
747 static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in offb_setcolreg() argument
752 if (!info2->cmap_adr || regno > 255) in offb_setcolreg()
759 info2->palette[regno].red = red; in offb_setcolreg()
760 info2->palette[regno].green = green; in offb_setcolreg()
761 info2->palette[regno].blue = blue; in offb_setcolreg()
765 *info2->cmap_adr = regno; in offb_setcolreg()
780 out_8(info2->cmap_adr + 0xb0, regno); in offb_setcolreg()
789 out_8(info2->cmap_adr + 0xb0, regno); in offb_setcolreg()
795 out_8(info2->cmap_adr + 0xb0, regno); in offb_setcolreg()
800 out_le32((unsigned *)info2->cmap_adr + regno, in offb_setcolreg()
805 if (regno < 16) in offb_setcolreg()
809 info2->fbcon_cmap.cfb16[regno] = (regno << 10) | (regno << 5) | regno; in offb_setcolreg()
815 int i = (regno << 8) | regno; in offb_setcolreg()
816 info2->fbcon_cmap.cfb32[regno] = (i << 16) | i; in offb_setcolreg()