Lines Matching refs:regno
921 static int s3fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in s3fb_setcolreg() argument
927 if (regno >= 16) in s3fb_setcolreg()
933 outb(regno*16, VGA_PEL_IW); in s3fb_setcolreg()
936 outb(regno, VGA_PEL_IW); in s3fb_setcolreg()
943 if (regno >= 256) in s3fb_setcolreg()
947 outb(regno, VGA_PEL_IW); in s3fb_setcolreg()
953 if (regno >= 16) in s3fb_setcolreg()
957 ((u32*)fb->pseudo_palette)[regno] = ((red & 0xF800) >> 1) | in s3fb_setcolreg()
960 ((u32*)fb->pseudo_palette)[regno] = (red & 0xF800) | in s3fb_setcolreg()
966 if (regno >= 16) in s3fb_setcolreg()
969 ((u32*)fb->pseudo_palette)[regno] = ((red & 0xFF00) << 8) | in s3fb_setcolreg()