Home
last modified time | relevance | path

Searched refs:palette (Results 1 – 25 of 87) sorted by relevance

1234

/linux-2.4.37.9/drivers/video/
Dg364fb.c83 static struct { u_char red, green, blue, pad; } palette[256]; variable
297 palette[i].red=default_red[j]; in g364fb_init()
298 palette[i].green=default_grn[j]; in g364fb_init()
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()
449 *red = (palette[regno].red << 8) | palette[regno].red; in g364fb_getcolreg()
450 *green = (palette[regno].green << 8) | palette[regno].green; in g364fb_getcolreg()
451 *blue = (palette[regno].blue << 8) | palette[regno].blue; in g364fb_getcolreg()
470 palette[regno].red = red; in g364fb_setcolreg()
471 palette[regno].green = green; in g364fb_setcolreg()
[all …]
Dchipsfb.c60 } palette[256]; member
259 p->palette[i].red = inb(0x3c9); in chipsfb_blank()
260 p->palette[i].green = inb(0x3c9); in chipsfb_blank()
261 p->palette[i].blue = inb(0x3c9); in chipsfb_blank()
277 outb(p->palette[i].red, 0x3c9); in chipsfb_blank()
278 outb(p->palette[i].green, 0x3c9); in chipsfb_blank()
279 outb(p->palette[i].blue, 0x3c9); in chipsfb_blank()
291 *red = (p->palette[regno].red<<8) | p->palette[regno].red; in chipsfb_getcolreg()
292 *green = (p->palette[regno].green<<8) | p->palette[regno].green; in chipsfb_getcolreg()
293 *blue = (p->palette[regno].blue<<8) | p->palette[regno].blue; in chipsfb_getcolreg()
[all …]
Dfm2fb.c150 static struct { u_char red, green, blue, pad; } palette[16]; variable
488 *red = (palette[regno].red<<8) | palette[regno].red; in fm2fb_getcolreg()
489 *green = (palette[regno].green<<8) | palette[regno].green; in fm2fb_getcolreg()
490 *blue = (palette[regno].blue<<8) | palette[regno].blue; in fm2fb_getcolreg()
510 palette[regno].red = red; in fm2fb_setcolreg()
511 palette[regno].green = green; in fm2fb_setcolreg()
512 palette[regno].blue = blue; in fm2fb_setcolreg()
Dtx3912fb.c39 static struct { u_char red, green, blue, pad; } palette[256]; variable
499 *red = (palette[regno].red<<8) | palette[regno].red; in tx3912fb_getcolreg()
500 *green = (palette[regno].green<<8) | palette[regno].green; in tx3912fb_getcolreg()
501 *blue = (palette[regno].blue<<8) | palette[regno].blue; in tx3912fb_getcolreg()
527 palette[regno].red = red; in tx3912fb_setcolreg()
528 palette[regno].green = green; in tx3912fb_setcolreg()
529 palette[regno].blue = blue; in tx3912fb_setcolreg()
Dtgafb.c69 static struct { u_char red, green, blue, pad; } palette[256]; variable
534 palette[i].red=default_red[j]; in tgafb_set_par()
535 palette[i].green=default_grn[j]; in tgafb_set_par()
536 palette[i].blue=default_blu[j]; in tgafb_set_par()
699 *red = (palette[regno].red<<8) | palette[regno].red; in tgafb_getcolreg()
700 *green = (palette[regno].green<<8) | palette[regno].green; in tgafb_getcolreg()
701 *blue = (palette[regno].blue<<8) | palette[regno].blue; in tgafb_getcolreg()
715 palette[regno].red = red; in tgafb_setcolreg()
716 palette[regno].green = green; in tgafb_setcolreg()
717 palette[regno].blue = blue; in tgafb_setcolreg()
[all …]
Dvfb.c49 static struct { u_char red, green, blue, pad; } palette[256]; variable
561 *red = (palette[regno].red<<8) | palette[regno].red; in vfb_getcolreg()
562 *green = (palette[regno].green<<8) | palette[regno].green; in vfb_getcolreg()
563 *blue = (palette[regno].blue<<8) | palette[regno].blue; in vfb_getcolreg()
583 palette[regno].red = red; in vfb_setcolreg()
584 palette[regno].green = green; in vfb_setcolreg()
585 palette[regno].blue = blue; in vfb_setcolreg()
Dacornfb.c337 acornfb_palette_write(u_int regno, union palette pal) in acornfb_palette_write()
342 static inline union palette
346 union palette pal; in acornfb_palette_encode()
360 *red = EXTEND4(current_par.palette[regno].vidc.red); in acornfb_palette_decode()
361 *green = EXTEND4(current_par.palette[regno].vidc.green); in acornfb_palette_decode()
362 *blue = EXTEND4(current_par.palette[regno].vidc.blue); in acornfb_palette_decode()
363 *trans = current_par.palette[regno].vidc.trans ? -1 : 0; in acornfb_palette_decode()
517 acornfb_palette_write(u_int regno, union palette pal) in acornfb_palette_write()
523 static inline union palette
527 union palette pal; in acornfb_palette_encode()
[all …]
Dvesafb.c82 static struct { u_short blue, green, red, pad; } palette[256]; variable
301 *red = palette[regno].red; in vesa_getcolreg()
302 *green = palette[regno].green; in vesa_getcolreg()
303 *blue = palette[regno].blue; in vesa_getcolreg()
356 palette[regno].red = red; in vesa_setcolreg()
357 palette[regno].green = green; in vesa_setcolreg()
358 palette[regno].blue = blue; in vesa_setcolreg()
657 palette[i].red = default_red[j]; in vesafb_init()
658 palette[i].green = default_grn[j]; in vesafb_init()
659 palette[i].blue = default_blu[j]; in vesafb_init()
DS3triofb.c64 static struct { u_char red, green, blue, pad; } palette[256]; variable
488 palette[i].red=default_red[j]; in s3triofb_pci_init()
489 palette[i].green=default_grn[j]; in s3triofb_pci_init()
490 palette[i].blue=default_blu[j]; in s3triofb_pci_init()
643 *red = (palette[regno].red << 8) | palette[regno].red; in s3trio_getcolreg()
644 *green = (palette[regno].green << 8) | palette[regno].green; in s3trio_getcolreg()
645 *blue = (palette[regno].blue << 8) | palette[regno].blue; in s3trio_getcolreg()
664 palette[regno].red = red; in s3trio_setcolreg()
665 palette[regno].green = green; in s3trio_setcolreg()
666 palette[regno].blue = blue; in s3trio_setcolreg()
Dvalkyriefb.c110 } palette[256]; member
367 *red = (p->palette[regno].red<<8) | p->palette[regno].red; in valkyriefb_getcolreg()
368 *green = (p->palette[regno].green<<8) | p->palette[regno].green; in valkyriefb_getcolreg()
369 *blue = (p->palette[regno].blue<<8) | p->palette[regno].blue; in valkyriefb_getcolreg()
386 p->palette[regno].red = red; in valkyriefb_setcolreg()
387 p->palette[regno].green = green; in valkyriefb_setcolreg()
388 p->palette[regno].blue = blue; in valkyriefb_setcolreg()
504 p->palette[j].red = default_red[k]; in init_valkyrie()
505 p->palette[j].green = default_grn[k]; in init_valkyrie()
506 p->palette[j].blue = default_blu[k]; in init_valkyrie()
Digafb.c84 struct { u_short blue, green, red, pad; } palette[256]; member
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()
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()
562 info->palette[j].red = default_red[k]; in iga_init()
563 info->palette[j].green = default_grn[k]; in iga_init()
564 info->palette[j].blue = default_blu[k]; in iga_init()
Doffb.c64 struct { u_char red, green, blue, pad; } palette[256]; member
594 info->palette[i].red = default_red[j]; in offb_init_fb()
595 info->palette[i].green = default_grn[j]; in offb_init_fb()
596 info->palette[i].blue = default_blu[j]; in offb_init_fb()
733 *red = (info2->palette[regno].red<<8) | info2->palette[regno].red; in offb_getcolreg()
734 *green = (info2->palette[regno].green<<8) | info2->palette[regno].green; in offb_getcolreg()
735 *blue = (info2->palette[regno].blue<<8) | info2->palette[regno].blue; in offb_getcolreg()
759 info2->palette[regno].red = red; in offb_setcolreg()
760 info2->palette[regno].green = green; in offb_setcolreg()
761 info2->palette[regno].blue = blue; in offb_setcolreg()
Dplatinumfb.c73 } palette[256]; member
394 *red = (info->palette[regno].red<<8) | info->palette[regno].red; in platinum_getcolreg()
395 *green = (info->palette[regno].green<<8) | info->palette[regno].green; in platinum_getcolreg()
396 *blue = (info->palette[regno].blue<<8) | info->palette[regno].blue; in platinum_getcolreg()
414 info->palette[regno].red = red; in platinum_setcolreg()
415 info->palette[regno].green = green; in platinum_setcolreg()
416 info->palette[regno].blue = blue; in platinum_setcolreg()
615 info->palette[j].red = default_red[k]; in init_platinum()
616 info->palette[j].green = default_grn[k]; in init_platinum()
617 info->palette[j].blue = default_blu[k]; in init_platinum()
Dacornfb.h43 union palette { union
62 union palette palette[VIDC_PALETTE_SIZE]; member
Dau1100fb.c83 struct { unsigned red, green, blue, pad; } palette[256]; member
263 *red = i->palette[regno].red; in au1100_getcolreg()
264 *green = i->palette[regno].green; in au1100_getcolreg()
265 *blue = i->palette[regno].blue; in au1100_getcolreg()
281 i->palette[regno].red = red; in au1100_setcolreg()
282 i->palette[regno].green = green; in au1100_setcolreg()
283 i->palette[regno].blue = blue; in au1100_setcolreg()
Dmacfb.c193 static struct { u_short blue, green, red, pad; } palette[256]; variable
399 nubus_writeb(palette[i].red >> 8, &dafb_cmap_regs->lut); in dafb_setpalette()
401 nubus_writeb(palette[i].green >> 8, &dafb_cmap_regs->lut); in dafb_setpalette()
403 nubus_writeb(palette[i].blue >> 8, &dafb_cmap_regs->lut); in dafb_setpalette()
698 *red = palette[regno].red; in macfb_getcolreg()
699 *green = palette[regno].green; in macfb_getcolreg()
700 *blue = palette[regno].blue; in macfb_getcolreg()
719 palette[regno].red = red; in macfb_setcolreg()
720 palette[regno].green = green; in macfb_setcolreg()
721 palette[regno].blue = blue; in macfb_setcolreg()
Dvga16fb.c103 static struct { u_short blue, green, red, pad; } palette[256]; variable
570 *red = palette[regno].red; in vga16_getcolreg()
571 *green = palette[regno].green; in vga16_getcolreg()
572 *blue = palette[regno].blue; in vga16_getcolreg()
601 palette[regno].red = red; in vga16_setcolreg()
602 palette[regno].green = green; in vga16_setcolreg()
603 palette[regno].blue = blue; in vga16_setcolreg()
917 palette[i].red = default_red[j]; in vga16fb_init()
918 palette[i].green = default_grn[j]; in vga16fb_init()
919 palette[i].blue = default_blu[j]; in vga16fb_init()
Dpm2fb.c262 } palette[256]; member
1360 if ( i->palette[c].red==i->palette[c].green && in pm2fb_clear24()
1361 i->palette[c].green==i->palette[c].blue) { in pm2fb_clear24()
1383 if ( i->palette[c].red==i->palette[c].green && in pm2fb_clear_margins24()
1384 i->palette[c].green==i->palette[c].blue) { in pm2fb_clear_margins24()
1743 *red=i->palette[regno].red<<8|i->palette[regno].red; in pm2fb_getcolreg()
1744 *green=i->palette[regno].green<<8|i->palette[regno].green; in pm2fb_getcolreg()
1745 *blue=i->palette[regno].blue<<8|i->palette[regno].blue; in pm2fb_getcolreg()
1746 *transp=i->palette[regno].transp<<8|i->palette[regno].transp; in pm2fb_getcolreg()
1794 i->palette[regno].red=red >> 8; in pm2fb_setcolreg()
[all …]
Dsgivwfb.c58 static struct { u_char red, green, blue, pad; } palette[256]; variable
525 *red = palette[regno].red << 8; in sgivwfb_getcolreg()
526 *green = palette[regno].green << 8; in sgivwfb_getcolreg()
527 *blue = palette[regno].blue << 8; in sgivwfb_getcolreg()
546 palette[regno].red = red; in sgivwfb_setcolreg()
547 palette[regno].green = green; in sgivwfb_setcolreg()
548 palette[regno].blue = blue; in sgivwfb_setcolreg()
Dcontrolfb.c107 } palette[256]; member
536 *red = (p->palette[regno].red<<8) | p->palette[regno].red; in controlfb_getcolreg()
537 *green = (p->palette[regno].green<<8) | p->palette[regno].green; in controlfb_getcolreg()
538 *blue = (p->palette[regno].blue<<8) | p->palette[regno].blue; in controlfb_getcolreg()
557 p->palette[regno].red = r; in controlfb_setcolreg()
558 p->palette[regno].green = g; in controlfb_setcolreg()
559 p->palette[regno].blue = b; in controlfb_setcolreg()
/linux-2.4.37.9/drivers/usb/
Dw9968cf.c465 static inline u16 w9968cf_valid_palette(u16 palette);
466 static u16 w9968cf_valid_depth(u16 palette);
467 static inline u8 w9968cf_need_decompression(u16 palette);
883 symbolic(v4l1_plist, cam->picture.palette)); in w9968cf_proc_read_dev()
1949 pict.depth = w9968cf_valid_depth(pict.palette); in w9968cf_set_picture()
1951 fmt = pict.palette; in w9968cf_set_picture()
1954 hw_palette = pict.palette; /* palette used by the winbond chip */ in w9968cf_set_picture()
2023 symbolic(v4l1_plist, pict.palette), pict.depth) in w9968cf_set_picture()
2201 static inline u16 w9968cf_valid_palette(u16 palette) in w9968cf_valid_palette() argument
2204 while (w9968cf_formatlist[i].palette != 0) { in w9968cf_valid_palette()
[all …]
/linux-2.4.37.9/drivers/video/sti/
Dstifb.c128 struct { u8 red, green, blue; } palette[256]; member
915 *red = (fb->palette[regno].red<<8) | fb->palette[regno].red; in stifb_getcolreg()
916 *green = (fb->palette[regno].green<<8) | fb->palette[regno].green; in stifb_getcolreg()
917 *blue = (fb->palette[regno].blue<<8) | fb->palette[regno].blue; in stifb_getcolreg()
936 if ((fb->palette[regno].red != red) || in stifb_setcolreg()
937 (fb->palette[regno].green != green) || in stifb_setcolreg()
938 (fb->palette[regno].blue != blue)) in stifb_setcolreg()
941 fb->palette[regno].red = red; in stifb_setcolreg()
942 fb->palette[regno].green = green; in stifb_setcolreg()
943 fb->palette[regno].blue = blue; in stifb_setcolreg()
[all …]
/linux-2.4.37.9/drivers/media/video/
Dvino.c250 switch (v->picture.palette) { in bytes_per_pixel()
442 switch (v->picture.palette) { in dma_setup()
892 switch (pic->palette) { in vino_do_ioctl()
905 if (v->picture.palette != pic->palette) { in vino_do_ioctl()
906 v->picture.palette = pic->palette; in vino_do_ioctl()
982 mmap->format != v->picture.palette || in vino_do_ioctl()
1037 v->picture.palette = VIDEO_PALETTE_GREY; in init_channel_data()
/linux-2.4.37.9/drivers/video/matrox/
Dmatroxfb_crtc2.c34 *red = m2info->palette[regno].red; in matroxfb_dh_getcolreg()
35 *blue = m2info->palette[regno].blue; in matroxfb_dh_getcolreg()
36 *green = m2info->palette[regno].green; in matroxfb_dh_getcolreg()
37 *transp = m2info->palette[regno].transp; in matroxfb_dh_getcolreg()
49 m2info->palette[regno].red = red; in matroxfb_dh_setcolreg()
50 m2info->palette[regno].blue = blue; in matroxfb_dh_setcolreg()
51 m2info->palette[regno].green = green; in matroxfb_dh_setcolreg()
52 m2info->palette[regno].transp = transp; in matroxfb_dh_setcolreg()
Dmatroxfb_crtc2.h43 struct { unsigned red, green, blue, transp; } palette[16]; member

1234