Home
last modified time | relevance | path

Searched refs:red (Results 1 – 25 of 124) sorted by relevance

12345

/linux-2.4.37.9/drivers/video/
Dmacfb.c69 static int (*macfb_setpalette) (unsigned int regno, unsigned int red,
71 static int valkyrie_setpalette (unsigned int regno, unsigned int red,
73 static int dafb_setpalette (unsigned int regno, unsigned int red,
75 static int rbv_setpalette (unsigned int regno, unsigned int red,
77 static int mdc_setpalette (unsigned int regno, unsigned int red,
79 static int toby_setpalette (unsigned int regno, unsigned int red,
81 static int civic_setpalette (unsigned int regno, unsigned int red,
83 static int csc_setpalette (unsigned int regno, unsigned int red,
193 static struct { u_short blue, green, red, pad; } palette[256]; member
341 static int valkyrie_setpalette (unsigned int regno, unsigned int red, in valkyrie_setpalette() argument
[all …]
Dfbcmap.c97 if (cmap->red) in fb_alloc_cmap()
98 kfree(cmap->red); in fb_alloc_cmap()
105 cmap->red = cmap->green = cmap->blue = cmap->transp = NULL; in fb_alloc_cmap()
109 if (!(cmap->red = kmalloc(size, GFP_ATOMIC))) in fb_alloc_cmap()
161 memcpy(to->red+tooff, from->red+fromoff, size); in fb_copy_cmap()
168 copy_from_user(to->red+tooff, from->red+fromoff, size); in fb_copy_cmap()
175 copy_to_user(to->red+tooff, from->red+fromoff, size); in fb_copy_cmap()
204 u16 *red, *green, *blue, *transp; in fb_get_cmap() local
207 red = cmap->red; in fb_get_cmap()
218 *red = hred; in fb_get_cmap()
[all …]
Dvesafb.c82 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
301 *red = palette[regno].red; 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
316 entry.red = red >> 10; in vesa_setpalette()
332 outb_p(red >> 10, dac_val); in vesa_setpalette()
342 static int vesa_setcolreg(unsigned regno, unsigned red, unsigned green, in vesa_setcolreg() argument
356 palette[regno].red = red; in vesa_setcolreg()
363 vesa_setpalette(regno,red,green,blue); in vesa_setcolreg()
[all …]
Dvfb.c49 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,
504 var->red.offset = 0; in set_color_bitfields()
505 var->red.length = 8; in set_color_bitfields()
514 var->red.offset = 0; in set_color_bitfields()
515 var->red.length = 5; in set_color_bitfields()
524 var->red.offset = 0; in set_color_bitfields()
525 var->red.length = 8; in set_color_bitfields()
534 var->red.offset = 0; in set_color_bitfields()
[all …]
Dg364fb.c83 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,
297 palette[i].red=default_red[j]; in g364fb_init()
300 pal_ptr[i << 1] = (palette[i].red << 16) | (palette[i].green << 8) | palette[i].blue; in g364fb_init()
344 fb_var.red.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 …]
Dbt455.h37 u8* red, u8* green, u8* blue) in bt455_read_cmap_entry() argument
41 *red = regs->addr_cmap_data & 0x0f; in bt455_read_cmap_entry()
49 u8 red, u8 green, u8 blue) in bt455_write_cmap_entry() argument
53 regs->addr_cmap_data = red & 0x0f; in bt455_write_cmap_entry()
61 u8 red, u8 green, u8 blue) in bt455_write_ovly_entry() argument
65 regs->addr_ovly = red & 0x0f; in bt455_write_ovly_entry()
Dtx3912fb.c39 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,
204 var->red.offset = 5; in tx3912fb_set_var()
205 var->red.length = 3; in tx3912fb_set_var()
213 var->red.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
494 *red = grey; in tx3912fb_getcolreg()
499 *red = (palette[regno].red<<8) | palette[regno].red; 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 …]
Dfm2fb.c150 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
488 *red = (palette[regno].red<<8) | palette[regno].red; in fm2fb_getcolreg()
502 static int fm2fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in fm2fb_setcolreg() argument
507 red >>= 8; in fm2fb_setcolreg()
510 palette[regno].red = red; in fm2fb_setcolreg()
515 fbcon_cfb32_cmap[regno] = (red << 16) | (green << 8) | blue; in fm2fb_setcolreg()
Doffb.c64 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,
478 var->red.offset = 0; in offb_init_fb()
479 var->red.length = 8; in offb_init_fb()
489 var->red.offset = 10; in offb_init_fb()
490 var->red.length = 5; in offb_init_fb()
500 var->red.offset = 16; in offb_init_fb()
501 var->red.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 …]
Dchipsfb.c59 __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,
259 p->palette[i].red = inb(0x3c9); in chipsfb_blank()
277 outb(p->palette[i].red, 0x3c9); in chipsfb_blank()
284 static int chipsfb_getcolreg(u_int regno, u_int *red, u_int *green, in chipsfb_getcolreg() argument
291 *red = (p->palette[regno].red<<8) | p->palette[regno].red; in chipsfb_getcolreg()
298 static int chipsfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in chipsfb_setcolreg() argument
305 red >>= 8; in chipsfb_setcolreg()
308 p->palette[regno].red = red; in chipsfb_setcolreg()
[all …]
Dau1100fb.c83 struct { unsigned red, green, blue, pad; } palette[256]; member
165 var->red.offset = 0; in set_color_bitfields()
166 var->red.length = 8; in set_color_bitfields()
175 var->red.offset = 11; in set_color_bitfields()
176 var->red.length = 5; in set_color_bitfields()
186 var->red.msb_right = 0; in set_color_bitfields()
253 static int au1100_getcolreg(unsigned regno, unsigned *red, unsigned *green, in au1100_getcolreg() argument
263 *red = i->palette[regno].red; in au1100_getcolreg()
271 static int au1100_setcolreg(unsigned regno, unsigned red, unsigned green, in au1100_setcolreg() argument
281 i->palette[regno].red = red; in au1100_setcolreg()
[all …]
Dacornfb.c343 acornfb_palette_encode(u_int regno, u_int red, u_int green, u_int blue, in acornfb_palette_encode() argument
350 pal.vidc.red = red >> 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
360 *red = EXTEND4(current_par.palette[regno].vidc.red); 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
530 pal.vidc20.red = red >> 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
540 *red = EXTEND8(current_par.palette[regno].vidc20.red); 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 …]
Dhitfb.c182 var->red.offset = 0; in hitfb_encode_var()
183 var->red.length = 8; in hitfb_encode_var()
193 var->red.offset = 11; in hitfb_encode_var()
194 var->red.length = 5; in hitfb_encode_var()
204 var->red.msb_right = 0; in hitfb_encode_var()
227 static int hitfb_getcolreg(unsigned regno, unsigned *red, unsigned *green, in hitfb_getcolreg() argument
235 *red = inw(HD64461_CPTRDR)<<10; in hitfb_getcolreg()
244 static int hitfb_setcolreg(unsigned regno, unsigned red, unsigned green, in hitfb_setcolreg() argument
252 outw(red>>10, HD64461_CPTWDR); in hitfb_setcolreg()
261 ((red & 0xf800) ) | in hitfb_setcolreg()
Dmacmodes.c318 int console_setcmap(int n_entries, unsigned char *red, unsigned char *green, in console_setcmap() argument
334 palette_cmap.red[j] = (red[i+j] << 8) | red[i+j]; in console_setcmap()
405 var->red.offset = 0; in mac_vmode_to_var()
406 var->red.length = 8; in mac_vmode_to_var()
415 var->red.offset = 10; in mac_vmode_to_var()
416 var->red.length = 5; in mac_vmode_to_var()
425 var->red.offset = 16; in mac_vmode_to_var()
426 var->red.length = 8; in mac_vmode_to_var()
Dmaxinefb.c353 static int getcolreg(u32 reg, u32 *red, u32 *green, u32 *blue, u32 *transp, in getcolreg() argument
370 *red = r << 8; in getcolreg()
378 static int setcolreg(u32 reg, u32 red, u32 green, u32 blue, u32 transp, in setcolreg() argument
390 red = (red >> 8) & 0xff; in setcolreg()
394 ims332_write_cmap(ip->ims332, reg, red, green, blue); in setcolreg()
497 var->red.offset = 0; in maxinefb_encode_var()
498 var->red.length = 1; in maxinefb_encode_var()
499 var->red.msb_right = 0; in maxinefb_encode_var()
513 var->red.offset = 0; in maxinefb_encode_var()
514 var->red.length = 2; in maxinefb_encode_var()
[all …]
Dtgafb.c69 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,
423 var->red.offset = 0; in tgafb_encode_var()
427 var->red.offset = 16; 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()
534 palette[i].red=default_red[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
699 *red = (palette[regno].red<<8) | palette[regno].red; in tgafb_getcolreg()
[all …]
Dskeletonfb.c165 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
194 ...fbcon_cmap.cfb16[regno] = ((red & 0xf800) >> 1) | in xxx_setcolreg()
198 ...fbcon_cmap.cfb16[regno] = (red & 0xf800) | in xxx_setcolreg()
202 ...fbcon_cmap.cfb24[regno] = ((red & 0xff00) << 8) | in xxx_setcolreg()
206 ...fbcon_cmap.cfb32[regno] = ((red & 0xff00) << 16) | in xxx_setcolreg()
DS3triofb.c64 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,
488 palette[i].red=default_red[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
643 *red = (palette[regno].red << 8) | palette[regno].red; in s3trio_getcolreg()
[all …]
Datafb.c241 static struct { unsigned char red,green,blue,pad; } ext_color[256]; member
324 int (*getcolreg)( unsigned regno, unsigned *red,
327 int (*setcolreg)( unsigned regno, unsigned red,
573 var->red.offset=0; in tt_encode_var()
574 var->red.length=4; in tt_encode_var()
575 var->red.msb_right=0; in tt_encode_var()
626 var->red.length=0; in tt_encode_var()
633 var->blue=var->green=var->red; in tt_encode_var()
685 static int tt_getcolreg(unsigned regno, unsigned *red, in tt_getcolreg() argument
707 *red = col; in tt_getcolreg()
[all …]
Dsgivwfb.c58 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
525 *red = palette[regno].red << 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
543 red >>= 8; in sgivwfb_setcolreg()
546 palette[regno].red = red; in sgivwfb_setcolreg()
554 regs->cmap[regno] = (red << 24) | (green << 16) | (blue << 8); in sgivwfb_setcolreg()
695 var->red.offset = 0; in sgivwfb_set_var()
[all …]
Dvga16fb.c103 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
570 *red = palette[regno].red; in vga16_getcolreg()
577 static void vga16_setpalette(int regno, unsigned red, unsigned green, unsigned blue) in vga16_setpalette() argument
580 outb(red >> 10, dac_val); in vga16_setpalette()
585 static int vga16_setcolreg(unsigned regno, unsigned red, unsigned green, in vga16_setcolreg() argument
[all …]
Dpvr2fb.c166 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,
545 var->red.offset = 11; var->red.length = 5; in set_color_bitfields()
551 var->red.offset = 16; var->red.length = 8; in set_color_bitfields()
557 var->red.offset = 16; var->red.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
571 *red = palette[regno].red; in pvr2_getcolreg()
578 static int pvr2_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in pvr2_setcolreg() argument
584 palette[regno].red = red; in pvr2_setcolreg()
[all …]
Dq40fb.c108 var->red.offset=6; /*6*/ in q40fb_get_var()
109 var->red.length=5; in q40fb_get_var()
173 static int q40_getcolreg(unsigned regno, unsigned *red, unsigned *green, in q40_getcolreg() argument
186 *red = ((fbcon_cmap_cfb16[regno]>>6) & 31)<<11; in q40_getcolreg()
192 static int q40_setcolreg(unsigned regno, unsigned red, unsigned green, in q40_setcolreg() argument
201 red>>=11; in q40_setcolreg()
206 fbcon_cmap_cfb16[regno] = ((red & 31) <<6) | in q40_setcolreg()
/linux-2.4.37.9/arch/ppc/boot/of1275/
Dsetcolor.c15 setcolor(ihandle instance, int color, int red, int green, int blue) in setcolor() argument
26 int red; in setcolor() member
38 args.red = red; in setcolor()
/linux-2.4.37.9/drivers/video/matrox/
Dmatroxfb_crtc2.c29 static int matroxfb_dh_getcolreg(unsigned regno, unsigned *red, unsigned *green, in matroxfb_dh_getcolreg() argument
34 *red = m2info->palette[regno].red; in matroxfb_dh_getcolreg()
42 static int matroxfb_dh_setcolreg(unsigned regno, unsigned red, unsigned green, in matroxfb_dh_setcolreg() argument
49 m2info->palette[regno].red = red; in matroxfb_dh_setcolreg()
56 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in matroxfb_dh_setcolreg()
58 red = CNVT_TOHW(red, p->var.red.length); in matroxfb_dh_setcolreg()
67 (red << p->var.red.offset) | in matroxfb_dh_setcolreg()
76 (red << p->var.red.offset) | in matroxfb_dh_setcolreg()
281 var->red.offset = 10; in matroxfb_dh_decode_var()
282 var->red.length = 5; in matroxfb_dh_decode_var()
[all …]

12345