Home
last modified time | relevance | path

Searched refs:blue (Results 1 – 25 of 208) sorted by relevance

123456789

/drivers/video/fbdev/mmp/fb/
Dmmpfb.c39 var->green.length == 4 && var->blue.length == 4) { in var_to_pixfmt()
40 if (var->green.offset >= var->blue.offset) in var_to_pixfmt()
50 var->green.length == 2 && var->blue.length == 2) { in var_to_pixfmt()
51 if (var->green.offset >= var->blue.offset) in var_to_pixfmt()
61 var->green.length == 16 && var->blue.length == 16) { in var_to_pixfmt()
64 else if (var->green.offset >= var->blue.offset) in var_to_pixfmt()
74 var->green.length <= 6 && var->blue.length <= 5) { in var_to_pixfmt()
76 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
87 var->green.length <= 8 && var->blue.length <= 8) { in var_to_pixfmt()
89 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
[all …]
/drivers/video/fbdev/
D68328fb.c61 .blue = { 0, 8, 0 },
93 static int mc68x328fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
196 var->blue.offset = 0; in mc68x328fb_check_var()
197 var->blue.length = 1; in mc68x328fb_check_var()
206 var->blue.offset = 0; in mc68x328fb_check_var()
207 var->blue.length = 8; in mc68x328fb_check_var()
217 var->blue.offset = 10; in mc68x328fb_check_var()
218 var->blue.length = 5; in mc68x328fb_check_var()
226 var->blue.offset = 11; in mc68x328fb_check_var()
227 var->blue.length = 5; in mc68x328fb_check_var()
[all …]
Dmacfb.c56 unsigned int green, unsigned int blue,
152 unsigned int green, unsigned int blue, in dafb_setpalette() argument
179 nubus_writeb(info->cmap.blue[i] >> 8, in dafb_setpalette()
189 nubus_writeb(blue, &dafb_cmap_regs->lut); in dafb_setpalette()
198 unsigned int green, unsigned int blue, in v8_brazil_setpalette() argument
224 nubus_writeb(blue, &v8_brazil_cmap_regs->lut); in v8_brazil_setpalette()
232 unsigned int green, unsigned int blue, in rbv_setpalette() argument
261 nubus_writeb(blue, &rbv_cmap_regs->lut); in rbv_setpalette()
269 unsigned int green, unsigned int blue, in mdc_setpalette() argument
284 nubus_writeb(blue, &cmap_regs->lut); in mdc_setpalette()
[all …]
Dvfb.c89 .blue = { 0, 8, 0 },
119 static int vfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
226 var->blue.offset = 0; in vfb_check_var()
227 var->blue.length = 8; in vfb_check_var()
237 var->blue.offset = 10; in vfb_check_var()
238 var->blue.length = 5; in vfb_check_var()
246 var->blue.offset = 11; in vfb_check_var()
247 var->blue.length = 5; in vfb_check_var()
257 var->blue.offset = 16; in vfb_check_var()
258 var->blue.length = 8; in vfb_check_var()
[all …]
Dpxa168fb.c49 var->green.length <= 6 && var->blue.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()
71 var->green.length <= 8 && var->blue.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()
104 var->blue.offset = 0; var->blue.length = 5; in set_pix_fmt()
111 var->blue.offset = 11; var->blue.length = 5; in set_pix_fmt()
118 var->blue.offset = 0; var->blue.length = 5; in set_pix_fmt()
[all …]
Dsbuslib.c119 u16 red, green, blue; in sbusfb_ioctl_helper() local
130 __get_user(ublue, &c->blue)) in sbusfb_ioctl_helper()
136 cmap.blue = &blue; in sbusfb_ioctl_helper()
148 blue = blue8 << 8; in sbusfb_ioctl_helper()
164 u8 red, green, blue; in sbusfb_ioctl_helper() local
170 __get_user(ublue, &c->blue)) in sbusfb_ioctl_helper()
179 blue = cmap->blue[index + i] >> 8; in sbusfb_ioctl_helper()
182 put_user(blue, &ublue[i])) in sbusfb_ioctl_helper()
206 ret |= get_user(addr, &argp->blue); in fbiogetputcmap()
207 ret |= put_user(compat_ptr(addr), &p->blue); in fbiogetputcmap()
[all …]
Docfb.c175 unsigned blue, unsigned transp, in ocfb_setcolreg() argument
188 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in ocfb_setcolreg()
193 blue >>= (16 - info->var.blue.length); in ocfb_setcolreg()
198 color = (red << 16) | (green << 8) | blue; in ocfb_setcolreg()
204 (blue << info->var.blue.offset) | in ocfb_setcolreg()
247 var->blue.offset = 0; in ocfb_init_var()
248 var->blue.length = 8; in ocfb_init_var()
258 var->blue.offset = 0; in ocfb_init_var()
259 var->blue.length = 5; in ocfb_init_var()
269 var->blue.offset = 0; in ocfb_init_var()
[all …]
Dvesafb.c82 unsigned blue) in vesa_setpalette() argument
94 outb_p(blue >> shift, dac_val); in vesa_setpalette()
103 struct { u_char blue, green, red, pad; } entry; in vesa_setpalette() member
107 entry.blue = blue >> shift; in vesa_setpalette()
126 unsigned blue, unsigned transp, in vesafb_setcolreg() argument
142 err = vesa_setpalette(regno,red,green,blue); in vesafb_setcolreg()
151 ((blue & 0xf800) >> 11); in vesafb_setcolreg()
157 ((blue & 0xf800) >> 11); in vesafb_setcolreg()
164 blue >>= 8; in vesafb_setcolreg()
168 (blue << info->var.blue.offset); in vesafb_setcolreg()
[all …]
Doffb.c100 static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in offb_setcolreg() argument
109 u32 cb = blue >> (16 - info->var.blue.length); in offb_setcolreg()
117 (cb << info->var.blue.offset); in offb_setcolreg()
132 blue >>= 8; in offb_setcolreg()
142 writeb(blue, 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 …]
Dbt455.h36 u8* red, u8* green, u8* blue) in bt455_read_cmap_entry() argument
44 *blue = regs->addr_cmap_data & 0x0f; in bt455_read_cmap_entry()
48 u8 red, u8 green, u8 blue) in bt455_write_cmap_entry() argument
56 regs->addr_cmap_data = blue & 0x0f; in bt455_write_cmap_entry()
60 u8 red, u8 green, u8 blue) in bt455_write_ovly_entry() argument
68 regs->addr_ovly = blue & 0x0f; in bt455_write_ovly_entry()
Dfb-puv3.c80 .blue = { 0, 5, 0 },
408 var->blue.offset = 0; in unifb_check_var()
409 var->blue.length = 8; in unifb_check_var()
419 var->blue.offset = 10; in unifb_check_var()
420 var->blue.length = 5; in unifb_check_var()
428 var->blue.offset = 0; in unifb_check_var()
429 var->blue.length = 5; in unifb_check_var()
439 var->blue.offset = 16; in unifb_check_var()
440 var->blue.length = 8; in unifb_check_var()
449 var->blue.offset = 0; in unifb_check_var()
[all …]
Dbf537-lq035.c442 .blue = {0, 5, 0},
518 var->blue.offset = info->var.blue.offset; in bfin_lq035_fb_check_var()
521 var->blue.length = info->var.blue.length; in bfin_lq035_fb_check_var()
527 var->blue.msb_right = 0; in bfin_lq035_fb_check_var()
588 u_int blue, u_int transp, in bfin_lq035_fb_setcolreg() argument
596 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in bfin_lq035_fb_setcolreg()
607 blue >>= (16 - info->var.blue.length); in bfin_lq035_fb_setcolreg()
611 (blue << info->var.blue.offset); in bfin_lq035_fb_setcolreg()
742 bfin_lq035_fb_defined.blue.msb_right = 0; in bfin_lq035_probe()
746 bfin_lq035_fb_defined.blue.length = 5; in bfin_lq035_probe()
[all …]
Dvt8500lcdfb.c67 info->var.blue.offset = 0; in vt8500lcd_set_par()
68 info->var.blue.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
69 info->var.blue.msb_right = 0; in vt8500lcd_set_par()
92 info->var.blue.offset = 0; in vt8500lcd_set_par()
93 info->var.blue.length = 5; in vt8500lcd_set_par()
94 info->var.blue.msb_right = 0; in vt8500lcd_set_par()
104 info->var.blue.offset = 0; in vt8500lcd_set_par()
105 info->var.blue.length = info->var.bits_per_pixel / 3; in vt8500lcd_set_par()
106 info->var.blue.msb_right = 0; in vt8500lcd_set_par()
150 unsigned blue, unsigned transp, in vt8500lcd_setcolreg() argument
[all …]
Dskeletonfb.c285 unsigned blue, unsigned transp, in xxxfb_setcolreg() argument
297 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in xxxfb_setcolreg()
365 blue = CNVT_TOHW(blue, info->var.blue.length); in xxxfb_setcolreg()
378 write_{red|green|blue|transp}_to_clut(); in xxxfb_setcolreg()
404 (blue << info->var.blue.offset) | in xxxfb_setcolreg()
Dasiliantfb.c95 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
246 var->blue.offset = 0; in asiliantfb_check_var()
247 var->red.length = var->blue.length = var->green.length = 8; in asiliantfb_check_var()
260 var->blue.offset = 0; 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()
306 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in asiliantfb_setcolreg() argument
313 blue >>= 8; in asiliantfb_setcolreg()
320 writeb(blue, mmio_base + 0x791); in asiliantfb_setcolreg()
[all …]
Dau1100fb.c159 info->var.blue.offset = 0; in au1100fb_setmode()
160 info->var.blue.length = info->var.bits_per_pixel; in au1100fb_setmode()
161 info->var.blue.msb_right = 0; in au1100fb_setmode()
175 info->var.blue = rgb_bitfields[index][2]; in au1100fb_setmode()
235 int au1100fb_fb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned tra… in au1100fb_fb_setcolreg() argument
249 red = green = blue = in au1100fb_fb_setcolreg()
250 (19595 * red + 38470 * green + 7471 * blue) >> 16; in au1100fb_fb_setcolreg()
262 blue >>= (16 - fbi->var.blue.length); in au1100fb_fb_setcolreg()
266 (blue << fbi->var.blue.offset); in au1100fb_fb_setcolreg()
271 value = (red & 0xF800)|((green >> 5) & 0x07E0)|((blue >> 11) & 0x001F); in au1100fb_fb_setcolreg()
[all …]
Dbfin-lq035q1-fb.c452 var->blue.offset = info->var.blue.offset; in bfin_lq035q1_fb_check_var()
455 var->blue.length = info->var.blue.length; in bfin_lq035q1_fb_check_var()
461 var->blue.msb_right = 0; in bfin_lq035q1_fb_check_var()
499 u_int blue, u_int transp, in bfin_lq035q1_fb_setcolreg() argument
507 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in bfin_lq035q1_fb_setcolreg()
519 blue >>= (16 - info->var.blue.length); in bfin_lq035q1_fb_setcolreg()
523 (blue << info->var.blue.offset); in bfin_lq035q1_fb_setcolreg()
626 fbinfo->var.blue.offset = 16; in bfin_lq035q1_probe()
630 fbinfo->var.blue.offset = 11; in bfin_lq035q1_probe()
636 fbinfo->var.blue.offset = 0; in bfin_lq035q1_probe()
[all …]
Dep93xx-fb.c179 info->var.blue.offset = 0; in ep93xxfb_set_pixelmode()
180 info->var.blue.length = 8; in ep93xxfb_set_pixelmode()
192 info->var.blue.offset = 0; in ep93xxfb_set_pixelmode()
193 info->var.blue.length = 5; in ep93xxfb_set_pixelmode()
205 info->var.blue.offset = 0; in ep93xxfb_set_pixelmode()
206 info->var.blue.length = 8; in ep93xxfb_set_pixelmode()
218 info->var.blue.offset = 0; in ep93xxfb_set_pixelmode()
219 info->var.blue.length = 8; in ep93xxfb_set_pixelmode()
355 unsigned int green, unsigned int blue, in ep93xxfb_setcolreg() argument
367 ((blue & 0xff00) >> 8); in ep93xxfb_setcolreg()
[all …]
Dcyber2000fb.c78 u8 red, green, blue; member
276 cyber2000fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in cyber2000fb_setcolreg() argument
303 blue >>= 8; in cyber2000fb_setcolreg()
307 cfb->palette[regno].blue = blue; in cyber2000fb_setcolreg()
312 cyber2000fb_writeb(blue, 0x3c9, cfb); in cyber2000fb_setcolreg()
328 blue >>= 8; in cyber2000fb_setcolreg()
341 cyber2000fb_writeb(cfb->palette[regno >> 1].blue, in cyber2000fb_setcolreg()
352 cfb->palette[regno << 3].blue = blue; in cyber2000fb_setcolreg()
361 cyber2000fb_writeb(blue, 0x3c9, cfb); in cyber2000fb_setcolreg()
368 cfb->palette[regno << 4].blue = blue; in cyber2000fb_setcolreg()
[all …]
Dbfin-t350mcqb-fb.c259 var->blue.offset = 16; in bfin_t350mcqb_fb_check_var()
260 var->red.length = var->green.length = var->blue.length = 8; in bfin_t350mcqb_fb_check_var()
266 var->blue.msb_right = 0; in bfin_t350mcqb_fb_check_var()
304 u_int blue, u_int transp, in bfin_t350mcqb_fb_setcolreg() argument
312 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in bfin_t350mcqb_fb_setcolreg()
324 blue >>= (16 - info->var.blue.length); in bfin_t350mcqb_fb_setcolreg()
328 (blue << info->var.blue.offset); in bfin_t350mcqb_fb_setcolreg()
479 fbinfo->var.blue.offset = 16; in bfin_t350mcqb_probe()
483 fbinfo->var.blue.length = 8; in bfin_t350mcqb_probe()
/drivers/video/fbdev/core/
Dfbcmap.c64 .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
108 cmap->blue = kmalloc(size, flags); in fb_alloc_cmap_gfp()
109 if (!cmap->blue) in fb_alloc_cmap_gfp()
149 kfree(cmap->blue); in fb_dealloc_cmap()
152 cmap->red = cmap->green = cmap->blue = cmap->transp = NULL; in fb_dealloc_cmap()
183 memcpy(to->blue+tooff, from->blue+fromoff, size); in fb_copy_cmap()
210 if (copy_to_user(to->blue+tooff, from->blue+fromoff, size)) in fb_cmap_to_user()
[all …]
/drivers/hid/
Dhid-thingm.c58 struct thingm_led blue; member
129 buf[4] = rgb->blue.ldev.brightness; in thingm_write_color()
185 snprintf(rgb->blue.name, sizeof(rgb->blue.name), in thingm_init_rgb()
187 rgb->blue.ldev.name = rgb->blue.name; in thingm_init_rgb()
188 rgb->blue.ldev.max_brightness = 255; in thingm_init_rgb()
189 rgb->blue.ldev.brightness_set = thingm_led_set; in thingm_init_rgb()
190 rgb->blue.rgb = rgb; in thingm_init_rgb()
192 err = led_classdev_register(&rgb->tdev->hdev->dev, &rgb->blue.ldev); in thingm_init_rgb()
213 led_classdev_unregister(&rgb->blue.ldev); in thingm_remove_rgb()
/drivers/video/fbdev/geode/
Dgxfb_core.c149 var->blue.offset = 0; var->blue.length = 8; in gxfb_check_var()
153 var->blue.offset = 0; var->blue.length = 5; in gxfb_check_var()
157 var->blue.offset = 0; var->blue.length = 8; in gxfb_check_var()
193 unsigned blue, unsigned transp, in gxfb_setcolreg() argument
198 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in gxfb_setcolreg()
211 v |= chan_to_field(blue, &info->var.blue); in gxfb_setcolreg()
218 gx_set_hw_palette_reg(info, regno, red, green, blue); in gxfb_setcolreg()
/drivers/usb/misc/
Dusbled.c62 unsigned char blue; member
84 if (led->blue) in change_color()
92 led->blue, led->red, led->green, color); in change_color()
109 led->red, led->green, led->blue); in change_color()
113 buffer[2] = led->blue; in change_color()
130 buffer[0] = RISO_KAGAKU_IX(led->red, led->green, led->blue); in change_color()
171 show_set(blue);
/drivers/gpu/drm/
Ddrm_fb_helper.c688 u16 blue, u16 regno, struct fb_info *info) in setcolreg() argument
703 blue >>= (16 - info->var.blue.length); in setcolreg()
706 (blue << info->var.blue.offset); in setcolreg()
740 green, blue, pindex + i); in setcolreg()
755 fb_helper->funcs->gamma_set(crtc, red, green, blue, pindex); in setcolreg()
769 u16 *red, *green, *blue, *transp; in drm_fb_helper_setcmap() local
786 blue = cmap->blue; in drm_fb_helper_setcmap()
795 hblue = *blue++; in drm_fb_helper_setcmap()
856 var->blue.offset = 0; in drm_fb_helper_check_var()
859 var->blue.length = 8; in drm_fb_helper_check_var()
[all …]

123456789