Lines Matching refs:regno
142 static int chipsfb_getcolreg(u_int regno, u_int *red, u_int *green,
144 static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
284 static int chipsfb_getcolreg(u_int regno, u_int *red, u_int *green, in chipsfb_getcolreg() argument
289 if (regno > 255) in chipsfb_getcolreg()
291 *red = (p->palette[regno].red<<8) | p->palette[regno].red; in chipsfb_getcolreg()
292 *green = (p->palette[regno].green<<8) | p->palette[regno].green; in chipsfb_getcolreg()
293 *blue = (p->palette[regno].blue<<8) | p->palette[regno].blue; in chipsfb_getcolreg()
298 static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in chipsfb_setcolreg() argument
303 if (regno > 255) in chipsfb_setcolreg()
308 p->palette[regno].red = red; in chipsfb_setcolreg()
309 p->palette[regno].green = green; in chipsfb_setcolreg()
310 p->palette[regno].blue = blue; in chipsfb_setcolreg()
311 outb(regno, 0x3c8); in chipsfb_setcolreg()
318 if (regno < 16) in chipsfb_setcolreg()
319 p->fbcon_cfb16_cmap[regno] = ((red & 0xf8) << 7) in chipsfb_setcolreg()