Lines Matching refs:regno
1291 * @regno: register index
1303 * Return != 0 for invalid regno.
1308 static int rivafb_setcolreg(unsigned regno, unsigned red, unsigned green,
1316 if (regno >= riva_get_cmap_len(&info->var))
1325 if (regno < 16 && info->fix.visual == FB_VISUAL_DIRECTCOLOR) {
1326 ((u32 *) info->pseudo_palette)[regno] =
1327 (regno << info->var.red.offset) |
1328 (regno << info->var.green.offset) |
1329 (regno << info->var.blue.offset);
1337 par->palette[regno] = ((red & 0xf800) >> 1) |
1342 par->palette[regno] = ((red & 0xff00) << 8) |
1353 riva_wclut(chip, regno, red >> 8, green >> 8, blue >> 8);
1358 riva_wclut(chip, regno*8+i, red >> 8,
1364 if (regno < 32) {
1366 riva_wclut(chip, regno*8+i,
1371 riva_rclut(chip, regno*4, &r, &g, &b);
1373 riva_wclut(chip, regno*4+i, r,
1378 riva_wclut(chip, regno, red >> 8, green >> 8, blue >> 8);