/linux-2.4.37.9/drivers/video/ |
D | macfb.c | 70 unsigned int green, unsigned int blue) = NULL; 72 unsigned int green, unsigned int blue); 74 unsigned int green, unsigned int blue); 76 unsigned int green, unsigned int blue); 78 unsigned int green, unsigned int blue); 80 unsigned int green, unsigned int blue); 82 unsigned int green, unsigned int blue); 84 unsigned int green, unsigned int blue); 193 static struct { u_short blue, green, red, pad; } palette[256]; member 342 unsigned int green, unsigned int blue) in valkyrie_setpalette() argument [all …]
|
D | fbcmap.c | 99 if (cmap->green) in fb_alloc_cmap() 100 kfree(cmap->green); in fb_alloc_cmap() 105 cmap->red = cmap->green = cmap->blue = cmap->transp = NULL; in fb_alloc_cmap() 111 if (!(cmap->green = kmalloc(size, GFP_ATOMIC))) in fb_alloc_cmap() 162 memcpy(to->green+tooff, from->green+fromoff, size); in fb_copy_cmap() 169 copy_from_user(to->green+tooff, from->green+fromoff, size); in fb_copy_cmap() 176 copy_to_user(to->green+tooff, from->green+fromoff, size); in fb_copy_cmap() 204 u16 *red, *green, *blue, *transp; in fb_get_cmap() local 208 green = cmap->green; in fb_get_cmap() 219 *green = hgreen; in fb_get_cmap() [all …]
|
D | vesafb.c | 82 static struct { u_short blue, green, red, pad; } palette[256]; member 289 static int vesa_getcolreg(unsigned regno, unsigned *red, unsigned *green, in vesa_getcolreg() argument 302 *green = palette[regno].green; in vesa_getcolreg() 310 static void vesa_setpalette(int regno, unsigned red, unsigned green, unsigned blue) in vesa_setpalette() argument 313 struct { u_char blue, green, red, pad; } entry; in vesa_setpalette() member 317 entry.green = green >> 10; in vesa_setpalette() 333 outb_p(green >> 10, dac_val); in vesa_setpalette() 342 static int vesa_setcolreg(unsigned regno, unsigned red, unsigned green, in vesa_setcolreg() argument 357 palette[regno].green = green; in vesa_setcolreg() 363 vesa_setpalette(regno,red,green,blue); in vesa_setcolreg() [all …]
|
D | vfb.c | 49 static struct { u_char red, green, blue, pad; } palette[256]; member 112 static int vfb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 114 static int vfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 506 var->green.offset = 0; in set_color_bitfields() 507 var->green.length = 8; in set_color_bitfields() 516 var->green.offset = 5; in set_color_bitfields() 517 var->green.length = 6; in set_color_bitfields() 526 var->green.offset = 8; in set_color_bitfields() 527 var->green.length = 8; in set_color_bitfields() 536 var->green.offset = 8; in set_color_bitfields() [all …]
|
D | g364fb.c | 83 static struct { u_char red, green, blue, pad; } palette[256]; member 118 static int g364fb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 120 static int g364fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 298 palette[i].green=default_grn[j]; in g364fb_init() 300 pal_ptr[i << 1] = (palette[i].red << 16) | (palette[i].green << 8) | palette[i].blue; in g364fb_init() 345 fb_var.green.offset = 0; in g364fb_init() 348 fb_var.red.length = fb_var.green.length = fb_var.blue.length = 8; in g364fb_init() 349 fb_var.red.msb_right = fb_var.green.msb_right = fb_var.blue.msb_right = 0; in g364fb_init() 368 disp.cmap.red = disp.cmap.green = disp.cmap.blue = disp.cmap.transp = NULL; in g364fb_init() 444 static int g364fb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in g364fb_getcolreg() argument [all …]
|
D | bt455.h | 37 u8* red, u8* green, u8* blue) in bt455_read_cmap_entry() argument 43 *green = regs->addr_cmap_data & 0x0f; in bt455_read_cmap_entry() 49 u8 red, u8 green, u8 blue) in bt455_write_cmap_entry() argument 55 regs->addr_cmap_data = green & 0x0f; in bt455_write_cmap_entry() 61 u8 red, u8 green, u8 blue) in bt455_write_ovly_entry() argument 67 regs->addr_ovly = green & 0x0f; in bt455_write_ovly_entry()
|
D | tx3912fb.c | 39 static struct { u_char red, green, blue, pad; } palette[256]; member 79 static int tx3912fb_getcolreg(u_int regno, u_int *red, u_int *green, 81 static int tx3912fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 206 var->green.offset = 2; in tx3912fb_set_var() 207 var->green.length = 3; in tx3912fb_set_var() 214 var->green.msb_right = 0; in tx3912fb_set_var() 478 static int tx3912fb_getcolreg(u_int regno, u_int *red, u_int *green, in tx3912fb_getcolreg() argument 495 *green = grey; in tx3912fb_getcolreg() 500 *green = (palette[regno].green<<8) | palette[regno].green; in tx3912fb_getcolreg() 511 static int tx3912fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in tx3912fb_setcolreg() argument [all …]
|
D | fm2fb.c | 150 static struct { u_char red, green, blue, pad; } palette[16]; member 210 static int fm2fb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 212 static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 385 disp.cmap.red = disp.cmap.green = disp.cmap.blue = disp.cmap.transp = NULL; in fm2fb_init() 483 static int fm2fb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in fm2fb_getcolreg() argument 489 *green = (palette[regno].green<<8) | palette[regno].green; in fm2fb_getcolreg() 502 static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in fm2fb_setcolreg() argument 508 green >>= 8; in fm2fb_setcolreg() 511 palette[regno].green = green; in fm2fb_setcolreg() 515 fbcon_cfb32_cmap[regno] = (red << 16) | (green << 8) | blue; in fm2fb_setcolreg()
|
D | offb.c | 64 struct { u_char red, green, blue, pad; } palette[256]; member 124 static int offb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 126 static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 480 var->green.offset = 0; in offb_init_fb() 481 var->green.length = 8; in offb_init_fb() 491 var->green.offset = 5; in offb_init_fb() 492 var->green.length = 5; in offb_init_fb() 502 var->green.offset = 8; in offb_init_fb() 503 var->green.length = 8; in offb_init_fb() 510 var->red.msb_right = var->green.msb_right = var->blue.msb_right = var->transp.msb_right = 0; in offb_init_fb() [all …]
|
D | chipsfb.c | 59 __u8 red, green, blue; member 142 static int chipsfb_getcolreg(u_int regno, u_int *red, u_int *green, 144 static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 260 p->palette[i].green = inb(0x3c9); in chipsfb_blank() 278 outb(p->palette[i].green, 0x3c9); in chipsfb_blank() 284 static int chipsfb_getcolreg(u_int regno, u_int *red, u_int *green, in chipsfb_getcolreg() argument 292 *green = (p->palette[regno].green<<8) | p->palette[regno].green; in chipsfb_getcolreg() 298 static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in chipsfb_setcolreg() argument 306 green >>= 8; in chipsfb_setcolreg() 309 p->palette[regno].green = green; in chipsfb_setcolreg() [all …]
|
D | au1100fb.c | 83 struct { unsigned red, green, blue, pad; } palette[256]; member 167 var->green.offset = 0; in set_color_bitfields() 168 var->green.length = 8; in set_color_bitfields() 177 var->green.offset = 5; in set_color_bitfields() 178 var->green.length = 6; in set_color_bitfields() 187 var->green.msb_right = 0; in set_color_bitfields() 253 static int au1100_getcolreg(unsigned regno, unsigned *red, unsigned *green, in au1100_getcolreg() argument 264 *green = i->palette[regno].green; in au1100_getcolreg() 271 static int au1100_setcolreg(unsigned regno, unsigned red, unsigned green, in au1100_setcolreg() argument 282 i->palette[regno].green = green; in au1100_setcolreg() [all …]
|
D | hitfb.c | 184 var->green.offset = 0; in hitfb_encode_var() 185 var->green.length = 8; in hitfb_encode_var() 195 var->green.offset = 5; in hitfb_encode_var() 196 var->green.length = 6; in hitfb_encode_var() 205 var->green.msb_right = 0; in hitfb_encode_var() 227 static int hitfb_getcolreg(unsigned regno, unsigned *red, unsigned *green, in hitfb_getcolreg() argument 236 *green = inw(HD64461_CPTRDR)<<10; in hitfb_getcolreg() 244 static int hitfb_setcolreg(unsigned regno, unsigned red, unsigned green, in hitfb_setcolreg() argument 253 outw(green>>10, HD64461_CPTWDR); in hitfb_setcolreg() 262 ((green & 0xfc00) >> 5) | in hitfb_setcolreg()
|
D | macmodes.c | 318 int console_setcmap(int n_entries, unsigned char *red, unsigned char *green, in console_setcmap() argument 335 palette_cmap.green[j] = (green[i+j] << 8) | green[i+j]; in console_setcmap() 407 var->green.offset = 0; in mac_vmode_to_var() 408 var->green.length = 8; in mac_vmode_to_var() 417 var->green.offset = 5; in mac_vmode_to_var() 418 var->green.length = 5; in mac_vmode_to_var() 427 var->green.offset = 8; in mac_vmode_to_var() 428 var->green.length = 8; in mac_vmode_to_var()
|
D | maxinefb.c | 353 static int getcolreg(u32 reg, u32 *red, u32 *green, u32 *blue, u32 *transp, in getcolreg() argument 371 *green = g << 8; in getcolreg() 378 static int setcolreg(u32 reg, u32 red, u32 green, u32 blue, u32 transp, in setcolreg() argument 391 green = (green >> 8) & 0xff; in setcolreg() 394 ims332_write_cmap(ip->ims332, reg, red, green, blue); in setcolreg() 500 var->green.offset = 0; in maxinefb_encode_var() 501 var->green.length = 1; in maxinefb_encode_var() 502 var->green.msb_right = 0; in maxinefb_encode_var() 516 var->green.offset = 0; in maxinefb_encode_var() 517 var->green.length = 2; in maxinefb_encode_var() [all …]
|
D | tgafb.c | 69 static struct { u_char red, green, blue, pad; } palette[256]; member 276 static int tgafb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 278 static int tgafb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 424 var->green.offset = 0; in tgafb_encode_var() 428 var->green.offset = 8; in tgafb_encode_var() 433 var->red.length = var->green.length = var->blue.length = 8; in tgafb_encode_var() 434 var->red.msb_right = var->green.msb_right = var->blue.msb_right = 0; in tgafb_encode_var() 535 palette[i].green=default_grn[j]; in tgafb_set_par() 694 static int tgafb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in tgafb_getcolreg() argument 700 *green = (palette[regno].green<<8) | palette[regno].green; in tgafb_getcolreg() [all …]
|
D | skeletonfb.c | 165 static int xxx_getcolreg(unsigned regno, unsigned *red, unsigned *green, in xxx_getcolreg() argument 179 static int xxx_setcolreg(unsigned regno, unsigned red, unsigned green, in xxx_setcolreg() argument 195 ((green & 0xf800) >> 6) | in xxx_setcolreg() 199 ((green & 0xfc00) >> 5) | in xxx_setcolreg() 203 (green & 0xff00) | in xxx_setcolreg() 207 ((green & 0xff00) << 8) | in xxx_setcolreg()
|
D | S3triofb.c | 64 static struct { u_char red, green, blue, pad; } palette[256]; member 135 static int s3trio_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 137 static int s3trio_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 489 palette[i].green=default_grn[j]; in s3triofb_pci_init() 505 fb_var.red.offset = fb_var.green.offset = fb_var.blue.offset = 0; in s3triofb_pci_init() 506 fb_var.red.length = fb_var.green.length = fb_var.blue.length = 8; in s3triofb_pci_init() 507 fb_var.red.msb_right = fb_var.green.msb_right = fb_var.blue.msb_right = 0; in s3triofb_pci_init() 524 disp.cmap.red = disp.cmap.green = disp.cmap.blue = disp.cmap.transp = NULL; in s3triofb_pci_init() 638 static int s3trio_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in s3trio_getcolreg() argument 644 *green = (palette[regno].green << 8) | palette[regno].green; in s3trio_getcolreg() [all …]
|
D | acornfb.c | 343 acornfb_palette_encode(u_int regno, u_int red, u_int green, u_int blue, in acornfb_palette_encode() argument 351 pal.vidc.green = green >> 12; in acornfb_palette_encode() 357 acornfb_palette_decode(u_int regno, u_int *red, u_int *green, u_int *blue, in acornfb_palette_decode() argument 361 *green = EXTEND4(current_par.palette[regno].vidc.green); in acornfb_palette_decode() 524 acornfb_palette_encode(u_int regno, u_int red, u_int green, u_int blue, in acornfb_palette_encode() argument 531 pal.vidc20.green = green >> 8; in acornfb_palette_encode() 537 acornfb_palette_decode(u_int regno, u_int *red, u_int *green, u_int *blue, in acornfb_palette_decode() argument 541 *green = EXTEND8(current_par.palette[regno].vidc20.green); in acornfb_palette_decode() 706 acornfb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in acornfb_getcolreg() argument 712 acornfb_palette_decode(regno, red, green, blue, trans); in acornfb_getcolreg() [all …]
|
D | sgivwfb.c | 58 static struct { u_char red, green, blue, pad; } palette[256]; member 133 static int sgivwfb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 135 static int sgivwfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 519 static int sgivwfb_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in sgivwfb_getcolreg() argument 526 *green = palette[regno].green << 8; in sgivwfb_getcolreg() 538 static int sgivwfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in sgivwfb_setcolreg() argument 544 green >>= 8; in sgivwfb_setcolreg() 547 palette[regno].green = green; in sgivwfb_setcolreg() 554 regs->cmap[regno] = (red << 24) | (green << 16) | (blue << 8); in sgivwfb_setcolreg() 697 var->green.offset = 0; in sgivwfb_set_var() [all …]
|
D | vga16fb.c | 103 static struct { u_short blue, green, red, pad; } palette[256]; member 419 par->var.red.offset = par->var.green.offset = par->var.blue.offset = in vga16fb_decode_var() 421 par->var.red.length = par->var.green.length = par->var.blue.length = in vga16fb_decode_var() 545 static void ega16_setpalette(int regno, unsigned red, unsigned green, unsigned blue) in ega16_setpalette() argument 550 val = map[red>>14] | ((map[green>>14]) << 1) | ((map[blue>>14]) << 2); in ega16_setpalette() 558 static int vga16_getcolreg(unsigned regno, unsigned *red, unsigned *green, in vga16_getcolreg() argument 571 *green = palette[regno].green; in vga16_getcolreg() 577 static void vga16_setpalette(int regno, unsigned red, unsigned green, unsigned blue) in vga16_setpalette() argument 581 outb(green >> 10, dac_val); in vga16_setpalette() 585 static int vga16_setcolreg(unsigned regno, unsigned red, unsigned green, in vga16_setcolreg() argument [all …]
|
D | pvr2fb.c | 166 static struct { u_short red, green, blue, alpha; } palette[256]; member 233 static int pvr2_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, 235 static int pvr2_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 546 var->green.offset = 5; var->green.length = 6; in set_color_bitfields() 552 var->green.offset = 8; var->green.length = 8; in set_color_bitfields() 558 var->green.offset = 8; var->green.length = 8; in set_color_bitfields() 565 static int pvr2_getcolreg(u_int regno, u_int *red, u_int *green, u_int *blue, in pvr2_getcolreg() argument 572 *green = palette[regno].green; in pvr2_getcolreg() 578 static int pvr2_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in pvr2_setcolreg() argument 585 palette[regno].green = green; in pvr2_setcolreg() [all …]
|
D | q40fb.c | 110 var->green.offset=11; /*11*/ in q40fb_get_var() 111 var->green.length=5; in q40fb_get_var() 173 static int q40_getcolreg(unsigned regno, unsigned *red, unsigned *green, in q40_getcolreg() argument 185 *green = ((fbcon_cmap_cfb16[regno]>>11) & 31)<<11; in q40_getcolreg() 192 static int q40_setcolreg(unsigned regno, unsigned red, unsigned green, in q40_setcolreg() argument 202 green>>=11; in q40_setcolreg() 207 ((green & 31) << 11) | in q40_setcolreg()
|
D | cyber2000fb.c | 81 u8 red, green, blue; member 320 cyber2000_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in cyber2000_setcolreg() argument 331 green >>= 8; in cyber2000_setcolreg() 336 cfb->palette[regno].green = green; in cyber2000_setcolreg() 344 cyber2000fb_writeb(green, 0x3c9, cfb); in cyber2000_setcolreg() 356 cyber2000fb_writeb(green, 0x3c9, cfb); in cyber2000_setcolreg() 364 cyber2000fb_writeb(cfb->palette[regno << 1].green, 0x3c9, cfb); in cyber2000_setcolreg() 371 ((green << 3) & 0x07e0) | in cyber2000_setcolreg() 380 cyber2000fb_writeb(green, 0x3c9, cfb); in cyber2000_setcolreg() 386 ((green << 2) & 0x03e0) | in cyber2000_setcolreg() [all …]
|
/linux-2.4.37.9/arch/ppc/boot/of1275/ |
D | setcolor.c | 15 setcolor(ihandle instance, int color, int red, int green, int blue) in setcolor() argument 25 int green; in setcolor() member 37 args.green = green; in setcolor()
|
/linux-2.4.37.9/drivers/video/matrox/ |
D | matroxfb_crtc2.c | 29 static int matroxfb_dh_getcolreg(unsigned regno, unsigned *red, unsigned *green, in matroxfb_dh_getcolreg() argument 36 *green = m2info->palette[regno].green; in matroxfb_dh_getcolreg() 42 static int matroxfb_dh_setcolreg(unsigned regno, unsigned red, unsigned green, in matroxfb_dh_setcolreg() argument 51 m2info->palette[regno].green = green; in matroxfb_dh_setcolreg() 56 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in matroxfb_dh_setcolreg() 59 green = CNVT_TOHW(green, p->var.green.length); in matroxfb_dh_setcolreg() 68 (green << p->var.green.offset) | in matroxfb_dh_setcolreg() 77 (green << p->var.green.offset) | in matroxfb_dh_setcolreg() 280 if (var->green.length == 5) { in matroxfb_dh_decode_var() 283 var->green.offset = 5; in matroxfb_dh_decode_var() [all …]
|