/drivers/video/mmp/fb/ |
D | mmpfb.c | 38 if (var->bits_per_pixel == 16 && var->red.length == 8 && in var_to_pixfmt() 49 if (var->bits_per_pixel == 12 && var->red.length == 8 && in var_to_pixfmt() 60 if (var->bits_per_pixel == 16 && var->red.length == 16 && in var_to_pixfmt() 62 if (var->red.offset == 0) in var_to_pixfmt() 73 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in var_to_pixfmt() 76 if (var->red.offset >= var->blue.offset) in var_to_pixfmt() 86 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in var_to_pixfmt() 89 if (var->red.offset >= var->blue.offset) in var_to_pixfmt() 96 if (var->red.offset >= var->blue.offset) in var_to_pixfmt() 101 if (var->red.offset >= var->blue.offset) in var_to_pixfmt() [all …]
|
/drivers/video/ |
D | 68328fb.c | 65 .red = { 0, 8, 0 }, 99 static int mc68x328fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 198 var->red.offset = 0; in mc68x328fb_check_var() 199 var->red.length = 1; in mc68x328fb_check_var() 208 var->red.offset = 0; in mc68x328fb_check_var() 209 var->red.length = 8; in mc68x328fb_check_var() 219 var->red.offset = 0; in mc68x328fb_check_var() 220 var->red.length = 5; in mc68x328fb_check_var() 228 var->red.offset = 0; in mc68x328fb_check_var() 229 var->red.length = 5; in mc68x328fb_check_var() [all …]
|
D | macfb.c | 56 static int (*macfb_setpalette)(unsigned int regno, unsigned int red, 152 static int dafb_setpalette(unsigned int regno, unsigned int red, in dafb_setpalette() argument 174 nubus_writeb(info->cmap.red[i] >> 8, in dafb_setpalette() 186 nubus_writeb(red, &dafb_cmap_regs->lut); in dafb_setpalette() 198 static int v8_brazil_setpalette(unsigned int regno, unsigned int red, in v8_brazil_setpalette() argument 221 nubus_writeb(red, &v8_brazil_cmap_regs->lut); in v8_brazil_setpalette() 232 static int rbv_setpalette(unsigned int regno, unsigned int red, in rbv_setpalette() argument 258 nubus_writeb(red, &rbv_cmap_regs->lut); in rbv_setpalette() 269 static int mdc_setpalette(unsigned int regno, unsigned int red, in mdc_setpalette() argument 281 nubus_writeb(red, &cmap_regs->lut); in mdc_setpalette() [all …]
|
D | fbcmap.c | 64 .len=2, .red=red2, .green=green2, .blue=blue2 67 .len=8, .red=red8, .green=green8, .blue=blue8 70 .len=4, .red=red4, .green=green4, .blue=blue4 73 .len=16, .red=red16, .green=green16, .blue=blue16 102 cmap->red = kmalloc(size, flags); in fb_alloc_cmap_gfp() 103 if (!cmap->red) in fb_alloc_cmap_gfp() 147 kfree(cmap->red); in fb_dealloc_cmap() 152 cmap->red = cmap->green = cmap->blue = cmap->transp = NULL; in fb_dealloc_cmap() 180 memcpy(to->red+tooff, from->red+fromoff, size); in fb_copy_cmap() 204 if (copy_to_user(to->red+tooff, from->red+fromoff, size)) in fb_cmap_to_user() [all …]
|
D | vfb.c | 87 .red = { 0, 8, 0 }, 119 static int vfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 222 var->red.offset = 0; in vfb_check_var() 223 var->red.length = 8; in vfb_check_var() 233 var->red.offset = 0; in vfb_check_var() 234 var->red.length = 5; in vfb_check_var() 242 var->red.offset = 0; in vfb_check_var() 243 var->red.length = 5; in vfb_check_var() 253 var->red.offset = 0; in vfb_check_var() 254 var->red.length = 8; in vfb_check_var() [all …]
|
D | pxa168fb.c | 48 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in determine_best_pix_fmt() 51 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt() 58 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt() 70 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in determine_best_pix_fmt() 73 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt() 80 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt() 85 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt() 102 var->red.offset = 11; var->red.length = 5; in set_pix_fmt() 109 var->red.offset = 0; var->red.length = 5; in set_pix_fmt() 116 var->red.offset = 10; var->red.length = 5; in set_pix_fmt() [all …]
|
D | sbuslib.c | 119 u16 red, green, blue; in sbusfb_ioctl_helper() local 128 __get_user(ured, &c->red) || in sbusfb_ioctl_helper() 134 cmap.red = &red; in sbusfb_ioctl_helper() 146 red = red8 << 8; in sbusfb_ioctl_helper() 164 u8 red, green, blue; in sbusfb_ioctl_helper() local 168 __get_user(ured, &c->red) || in sbusfb_ioctl_helper() 177 red = cmap->red[index + i] >> 8; in sbusfb_ioctl_helper() 180 if (put_user(red, &ured[i]) || in sbusfb_ioctl_helper() 202 ret |= get_user(addr, &argp->red); in fbiogetputcmap() 203 ret |= put_user(compat_ptr(addr), &p->red); in fbiogetputcmap() [all …]
|
D | vesafb.c | 81 static int vesa_setpalette(int regno, unsigned red, unsigned green, in vesa_setpalette() argument 92 outb_p(red >> shift, dac_val); in vesa_setpalette() 103 struct { u_char blue, green, red, pad; } entry; in vesa_setpalette() member 105 entry.red = red >> shift; in vesa_setpalette() 125 static int vesafb_setcolreg(unsigned regno, unsigned red, unsigned green, in vesafb_setcolreg() argument 142 err = vesa_setpalette(regno,red,green,blue); in vesafb_setcolreg() 146 if (info->var.red.offset == 10) { in vesafb_setcolreg() 149 ((red & 0xf800) >> 1) | in vesafb_setcolreg() 155 ((red & 0xf800) ) | in vesafb_setcolreg() 162 red >>= 8; in vesafb_setcolreg() [all …]
|
D | offb.c | 100 static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in offb_setcolreg() argument 107 u32 cr = red >> (16 - info->var.red.length); in offb_setcolreg() 115 value = (cr << info->var.red.offset) | in offb_setcolreg() 130 red >>= 8; in offb_setcolreg() 140 writeb(red, par->cmap_data); in offb_setcolreg() 152 (red << 16 | green << 8 | blue)); in offb_setcolreg() 160 out_le32(par->cmap_adr + 0xb4, (red << 16 | green << 8 | blue)); in offb_setcolreg() 165 out_le32(par->cmap_adr + 0xb4, (red << 16 | green << 8 | blue)); in offb_setcolreg() 169 (red << 16 | green << 8 | blue)); in offb_setcolreg() 175 writel(((red) << 22) | ((green) << 12) | ((blue) << 2), in offb_setcolreg() [all …]
|
D | bt455.h | 36 u8* red, u8* green, u8* blue) in bt455_read_cmap_entry() argument 40 *red = regs->addr_cmap_data & 0x0f; in bt455_read_cmap_entry() 48 u8 red, u8 green, u8 blue) in bt455_write_cmap_entry() argument 52 regs->addr_cmap_data = red & 0x0f; in bt455_write_cmap_entry() 60 u8 red, u8 green, u8 blue) in bt455_write_ovly_entry() argument 64 regs->addr_ovly = red & 0x0f; in bt455_write_ovly_entry()
|
D | asiliantfb.c | 95 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 244 var->red.offset = 16; in asiliantfb_check_var() 247 var->red.length = var->blue.length = var->green.length = 8; in asiliantfb_check_var() 249 switch (var->red.offset) { in asiliantfb_check_var() 261 var->red.length = var->blue.length = 5; in asiliantfb_check_var() 263 var->red.offset = var->green.offset = var->blue.offset = 0; in asiliantfb_check_var() 264 var->red.length = var->green.length = var->blue.length = 8; in asiliantfb_check_var() 284 if (p->var.red.offset == 11) in asiliantfb_set_par() 306 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in asiliantfb_setcolreg() argument 311 red >>= 8; in asiliantfb_setcolreg() [all …]
|
D | fb-puv3.c | 76 .red = { 11, 5, 0 }, 402 var->red.offset = 0; in unifb_check_var() 403 var->red.length = 8; in unifb_check_var() 413 var->red.offset = 0; in unifb_check_var() 414 var->red.length = 5; in unifb_check_var() 422 var->red.offset = 11; in unifb_check_var() 423 var->red.length = 5; in unifb_check_var() 433 var->red.offset = 0; in unifb_check_var() 434 var->red.length = 8; in unifb_check_var() 443 var->red.offset = 16; in unifb_check_var() [all …]
|
D | bf537-lq035.c | 440 .red = {11, 5, 0}, 516 var->red.offset = info->var.red.offset; in bfin_lq035_fb_check_var() 519 var->red.length = info->var.red.length; in bfin_lq035_fb_check_var() 525 var->red.msb_right = 0; in bfin_lq035_fb_check_var() 587 static int bfin_lq035_fb_setcolreg(u_int regno, u_int red, u_int green, in bfin_lq035_fb_setcolreg() argument 596 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in bfin_lq035_fb_setcolreg() 605 red >>= (16 - info->var.red.length); in bfin_lq035_fb_setcolreg() 609 value = (red << info->var.red.offset) | in bfin_lq035_fb_setcolreg() 741 bfin_lq035_fb_defined.red.msb_right = 0; in bfin_lq035_probe() 745 bfin_lq035_fb_defined.red.length = 5; in bfin_lq035_probe() [all …]
|
D | vt8500lcdfb.c | 59 info->var.red.offset = 0; in vt8500lcd_set_par() 60 info->var.red.length = info->var.bits_per_pixel; in vt8500lcd_set_par() 61 info->var.red.msb_right = 0; in vt8500lcd_set_par() 86 info->var.red.offset = 11; in vt8500lcd_set_par() 87 info->var.red.length = 5; in vt8500lcd_set_par() 88 info->var.red.msb_right = 0; in vt8500lcd_set_par() 97 info->var.red.offset = info->var.bits_per_pixel in vt8500lcd_set_par() 99 info->var.red.length = info->var.bits_per_pixel / 3; in vt8500lcd_set_par() 100 info->var.red.msb_right = 0; in vt8500lcd_set_par() 149 static int vt8500lcd_setcolreg(unsigned regno, unsigned red, unsigned green, in vt8500lcd_setcolreg() argument [all …]
|
D | skeletonfb.c | 284 static int xxxfb_setcolreg(unsigned regno, unsigned red, unsigned green, in xxxfb_setcolreg() argument 297 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in xxxfb_setcolreg() 363 red = CNVT_TOHW(red, info->var.red.length); in xxxfb_setcolreg() 378 write_{red|green|blue|transp}_to_clut(); in xxxfb_setcolreg() 402 v = (red << info->var.red.offset) | in xxxfb_setcolreg()
|
D | bfin-lq035q1-fb.c | 443 var->red.offset = info->var.red.offset; in bfin_lq035q1_fb_check_var() 446 var->red.length = info->var.red.length; in bfin_lq035q1_fb_check_var() 452 var->red.msb_right = 0; in bfin_lq035q1_fb_check_var() 491 static int bfin_lq035q1_fb_setcolreg(u_int regno, u_int red, u_int green, in bfin_lq035q1_fb_setcolreg() argument 500 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in bfin_lq035q1_fb_setcolreg() 510 red >>= (16 - info->var.red.length); in bfin_lq035q1_fb_setcolreg() 514 value = (red << info->var.red.offset) | in bfin_lq035q1_fb_setcolreg() 617 fbinfo->var.red.offset = 0; in bfin_lq035q1_probe() 621 fbinfo->var.red.offset = 0; in bfin_lq035q1_probe() 627 fbinfo->var.red.offset = 16; in bfin_lq035q1_probe() [all …]
|
D | ep93xx-fb.c | 175 info->var.red.offset = 0; in ep93xxfb_set_pixelmode() 176 info->var.red.length = 8; in ep93xxfb_set_pixelmode() 188 info->var.red.offset = 11; in ep93xxfb_set_pixelmode() 189 info->var.red.length = 5; in ep93xxfb_set_pixelmode() 201 info->var.red.offset = 16; in ep93xxfb_set_pixelmode() 202 info->var.red.length = 8; in ep93xxfb_set_pixelmode() 214 info->var.red.offset = 16; in ep93xxfb_set_pixelmode() 215 info->var.red.length = 8; in ep93xxfb_set_pixelmode() 354 static int ep93xxfb_setcolreg(unsigned int regno, unsigned int red, in ep93xxfb_setcolreg() argument 366 rgb = ((red & 0xff00) << 8) | (green & 0xff00) | in ep93xxfb_setcolreg() [all …]
|
D | s3c2410fb.c | 183 var->red.offset = 0; in s3c2410fb_check_var() 184 var->red.length = var->bits_per_pixel; in s3c2410fb_check_var() 185 var->green = var->red; in s3c2410fb_check_var() 186 var->blue = var->red; in s3c2410fb_check_var() 191 var->red.length = 3; in s3c2410fb_check_var() 192 var->red.offset = 5; in s3c2410fb_check_var() 198 var->red.offset = 0; in s3c2410fb_check_var() 199 var->red.length = 8; in s3c2410fb_check_var() 200 var->green = var->red; in s3c2410fb_check_var() 201 var->blue = var->red; in s3c2410fb_check_var() [all …]
|
D | au1100fb.c | 150 info->var.red.offset = 0; in au1100fb_setmode() 151 info->var.red.length = info->var.bits_per_pixel; in au1100fb_setmode() 152 info->var.red.msb_right = 0; in au1100fb_setmode() 172 info->var.red = rgb_bitfields[index][0]; in au1100fb_setmode() 234 int au1100fb_fb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned tra… in au1100fb_fb_setcolreg() argument 248 red = green = blue = in au1100fb_fb_setcolreg() 249 (19595 * red + 38470 * green + 7471 * blue) >> 16; in au1100fb_fb_setcolreg() 259 red >>= (16 - fbi->var.red.length); in au1100fb_fb_setcolreg() 263 value = (red << fbi->var.red.offset) | in au1100fb_fb_setcolreg() 270 value = (red & 0xF800)|((green >> 5) & 0x07E0)|((blue >> 11) & 0x001F); in au1100fb_fb_setcolreg() [all …]
|
D | simplefb.c | 43 static int simplefb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in simplefb_setcolreg() argument 47 u32 cr = red >> (16 - info->var.red.length); in simplefb_setcolreg() 55 value = (cr << info->var.red.offset) | in simplefb_setcolreg() 79 struct fb_bitfield red; member 178 info->var.red = params.format->red; in simplefb_probe()
|
D | clps711xfb.c | 50 clps7111fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in clps7111fb_setcolreg() argument 59 level = (red * 77 + green * 151 + blue * 28) >> 20; in clps7111fb_setcolreg() 95 var->red.msb_right = 0; in clps7111fb_check_var() 96 var->red.offset = 0; in clps7111fb_check_var() 97 var->red.length = var->bits_per_pixel; in clps7111fb_check_var() 98 var->green = var->red; in clps7111fb_check_var() 99 var->blue = var->red; in clps7111fb_check_var()
|
D | grvga.c | 124 var->red = (struct fb_bitfield) {0, 8, 0}; /* offset, length, msb-right */ in grvga_check_var() 130 var->red = (struct fb_bitfield) {11, 5, 0}; in grvga_check_var() 137 var->red = (struct fb_bitfield) {16, 8, 0}; in grvga_check_var() 193 static int grvga_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned tr… in grvga_setcolreg() argument 203 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in grvga_setcolreg() 210 red = CNVT_TOHW(red, info->var.red.length); in grvga_setcolreg() 219 __raw_writel((regno << 24) | (red << 16) | (green << 8) | blue, in grvga_setcolreg() 229 v = (red << info->var.red.offset) | in grvga_setcolreg()
|
/drivers/gpu/drm/ |
D | drm_fb_helper.c | 557 static int setcolreg(struct drm_crtc *crtc, u16 red, u16 green, in setcolreg() argument 571 red >>= (16 - info->var.red.length); in setcolreg() 574 value = (red << info->var.red.offset) | in setcolreg() 601 fb_helper->funcs->gamma_set(crtc, red, in setcolreg() 617 fb_helper->funcs->gamma_set(crtc, red, green, blue, pindex); in setcolreg() 630 u16 *red, *green, *blue, *transp; in drm_fb_helper_setcmap() local 639 red = cmap->red; in drm_fb_helper_setcmap() 648 hred = *red++; in drm_fb_helper_setcmap() 706 var->red.offset = 0; in drm_fb_helper_check_var() 709 var->red.length = 8; in drm_fb_helper_check_var() [all …]
|
/drivers/video/geode/ |
D | gxfb_core.c | 147 var->red.offset = 16; var->red.length = 8; in gxfb_check_var() 151 var->red.offset = 11; var->red.length = 5; in gxfb_check_var() 155 var->red.offset = 0; var->red.length = 8; in gxfb_check_var() 192 static int gxfb_setcolreg(unsigned regno, unsigned red, unsigned green, in gxfb_setcolreg() argument 198 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in gxfb_setcolreg() 209 v = chan_to_field(red, &info->var.red); in gxfb_setcolreg() 218 gx_set_hw_palette_reg(info, regno, red, green, blue); in gxfb_setcolreg()
|
D | lxfb_core.c | 254 var->red.offset = 16; var->red.length = 8; in lxfb_check_var() 258 var->red.offset = 11; var->red.length = 5; in lxfb_check_var() 262 var->red.offset = 0; var->red.length = 8; in lxfb_check_var() 299 static int lxfb_setcolreg(unsigned regno, unsigned red, unsigned green, in lxfb_setcolreg() argument 305 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in lxfb_setcolreg() 316 v = chan_to_field(red, &info->var.red); in lxfb_setcolreg() 325 lx_set_palette_reg(info, regno, red, green, blue); in lxfb_setcolreg()
|