Lines Matching +full:16 +full:bpp

35 	u32 pseudo_pal[16];
65 static int bpp = 8; variable
83 module_param(bpp, int, 0);
303 #define point(x, y) ((y) << 16 | (x))
305 static void blade_init_accel(struct tridentfb_par *par, int pitch, int bpp) in blade_init_accel() argument
308 int tmp = bpp == 24 ? 2 : (bpp >> 4); in blade_init_accel()
379 static void xp_init_accel(struct tridentfb_par *par, int pitch, int bpp) in xp_init_accel() argument
381 unsigned char x = bpp == 24 ? 3 : (bpp >> 4); in xp_init_accel()
382 int v1 = pitch << (bpp == 24 ? 20 : (18 + x)); in xp_init_accel()
384 switch (pitch << (bpp >> 3)) { in xp_init_accel()
477 static void image_init_accel(struct tridentfb_par *par, int pitch, int bpp) in image_init_accel() argument
479 int tmp = bpp == 24 ? 2: (bpp >> 4); in image_init_accel()
488 writemmr(par, 0x2120, 0x60000000 | (pitch << 16) | pitch); in image_init_accel()
493 writemmr(par, 0x2130, (2047 << 16) | 2047); in image_init_accel()
543 static void tgui_init_accel(struct tridentfb_par *par, int pitch, int bpp) in tgui_init_accel() argument
545 unsigned char x = bpp == 24 ? 3 : (bpp >> 4); in tgui_init_accel()
551 switch ((pitch * bpp) / 8) { in tgui_init_accel()
629 col |= col << 16; in tridentfb_fillrect()
651 col |= col << 16; in tridentfb_imageblit()
654 bgcol |= bgcol << 16; in tridentfb_imageblit()
951 k = 16 * Mb; /* XP */ in get_memsize()
994 int bpp = var->bits_per_pixel; in tridentfb_check_var() local
1003 if (bpp == 24) in tridentfb_check_var()
1004 bpp = var->bits_per_pixel = 32; in tridentfb_check_var()
1005 if (bpp != 8 && bpp != 16 && bpp != 32) in tridentfb_check_var()
1007 if (par->chip_id == TGUI9440 && bpp == 32) in tridentfb_check_var()
1023 line_length = var->xres_virtual * bpp / 8; in tridentfb_check_var()
1029 var->xres_virtual = 512 * 8 / bpp; in tridentfb_check_var()
1031 var->xres_virtual = 1024 * 8 / bpp; in tridentfb_check_var()
1033 var->xres_virtual = 2048 * 8 / bpp; in tridentfb_check_var()
1035 var->xres_virtual = 4096 * 8 / bpp; in tridentfb_check_var()
1037 var->xres_virtual = 8192 * 8 / bpp; in tridentfb_check_var()
1041 line_length = var->xres_virtual * bpp / 8; in tridentfb_check_var()
1051 switch (bpp) { in tridentfb_check_var()
1058 case 16: in tridentfb_check_var()
1067 var->red.offset = 16; in tridentfb_check_var()
1083 ramdac = (bpp >= 16) ? 45000 : 90000; in tridentfb_check_var()
1097 /* The clock is doubled for 32 bpp */ in tridentfb_check_var()
1098 if (bpp == 32) in tridentfb_check_var()
1137 int bpp = var->bits_per_pixel; in tridentfb_set_par() local
1260 switch (bpp) { in tridentfb_set_par()
1264 case 16: in tridentfb_set_par()
1301 /* divide clock by 2 if 32bpp chain4 mode display and CPU path */ in tridentfb_set_par()
1303 if (bpp == 32 || (par->chip_id == TGUI9440 && bpp == 16)) { in tridentfb_set_par()
1324 switch (bpp) { in tridentfb_set_par()
1328 case 16: in tridentfb_set_par()
1347 info->fix.line_length = info->var.xres_virtual * bpp / 8; in tridentfb_set_par()
1351 par->init_accel(par, info->var.xres_virtual, bpp); in tridentfb_set_par()
1353 info->fix.visual = (bpp == 8) ? FB_VISUAL_PSEUDOCOLOR : FB_VISUAL_TRUECOLOR; in tridentfb_set_par()
1354 info->cmap.len = (bpp == 8) ? 256 : 16; in tridentfb_set_par()
1364 int bpp = info->var.bits_per_pixel; in tridentfb_setcolreg() local
1370 if (bpp == 8) { in tridentfb_setcolreg()
1378 } else if (regno < 16) { in tridentfb_setcolreg()
1379 if (bpp == 16) { /* RGB 565 */ in tridentfb_setcolreg()
1384 col |= col << 16; in tridentfb_setcolreg()
1386 } else if (bpp == 32) /* ARGB 8888 */ in tridentfb_setcolreg()
1388 ((transp & 0xFF00) << 16) | in tridentfb_setcolreg()
1775 * video=trident:800x600,bpp=16,noaccel
1792 else if (!strncmp(opt, "bpp=", 4)) in tridentfb_setup()
1793 bpp = simple_strtoul(opt + 4, NULL, 0); in tridentfb_setup()