Lines Matching refs:regno
312 static int iga_getcolreg(unsigned regno, unsigned *red, unsigned *green, in iga_getcolreg() argument
322 if (regno >= info->video_cmap_len) in iga_getcolreg()
325 *red = info->palette[regno].red; in iga_getcolreg()
326 *green = info->palette[regno].green; in iga_getcolreg()
327 *blue = info->palette[regno].blue; in iga_getcolreg()
332 static int iga_setcolreg(unsigned regno, unsigned red, unsigned green, in iga_setcolreg() argument
345 if (regno >= info->video_cmap_len) in iga_setcolreg()
348 info->palette[regno].red = red; in iga_setcolreg()
349 info->palette[regno].green = green; in iga_setcolreg()
350 info->palette[regno].blue = blue; in iga_setcolreg()
352 pci_outb(info, regno, DAC_W_INDEX); in iga_setcolreg()
357 if (regno < 16) { in iga_setcolreg()
361 info->fbcon_cmap.cfb16[regno] = in iga_setcolreg()
362 (regno << 10) | (regno << 5) | regno; in iga_setcolreg()
367 info->fbcon_cmap.cfb24[regno] = in iga_setcolreg()
368 (regno << 16) | (regno << 8) | regno; in iga_setcolreg()
374 i = (regno << 8) | regno; in iga_setcolreg()
375 info->fbcon_cmap.cfb32[regno] = (i << 16) | i; in iga_setcolreg()