Lines Matching defs:regno
467 static int aty128fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
1652 static void aty128_st_pal(u_int regno, u_int red, u_int green, u_int blue,
1660 aty_st_8(PALETTE_INDEX, regno);
2229 * entries in the var structure). Return != 0 for invalid regno.
2231 static int aty128fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
2236 if (regno > 255
2237 || (par->crtc.depth == 16 && regno > 63)
2238 || (par->crtc.depth == 15 && regno > 31))
2245 if (regno < 16) {
2251 pal[regno] = (regno << 10) | (regno << 5) | regno;
2254 pal[regno] = (regno << 11) | (regno << 6) | regno;
2257 pal[regno] = (regno << 16) | (regno << 8) | regno;
2260 i = (regno << 8) | regno;
2261 pal[regno] = (i << 16) | i;
2266 if (par->crtc.depth == 16 && regno > 0) {
2274 par->green[regno] = green;
2275 if (regno < 32) {
2276 par->red[regno] = red;
2277 par->blue[regno] = blue;
2278 aty128_st_pal(regno * 8, red, par->green[regno*2],
2281 red = par->red[regno/2];
2282 blue = par->blue[regno/2];
2283 regno <<= 2;
2285 regno <<= 3;
2286 aty128_st_pal(regno, red, green, blue, par);