Lines Matching refs:regno
926 static int s3fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in s3fb_setcolreg() argument
932 if (regno >= 16) in s3fb_setcolreg()
938 outb(regno*16, VGA_PEL_IW); in s3fb_setcolreg()
941 outb(regno, VGA_PEL_IW); in s3fb_setcolreg()
948 if (regno >= 256) in s3fb_setcolreg()
952 outb(regno, VGA_PEL_IW); in s3fb_setcolreg()
958 if (regno >= 16) in s3fb_setcolreg()
962 ((u32*)fb->pseudo_palette)[regno] = ((red & 0xF800) >> 1) | in s3fb_setcolreg()
965 ((u32*)fb->pseudo_palette)[regno] = (red & 0xF800) | in s3fb_setcolreg()
971 if (regno >= 16) in s3fb_setcolreg()
974 ((u32*)fb->pseudo_palette)[regno] = ((red & 0xFF00) << 8) | in s3fb_setcolreg()