Lines Matching refs:regno

242 static int atyfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
2853 static void aty_st_pal(u_int regno, u_int red, u_int green, u_int blue, in aty_st_pal() argument
2856 aty_st_8(DAC_W_INDEX, regno, par); in aty_st_pal()
2869 static int atyfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in atyfb_setcolreg() argument
2883 if (regno > 255 || in atyfb_setcolreg()
2884 (depth == 16 && regno > 63) || in atyfb_setcolreg()
2885 (depth == 15 && regno > 31)) in atyfb_setcolreg()
2892 par->palette[regno].red = red; in atyfb_setcolreg()
2893 par->palette[regno].green = green; in atyfb_setcolreg()
2894 par->palette[regno].blue = blue; in atyfb_setcolreg()
2896 if (regno < 16) { in atyfb_setcolreg()
2899 pal[regno] = (regno << 10) | (regno << 5) | regno; in atyfb_setcolreg()
2902 pal[regno] = (regno << 11) | (regno << 5) | regno; in atyfb_setcolreg()
2905 pal[regno] = (regno << 16) | (regno << 8) | regno; in atyfb_setcolreg()
2908 i = (regno << 8) | regno; in atyfb_setcolreg()
2909 pal[regno] = (i << 16) | i; in atyfb_setcolreg()
2922 if (regno < 32) in atyfb_setcolreg()
2923 aty_st_pal(regno << 3, red, in atyfb_setcolreg()
2924 par->palette[regno << 1].green, in atyfb_setcolreg()
2926 red = par->palette[regno >> 1].red; in atyfb_setcolreg()
2927 blue = par->palette[regno >> 1].blue; in atyfb_setcolreg()
2928 regno <<= 2; in atyfb_setcolreg()
2930 regno <<= 3; in atyfb_setcolreg()
2932 aty_st_pal(regno + i, red, green, blue, par); in atyfb_setcolreg()
2935 aty_st_pal(regno, red, green, blue, par); in atyfb_setcolreg()