Home
last modified time | relevance | path

Searched refs:bits_per_pixel (Results 1 – 25 of 209) sorted by relevance

123456789

/drivers/video/
Dclps711xfb.c55 if (regno >= (1 << info->var.bits_per_pixel)) in clps7111fb_setcolreg()
97 var->red.length = var->bits_per_pixel; in clps7111fb_check_var()
101 if (var->bits_per_pixel > 4) in clps7111fb_check_var()
115 switch (info->var.bits_per_pixel) { in clps7111fb_set_par()
127 info->fix.line_length = info->var.xres_virtual * info->var.bits_per_pixel / 8; in clps7111fb_set_par()
129 lcdcon = (info->var.xres_virtual * info->var.yres_virtual * info->var.bits_per_pixel) / 128 - 1; in clps7111fb_set_par()
145 if (info->var.bits_per_pixel == 4) in clps7111fb_set_par()
147 if (info->var.bits_per_pixel >= 2) in clps7111fb_set_par()
190 info->var.bits_per_pixel = 4; in clps711x_guess_lcd_params()
209 info->var.bits_per_pixel = 4; in clps711x_guess_lcd_params()
[all …]
D68328fb.c165 if (var->bits_per_pixel <= 1) in mc68x328fb_check_var()
166 var->bits_per_pixel = 1; in mc68x328fb_check_var()
167 else if (var->bits_per_pixel <= 8) in mc68x328fb_check_var()
168 var->bits_per_pixel = 8; in mc68x328fb_check_var()
169 else if (var->bits_per_pixel <= 16) in mc68x328fb_check_var()
170 var->bits_per_pixel = 16; in mc68x328fb_check_var()
171 else if (var->bits_per_pixel <= 24) in mc68x328fb_check_var()
172 var->bits_per_pixel = 24; in mc68x328fb_check_var()
173 else if (var->bits_per_pixel <= 32) in mc68x328fb_check_var()
174 var->bits_per_pixel = 32; in mc68x328fb_check_var()
[all …]
Dmacfb.c124 .bits_per_pixel = 8,
202 unsigned int bpp = info->var.bits_per_pixel; in v8_brazil_setpalette()
238 if (info->var.bits_per_pixel > 8) in rbv_setpalette()
247 regno += 256 - (1 << info->var.bits_per_pixel); in rbv_setpalette()
297 unsigned int bpp = info->var.bits_per_pixel; in toby_setpalette()
357 if (info->var.bits_per_pixel > 8) in civic_setpalette()
463 if (fb_info->var.bits_per_pixel <= 8) { in macfb_setcolreg()
464 switch (fb_info->var.bits_per_pixel) { in macfb_setcolreg()
479 switch (fb_info->var.bits_per_pixel) { in macfb_setcolreg()
577 macfb_defined.bits_per_pixel = mac_bi_data.videodepth; in macfb_init()
[all …]
Dhitfb.c134 if (p->var.bits_per_pixel == 16) { in hitfb_fillrect()
152 hitfb_accel_bitblt(p->var.bits_per_pixel == 16, area->sx, area->sy, in hitfb_copyarea()
213 switch (info->var.bits_per_pixel) { in hitfb_setcolreg()
246 if ((var->bits_per_pixel != 8) && (var->bits_per_pixel != 16)) in hitfb_check_var()
247 var->bits_per_pixel = info->var.bits_per_pixel; in hitfb_check_var()
254 if (var->bits_per_pixel == 16) in hitfb_check_var()
263 switch (var->bits_per_pixel) { in hitfb_check_var()
293 switch (info->var.bits_per_pixel) { in hitfb_set_par()
309 ldr3 |= (info->var.bits_per_pixel == 8) ? 4 : 8; in hitfb_set_par()
348 hitfb_var.bits_per_pixel = 8; in hitfb_probe()
[all …]
Dvfb.c86 .bits_per_pixel = 8,
188 if (var->bits_per_pixel <= 1) in vfb_check_var()
189 var->bits_per_pixel = 1; in vfb_check_var()
190 else if (var->bits_per_pixel <= 8) in vfb_check_var()
191 var->bits_per_pixel = 8; in vfb_check_var()
192 else if (var->bits_per_pixel <= 16) in vfb_check_var()
193 var->bits_per_pixel = 16; in vfb_check_var()
194 else if (var->bits_per_pixel <= 24) in vfb_check_var()
195 var->bits_per_pixel = 24; in vfb_check_var()
196 else if (var->bits_per_pixel <= 32) in vfb_check_var()
[all …]
Dgrvga.c93 if (var->bits_per_pixel <= 8) in grvga_check_var()
94 var->bits_per_pixel = 8; in grvga_check_var()
95 else if (var->bits_per_pixel <= 16) in grvga_check_var()
96 var->bits_per_pixel = 16; in grvga_check_var()
97 else if (var->bits_per_pixel <= 24) in grvga_check_var()
98 var->bits_per_pixel = 24; in grvga_check_var()
99 else if (var->bits_per_pixel <= 32) in grvga_check_var()
100 var->bits_per_pixel = 32; in grvga_check_var()
108 if ((var->yres_virtual*var->xres_virtual*var->bits_per_pixel/8) > info->fix.smem_len) in grvga_check_var()
122 switch (info->var.bits_per_pixel) { in grvga_check_var()
[all …]
Digafb.c82 .bits_per_pixel = 8,
106 .bits_per_pixel = 8,
129 .bits_per_pixel = 8,
152 .bits_per_pixel = 8,
297 switch (info->var.bits_per_pixel) { in igafb_setcolreg()
350 if (info->var.bits_per_pixel > 8) in iga_init()
504 default_var.bits_per_pixel = 8; in igafb_init()
507 default_var.bits_per_pixel = 16; in igafb_init()
510 default_var.bits_per_pixel = 24; in igafb_init()
513 default_var.bits_per_pixel = 32; in igafb_init()
[all …]
Dpxa168fb.c42 if (var->bits_per_pixel == 8) in determine_best_pix_fmt()
48 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in determine_best_pix_fmt()
70 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in determine_best_pix_fmt()
72 if (var->bits_per_pixel == 24 && var->transp.length == 0) { in determine_best_pix_fmt()
79 if (var->bits_per_pixel == 32 && var->transp.length == 8) { in determine_best_pix_fmt()
101 var->bits_per_pixel = 16; in set_pix_fmt()
108 var->bits_per_pixel = 16; in set_pix_fmt()
115 var->bits_per_pixel = 16; in set_pix_fmt()
122 var->bits_per_pixel = 16; in set_pix_fmt()
129 var->bits_per_pixel = 24; in set_pix_fmt()
[all …]
Dvt8500lcdfb.c57 if (info->var.bits_per_pixel <= 8) { in vt8500lcd_set_par()
60 info->var.red.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
64 info->var.green.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
68 info->var.blue.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
77 (8/info->var.bits_per_pixel); in vt8500lcd_set_par()
84 if (info->var.bits_per_pixel == 16) { 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()
101 info->var.green.offset = info->var.bits_per_pixel / 3; in vt8500lcd_set_par()
102 info->var.green.length = info->var.bits_per_pixel / 3; in vt8500lcd_set_par()
[all …]
Dfb-puv3.c75 .bits_per_pixel = 16,
121 int m_iBpp = info->var.bits_per_pixel; in unifb_prim_fillrect()
209 int m_iBpp = info->var.bits_per_pixel; in unifb_prim_copyarea()
368 if (var->bits_per_pixel <= 1) in unifb_check_var()
369 var->bits_per_pixel = 1; in unifb_check_var()
370 else if (var->bits_per_pixel <= 8) in unifb_check_var()
371 var->bits_per_pixel = 8; in unifb_check_var()
372 else if (var->bits_per_pixel <= 16) in unifb_check_var()
373 var->bits_per_pixel = 16; in unifb_check_var()
374 else if (var->bits_per_pixel <= 24) in unifb_check_var()
[all …]
Datafb.c619 int bpp = var->bits_per_pixel; in tt_decode_var()
721 var->bits_per_pixel = 4; in tt_encode_var()
727 var->bits_per_pixel = 2; in tt_encode_var()
733 var->bits_per_pixel = 1; in tt_encode_var()
739 var->bits_per_pixel = 8; in tt_encode_var()
745 var->bits_per_pixel = 4; in tt_encode_var()
752 var->bits_per_pixel = 1; in tt_encode_var()
759 linelen = var->xres_virtual * var->bits_per_pixel / 8; in tt_encode_var()
919 int bpp = var->bits_per_pixel; in falcon_decode_var()
992 if (bpp > myvar->bits_per_pixel || in falcon_decode_var()
[all …]
Dvesafb.c141 if (info->var.bits_per_pixel == 8) in vesafb_setcolreg()
144 switch (info->var.bits_per_pixel) { in vesafb_setcolreg()
242 vesafb_defined.bits_per_pixel = screen_info.lfb_depth; in vesafb_probe()
243 if (15 == vesafb_defined.bits_per_pixel) in vesafb_probe()
244 vesafb_defined.bits_per_pixel = 16; in vesafb_probe()
248 vesafb_fix.visual = (vesafb_defined.bits_per_pixel == 8) ? in vesafb_probe()
308 …vesafb_defined.xres, vesafb_defined.yres, vesafb_defined.bits_per_pixel, vesafb_fix.line_length, s… in vesafb_probe()
342 if (vesafb_defined.bits_per_pixel == 8 && !pmi_setpal && !vga_compat) { in vesafb_probe()
373 if (vesafb_defined.bits_per_pixel <= 8) { in vesafb_probe()
378 vesafb_defined.bits_per_pixel; in vesafb_probe()
[all …]
Dpvr2fb.c162 .bits_per_pixel =16,
288 switch (var->bits_per_pixel) { in set_color_bitfields()
327 switch (info->var.bits_per_pixel) { in pvr2fb_setcolreg()
346 pr_debug("Invalid bit depth %d?!?\n", info->var.bits_per_pixel); in pvr2fb_setcolreg()
427 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in pvr2fb_set_par()
453 if (var->bits_per_pixel <= 16) in pvr2fb_check_var()
454 var->bits_per_pixel = 16; in pvr2fb_check_var()
455 else if (var->bits_per_pixel <= 24) in pvr2fb_check_var()
456 var->bits_per_pixel = 24; in pvr2fb_check_var()
457 else if (var->bits_per_pixel <= 32) in pvr2fb_check_var()
[all …]
Dwmt_ge_rops.c62 pat = pixel_to_pat(p->var.bits_per_pixel, fg); in wmt_ge_fillrect()
67 writel(p->var.bits_per_pixel == 32 ? 3 : in wmt_ge_fillrect()
68 (p->var.bits_per_pixel == 8 ? 0 : 1), regbase + GE_DEPTH_OFF); in wmt_ge_fillrect()
69 writel(p->var.bits_per_pixel == 15 ? 1 : 0, regbase + GE_HIGHCOLOR_OFF); in wmt_ge_fillrect()
93 writel(p->var.bits_per_pixel > 16 ? 3 : in wmt_ge_copyarea()
94 (p->var.bits_per_pixel > 8 ? 1 : 0), regbase + GE_DEPTH_OFF); in wmt_ge_copyarea()
Dcirrusfb.c397 static void cirrusfb_BitBLT(u8 __iomem *regbase, int bits_per_pixel,
402 static void cirrusfb_RectFill(u8 __iomem *regbase, int bits_per_pixel,
479 unsigned maxclockidx = var->bits_per_pixel >> 3; in cirrusfb_check_pixclock()
501 if (var->bits_per_pixel == 8) { in cirrusfb_check_pixclock()
523 var->bits_per_pixel == 16) { in cirrusfb_check_pixclock()
535 unsigned pixels = info->screen_size * 8 / var->bits_per_pixel; in cirrusfb_check_var()
538 switch (var->bits_per_pixel) { in cirrusfb_check_var()
573 "Unsupported bpp size: %d\n", var->bits_per_pixel); in cirrusfb_check_var()
594 var->bits_per_pixel); in cirrusfb_check_var()
678 var->xres, var->yres, var->bits_per_pixel); in cirrusfb_set_par_foo()
[all …]
Dmacmodes.c237 var->bits_per_pixel = 8; in mac_vmode_to_var()
247 var->bits_per_pixel = 16; in mac_vmode_to_var()
257 var->bits_per_pixel = 32; in mac_vmode_to_var()
308 if (var->bits_per_pixel <= 8) in mac_var_to_vmode()
310 else if (var->bits_per_pixel <= 16) in mac_var_to_vmode()
312 else if (var->bits_per_pixel <= 32) in mac_var_to_vmode()
Dasiliantfb.c184 unsigned wd = (p->var.xres_virtual * ((p->var.bits_per_pixel+7)/8)) / 8; in asiliant_set_timing()
243 if (var->bits_per_pixel == 24) { in asiliantfb_check_var()
248 } else if (var->bits_per_pixel == 16) { in asiliantfb_check_var()
262 } else if (var->bits_per_pixel == 8) { in asiliantfb_check_var()
279 if (p->var.bits_per_pixel == 24) { in asiliantfb_set_par()
283 } else if (p->var.bits_per_pixel == 16) { in asiliantfb_set_par()
290 } else if (p->var.bits_per_pixel == 8) { in asiliantfb_set_par()
296 p->fix.line_length = p->var.xres * (p->var.bits_per_pixel >> 3); in asiliantfb_set_par()
297 p->fix.visual = (p->var.bits_per_pixel == 8) ? FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR; in asiliantfb_set_par()
491 .bits_per_pixel = 8,
/drivers/video/mmp/fb/
Dmmpfb.c32 if (var->bits_per_pixel == 8) in var_to_pixfmt()
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()
73 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in var_to_pixfmt()
86 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in var_to_pixfmt()
88 if (var->bits_per_pixel == 24 && var->transp.length == 0) { in var_to_pixfmt()
95 if (var->bits_per_pixel == 32 && var->transp.offset == 24) { in var_to_pixfmt()
117 var->bits_per_pixel = 16; in pixfmt_to_var()
124 var->bits_per_pixel = 16; in pixfmt_to_var()
[all …]
/drivers/staging/sm7xxfb/
Dsm7xxfb.c66 .bits_per_pixel = 16,
259 if (sfb->fb.var.bits_per_pixel == 16) { in smtc_setcolreg()
478 sfb->width, sfb->height, sfb->fb.var.bits_per_pixel, sfb->hz); in sm7xx_set_timing()
483 VGAMode[j].bpp == sfb->fb.var.bits_per_pixel && in sm7xx_set_timing()
558 (sfb->width * sfb->fb.var.bits_per_pixel) / 64; in sm7xx_set_timing()
559 switch (sfb->fb.var.bits_per_pixel) { in sm7xx_set_timing()
591 switch (sfb->fb.var.bits_per_pixel) { in smtcfb_setmode()
651 if ((var->bits_per_pixel != 8) && (var->bits_per_pixel != 16) && in smtc_check_var()
652 (var->bits_per_pixel != 24) && (var->bits_per_pixel != 32)) in smtc_check_var()
653 var->bits_per_pixel = 16; in smtc_check_var()
[all …]
/drivers/video/omap2/omapfb/
Domapfb-main.c70 const unsigned bytespp = var->bits_per_pixel >> 3; in draw_pixel()
77 if (var->bits_per_pixel == 16) { in draw_pixel()
86 } else if (var->bits_per_pixel == 24) { in draw_pixel()
93 } else if (var->bits_per_pixel == 32) { in draw_pixel()
136 if (var->bits_per_pixel == 16) { in fill_fb()
218 .bits_per_pixel = 16,
222 .bits_per_pixel = 16,
226 .bits_per_pixel = 16,
233 .bits_per_pixel = 16,
240 .bits_per_pixel = 24,
[all …]
/drivers/media/pci/ivtv/
Divtvfb.c175 int bits_per_pixel; member
530 switch (var->bits_per_pixel) { in ivtvfb_set_var()
563 oi->bits_per_pixel = var->bits_per_pixel; in ivtvfb_set_var()
564 oi->bytes_per_pixel = var->bits_per_pixel / 8; in ivtvfb_set_var()
616 var->bits_per_pixel); in ivtvfb_set_var()
638 fix->visual = (oi->bits_per_pixel == 8) ? FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR; in ivtvfb_get_fix()
672 if (var->bits_per_pixel == 8 || var->bits_per_pixel == 32) { in _ivtvfb_check_var()
682 else if (var->bits_per_pixel == 16) { in _ivtvfb_check_var()
718 IVTVFB_DEBUG_WARN("Invalid colour mode: %d\n", var->bits_per_pixel); in _ivtvfb_check_var()
730 if (var->xres_virtual > 4095 / (var->bits_per_pixel / 8) || in _ivtvfb_check_var()
[all …]
/drivers/video/mb862xx/
Dmb862xxfbdrv.c70 return var->xres * var->bits_per_pixel / 8; in d_pitch()
135 if (var->bits_per_pixel <= 8) in mb862xxfb_check_var()
136 var->bits_per_pixel = 8; in mb862xxfb_check_var()
137 else if (var->bits_per_pixel <= 16) in mb862xxfb_check_var()
138 var->bits_per_pixel = 16; in mb862xxfb_check_var()
139 else if (var->bits_per_pixel <= 32) in mb862xxfb_check_var()
140 var->bits_per_pixel = 32; in mb862xxfb_check_var()
149 var->bits_per_pixel = 0; in mb862xxfb_check_var()
151 var->bits_per_pixel += 8; in mb862xxfb_check_var()
153 } while (r && var->bits_per_pixel <= 32); in mb862xxfb_check_var()
[all …]
/drivers/hid/
Dhid-picolcd_fb.c75 .bits_per_pixel = 1,
366 __u32 bpp = var->bits_per_pixel; in picolcd_fb_check_var()
373 var->bits_per_pixel = 8; in picolcd_fb_check_var()
378 var->bits_per_pixel = 1; in picolcd_fb_check_var()
390 if (info->var.bits_per_pixel == fbdata->bpp) in picolcd_set_par()
393 if (info->var.bits_per_pixel != 1 && info->var.bits_per_pixel != 8) in picolcd_set_par()
397 tmp_fb = kmalloc(PICOLCDFB_SIZE*info->var.bits_per_pixel, GFP_KERNEL); in picolcd_set_par()
402 if (info->var.bits_per_pixel == 1) { in picolcd_set_par()
425 fbdata->bpp = info->var.bits_per_pixel; in picolcd_set_par()
547 fbdata->bpp = picolcdfb_var.bits_per_pixel; in picolcd_init_framebuffer()
/drivers/video/intelfb/
Dintelfbdrv.c945 var->bits_per_pixel, var->green.length); in intelfb_var_to_depth()
947 switch (var->bits_per_pixel) { in intelfb_var_to_depth()
953 return var->bits_per_pixel; in intelfb_var_to_depth()
988 var->bits_per_pixel = screen_info.lfb_depth; in get_initial_mode()
991 var->bits_per_pixel = 16; in get_initial_mode()
994 var->bits_per_pixel = 32; in get_initial_mode()
1003 var->xres, var->yres, var->bits_per_pixel, in get_initial_mode()
1023 if (var->bits_per_pixel > 8) { in get_initial_mode()
1097 var->bits_per_pixel, var_to_refresh(var)); in intelfb_init_var()
1105 dinfo->fb.size / 2 / (var->bits_per_pixel * var->xres); in intelfb_init_var()
[all …]
/drivers/video/kyro/
Dfbdev.c56 .bits_per_pixel = 16,
317 info->var.bits_per_pixel, in kyro_dev_video_mode_set()
331 info->var.bits_per_pixel; in kyro_dev_video_mode_set()
402 if (var->bits_per_pixel != 16 && var->bits_per_pixel != 32) { in kyrofb_check_var()
403 printk(KERN_WARNING "kyrofb: depth not supported: %u\n", var->bits_per_pixel); in kyrofb_check_var()
407 switch (var->bits_per_pixel) { in kyrofb_check_var()
485 par->PIXDEPTH = info->var.bits_per_pixel; in kyrofb_set_par()
540 switch (info->var.bits_per_pixel) { in kyrofb_setcolreg()
731 info->var.bits_per_pixel); in kyrofb_probe()
741 info->var.yres, info->var.bits_per_pixel, size >> 10, in kyrofb_probe()

123456789