Lines Matching refs:bits_per_pixel
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()
688 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in sgivwfb_set_var()
692 switch (var->bits_per_pixel) in sgivwfb_set_var()
744 oldbpp = display->var.bits_per_pixel; in sgivwfb_set_var()
750 oldbpp != var->bits_per_pixel || !par_current.valid) { in sgivwfb_set_var()
753 var->xres, var->yres, var->bits_per_pixel); in sgivwfb_set_var()
767 if (oldbpp != var->bits_per_pixel || !par_current.valid) { in sgivwfb_set_var()
772 switch (var->bits_per_pixel) { in sgivwfb_set_var()
813 fb_copy_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), in sgivwfb_get_cmap()
827 int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in sgivwfb_set_cmap()