Lines Matching refs:regno

52 static int (*macfb_setpalette)(unsigned int regno, unsigned int red,
144 static int dafb_setpalette(unsigned int regno, unsigned int red,
157 if (regno != lastreg + 1) {
165 for (i = 0; i < regno; i++) {
185 lastreg = regno;
190 static int v8_brazil_setpalette(unsigned int regno, unsigned int red,
205 regno = (regno << (8 - bpp)) | (0xFF >> bpp);
206 nubus_writeb(regno, &v8_brazil_cmap_regs->addr);
221 static int rbv_setpalette(unsigned int regno, unsigned int red,
230 * regno #254 and #255 are the important ones for 1-bit color,
231 * regno #252-255 are the important ones for 2-bit color, etc.
233 regno += 256 - (1 << info->var.bits_per_pixel);
240 nubus_writeb(regno, &rbv_cmap_regs->addr);
255 static int mdc_setpalette(unsigned int regno, unsigned int red,
265 nubus_writeb(regno, &cmap_regs->addr);
278 static int toby_setpalette(unsigned int regno, unsigned int red,
289 regno = (regno << (8 - bpp)) | (0xFF >> bpp);
293 nubus_writeb(regno, &cmap_regs->addr);
306 static int jet_setpalette(unsigned int regno, unsigned int red,
315 nubus_writeb(regno, &cmap_regs->addr);
336 static int civic_setpalette(unsigned int regno, unsigned int red,
346 nubus_writeb(regno, &civic_cmap_regs->addr);
414 static int csc_setpalette(unsigned int regno, unsigned int red,
423 nubus_writeb(regno, &csc_cmap_regs->clut_waddr);
432 static int macfb_setcolreg(unsigned regno, unsigned red, unsigned green,
440 * Return non-zero for invalid regno.
443 if (regno >= fb_info->cmap.len)
455 macfb_setpalette(regno, red >> 8, green >> 8,
461 } else if (regno < 16) {
466 ((u32*) (fb_info->pseudo_palette))[regno] =
473 ((u32*) (fb_info->pseudo_palette))[regno] =
488 ((u32 *)(fb_info->pseudo_palette))[regno] =