Lines Matching refs:var
920 if (sfb->fb->var.bits_per_pixel == 16) { in smtc_setcolreg()
923 val = chan_to_field(red, &sfb->fb->var.red); in smtc_setcolreg()
924 val |= chan_to_field(green, &sfb->fb->var.green); in smtc_setcolreg()
925 val |= chan_to_field(blue, &sfb->fb->var.blue); in smtc_setcolreg()
930 val = chan_to_field(red, &sfb->fb->var.red); in smtc_setcolreg()
931 val |= chan_to_field(green, &sfb->fb->var.green); in smtc_setcolreg()
932 val |= chan_to_field(blue, &sfb->fb->var.blue); in smtc_setcolreg()
1117 sfb->width, sfb->height, sfb->fb->var.bits_per_pixel, sfb->hz); in sm7xx_set_timing()
1122 vgamode[j].bpp != sfb->fb->var.bits_per_pixel || in sm7xx_set_timing()
1189 m_nscreenstride = (sfb->width * sfb->fb->var.bits_per_pixel) / 64; in sm7xx_set_timing()
1190 switch (sfb->fb->var.bits_per_pixel) { in sm7xx_set_timing()
1221 switch (sfb->fb->var.bits_per_pixel) { in smtcfb_setmode()
1224 sfb->fb->fix.line_length = sfb->fb->var.xres * 4; in smtcfb_setmode()
1225 sfb->fb->var.red.length = 8; in smtcfb_setmode()
1226 sfb->fb->var.green.length = 8; in smtcfb_setmode()
1227 sfb->fb->var.blue.length = 8; in smtcfb_setmode()
1228 sfb->fb->var.red.offset = 16; in smtcfb_setmode()
1229 sfb->fb->var.green.offset = 8; in smtcfb_setmode()
1230 sfb->fb->var.blue.offset = 0; in smtcfb_setmode()
1234 sfb->fb->fix.line_length = sfb->fb->var.xres * 3; in smtcfb_setmode()
1235 sfb->fb->var.red.length = 8; in smtcfb_setmode()
1236 sfb->fb->var.green.length = 8; in smtcfb_setmode()
1237 sfb->fb->var.blue.length = 8; in smtcfb_setmode()
1238 sfb->fb->var.red.offset = 16; in smtcfb_setmode()
1239 sfb->fb->var.green.offset = 8; in smtcfb_setmode()
1240 sfb->fb->var.blue.offset = 0; in smtcfb_setmode()
1244 sfb->fb->fix.line_length = sfb->fb->var.xres; in smtcfb_setmode()
1245 sfb->fb->var.red.length = 3; in smtcfb_setmode()
1246 sfb->fb->var.green.length = 3; in smtcfb_setmode()
1247 sfb->fb->var.blue.length = 2; in smtcfb_setmode()
1248 sfb->fb->var.red.offset = 5; in smtcfb_setmode()
1249 sfb->fb->var.green.offset = 2; in smtcfb_setmode()
1250 sfb->fb->var.blue.offset = 0; in smtcfb_setmode()
1255 sfb->fb->fix.line_length = sfb->fb->var.xres * 2; in smtcfb_setmode()
1256 sfb->fb->var.red.length = 5; in smtcfb_setmode()
1257 sfb->fb->var.green.length = 6; in smtcfb_setmode()
1258 sfb->fb->var.blue.length = 5; in smtcfb_setmode()
1259 sfb->fb->var.red.offset = 11; in smtcfb_setmode()
1260 sfb->fb->var.green.offset = 5; in smtcfb_setmode()
1261 sfb->fb->var.blue.offset = 0; in smtcfb_setmode()
1265 sfb->width = sfb->fb->var.xres; in smtcfb_setmode()
1266 sfb->height = sfb->fb->var.yres; in smtcfb_setmode()
1271 static int smtc_check_var(struct fb_var_screeninfo *var, struct fb_info *info) in smtc_check_var() argument
1274 if (var->xres_virtual < var->xres) in smtc_check_var()
1275 var->xres_virtual = var->xres; in smtc_check_var()
1277 if (var->yres_virtual < var->yres) in smtc_check_var()
1278 var->yres_virtual = var->yres; in smtc_check_var()
1281 if ((var->bits_per_pixel != 8) && (var->bits_per_pixel != 16) && in smtc_check_var()
1282 (var->bits_per_pixel != 24) && (var->bits_per_pixel != 32)) in smtc_check_var()
1283 var->bits_per_pixel = 16; in smtc_check_var()
1327 if (sfb->fb->var.bits_per_pixel == 32) in smtc_map_smem()
1401 info->var = smtcfb_var; in smtcfb_pci_probe()
1411 sfb->fb->var.xres = smtc_scr_info.lfb_width; in smtcfb_pci_probe()
1412 sfb->fb->var.yres = smtc_scr_info.lfb_height; in smtcfb_pci_probe()
1413 sfb->fb->var.bits_per_pixel = smtc_scr_info.lfb_depth; in smtcfb_pci_probe()
1416 sfb->fb->var.xres = SCREEN_X_RES; in smtcfb_pci_probe()
1417 sfb->fb->var.yres = SCREEN_Y_RES; in smtcfb_pci_probe()
1418 sfb->fb->var.bits_per_pixel = SCREEN_BPP; in smtcfb_pci_probe()
1421 big_pixel_depth(sfb->fb->var.bits_per_pixel, smtc_scr_info.lfb_depth); in smtcfb_pci_probe()
1445 if (sfb->fb->var.bits_per_pixel == 32) { in smtcfb_pci_probe()
1457 if (sfb->fb->var.bits_per_pixel == 32) in smtcfb_pci_probe()
1482 if (15 == sfb->fb->var.bits_per_pixel) in smtcfb_pci_probe()
1483 sfb->fb->var.bits_per_pixel = 16; in smtcfb_pci_probe()
1485 sfb->fb->var.xres_virtual = sfb->fb->var.xres; in smtcfb_pci_probe()
1486 sfb->fb->var.yres_virtual = sfb->fb->var.yres; in smtcfb_pci_probe()
1499 sfb->chip_id, sfb->chip_rev_id, sfb->fb->var.xres, in smtcfb_pci_probe()
1500 sfb->fb->var.yres, sfb->fb->var.bits_per_pixel); in smtcfb_pci_probe()
1590 if (sfb->fb->var.bits_per_pixel == 32) in smtcfb_pci_resume()