Lines Matching refs:regno
170 static int valkyriefb_getcolreg(u_int regno, u_int *red, u_int *green,
172 static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
360 static int valkyriefb_getcolreg(u_int regno, u_int *red, u_int *green, in valkyriefb_getcolreg() argument
365 if (regno > 255) in valkyriefb_getcolreg()
367 *red = (p->palette[regno].red<<8) | p->palette[regno].red; in valkyriefb_getcolreg()
368 *green = (p->palette[regno].green<<8) | p->palette[regno].green; in valkyriefb_getcolreg()
369 *blue = (p->palette[regno].blue<<8) | p->palette[regno].blue; in valkyriefb_getcolreg()
374 static int valkyriefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in valkyriefb_setcolreg() argument
381 if (regno > 255) in valkyriefb_setcolreg()
386 p->palette[regno].red = red; in valkyriefb_setcolreg()
387 p->palette[regno].green = green; in valkyriefb_setcolreg()
388 p->palette[regno].blue = blue; in valkyriefb_setcolreg()
391 out_8(&p->cmap_regs->addr, regno); in valkyriefb_setcolreg()
398 if (regno < 16) { in valkyriefb_setcolreg()
400 p->fbcon_cfb16_cmap[regno] = (regno << 10) | (regno << 5) | regno; in valkyriefb_setcolreg()