/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 | 101 if (cmap->blue) in fb_alloc_cmap() 102 kfree(cmap->blue); in fb_alloc_cmap() 105 cmap->red = cmap->green = cmap->blue = cmap->transp = NULL; in fb_alloc_cmap() 113 if (!(cmap->blue = kmalloc(size, GFP_ATOMIC))) in fb_alloc_cmap() 163 memcpy(to->blue+tooff, from->blue+fromoff, size); in fb_copy_cmap() 170 copy_from_user(to->blue+tooff, from->blue+fromoff, size); in fb_copy_cmap() 177 copy_to_user(to->blue+tooff, from->blue+fromoff, size); in fb_copy_cmap() 204 u16 *red, *green, *blue, *transp; in fb_get_cmap() local 209 blue = cmap->blue; in fb_get_cmap() 220 *blue = hblue; in fb_get_cmap() [all …]
|
D | vesafb.c | 82 static struct { u_short blue, green, red, pad; } palette[256]; member 290 unsigned *blue, unsigned *transp, in vesa_getcolreg() argument 303 *blue = palette[regno].blue; 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 318 entry.blue = blue >> 10; in vesa_setpalette() 334 outb_p(blue >> 10, dac_val); in vesa_setpalette() 343 unsigned blue, unsigned transp, in vesa_setcolreg() argument 358 palette[regno].blue = blue; 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, 508 var->blue.offset = 0; in set_color_bitfields() 509 var->blue.length = 8; in set_color_bitfields() 518 var->blue.offset = 11; in set_color_bitfields() 519 var->blue.length = 5; in set_color_bitfields() 528 var->blue.offset = 16; in set_color_bitfields() 529 var->blue.length = 8; in set_color_bitfields() 538 var->blue.offset = 16; 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, 299 palette[i].blue=default_blu[j]; in g364fb_init() 300 pal_ptr[i << 1] = (palette[i].red << 16) | (palette[i].green << 8) | palette[i].blue; in g364fb_init() 346 fb_var.blue.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 45 *blue = regs->addr_cmap_data & 0x0f; in bt455_read_cmap_entry() 49 u8 red, u8 green, u8 blue) in bt455_write_cmap_entry() argument 57 regs->addr_cmap_data = blue & 0x0f; in bt455_write_cmap_entry() 61 u8 red, u8 green, u8 blue) in bt455_write_ovly_entry() argument 69 regs->addr_ovly = blue & 0x0f; in bt455_write_ovly_entry()
|
D | tx3912fb.c | 39 static struct { u_char red, green, blue, pad; } palette[256]; member 80 u_int *blue, u_int *transp, struct fb_info *info); 81 static int tx3912fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 208 var->blue.offset = 0; in tx3912fb_set_var() 209 var->blue.length = 2; in tx3912fb_set_var() 215 var->blue.msb_right = 0; in tx3912fb_set_var() 479 u_int *blue, u_int *transp, struct fb_info *info) in tx3912fb_getcolreg() argument 496 *blue = grey; in tx3912fb_getcolreg() 501 *blue = (palette[regno].blue<<8) | palette[regno].blue; 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 490 *blue = (palette[regno].blue<<8) | palette[regno].blue; in fm2fb_getcolreg() 502 static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in fm2fb_setcolreg() argument 509 blue >>= 8; in fm2fb_setcolreg() 512 palette[regno].blue = blue; 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, 482 var->blue.offset = 0; in offb_init_fb() 483 var->blue.length = 8; in offb_init_fb() 493 var->blue.offset = 0; in offb_init_fb() 494 var->blue.length = 5; in offb_init_fb() 504 var->blue.offset = 0; in offb_init_fb() 505 var->blue.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 143 u_int *blue, u_int *transp, struct fb_info *info); 144 static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 261 p->palette[i].blue = inb(0x3c9); in chipsfb_blank() 279 outb(p->palette[i].blue, 0x3c9); in chipsfb_blank() 285 u_int *blue, u_int *transp, struct fb_info *info) in chipsfb_getcolreg() argument 293 *blue = (p->palette[regno].blue<<8) | p->palette[regno].blue; in chipsfb_getcolreg() 298 static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in chipsfb_setcolreg() argument 307 blue >>= 8; in chipsfb_setcolreg() 310 p->palette[regno].blue = blue; in chipsfb_setcolreg() [all …]
|
D | au1100fb.c | 83 struct { unsigned red, green, blue, pad; } palette[256]; member 169 var->blue.offset = 0; in set_color_bitfields() 170 var->blue.length = 8; in set_color_bitfields() 179 var->blue.offset = 0; in set_color_bitfields() 180 var->blue.length = 5; in set_color_bitfields() 188 var->blue.msb_right = 0; in set_color_bitfields() 254 unsigned *blue, unsigned *transp, in au1100_getcolreg() argument 265 *blue = i->palette[regno].blue; in au1100_getcolreg() 272 unsigned blue, unsigned transp, in au1100_setcolreg() argument 283 i->palette[regno].blue = blue; in au1100_setcolreg() [all …]
|
D | hitfb.c | 186 var->blue.offset = 0; in hitfb_encode_var() 187 var->blue.length = 8; in hitfb_encode_var() 197 var->blue.offset = 0; in hitfb_encode_var() 198 var->blue.length = 5; in hitfb_encode_var() 206 var->blue.msb_right = 0; in hitfb_encode_var() 228 unsigned *blue, unsigned *transp, in hitfb_getcolreg() argument 237 *blue = inw(HD64461_CPTRDR)<<10; in hitfb_getcolreg() 245 unsigned blue, unsigned transp, in hitfb_setcolreg() argument 254 outw(blue>>10, HD64461_CPTWDR); in hitfb_setcolreg() 263 ((blue & 0xf800) >> 11); in hitfb_setcolreg()
|
D | macmodes.c | 319 unsigned char *blue) in console_setcmap() argument 336 palette_cmap.blue[j] = (blue[i+j] << 8) | blue[i+j]; in console_setcmap() 409 var->blue.offset = 0; in mac_vmode_to_var() 410 var->blue.length = 8; in mac_vmode_to_var() 419 var->blue.offset = 0; in mac_vmode_to_var() 420 var->blue.length = 5; in mac_vmode_to_var() 429 var->blue.offset = 0; in mac_vmode_to_var() 430 var->blue.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 372 *blue = b << 8; in getcolreg() 378 static int setcolreg(u32 reg, u32 red, u32 green, u32 blue, u32 transp, in setcolreg() argument 392 blue = (blue >> 8) & 0xff; in setcolreg() 394 ims332_write_cmap(ip->ims332, reg, red, green, blue); in setcolreg() 503 var->blue.offset = 0; in maxinefb_encode_var() 504 var->blue.length = 1; in maxinefb_encode_var() 505 var->blue.msb_right = 0; in maxinefb_encode_var() 519 var->blue.offset = 0; in maxinefb_encode_var() 520 var->blue.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, 425 var->blue.offset = 0; in tgafb_encode_var() 429 var->blue.offset = 0; 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() 536 palette[i].blue=default_blu[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 701 *blue = (palette[regno].blue<<8) | palette[regno].blue; in tgafb_getcolreg() [all …]
|
D | skeletonfb.c | 166 unsigned *blue, unsigned *transp, in xxx_getcolreg() argument 180 unsigned blue, unsigned transp, in xxx_setcolreg() argument 196 ((blue & 0xf800) >> 11); in xxx_setcolreg() 200 ((blue & 0xf800) >> 11); in xxx_setcolreg() 204 ((blue & 0xff00) >> 8); in xxx_setcolreg() 208 (blue & 0xff00) | 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, 490 palette[i].blue=default_blu[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 645 *blue = (palette[regno].blue << 8) | palette[regno].blue; 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 352 pal.vidc.blue = blue >> 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 362 *blue = EXTEND4(current_par.palette[regno].vidc.blue); 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 532 pal.vidc20.blue = blue >> 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 542 *blue = EXTEND8(current_par.palette[regno].vidc20.blue); 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 527 *blue = palette[regno].blue << 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 545 blue >>= 8; in sgivwfb_setcolreg() 548 palette[regno].blue = blue; in sgivwfb_setcolreg() 554 regs->cmap[regno] = (red << 24) | (green << 16) | (blue << 8); in sgivwfb_setcolreg() 699 var->blue.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() 559 unsigned *blue, unsigned *transp, in vga16_getcolreg() argument 572 *blue = palette[regno].blue; in vga16_getcolreg() 577 static void vga16_setpalette(int regno, unsigned red, unsigned green, unsigned blue) in vga16_setpalette() argument 582 outb(blue >> 10, dac_val); in vga16_setpalette() 586 unsigned blue, unsigned transp, 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, 547 var->blue.offset = 0; var->blue.length = 5; in set_color_bitfields() 553 var->blue.offset = 0; var->blue.length = 8; in set_color_bitfields() 559 var->blue.offset = 0; var->blue.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 573 *blue = palette[regno].blue; in pvr2_getcolreg() 578 static int pvr2_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in pvr2_setcolreg() argument 586 palette[regno].blue = blue; in pvr2_setcolreg() [all …]
|
D | q40fb.c | 112 var->blue.offset=0; in q40fb_get_var() 113 var->blue.length=6; in q40fb_get_var() 174 unsigned *blue, unsigned *transp, in q40_getcolreg() argument 187 *blue = ((fbcon_cmap_cfb16[regno]) & 63)<<10; in q40_getcolreg() 193 unsigned blue, unsigned transp, struct fb_info *info) in q40_setcolreg() argument 203 blue>>=10; in q40_setcolreg() 208 (blue & 63); 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 332 blue >>= 8; in cyber2000_setcolreg() 337 cfb->palette[regno].blue = blue; in cyber2000_setcolreg() 345 cyber2000fb_writeb(blue, 0x3c9, cfb); in cyber2000_setcolreg() 357 cyber2000fb_writeb(cfb->palette[regno >> 1].blue, 0x3c9, cfb); in cyber2000_setcolreg() 365 cyber2000fb_writeb(blue, 0x3c9, cfb); in cyber2000_setcolreg() 372 ((blue >> 3)); in cyber2000_setcolreg() 381 cyber2000fb_writeb(blue, 0x3c9, cfb); in cyber2000_setcolreg() 387 ((blue >> 3)); 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 24 int blue; in setcolor() member 36 args.blue = blue; in setcolor()
|
/linux-2.4.37.9/drivers/video/matrox/ |
D | matroxfb_crtc2.c | 30 unsigned *blue, unsigned *transp, struct fb_info* info) { in matroxfb_dh_getcolreg() argument 35 *blue = m2info->palette[regno].blue; in matroxfb_dh_getcolreg() 43 unsigned blue, unsigned transp, struct fb_info* info) { in matroxfb_dh_setcolreg() argument 50 m2info->palette[regno].blue = blue; in matroxfb_dh_setcolreg() 56 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in matroxfb_dh_setcolreg() 60 blue = CNVT_TOHW(blue, p->var.blue.length); in matroxfb_dh_setcolreg() 69 (blue << p->var.blue.offset) | in matroxfb_dh_setcolreg() 78 (blue << p->var.blue.offset) | in matroxfb_dh_setcolreg() 285 var->blue.offset = 0; in matroxfb_dh_decode_var() 286 var->blue.length = 5; in matroxfb_dh_decode_var() [all …]
|