Lines Matching refs:var
351 int (*decode_var)(struct fb_var_screeninfo *var,
353 int (*encode_var)(struct fb_var_screeninfo *var,
359 int (*pan_display)(struct fb_var_screeninfo *var,
579 static int tt_decode_var(struct fb_var_screeninfo *var, struct atafb_par *par) in tt_decode_var() argument
581 int xres = var->xres; in tt_decode_var()
582 int yres = var->yres; in tt_decode_var()
583 int bpp = var->bits_per_pixel; in tt_decode_var()
585 int yres_virtual = var->yres_virtual; in tt_decode_var()
625 } else if (var->xres > sttt_xres || var->yres > st_yres) { in tt_decode_var()
638 if (var->sync & FB_SYNC_EXT) in tt_decode_var()
647 if (var->yoffset + yres > yres_virtual && yres_virtual) in tt_decode_var()
650 par->screen_base = screen_base + var->yoffset * linelen; in tt_decode_var()
655 static int tt_encode_var(struct fb_var_screeninfo *var, struct atafb_par *par) in tt_encode_var() argument
658 memset(var, 0, sizeof(struct fb_var_screeninfo)); in tt_encode_var()
659 var->red.offset = 0; in tt_encode_var()
660 var->red.length = 4; in tt_encode_var()
661 var->red.msb_right = 0; in tt_encode_var()
662 var->grayscale = 0; in tt_encode_var()
664 var->pixclock = 31041; in tt_encode_var()
665 var->left_margin = 120; /* these may be incorrect */ in tt_encode_var()
666 var->right_margin = 100; in tt_encode_var()
667 var->upper_margin = 8; in tt_encode_var()
668 var->lower_margin = 16; in tt_encode_var()
669 var->hsync_len = 140; in tt_encode_var()
670 var->vsync_len = 30; in tt_encode_var()
672 var->height = -1; in tt_encode_var()
673 var->width = -1; in tt_encode_var()
676 var->sync = 0; in tt_encode_var()
678 var->sync = FB_SYNC_EXT; in tt_encode_var()
682 var->xres = sttt_xres / 2; in tt_encode_var()
683 var->xres_virtual = sttt_xres_virtual / 2; in tt_encode_var()
684 var->yres = st_yres / 2; in tt_encode_var()
685 var->bits_per_pixel = 4; in tt_encode_var()
688 var->xres = sttt_xres; in tt_encode_var()
689 var->xres_virtual = sttt_xres_virtual; in tt_encode_var()
690 var->yres = st_yres / 2; in tt_encode_var()
691 var->bits_per_pixel = 2; in tt_encode_var()
694 var->xres = sttt_xres; in tt_encode_var()
695 var->xres_virtual = sttt_xres_virtual; in tt_encode_var()
696 var->yres = st_yres; in tt_encode_var()
697 var->bits_per_pixel = 1; in tt_encode_var()
700 var->xres = sttt_xres / 2; in tt_encode_var()
701 var->xres_virtual = sttt_xres_virtual / 2; in tt_encode_var()
702 var->yres = tt_yres; in tt_encode_var()
703 var->bits_per_pixel = 8; in tt_encode_var()
706 var->xres = sttt_xres; in tt_encode_var()
707 var->xres_virtual = sttt_xres_virtual; in tt_encode_var()
708 var->yres = tt_yres; in tt_encode_var()
709 var->bits_per_pixel = 4; in tt_encode_var()
712 var->red.length = 0; in tt_encode_var()
713 var->xres = sttt_xres * 2; in tt_encode_var()
714 var->xres_virtual = sttt_xres_virtual * 2; in tt_encode_var()
715 var->yres = tt_yres * 2; in tt_encode_var()
716 var->bits_per_pixel = 1; in tt_encode_var()
719 var->blue = var->green = var->red; in tt_encode_var()
720 var->transp.offset = 0; in tt_encode_var()
721 var->transp.length = 0; in tt_encode_var()
722 var->transp.msb_right = 0; in tt_encode_var()
723 linelen = var->xres_virtual * var->bits_per_pixel / 8; in tt_encode_var()
725 var->yres_virtual = var->yres; in tt_encode_var()
728 var->yres_virtual = par->yres_virtual; in tt_encode_var()
731 var->yres_virtual = screen_len / linelen; in tt_encode_var()
734 var->yres_virtual = 2 * var->yres; in tt_encode_var()
736 var->yres_virtual = var->yres + hwscroll * 16; in tt_encode_var()
738 var->xoffset = 0; in tt_encode_var()
740 var->yoffset = (par->screen_base - screen_base) / linelen; in tt_encode_var()
742 var->yoffset = 0; in tt_encode_var()
743 var->nonstd = 0; in tt_encode_var()
744 var->activate = 0; in tt_encode_var()
745 var->vmode = FB_VMODE_NONINTERLACED; in tt_encode_var()
880 static int falcon_decode_var(struct fb_var_screeninfo *var, in falcon_decode_var() argument
883 int bpp = var->bits_per_pixel; in falcon_decode_var()
884 int xres = var->xres; in falcon_decode_var()
885 int yres = var->yres; in falcon_decode_var()
886 int xres_virtual = var->xres_virtual; in falcon_decode_var()
887 int yres_virtual = var->yres_virtual; in falcon_decode_var()
957 var->xres > myvar->xres || in falcon_decode_var()
958 var->yres > myvar->yres) in falcon_decode_var()
1034 if (var->pixclock > f32.t * plen) in falcon_decode_var()
1039 if (var->pixclock == 0) { in falcon_decode_var()
1048 left_margin = var->left_margin; in falcon_decode_var()
1049 right_margin = var->right_margin; in falcon_decode_var()
1050 hsync_len = var->hsync_len; in falcon_decode_var()
1051 upper_margin = var->upper_margin; in falcon_decode_var()
1052 lower_margin = var->lower_margin; in falcon_decode_var()
1053 vsync_len = var->vsync_len; in falcon_decode_var()
1054 if (var->vmode & FB_VMODE_INTERLACED) { in falcon_decode_var()
1058 } else if (var->vmode & FB_VMODE_DOUBLE) { in falcon_decode_var()
1068 if (var->pixclock == 0) { in falcon_decode_var()
1096 if (f25.t * i >= var->pixclock && in falcon_decode_var()
1101 if (f32.t * i >= var->pixclock && in falcon_decode_var()
1106 if (fext.t && fext.t * i >= var->pixclock && in falcon_decode_var()
1116 left_margin = var->left_margin; in falcon_decode_var()
1117 right_margin = var->right_margin; in falcon_decode_var()
1118 hsync_len = var->hsync_len; in falcon_decode_var()
1119 upper_margin = var->upper_margin; in falcon_decode_var()
1120 lower_margin = var->lower_margin; in falcon_decode_var()
1121 vsync_len = var->vsync_len; in falcon_decode_var()
1123 if (var->vmode & FB_VMODE_INTERLACED) { in falcon_decode_var()
1129 } else if (var->vmode & FB_VMODE_DOUBLE) { in falcon_decode_var()
1161 if (var->sync & FB_SYNC_HOR_HIGH_ACT) in falcon_decode_var()
1163 if (var->sync & FB_SYNC_VERT_HIGH_ACT) in falcon_decode_var()
1338 if (var->yoffset + yres > yres_virtual && yres_virtual) in falcon_decode_var()
1341 par->screen_base = screen_base + var->yoffset * linelen; in falcon_decode_var()
1349 static int falcon_encode_var(struct fb_var_screeninfo *var, in falcon_encode_var() argument
1358 memset(var, 0, sizeof(struct fb_var_screeninfo)); in falcon_encode_var()
1360 var->pixclock = hw->sync & 0x1 ? fext.t : in falcon_encode_var()
1363 var->height = -1; in falcon_encode_var()
1364 var->width = -1; in falcon_encode_var()
1366 var->sync = 0; in falcon_encode_var()
1368 var->sync |= FB_SYNC_HOR_HIGH_ACT; in falcon_encode_var()
1370 var->sync |= FB_SYNC_VERT_HIGH_ACT; in falcon_encode_var()
1372 var->vmode = FB_VMODE_NONINTERLACED; in falcon_encode_var()
1374 var->vmode |= FB_VMODE_INTERLACED; in falcon_encode_var()
1376 var->vmode |= FB_VMODE_DOUBLE; in falcon_encode_var()
1383 var->yres = hw->vde - hw->vdb; in falcon_encode_var()
1384 if (!(var->vmode & FB_VMODE_INTERLACED)) in falcon_encode_var()
1385 var->yres >>= 1; in falcon_encode_var()
1386 if (var->vmode & FB_VMODE_DOUBLE) in falcon_encode_var()
1387 var->yres >>= 1; in falcon_encode_var()
1398 var->bits_per_pixel = 1; in falcon_encode_var()
1400 var->bits_per_pixel = 16; in falcon_encode_var()
1402 var->bits_per_pixel = 8; in falcon_encode_var()
1404 var->bits_per_pixel = 4; in falcon_encode_var()
1406 var->bits_per_pixel = 2; in falcon_encode_var()
1408 var->bits_per_pixel = 1; in falcon_encode_var()
1410 var->xres = hw->line_width * 16 / var->bits_per_pixel; in falcon_encode_var()
1411 var->xres_virtual = var->xres + hw->line_offset * 16 / var->bits_per_pixel; in falcon_encode_var()
1413 var->xres_virtual += 16; in falcon_encode_var()
1415 if (var->bits_per_pixel == 16) { in falcon_encode_var()
1416 var->red.offset = 11; in falcon_encode_var()
1417 var->red.length = 5; in falcon_encode_var()
1418 var->red.msb_right = 0; in falcon_encode_var()
1419 var->green.offset = 5; in falcon_encode_var()
1420 var->green.length = 6; in falcon_encode_var()
1421 var->green.msb_right = 0; in falcon_encode_var()
1422 var->blue.offset = 0; in falcon_encode_var()
1423 var->blue.length = 5; in falcon_encode_var()
1424 var->blue.msb_right = 0; in falcon_encode_var()
1426 var->red.offset = 0; in falcon_encode_var()
1427 var->red.length = hw->ste_mode ? 4 : 6; in falcon_encode_var()
1428 if (var->red.length > var->bits_per_pixel) in falcon_encode_var()
1429 var->red.length = var->bits_per_pixel; in falcon_encode_var()
1430 var->red.msb_right = 0; in falcon_encode_var()
1431 var->grayscale = 0; in falcon_encode_var()
1432 var->blue = var->green = var->red; in falcon_encode_var()
1434 var->transp.offset = 0; in falcon_encode_var()
1435 var->transp.length = 0; in falcon_encode_var()
1436 var->transp.msb_right = 0; in falcon_encode_var()
1438 linelen = var->xres_virtual * var->bits_per_pixel / 8; in falcon_encode_var()
1441 var->yres_virtual = par->yres_virtual; in falcon_encode_var()
1444 var->yres_virtual = screen_len / linelen; in falcon_encode_var()
1447 var->yres_virtual = 2 * var->yres; in falcon_encode_var()
1449 var->yres_virtual = var->yres + hwscroll * 16; in falcon_encode_var()
1451 var->xoffset = 0; /* TODO change this */ in falcon_encode_var()
1461 hde_off = ((128 / var->bits_per_pixel + 2) * plen); in falcon_encode_var()
1463 hdb_off = (64 + base_off + (128 / var->bits_per_pixel + 2) * plen) in falcon_encode_var()
1466 hdb_off = (base_off + (128 / var->bits_per_pixel + 18) * plen) in falcon_encode_var()
1471 var->left_margin = hdb_off + prescale * ((hw->hdb & 0x1ff) - in falcon_encode_var()
1474 var->right_margin = prescale * (hw->hht + 2 - hw->hde) - hde_off; in falcon_encode_var()
1477 var->right_margin = prescale * (hw->hht + 2 - hw->hbb); in falcon_encode_var()
1478 var->hsync_len = prescale * (hw->hht + 2 - hw->hss); in falcon_encode_var()
1481 var->upper_margin = hw->vdb / 2; /* round down to full lines */ in falcon_encode_var()
1482 var->lower_margin = (hw->vft + 1 - hw->vde + 1) / 2; /* round up */ in falcon_encode_var()
1483 var->vsync_len = (hw->vft + 1 - hw->vss + 1) / 2; /* round up */ in falcon_encode_var()
1484 if (var->vmode & FB_VMODE_INTERLACED) { in falcon_encode_var()
1485 var->upper_margin *= 2; in falcon_encode_var()
1486 var->lower_margin *= 2; in falcon_encode_var()
1487 var->vsync_len *= 2; in falcon_encode_var()
1488 } else if (var->vmode & FB_VMODE_DOUBLE) { in falcon_encode_var()
1489 var->upper_margin = (var->upper_margin + 1) / 2; in falcon_encode_var()
1490 var->lower_margin = (var->lower_margin + 1) / 2; in falcon_encode_var()
1491 var->vsync_len = (var->vsync_len + 1) / 2; in falcon_encode_var()
1494 var->pixclock *= plen; in falcon_encode_var()
1495 var->left_margin /= plen; in falcon_encode_var()
1496 var->right_margin /= plen; in falcon_encode_var()
1497 var->hsync_len /= plen; in falcon_encode_var()
1499 var->right_margin -= var->hsync_len; in falcon_encode_var()
1500 var->lower_margin -= var->vsync_len; in falcon_encode_var()
1503 var->yoffset = (par->screen_base - screen_base) / linelen; in falcon_encode_var()
1505 var->yoffset = 0; in falcon_encode_var()
1506 var->nonstd = 0; /* what is this for? */ in falcon_encode_var()
1507 var->activate = 0; in falcon_encode_var()
1632 static int falcon_pan_display(struct fb_var_screeninfo *var, in falcon_pan_display() argument
1638 int bpp = info->var.bits_per_pixel; in falcon_pan_display()
1641 var->xoffset = round_up(var->xoffset, 32); in falcon_pan_display()
1643 par->hw.falcon.xoffset = var->xoffset & 15; in falcon_pan_display()
1646 var->xoffset = round_up(var->xoffset, 2); in falcon_pan_display()
1649 (info->var.xres_virtual - info->var.xres) / 16; in falcon_pan_display()
1652 xoffset = var->xoffset - par->hw.falcon.xoffset; in falcon_pan_display()
1655 (var->yoffset * info->var.xres_virtual + xoffset) * bpp / 8; in falcon_pan_display()
1798 static int stste_decode_var(struct fb_var_screeninfo *var, in stste_decode_var() argument
1801 int xres = var->xres; in stste_decode_var()
1802 int yres = var->yres; in stste_decode_var()
1803 int bpp = var->bits_per_pixel; in stste_decode_var()
1805 int yres_virtual = var->yres_virtual; in stste_decode_var()
1838 if (var->sync & FB_SYNC_EXT) in stste_decode_var()
1847 if (var->yoffset + yres > yres_virtual && yres_virtual) in stste_decode_var()
1850 par->screen_base = screen_base + var->yoffset * linelen; in stste_decode_var()
1855 static int stste_encode_var(struct fb_var_screeninfo *var, in stste_encode_var() argument
1859 memset(var, 0, sizeof(struct fb_var_screeninfo)); in stste_encode_var()
1860 var->red.offset = 0; in stste_encode_var()
1861 var->red.length = ATARIHW_PRESENT(EXTD_SHIFTER) ? 4 : 3; in stste_encode_var()
1862 var->red.msb_right = 0; in stste_encode_var()
1863 var->grayscale = 0; in stste_encode_var()
1865 var->pixclock = 31041; in stste_encode_var()
1866 var->left_margin = 120; /* these are incorrect */ in stste_encode_var()
1867 var->right_margin = 100; in stste_encode_var()
1868 var->upper_margin = 8; in stste_encode_var()
1869 var->lower_margin = 16; in stste_encode_var()
1870 var->hsync_len = 140; in stste_encode_var()
1871 var->vsync_len = 30; in stste_encode_var()
1873 var->height = -1; in stste_encode_var()
1874 var->width = -1; in stste_encode_var()
1877 var->sync = 0; in stste_encode_var()
1879 var->sync = FB_SYNC_EXT; in stste_encode_var()
1883 var->xres = sttt_xres / 2; in stste_encode_var()
1884 var->yres = st_yres / 2; in stste_encode_var()
1885 var->bits_per_pixel = 4; in stste_encode_var()
1888 var->xres = sttt_xres; in stste_encode_var()
1889 var->yres = st_yres / 2; in stste_encode_var()
1890 var->bits_per_pixel = 2; in stste_encode_var()
1893 var->xres = sttt_xres; in stste_encode_var()
1894 var->yres = st_yres; in stste_encode_var()
1895 var->bits_per_pixel = 1; in stste_encode_var()
1898 var->blue = var->green = var->red; in stste_encode_var()
1899 var->transp.offset = 0; in stste_encode_var()
1900 var->transp.length = 0; in stste_encode_var()
1901 var->transp.msb_right = 0; in stste_encode_var()
1902 var->xres_virtual = sttt_xres_virtual; in stste_encode_var()
1903 linelen = var->xres_virtual * var->bits_per_pixel / 8; in stste_encode_var()
1907 var->yres_virtual = var->yres; in stste_encode_var()
1910 var->yres_virtual = par->yres_virtual; in stste_encode_var()
1913 var->yres_virtual = screen_len / linelen; in stste_encode_var()
1916 var->yres_virtual = 2 * var->yres; in stste_encode_var()
1918 var->yres_virtual = var->yres + hwscroll * 16; in stste_encode_var()
1920 var->xoffset = 0; in stste_encode_var()
1922 var->yoffset = (par->screen_base - screen_base) / linelen; in stste_encode_var()
1924 var->yoffset = 0; in stste_encode_var()
1925 var->nonstd = 0; in stste_encode_var()
1926 var->activate = 0; in stste_encode_var()
1927 var->vmode = FB_VMODE_NONINTERLACED; in stste_encode_var()
2115 static int ext_decode_var(struct fb_var_screeninfo *var, struct atafb_par *par) in ext_decode_var() argument
2119 if (var->bits_per_pixel > myvar->bits_per_pixel || in ext_decode_var()
2120 var->xres > myvar->xres || in ext_decode_var()
2121 var->xres_virtual > myvar->xres_virtual || in ext_decode_var()
2122 var->yres > myvar->yres || in ext_decode_var()
2123 var->xoffset > 0 || in ext_decode_var()
2124 var->yoffset > 0) in ext_decode_var()
2131 static int ext_encode_var(struct fb_var_screeninfo *var, struct atafb_par *par) in ext_encode_var() argument
2133 memset(var, 0, sizeof(struct fb_var_screeninfo)); in ext_encode_var()
2134 var->red.offset = 0; in ext_encode_var()
2135 var->red.length = (external_pmode == -1) ? external_depth / 3 : in ext_encode_var()
2137 var->red.msb_right = 0; in ext_encode_var()
2138 var->grayscale = 0; in ext_encode_var()
2140 var->pixclock = 31041; in ext_encode_var()
2141 var->left_margin = 120; /* these are surely incorrect */ in ext_encode_var()
2142 var->right_margin = 100; in ext_encode_var()
2143 var->upper_margin = 8; in ext_encode_var()
2144 var->lower_margin = 16; in ext_encode_var()
2145 var->hsync_len = 140; in ext_encode_var()
2146 var->vsync_len = 30; in ext_encode_var()
2148 var->height = -1; in ext_encode_var()
2149 var->width = -1; in ext_encode_var()
2151 var->sync = 0; in ext_encode_var()
2153 var->xres = external_xres; in ext_encode_var()
2154 var->yres = external_yres; in ext_encode_var()
2155 var->xres_virtual = external_xres_virtual; in ext_encode_var()
2156 var->bits_per_pixel = external_depth; in ext_encode_var()
2158 var->blue = var->green = var->red; in ext_encode_var()
2159 var->transp.offset = 0; in ext_encode_var()
2160 var->transp.length = 0; in ext_encode_var()
2161 var->transp.msb_right = 0; in ext_encode_var()
2162 var->yres_virtual = var->yres; in ext_encode_var()
2163 var->xoffset = 0; in ext_encode_var()
2164 var->yoffset = 0; in ext_encode_var()
2165 var->nonstd = 0; in ext_encode_var()
2166 var->activate = 0; in ext_encode_var()
2167 var->vmode = FB_VMODE_NONINTERLACED; in ext_encode_var()
2257 static int pan_display(struct fb_var_screeninfo *var, struct fb_info *info) in pan_display() argument
2262 (!ATARIHW_PRESENT(EXTD_SHIFTER) && var->xoffset)) in pan_display()
2264 var->xoffset = round_up(var->xoffset, 16); in pan_display()
2266 (var->yoffset * info->var.xres_virtual + var->xoffset) in pan_display()
2267 * info->var.bits_per_pixel / 8; in pan_display()
2347 static int do_fb_set_var(struct fb_var_screeninfo *var, int isactive) in do_fb_set_var() argument
2352 err = fbhw->decode_var(var, &par); in do_fb_set_var()
2355 activate = var->activate; in do_fb_set_var()
2356 if (((var->activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW) && isactive) in do_fb_set_var()
2358 fbhw->encode_var(var, &par); in do_fb_set_var()
2359 var->activate = activate; in do_fb_set_var()
2371 err = fbhw->decode_var(&info->var, &par); in atafb_get_fix()
2379 static int atafb_get_var(struct fb_var_screeninfo *var, struct fb_info *info) in atafb_get_var() argument
2384 fbhw->encode_var(var, &par); in atafb_get_var()
2394 atafb_get_var(&info->var, info); in atafb_set_disp()
2403 atafb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) in atafb_pan_display() argument
2408 return fbhw->pan_display(var, info); in atafb_pan_display()
2425 if (info->var.bits_per_pixel == 16) { in atafb_fillrect()
2437 x2 = x2 < info->var.xres_virtual ? x2 : info->var.xres_virtual; in atafb_fillrect()
2438 y2 = y2 < info->var.yres_virtual ? y2 : info->var.yres_virtual; in atafb_fillrect()
2442 if (info->var.bits_per_pixel == 1) in atafb_fillrect()
2445 else if (info->var.bits_per_pixel == 2) in atafb_fillrect()
2448 else if (info->var.bits_per_pixel == 4) in atafb_fillrect()
2466 if (info->var.bits_per_pixel == 16) { in atafb_copyarea()
2477 x2 = x2 < info->var.xres_virtual ? x2 : info->var.xres_virtual; in atafb_copyarea()
2478 y2 = y2 < info->var.yres_virtual ? y2 : info->var.yres_virtual; in atafb_copyarea()
2490 if (sx + width > info->var.xres_virtual || in atafb_copyarea()
2491 sy + height > info->var.yres_virtual) in atafb_copyarea()
2500 if (info->var.bits_per_pixel == 1) in atafb_copyarea()
2502 else if (info->var.bits_per_pixel == 2) in atafb_copyarea()
2504 else if (info->var.bits_per_pixel == 4) in atafb_copyarea()
2520 if (info->var.bits_per_pixel == 16) { in atafb_imageblit()
2535 x2 = x2 < info->var.xres_virtual ? x2 : info->var.xres_virtual; in atafb_imageblit()
2536 y2 = y2 < info->var.yres_virtual ? y2 : info->var.yres_virtual; in atafb_imageblit()
2546 if (info->var.bits_per_pixel == 1) in atafb_imageblit()
2550 else if (info->var.bits_per_pixel == 2) in atafb_imageblit()
2554 else if (info->var.bits_per_pixel == 4) in atafb_imageblit()
2568 info->var.bits_per_pixel); in atafb_imageblit()
2631 static int atafb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) in atafb_check_var() argument
2638 err = fbhw->decode_var(var, &par); in atafb_check_var()
2643 fbhw->encode_var(var, &par); in atafb_check_var()
2654 fbhw->decode_var(&info->var, par); in atafb_set_par()
2682 struct fb_var_screeninfo var; in check_default_par() local
2687 var = atafb_predefined[default_par - 1]; in check_default_par()
2688 var.activate = FB_ACTIVATE_TEST; in check_default_par()
2689 if (do_fb_set_var(&var, 1)) in check_default_par()
2694 var = atafb_predefined[detected_mode - 1]; /* autodetect */ in check_default_par()
2695 var.activate = FB_ACTIVATE_TEST; in check_default_par()
2696 if (!do_fb_set_var(&var, 1)) in check_default_par()
2707 var = atafb_predefined[default_par - 1]; in check_default_par()
2708 var.activate = FB_ACTIVATE_TEST; in check_default_par()
2709 if (!do_fb_set_var(&var,1)) in check_default_par()
2713 min_mem = var.xres_virtual * var.yres_virtual * var.bits_per_pixel / 8; in check_default_par()
3110 atafb_get_var(&fb_info.var, &fb_info); in atafb_probe()
3116 if (!fb_find_mode(&fb_info.var, &fb_info, mode_option, atafb_modedb, in atafb_probe()
3118 fb_info.var.bits_per_pixel)) { in atafb_probe()
3127 fb_alloc_cmap(&(fb_info.cmap), 1 << fb_info.var.bits_per_pixel, 0); in atafb_probe()
3130 dev_info(&pdev->dev, "Determined %dx%d, depth %d\n", fb_info.var.xres, in atafb_probe()
3131 fb_info.var.yres, fb_info.var.bits_per_pixel); in atafb_probe()
3132 if ((fb_info.var.xres != fb_info.var.xres_virtual) || in atafb_probe()
3133 (fb_info.var.yres != fb_info.var.yres_virtual)) in atafb_probe()
3135 fb_info.var.xres_virtual, fb_info.var.yres_virtual); in atafb_probe()