Lines Matching refs:bits_per_pixel

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()
1048 par->var.bits_per_pixel = 16; in virgefb_decode_var()
1051 if (par->var.bits_per_pixel == 16) in virgefb_decode_var()
1052 par->var.bits_per_pixel = 8; in virgefb_decode_var()
1097 var->bits_per_pixel = par->var.bits_per_pixel; in virgefb_encode_var()
1131 if (((current_par.var.bits_per_pixel==8) && (regno>255)) || in virgefb_setcolreg()
1132 ((current_par.var.bits_per_pixel!=8) && (regno>15))) { in virgefb_setcolreg()
1136 if (((current_par.var.bits_per_pixel==8) && (regno<256)) || in virgefb_setcolreg()
1137 ((current_par.var.bits_per_pixel!=8) && (regno<16))) { in virgefb_setcolreg()
1143 switch (current_par.var.bits_per_pixel) { in virgefb_setcolreg()
1190 if (((current_par.var.bits_per_pixel==8) && (regno<256)) || in virgefb_getcolreg()
1191 ((current_par.var.bits_per_pixel!=8) && (regno<16))) { in virgefb_getcolreg()
1447 fb_set_cmap(fb_default_cmap(fb_display[con].var.bits_per_pixel==8 ? 256 : 16), in virgefb_do_install_cmap()
1517 switch (display->var.bits_per_pixel) { in virgefb_set_disp()
1543 display->var.bits_per_pixel/8; in virgefb_set_disp()
1545 switch (display->var.bits_per_pixel) { in virgefb_set_disp()
1601 oldbpp = fb_display[con].var.bits_per_pixel; in virgefb_set_var()
1607 oldbpp != var->bits_per_pixel || in virgefb_set_var()
1638 fb_copy_cmap(fb_default_cmap(fb_display[con].var.bits_per_pixel==8 ? 256 : 16), in virgefb_get_cmap()
1658 (fb_display[con].var.bits_per_pixel==8 ? 256 : 16), 0))) { in virgefb_set_cmap()
1724 virgefb_default.yres, virgefb_default.bits_per_pixel); in virgefb_setup()
2236 video_mode->bits_per_pixel); in virgefb_load_video_mode()
2238 bpp = video_mode->bits_per_pixel; in virgefb_load_video_mode()