Lines Matching refs:regno
805 static int arkfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in arkfb_setcolreg() argument
811 if (regno >= 16) in arkfb_setcolreg()
817 outb(regno*16, VGA_PEL_IW); in arkfb_setcolreg()
820 outb(regno, VGA_PEL_IW); in arkfb_setcolreg()
827 if (regno >= 256) in arkfb_setcolreg()
831 outb(regno, VGA_PEL_IW); in arkfb_setcolreg()
837 if (regno >= 16) in arkfb_setcolreg()
841 ((u32*)fb->pseudo_palette)[regno] = ((red & 0xF800) >> 1) | in arkfb_setcolreg()
844 ((u32*)fb->pseudo_palette)[regno] = (red & 0xF800) | in arkfb_setcolreg()
851 if (regno >= 16) in arkfb_setcolreg()
854 ((u32*)fb->pseudo_palette)[regno] = ((red & 0xFF00) << 8) | in arkfb_setcolreg()