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);
2228 * entries in the var structure). Return != 0 for invalid regno.
2230 static int aty128fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
2235 if (regno > 255
2236 || (par->crtc.depth == 16 && regno > 63)
2237 || (par->crtc.depth == 15 && regno > 31))
2244 if (regno < 16) {
2250 pal[regno] = (regno << 10) | (regno << 5) | regno;
2253 pal[regno] = (regno << 11) | (regno << 6) | regno;
2256 pal[regno] = (regno << 16) | (regno << 8) | regno;
2259 i = (regno << 8) | regno;
2260 pal[regno] = (i << 16) | i;
2265 if (par->crtc.depth == 16 && regno > 0) {
2273 par->green[regno] = green;
2274 if (regno < 32) {
2275 par->red[regno] = red;
2276 par->blue[regno] = blue;
2277 aty128_st_pal(regno * 8, red, par->green[regno*2],
2280 red = par->red[regno/2];
2281 blue = par->blue[regno/2];
2282 regno <<= 2;
2284 regno <<= 3;
2285 aty128_st_pal(regno, red, green, blue, par);