/linux-2.4.37.9/drivers/video/ |
D | tx3912fb.c | 181 if (var->bits_per_pixel <= 1) in tx3912fb_set_var() 182 var->bits_per_pixel = 1; in tx3912fb_set_var() 183 else if (var->bits_per_pixel <= 2) in tx3912fb_set_var() 184 var->bits_per_pixel = 2; in tx3912fb_set_var() 185 else if (var->bits_per_pixel <= 4) in tx3912fb_set_var() 186 var->bits_per_pixel = 4; in tx3912fb_set_var() 187 else if (var->bits_per_pixel <= 8) in tx3912fb_set_var() 188 var->bits_per_pixel = 8; in tx3912fb_set_var() 195 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in tx3912fb_set_var() 202 if (var->bits_per_pixel) { in tx3912fb_set_var() [all …]
|
D | vfb.c | 202 if (var->bits_per_pixel <= 1) in vfb_set_var() 203 var->bits_per_pixel = 1; in vfb_set_var() 204 else if (var->bits_per_pixel <= 8) in vfb_set_var() 205 var->bits_per_pixel = 8; in vfb_set_var() 206 else if (var->bits_per_pixel <= 16) in vfb_set_var() 207 var->bits_per_pixel = 16; in vfb_set_var() 210 else if (var->bits_per_pixel <= 24) in vfb_set_var() 211 var->bits_per_pixel = 24; in vfb_set_var() 212 else if (var->bits_per_pixel <= 32) in vfb_set_var() 213 var->bits_per_pixel = 32; in vfb_set_var() [all …]
|
D | it8181fb.c | 412 switch (var->bits_per_pixel) { in set_color_bitfields() 485 fix->visual = (var->bits_per_pixel <= 8) ? in it8181fb_encode_fix() 523 switch (var->bits_per_pixel) { in it8181fb_decode_var() 525 par->var.bits_per_pixel = 8; in it8181fb_decode_var() 528 par->var.bits_per_pixel = 16; in it8181fb_decode_var() 531 par->var.bits_per_pixel = 24; in it8181fb_decode_var() 534 par->var.bits_per_pixel = 32; in it8181fb_decode_var() 537 dbg("color depth %d bpp not supported", var->bits_per_pixel); in it8181fb_decode_var() 550 par->cmap_len = (par->var.bits_per_pixel == 8) ? 256 : 16; in it8181fb_decode_var() 556 par->var.xres_virtual * (par->var.bits_per_pixel>>3); in it8181fb_decode_var() [all …]
|
D | fbcon-ilbm.c | 36 p->next_line = p->line_length*p->var.bits_per_pixel; in fbcon_ilbm_setup() 40 p->next_plane = p->type_aux/p->var.bits_per_pixel; in fbcon_ilbm_setup() 58 for (i = p->var.bits_per_pixel*height*fontheight(p); i--;) { in fbcon_ilbm_bmove() 66 for (i = p->var.bits_per_pixel*height*fontheight(p); i--;) { in fbcon_ilbm_bmove() 87 for (i = p->var.bits_per_pixel; i--; dest += p->next_plane) { in fbcon_ilbm_clear() 114 for (i = p->var.bits_per_pixel; i--; dest += p->next_plane) { in fbcon_ilbm_putc() 172 for (i = p->var.bits_per_pixel; i--; dest += p->next_plane) { in fbcon_ilbm_putcs() 209 for (i = p->var.bits_per_pixel; i--; dest += p->next_plane) { in fbcon_ilbm_putcs() 247 for (i = p->var.bits_per_pixel; i--; dest0 += p->next_plane) { in fbcon_ilbm_revc()
|
D | sgivwfb.c | 249 bytesPerPixel = bytes_per_pixel(par->var.bits_per_pixel); in activate_par() 499 switch (var->bits_per_pixel) { in sgivwfb_encode_fix() 510 fix->line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in sgivwfb_encode_fix() 566 fb_set_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), 1, in do_install_cmap() 640 if (var->bits_per_pixel <= 8) in sgivwfb_set_var() 641 var->bits_per_pixel = 8; in sgivwfb_set_var() 642 else if (var->bits_per_pixel <= 16) in sgivwfb_set_var() 643 var->bits_per_pixel = 16; in sgivwfb_set_var() 644 else if (var->bits_per_pixel <= 32) in sgivwfb_set_var() 645 var->bits_per_pixel = 32; in sgivwfb_set_var() [all …]
|
D | fbcon-afb.c | 179 i = p->var.bits_per_pixel; in fbcon_afb_bmove() 188 i = p->var.bits_per_pixel; in fbcon_afb_bmove() 204 i = p->var.bits_per_pixel; in fbcon_afb_bmove() 230 i = p->var.bits_per_pixel; in fbcon_afb_clear() 258 i = p->var.bits_per_pixel; in fbcon_afb_putc() 307 i = p->var.bits_per_pixel; in fbcon_afb_putcs() 339 i = p->var.bits_per_pixel; in fbcon_afb_putcs() 394 i = p->var.bits_per_pixel; in fbcon_afb_revc()
|
D | virgefb.c | 969 switch (par->var.bits_per_pixel) { in virgefb_encode_fix() 1002 if (par->var.bits_per_pixel == 8) in virgefb_encode_fix() 1010 fix->line_length = par->var.xres_virtual*par->var.bits_per_pixel/8; in virgefb_encode_fix() 1039 par->var.bits_per_pixel = var->bits_per_pixel; in virgefb_decode_var() 1040 if (par->var.bits_per_pixel <= 8) in virgefb_decode_var() 1041 par->var.bits_per_pixel = 8; in virgefb_decode_var() 1042 else if (par->var.bits_per_pixel <= 16) in virgefb_decode_var() 1043 par->var.bits_per_pixel = 16; in virgefb_decode_var() 1045 par->var.bits_per_pixel = 32; in virgefb_decode_var() 1047 if (par->var.bits_per_pixel == 32) in virgefb_decode_var() [all …]
|
D | imsttfb.c | 777 + ((disp->var.xoffset * (disp->var.bits_per_pixel >> 3)) >> 3); in set_offset() 1010 Bpp = disp->var.bits_per_pixel >> 3, in imsttfbcon_bmove() 1071 Bpp = disp->var.bits_per_pixel >> 3, in imsttfbcon_clear() 1102 Bpp = disp->var.bits_per_pixel >> 3, in imsttfbcon_revc() 1192 display_info.depth = disp->var.bits_per_pixel; in set_display_info() 1244 u_int bpp = fb_display[currcon].var.bits_per_pixel; in imsttfb_setcolreg() 1298 u_int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in do_install_cmap() 1310 fix->visual = var->bits_per_pixel == 8 ? FB_VISUAL_PSEUDOCOLOR in imsttfb_get_fix() 1312 fix->line_length = var->xres * (var->bits_per_pixel >> 3); in imsttfb_get_fix() 1336 switch (disp->var.bits_per_pixel) { in set_dispsw() [all …]
|
D | au1100fb.c | 152 fix->visual = (var->bits_per_pixel == 8) ? in au1100_encode_fix() 163 switch (var->bits_per_pixel) { in set_color_bitfields() 208 if(var->bits_per_pixel != p_lcd->bpp) { in au1100_decode_var() 216 switch (var->bits_per_pixel) { in au1100_decode_var() 218 par->var.bits_per_pixel = 8; in au1100_decode_var() 221 par->var.bits_per_pixel = 16; in au1100_decode_var() 225 var->bits_per_pixel); in au1100_decode_var() 230 par->cmap_len = (par->var.bits_per_pixel == 8) ? 256 : 16; in au1100_decode_var() 356 switch (disp->var.bits_per_pixel) { in au1100_set_disp() 546 current_par.var.bits_per_pixel = p_lcd->bpp; in au1100fb_init()
|
D | atafb.c | 492 int bpp=var->bits_per_pixel; in tt_decode_var() 599 var->bits_per_pixel=4; in tt_encode_var() 605 var->bits_per_pixel=2; in tt_encode_var() 611 var->bits_per_pixel=1; in tt_encode_var() 617 var->bits_per_pixel=8; in tt_encode_var() 623 var->bits_per_pixel=4; in tt_encode_var() 630 var->bits_per_pixel=1; in tt_encode_var() 637 linelen=var->xres_virtual * var->bits_per_pixel / 8; in tt_encode_var() 829 int bpp = var->bits_per_pixel; in falcon_decode_var() 905 if (bpp > myvar->bits_per_pixel || in falcon_decode_var() [all …]
|
D | g364fb.c | 203 var->bits_per_pixel > fb_var.bits_per_pixel || in g364fb_set_var() 210 oldbpp = display->var.bits_per_pixel; in g364fb_set_var() 214 if (oldbpp != var->bits_per_pixel) { in g364fb_set_var() 249 fb_copy_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), in g364fb_get_cmap() 264 1<<fb_display[con].var.bits_per_pixel, 0))) in g364fb_set_cmap() 321 fb_var.bits_per_pixel = 8; in g364fb_init() 325 fb_fix.line_length = (xres / 8) * fb_var.bits_per_pixel; in g364fb_init() 487 fb_set_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), 1, in do_install_cmap()
|
D | macmodes.c | 404 var->bits_per_pixel = 8; in mac_vmode_to_var() 414 var->bits_per_pixel = 16; in mac_vmode_to_var() 424 var->bits_per_pixel = 32; in mac_vmode_to_var() 476 if (var->bits_per_pixel <= 8) in mac_var_to_vmode() 478 else if (var->bits_per_pixel <= 16) in mac_var_to_vmode() 480 else if (var->bits_per_pixel <= 32) in mac_var_to_vmode()
|
D | epson1355fb.c | 215 if(var->bits_per_pixel != par->bpp) { in e1355_decode_var() 216 ret = e1355_set_bpp(par, var->bits_per_pixel); in e1355_decode_var() 251 var->bits_per_pixel = bpp; in e1355_bpp_to_var() 256 var->bits_per_pixel = 16; in e1355_bpp_to_var() 305 xres_virtual /= var->bits_per_pixel; in e1355_encode_var() 438 switch(disp->var.bits_per_pixel) { in e1355_set_disp() 515 if (disp.var.bits_per_pixel > 1) in e1355fb_init()
|
D | igafb.c | 219 fix->line_length = default_var.xres * (default_var.bits_per_pixel/8); in igafb_get_fix() 220 fix->visual = default_var.bits_per_pixel <= 8 ? FB_VISUAL_PSEUDOCOLOR in igafb_get_fix() 358 switch (default_var.bits_per_pixel) { in iga_setcolreg() 473 switch (default_var.bits_per_pixel) { in igafb_set_disp() 500 default_var.bits_per_pixel); in igafb_set_disp() 553 if (default_var.bits_per_pixel > 8) { in iga_init() 718 default_var.bits_per_pixel = 8; in igafb_init() 721 default_var.bits_per_pixel = 16; in igafb_init() 724 default_var.bits_per_pixel = 24; in igafb_init() 727 default_var.bits_per_pixel = 32; in igafb_init()
|
D | chipsfb.c | 175 || (var->bits_per_pixel != 8 && var->bits_per_pixel != 16) in chips_set_var() 181 var->bits_per_pixel != disp->var.bits_per_pixel) { in chips_set_var() 182 chips_set_bitdepth(cp, disp, con, var->bits_per_pixel); in chips_set_var() 196 int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in chips_get_cmap() 208 int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in chips_set_cmap() 228 new_bpp = fb_display[con].var.bits_per_pixel; in chipsfbcon_switch() 229 old_bpp = fb_display[currcon].var.bits_per_pixel; in chipsfbcon_switch() 333 int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in do_install_cmap() 387 var->bits_per_pixel = bpp; in chips_set_bitdepth() 557 p->var.bits_per_pixel = 8; in init_chips()
|
D | pvr2fb.c | 376 oldbpp = display->var.bits_per_pixel; in pvr2fb_set_var() 380 oldbpp != var->bits_per_pixel) { in pvr2fb_set_var() 394 switch (var->bits_per_pixel) { in pvr2fb_set_var() 420 if (oldbpp != var->bits_per_pixel) { in pvr2fb_set_var() 473 fb_copy_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), in pvr2fb_get_cmap() 487 1<<fb_display[con].var.bits_per_pixel, in pvr2fb_set_cmap() 532 fb_set_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), in do_install_cmap() 543 switch (var->bits_per_pixel) { in set_color_bitfields() 669 if ((par->bpp = var->bits_per_pixel) <= 16) in pvr2_decode_var() 671 else if ((par->bpp = var->bits_per_pixel) <= 24) in pvr2_decode_var() [all …]
|
D | offb.c | 189 var->bits_per_pixel > info2->var.bits_per_pixel || in offb_set_var() 196 oldbpp = display->var.bits_per_pixel; in offb_set_var() 199 if ((oldbpp != var->bits_per_pixel) || (display->cmap.len == 0)) { in offb_set_var() 223 int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in offb_get_cmap() 243 int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in offb_set_cmap() 474 var->bits_per_pixel = depth; in offb_init_fb() 477 var->bits_per_pixel = 8; in offb_init_fb() 488 var->bits_per_pixel = 16; in offb_init_fb() 499 var->bits_per_pixel = 32; in offb_init_fb() 806 switch (info2->var.bits_per_pixel) { in offb_setcolreg() [all …]
|
D | cyberfb.c | 408 if (par->var.bits_per_pixel == 15 || par->var.bits_per_pixel == 16 || in Cyber_encode_fix() 409 par->var.bits_per_pixel == 24 || par->var.bits_per_pixel == 32) { in Cyber_encode_fix() 441 par->var.bits_per_pixel = var->bits_per_pixel; in Cyber_decode_var() 485 var->bits_per_pixel = par->var.bits_per_pixel; in Cyber_encode_var() 816 fb_set_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), in do_install_cmap() 889 switch (display->var.bits_per_pixel) { in cyberfb_set_disp() 931 oldbpp = fb_display[con].var.bits_per_pixel; in cyberfb_set_var() 937 oldbpp != var->bits_per_pixel || in cyberfb_set_var() 967 fb_copy_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), in cyberfb_get_cmap() 987 1<<fb_display[con].var.bits_per_pixel, in cyberfb_set_cmap() [all …]
|
D | neofb.c | 239 switch (var->bits_per_pixel) in neo2200_accel_init() 287 bpp = (var->bits_per_pixel+7) / 8; in neo2200_accel_bmove() 355 switch (var->bits_per_pixel) in neo2200_accel_clear() 365 neo2200->dstStart = dst * ((var->bits_per_pixel+7) / 8); in neo2200_accel_clear() 437 switch (fb->var.bits_per_pixel) in neo_setcolreg() 810 Base *= (var->bits_per_pixel + 7) / 8; in neofb_update_start() 847 if (fb->var.bits_per_pixel == 8) in neofb_set_cmap() 1117 switch (var->bits_per_pixel) in neofb_decode_var() 1145 par->depth = var->bits_per_pixel; in neofb_decode_var() 1156 memlen = var->xres_virtual * var->bits_per_pixel * var->yres_virtual / 8; in neofb_decode_var() [all …]
|
D | tgafb.c | 322 fix->line_length = par->xres * (par->bits_per_pixel >> 3); in tgafb_encode_fix() 341 if (var->bits_per_pixel > 8) { in tgafb_decode_var() 344 par->bits_per_pixel = 8; in tgafb_decode_var() 346 if (var->bits_per_pixel > 32) { in tgafb_decode_var() 349 par->bits_per_pixel = 32; in tgafb_decode_var() 389 par->bits_per_pixel = var->bits_per_pixel; in tgafb_decode_var() 431 var->bits_per_pixel = par->bits_per_pixel; in tgafb_encode_var() 457 default_var.bits_per_pixel = 8; in tgafb_get_par() 459 default_var.bits_per_pixel = 32; in tgafb_get_par()
|
D | clgenfb.c | 691 switch (_par->var.bits_per_pixel) { in clgen_encode_fix() 710 fix->smem_len = _par->var.bits_per_pixel == 1 ? _info->size / 4 in clgen_encode_fix() 808 DPRINTK ("Requested: %dx%dx%d\n", var->xres, var->yres, var->bits_per_pixel); in clgen_decode_var() 817 switch (var->bits_per_pixel) { in clgen_decode_var() 823 _par->var.bits_per_pixel = 8; in clgen_decode_var() 828 _par->var.bits_per_pixel = 16; in clgen_decode_var() 833 _par->var.bits_per_pixel = 24; in clgen_decode_var() 838 _par->var.bits_per_pixel = 32; in clgen_decode_var() 844 var->xres, var->yres, var->bits_per_pixel); in clgen_decode_var() 851 var->xres, var->yres, var->bits_per_pixel); in clgen_decode_var() [all …]
|
D | maxinefb.c | 279 switch (var->bits_per_pixel) { in maxinefb_get_fix() 292 var->bits_per_pixel = 8; in maxinefb_get_fix() 305 switch (disp->var.bits_per_pixel) { in maxinefb_set_dispsw() 318 disp->var.bits_per_pixel = 8; in maxinefb_set_dispsw() 322 ims332_set_color_depth(ip->ims332, disp->var.bits_per_pixel); in maxinefb_set_dispsw() 400 ? (1 << disp->var.bits_per_pixel) : 16) 494 switch (var->bits_per_pixel) { in maxinefb_encode_var() 557 var->bits_per_pixel = 8; in maxinefb_encode_var()
|
/linux-2.4.37.9/drivers/video/intel/ |
D | intelfbdrv.c | 442 var->bits_per_pixel, var->green.length); in intelfb_var_to_depth() 445 switch (var->bits_per_pixel) { in intelfb_var_to_depth() 451 return var->bits_per_pixel; in intelfb_var_to_depth() 482 var->bits_per_pixel = screen_info.lfb_depth; in get_initial_mode() 485 var->bits_per_pixel = 16; in get_initial_mode() 488 var->bits_per_pixel = 32; in get_initial_mode() 497 var->xres, var->yres, var->bits_per_pixel, in get_initial_mode() 517 if (var->bits_per_pixel > 8) { in get_initial_mode() 1051 DBG_MSG("intelfb_set_dispsw: (bpp is %d)\n", disp->var.bits_per_pixel); in intelfb_set_dispsw() 1056 switch (disp->var.bits_per_pixel) { in intelfb_set_dispsw() [all …]
|
/linux-2.4.37.9/drivers/video/sti/ |
D | stifb.c | 213 if (fb->var.bits_per_pixel == 32) in SETUP_FB() 219 if (fb->var.bits_per_pixel == 32) in SETUP_FB() 257 if (fb->var.bits_per_pixel == 32) { in FINISH_IMAGE_COLORMAP_ACCESS() 554 if (fb->var.bits_per_pixel == 8) { 593 if (fb->var.bits_per_pixel == 8) in setHyperLutBltCtl() 746 if (fb->var.bits_per_pixel == 32) in hyperResetPlanes() 876 hyperbowl = (fb->var.bits_per_pixel == 32) ? in SETUP_HCRX() 946 if (regno < 16 && fb->var.bits_per_pixel == 32) { in stifb_setcolreg() 967 if (fb->var.bits_per_pixel > 8) { in stifb_loadcmap() 1033 disp->var.bits_per_pixel != var->bits_per_pixel || in stifb_set_var() [all …]
|
/linux-2.4.37.9/drivers/video/matrox/ |
D | matroxfb_crtc2.c | 63 switch (p->var.bits_per_pixel) { in matroxfb_dh_setcolreg() 164 u_int32_t linelen = p->var.xres_virtual * (p->var.bits_per_pixel >> 3); in matroxfb_dh_restore() 224 pixelsize = var->bits_per_pixel >> 3; in matroxfb_dh_pan_var() 246 switch (var->bits_per_pixel) { in matroxfb_dh_decode_var() 265 memlen = var->xres_virtual * var->yres_virtual * (var->bits_per_pixel >> 3); in matroxfb_dh_decode_var() 278 *mode = var->bits_per_pixel; in matroxfb_dh_decode_var() 279 if (var->bits_per_pixel == 16) { in matroxfb_dh_decode_var() 316 switch (p->var.bits_per_pixel) { in initMatroxDH() 435 (p->var.bits_per_pixel != var->bits_per_pixel) || in matroxfb_dh_set_var() 449 p->next_line = p->line_length = (var->xres_virtual * var->bits_per_pixel) >> 3; in matroxfb_dh_set_var() [all …]
|