Lines Matching refs:regno
915 static int s3fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in s3fb_setcolreg() argument
921 if (regno >= 16) in s3fb_setcolreg()
927 outb(regno*16, VGA_PEL_IW); in s3fb_setcolreg()
930 outb(regno, VGA_PEL_IW); in s3fb_setcolreg()
937 if (regno >= 256) in s3fb_setcolreg()
941 outb(regno, VGA_PEL_IW); in s3fb_setcolreg()
947 if (regno >= 16) in s3fb_setcolreg()
951 ((u32*)fb->pseudo_palette)[regno] = ((red & 0xF800) >> 1) | in s3fb_setcolreg()
954 ((u32*)fb->pseudo_palette)[regno] = (red & 0xF800) | in s3fb_setcolreg()
960 if (regno >= 16) in s3fb_setcolreg()
963 ((u32*)fb->pseudo_palette)[regno] = ((red & 0xFF00) << 8) | in s3fb_setcolreg()