Lines Matching refs:bits_per_pixel

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()
1415 disp->visual = disp->var.bits_per_pixel == 8 ? FB_VISUAL_PSEUDOCOLOR in set_disp()
1421 disp->line_length = disp->var.xres * (disp->var.bits_per_pixel >> 3); in set_disp()
1430 disp->var.yres_virtual = ((vram << 3) / disp->var.bits_per_pixel) / disp->var.xres_virtual; in set_disp()
1460 if ((var->bits_per_pixel != 8 && var->bits_per_pixel != 16 in imsttfb_set_var()
1461 && var->bits_per_pixel != 24 && var->bits_per_pixel != 32) in imsttfb_set_var()
1467 if ((var->xres * var->yres) * (var->bits_per_pixel >> 3) > p->total_vram in imsttfb_set_var()
1468 || (var->xres_virtual * var->yres_virtual) * (var->bits_per_pixel >> 3) > p->total_vram) in imsttfb_set_var()
1477 oldbpp = disp->var.bits_per_pixel; in imsttfb_set_var()
1483 disp->var.bits_per_pixel = var->bits_per_pixel; in imsttfb_set_var()
1503 if (oldxres != disp->var.xres || oldyres != disp->var.yres || oldbpp != disp->var.bits_per_pixel) in imsttfb_set_var()
1504 set_imstt_regvals(p, disp->var.bits_per_pixel); in imsttfb_set_var()
1509 if (oldbpp != disp->var.bits_per_pixel) { in imsttfb_set_var()
1546 u_int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in imsttfb_get_cmap()
1559 int size = fb_display[con].var.bits_per_pixel == 16 ? 32 : 256; in imsttfb_set_cmap()
1676 || old->var.bits_per_pixel != new->var.bits_per_pixel in imsttfbcon_switch()
1682 if (new->var.bits_per_pixel == 16) { in imsttfbcon_switch()
1688 set_imstt_regvals(p, new->var.bits_per_pixel); in imsttfbcon_switch()
1829 p->disp.var.bits_per_pixel = INIT_BPP; in init_imstt()
1835 p->disp.var.bits_per_pixel = INIT_BPP; in init_imstt()
1838 if ((p->disp.var.xres * p->disp.var.yres) * (p->disp.var.bits_per_pixel >> 3) > p->total_vram in init_imstt()
1840 …msttfb: %ux%ux%u not supported\n", p->disp.var.xres, p->disp.var.yres, p->disp.var.bits_per_pixel); in init_imstt()
1852 p->fix.visual = p->disp.var.bits_per_pixel == 8 ? FB_VISUAL_PSEUDOCOLOR in init_imstt()
1854 p->fix.line_length = p->disp.var.xres * (p->disp.var.bits_per_pixel >> 3); in init_imstt()
1868 set_imstt_regvals(p, p->disp.var.bits_per_pixel); in init_imstt()