Lines Matching refs:var
318 int (*decode_var)( struct fb_var_screeninfo *var,
320 int (*encode_var)( struct fb_var_screeninfo *var,
332 int (*pan_display)( struct fb_var_screeninfo *var,
487 static int tt_decode_var( struct fb_var_screeninfo *var, in tt_decode_var() argument
490 int xres=var->xres; in tt_decode_var()
491 int yres=var->yres; in tt_decode_var()
492 int bpp=var->bits_per_pixel; in tt_decode_var()
494 int yres_virtual = var->yres_virtual; in tt_decode_var()
538 else if (var->xres > sttt_xres || var->yres > st_yres) { in tt_decode_var()
552 if (var->sync & FB_SYNC_EXT) in tt_decode_var()
561 if (var->yoffset + yres > yres_virtual && yres_virtual) in tt_decode_var()
564 par->screen_base = screen_base + var->yoffset * linelen; in tt_decode_var()
568 static int tt_encode_var( struct fb_var_screeninfo *var, in tt_encode_var() argument
572 memset(var, 0, sizeof(struct fb_var_screeninfo)); in tt_encode_var()
573 var->red.offset=0; in tt_encode_var()
574 var->red.length=4; in tt_encode_var()
575 var->red.msb_right=0; in tt_encode_var()
576 var->grayscale=0; in tt_encode_var()
578 var->pixclock=31041; in tt_encode_var()
579 var->left_margin=120; /* these may be incorrect */ in tt_encode_var()
580 var->right_margin=100; in tt_encode_var()
581 var->upper_margin=8; in tt_encode_var()
582 var->lower_margin=16; in tt_encode_var()
583 var->hsync_len=140; in tt_encode_var()
584 var->vsync_len=30; in tt_encode_var()
586 var->height=-1; in tt_encode_var()
587 var->width=-1; in tt_encode_var()
590 var->sync=0; in tt_encode_var()
592 var->sync=FB_SYNC_EXT; in tt_encode_var()
596 var->xres=sttt_xres/2; in tt_encode_var()
597 var->xres_virtual=sttt_xres_virtual/2; in tt_encode_var()
598 var->yres=st_yres/2; in tt_encode_var()
599 var->bits_per_pixel=4; in tt_encode_var()
602 var->xres=sttt_xres; in tt_encode_var()
603 var->xres_virtual=sttt_xres_virtual; in tt_encode_var()
604 var->yres=st_yres/2; in tt_encode_var()
605 var->bits_per_pixel=2; in tt_encode_var()
608 var->xres=sttt_xres; in tt_encode_var()
609 var->xres_virtual=sttt_xres_virtual; in tt_encode_var()
610 var->yres=st_yres; in tt_encode_var()
611 var->bits_per_pixel=1; in tt_encode_var()
614 var->xres=sttt_xres/2; in tt_encode_var()
615 var->xres_virtual=sttt_xres_virtual/2; in tt_encode_var()
616 var->yres=tt_yres; in tt_encode_var()
617 var->bits_per_pixel=8; in tt_encode_var()
620 var->xres=sttt_xres; in tt_encode_var()
621 var->xres_virtual=sttt_xres_virtual; in tt_encode_var()
622 var->yres=tt_yres; in tt_encode_var()
623 var->bits_per_pixel=4; in tt_encode_var()
626 var->red.length=0; in tt_encode_var()
627 var->xres=sttt_xres*2; in tt_encode_var()
628 var->xres_virtual=sttt_xres_virtual*2; in tt_encode_var()
629 var->yres=tt_yres*2; in tt_encode_var()
630 var->bits_per_pixel=1; in tt_encode_var()
633 var->blue=var->green=var->red; in tt_encode_var()
634 var->transp.offset=0; in tt_encode_var()
635 var->transp.length=0; in tt_encode_var()
636 var->transp.msb_right=0; in tt_encode_var()
637 linelen=var->xres_virtual * var->bits_per_pixel / 8; in tt_encode_var()
639 var->yres_virtual=var->yres; in tt_encode_var()
642 var->yres_virtual = par->yres_virtual; in tt_encode_var()
645 var->yres_virtual = screen_len / linelen; in tt_encode_var()
648 var->yres_virtual = 2 * var->yres; in tt_encode_var()
650 var->yres_virtual=var->yres+hwscroll * 16; in tt_encode_var()
652 var->xoffset=0; in tt_encode_var()
654 var->yoffset=(par->screen_base - screen_base)/linelen; in tt_encode_var()
656 var->yoffset=0; in tt_encode_var()
657 var->nonstd=0; in tt_encode_var()
658 var->activate=0; in tt_encode_var()
659 var->vmode=FB_VMODE_NONINTERLACED; in tt_encode_var()
826 static int falcon_decode_var( struct fb_var_screeninfo *var, in falcon_decode_var() argument
829 int bpp = var->bits_per_pixel; in falcon_decode_var()
830 int xres = var->xres; in falcon_decode_var()
831 int yres = var->yres; in falcon_decode_var()
832 int xres_virtual = var->xres_virtual; in falcon_decode_var()
833 int yres_virtual = var->yres_virtual; in falcon_decode_var()
906 var->xres > myvar->xres || in falcon_decode_var()
907 var->yres > myvar->yres) in falcon_decode_var()
961 if (var->pixclock > 1) in falcon_decode_var()
962 var->pixclock -= 1; in falcon_decode_var()
988 if (var->pixclock > f32.t * plen) in falcon_decode_var()
993 if (var->pixclock == 0) { in falcon_decode_var()
1002 left_margin = var->left_margin; in falcon_decode_var()
1003 right_margin = var->right_margin; in falcon_decode_var()
1004 hsync_len = var->hsync_len; in falcon_decode_var()
1005 upper_margin = var->upper_margin; in falcon_decode_var()
1006 lower_margin = var->lower_margin; in falcon_decode_var()
1007 vsync_len = var->vsync_len; in falcon_decode_var()
1008 if (var->vmode & FB_VMODE_INTERLACED) { in falcon_decode_var()
1012 } else if (var->vmode & FB_VMODE_DOUBLE) { in falcon_decode_var()
1024 if (var->pixclock == 0) { in falcon_decode_var()
1056 if (f25.t*i >= var->pixclock && f25.t*i < pcl) { in falcon_decode_var()
1060 if (f32.t*i >= var->pixclock && f32.t*i < pcl) { in falcon_decode_var()
1064 if (fext.t && fext.t*i >= var->pixclock && fext.t*i < pcl) { in falcon_decode_var()
1073 left_margin = var->left_margin; in falcon_decode_var()
1074 right_margin = var->right_margin; in falcon_decode_var()
1075 hsync_len = var->hsync_len; in falcon_decode_var()
1076 upper_margin = var->upper_margin; in falcon_decode_var()
1077 lower_margin = var->lower_margin; in falcon_decode_var()
1078 vsync_len = var->vsync_len; in falcon_decode_var()
1080 if (var->vmode & FB_VMODE_INTERLACED) { in falcon_decode_var()
1087 else if (var->vmode & FB_VMODE_DOUBLE) { in falcon_decode_var()
1119 if (var->sync & FB_SYNC_HOR_HIGH_ACT) in falcon_decode_var()
1121 if (var->sync & FB_SYNC_VERT_HIGH_ACT) in falcon_decode_var()
1299 if (var->yoffset + yres > yres_virtual && yres_virtual) in falcon_decode_var()
1302 par->screen_base = screen_base + var->yoffset * linelen; in falcon_decode_var()
1308 static int falcon_encode_var( struct fb_var_screeninfo *var, in falcon_encode_var() argument
1317 memset(var, 0, sizeof(struct fb_var_screeninfo)); in falcon_encode_var()
1319 var->pixclock = hw->sync & 0x1 ? fext.t : in falcon_encode_var()
1322 var->height=-1; in falcon_encode_var()
1323 var->width=-1; in falcon_encode_var()
1325 var->sync=0; in falcon_encode_var()
1327 var->sync |= FB_SYNC_HOR_HIGH_ACT; in falcon_encode_var()
1329 var->sync |= FB_SYNC_VERT_HIGH_ACT; in falcon_encode_var()
1331 var->vmode = FB_VMODE_NONINTERLACED; in falcon_encode_var()
1333 var->vmode |= FB_VMODE_INTERLACED; in falcon_encode_var()
1335 var->vmode |= FB_VMODE_DOUBLE; in falcon_encode_var()
1342 var->yres = hw->vde - hw->vdb; in falcon_encode_var()
1343 if (!(var->vmode & FB_VMODE_INTERLACED)) in falcon_encode_var()
1344 var->yres >>= 1; in falcon_encode_var()
1345 if (var->vmode & FB_VMODE_DOUBLE) in falcon_encode_var()
1346 var->yres >>= 1; in falcon_encode_var()
1356 var->bits_per_pixel = 1; in falcon_encode_var()
1358 var->bits_per_pixel = 16; in falcon_encode_var()
1360 var->bits_per_pixel = 8; in falcon_encode_var()
1362 var->bits_per_pixel = 4; in falcon_encode_var()
1364 var->bits_per_pixel = 2; in falcon_encode_var()
1366 var->bits_per_pixel = 1; in falcon_encode_var()
1368 var->xres = hw->line_width * 16 / var->bits_per_pixel; in falcon_encode_var()
1369 var->xres_virtual = var->xres + hw->line_offset * 16 / var->bits_per_pixel; in falcon_encode_var()
1371 var->xres_virtual += 16; in falcon_encode_var()
1373 if (var->bits_per_pixel == 16) { in falcon_encode_var()
1374 var->red.offset=11; in falcon_encode_var()
1375 var->red.length=5; in falcon_encode_var()
1376 var->red.msb_right=0; in falcon_encode_var()
1377 var->green.offset=5; in falcon_encode_var()
1378 var->green.length=6; in falcon_encode_var()
1379 var->green.msb_right=0; in falcon_encode_var()
1380 var->blue.offset=0; in falcon_encode_var()
1381 var->blue.length=5; in falcon_encode_var()
1382 var->blue.msb_right=0; in falcon_encode_var()
1385 var->red.offset=0; in falcon_encode_var()
1386 var->red.length = hw->ste_mode ? 4 : 6; in falcon_encode_var()
1387 var->red.msb_right=0; in falcon_encode_var()
1388 var->grayscale=0; in falcon_encode_var()
1389 var->blue=var->green=var->red; in falcon_encode_var()
1391 var->transp.offset=0; in falcon_encode_var()
1392 var->transp.length=0; in falcon_encode_var()
1393 var->transp.msb_right=0; in falcon_encode_var()
1395 linelen = var->xres_virtual * var->bits_per_pixel / 8; in falcon_encode_var()
1398 var->yres_virtual = par->yres_virtual; in falcon_encode_var()
1401 var->yres_virtual = screen_len / linelen; in falcon_encode_var()
1405 var->yres_virtual = 2 * var->yres; in falcon_encode_var()
1407 var->yres_virtual=var->yres+hwscroll * 16; in falcon_encode_var()
1409 var->xoffset=0; /* TODO change this */ in falcon_encode_var()
1420 hde_off = ((128 / var->bits_per_pixel + 2) * plen); in falcon_encode_var()
1422 hdb_off = (64 + base_off + (128 / var->bits_per_pixel + 2) * plen) in falcon_encode_var()
1425 hdb_off = (base_off + (128 / var->bits_per_pixel + 18) * plen) in falcon_encode_var()
1430 var->left_margin = hdb_off + prescale * ((hw->hdb & 0x1ff) - in falcon_encode_var()
1433 var->right_margin = prescale * (hw->hht + 2 - hw->hde) - hde_off; in falcon_encode_var()
1436 var->right_margin = prescale * (hw->hht + 2 - hw->hbb); in falcon_encode_var()
1437 var->hsync_len = prescale * (hw->hht + 2 - hw->hss); in falcon_encode_var()
1440 var->upper_margin = hw->vdb / 2 ; /* round down to full lines */ in falcon_encode_var()
1441 var->lower_margin = (hw->vft+1 - hw->vde + 1) / 2; /* round up */ in falcon_encode_var()
1442 var->vsync_len = (hw->vft+1 - hw->vss + 1) / 2; /* round up */ in falcon_encode_var()
1443 if (var->vmode & FB_VMODE_INTERLACED) { in falcon_encode_var()
1444 var->upper_margin *= 2; in falcon_encode_var()
1445 var->lower_margin *= 2; in falcon_encode_var()
1446 var->vsync_len *= 2; in falcon_encode_var()
1448 else if (var->vmode & FB_VMODE_DOUBLE) { in falcon_encode_var()
1449 var->upper_margin = (var->upper_margin + 1) / 2; in falcon_encode_var()
1450 var->lower_margin = (var->lower_margin + 1) / 2; in falcon_encode_var()
1451 var->vsync_len = (var->vsync_len + 1) / 2; in falcon_encode_var()
1454 var->pixclock *= plen; in falcon_encode_var()
1455 var->left_margin /= plen; in falcon_encode_var()
1456 var->right_margin /= plen; in falcon_encode_var()
1457 var->hsync_len /= plen; in falcon_encode_var()
1459 var->right_margin -= var->hsync_len; in falcon_encode_var()
1460 var->lower_margin -= var->vsync_len; in falcon_encode_var()
1463 var->yoffset=(par->screen_base - screen_base)/linelen; in falcon_encode_var()
1465 var->yoffset=0; in falcon_encode_var()
1466 var->nonstd=0; /* what is this for? */ in falcon_encode_var()
1467 var->activate=0; in falcon_encode_var()
1596 static int falcon_pan_display( struct fb_var_screeninfo *var, in falcon_pan_display() argument
1600 int bpp = fb_display[currcon].var.bits_per_pixel; in falcon_pan_display()
1603 var->xoffset = up(var->xoffset, 32); in falcon_pan_display()
1605 par->hw.falcon.xoffset = var->xoffset & 15; in falcon_pan_display()
1608 var->xoffset = up(var->xoffset, 2); in falcon_pan_display()
1611 (fb_display[currcon].var.xres_virtual - fb_display[currcon].var.xres) / 16; in falcon_pan_display()
1614 xoffset = var->xoffset - par->hw.falcon.xoffset; in falcon_pan_display()
1617 (var->yoffset * fb_display[currcon].var.xres_virtual + xoffset) * bpp / 8; in falcon_pan_display()
1787 static int stste_decode_var( struct fb_var_screeninfo *var, in stste_decode_var() argument
1790 int xres=var->xres; in stste_decode_var()
1791 int yres=var->yres; in stste_decode_var()
1792 int bpp=var->bits_per_pixel; in stste_decode_var()
1794 int yres_virtual = var->yres_virtual; in stste_decode_var()
1829 if (var->sync & FB_SYNC_EXT) in stste_decode_var()
1838 if (var->yoffset + yres > yres_virtual && yres_virtual) in stste_decode_var()
1841 par->screen_base=screen_base+ var->yoffset*linelen; in stste_decode_var()
1845 static int stste_encode_var( struct fb_var_screeninfo *var, in stste_encode_var() argument
1849 memset(var, 0, sizeof(struct fb_var_screeninfo)); in stste_encode_var()
1850 var->red.offset=0; in stste_encode_var()
1851 var->red.length = ATARIHW_PRESENT(EXTD_SHIFTER) ? 4 : 3; in stste_encode_var()
1852 var->red.msb_right=0; in stste_encode_var()
1853 var->grayscale=0; in stste_encode_var()
1855 var->pixclock=31041; in stste_encode_var()
1856 var->left_margin=120; /* these are incorrect */ in stste_encode_var()
1857 var->right_margin=100; in stste_encode_var()
1858 var->upper_margin=8; in stste_encode_var()
1859 var->lower_margin=16; in stste_encode_var()
1860 var->hsync_len=140; in stste_encode_var()
1861 var->vsync_len=30; in stste_encode_var()
1863 var->height=-1; in stste_encode_var()
1864 var->width=-1; in stste_encode_var()
1867 var->sync=0; in stste_encode_var()
1869 var->sync=FB_SYNC_EXT; in stste_encode_var()
1873 var->xres=sttt_xres/2; in stste_encode_var()
1874 var->yres=st_yres/2; in stste_encode_var()
1875 var->bits_per_pixel=4; in stste_encode_var()
1878 var->xres=sttt_xres; in stste_encode_var()
1879 var->yres=st_yres/2; in stste_encode_var()
1880 var->bits_per_pixel=2; in stste_encode_var()
1883 var->xres=sttt_xres; in stste_encode_var()
1884 var->yres=st_yres; in stste_encode_var()
1885 var->bits_per_pixel=1; in stste_encode_var()
1888 var->blue=var->green=var->red; in stste_encode_var()
1889 var->transp.offset=0; in stste_encode_var()
1890 var->transp.length=0; in stste_encode_var()
1891 var->transp.msb_right=0; in stste_encode_var()
1892 var->xres_virtual=sttt_xres_virtual; in stste_encode_var()
1893 linelen=var->xres_virtual * var->bits_per_pixel / 8; in stste_encode_var()
1897 var->yres_virtual=var->yres; in stste_encode_var()
1900 var->yres_virtual = par->yres_virtual; in stste_encode_var()
1903 var->yres_virtual = screen_len / linelen; in stste_encode_var()
1907 var->yres_virtual = 2 * var->yres; in stste_encode_var()
1909 var->yres_virtual=var->yres+hwscroll * 16; in stste_encode_var()
1911 var->xoffset=0; in stste_encode_var()
1913 var->yoffset=(par->screen_base - screen_base)/linelen; in stste_encode_var()
1915 var->yoffset=0; in stste_encode_var()
1916 var->nonstd=0; in stste_encode_var()
1917 var->activate=0; in stste_encode_var()
1918 var->vmode=FB_VMODE_NONINTERLACED; in stste_encode_var()
2151 static int ext_decode_var( struct fb_var_screeninfo *var, in ext_decode_var() argument
2156 if (var->bits_per_pixel > myvar->bits_per_pixel || in ext_decode_var()
2157 var->xres > myvar->xres || in ext_decode_var()
2158 var->xres_virtual > myvar->xres_virtual || in ext_decode_var()
2159 var->yres > myvar->yres || in ext_decode_var()
2160 var->xoffset > 0 || in ext_decode_var()
2161 var->yoffset > 0) in ext_decode_var()
2167 static int ext_encode_var( struct fb_var_screeninfo *var, in ext_encode_var() argument
2170 memset(var, 0, sizeof(struct fb_var_screeninfo)); in ext_encode_var()
2171 var->red.offset=0; in ext_encode_var()
2172 var->red.length=(external_pmode == -1) ? external_depth/3 : in ext_encode_var()
2174 var->red.msb_right=0; in ext_encode_var()
2175 var->grayscale=0; in ext_encode_var()
2177 var->pixclock=31041; in ext_encode_var()
2178 var->left_margin=120; /* these are surely incorrect */ in ext_encode_var()
2179 var->right_margin=100; in ext_encode_var()
2180 var->upper_margin=8; in ext_encode_var()
2181 var->lower_margin=16; in ext_encode_var()
2182 var->hsync_len=140; in ext_encode_var()
2183 var->vsync_len=30; in ext_encode_var()
2185 var->height=-1; in ext_encode_var()
2186 var->width=-1; in ext_encode_var()
2188 var->sync=0; in ext_encode_var()
2190 var->xres = external_xres; in ext_encode_var()
2191 var->yres = external_yres; in ext_encode_var()
2192 var->xres_virtual = external_xres_virtual; in ext_encode_var()
2193 var->bits_per_pixel = external_depth; in ext_encode_var()
2195 var->blue=var->green=var->red; in ext_encode_var()
2196 var->transp.offset=0; in ext_encode_var()
2197 var->transp.length=0; in ext_encode_var()
2198 var->transp.msb_right=0; in ext_encode_var()
2199 var->yres_virtual=var->yres; in ext_encode_var()
2200 var->xoffset=0; in ext_encode_var()
2201 var->yoffset=0; in ext_encode_var()
2202 var->nonstd=0; in ext_encode_var()
2203 var->activate=0; in ext_encode_var()
2204 var->vmode=FB_VMODE_NONINTERLACED; in ext_encode_var()
2308 static int pan_display( struct fb_var_screeninfo *var, in pan_display() argument
2312 (!ATARIHW_PRESENT(EXTD_SHIFTER) && var->xoffset)) in pan_display()
2314 var->xoffset = up(var->xoffset, 16); in pan_display()
2316 (var->yoffset * fb_display[currcon].var.xres_virtual + var->xoffset) in pan_display()
2317 * fb_display[currcon].var.bits_per_pixel / 8; in pan_display()
2388 int off=fb_display[con].var.yoffset*fb_display[con].var.xres_virtual* in fb_update_var()
2389 fb_display[con].var.bits_per_pixel>>3; in fb_update_var()
2399 do_fb_set_var(struct fb_var_screeninfo *var, int isactive) in do_fb_set_var() argument
2403 if ((err=fbhw->decode_var(var, &par))) in do_fb_set_var()
2405 activate=var->activate; in do_fb_set_var()
2406 if (((var->activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW) && isactive) in do_fb_set_var()
2408 fbhw->encode_var(var, &par); in do_fb_set_var()
2409 var->activate=activate; in do_fb_set_var()
2423 fb_set_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), in do_install_cmap()
2435 if ((err=fbhw->decode_var(&fb_display[con].var,&par))) in atafb_get_fix()
2443 atafb_get_var(struct fb_var_screeninfo *var, int con, struct fb_info *info) in atafb_get_var() argument
2448 fbhw->encode_var(var, &par); in atafb_get_var()
2451 *var=fb_display[con].var; in atafb_get_var()
2459 struct fb_var_screeninfo var; in atafb_set_disp() local
2468 atafb_get_var(&var, con, info); in atafb_set_disp()
2487 switch (var.bits_per_pixel) { in atafb_set_disp()
2506 switch (var.bits_per_pixel) { in atafb_set_disp()
2529 atafb_set_var(struct fb_var_screeninfo *var, int con, struct fb_info *info) in atafb_set_var() argument
2533 if ((err=do_fb_set_var(var, con==currcon))) in atafb_set_var()
2535 if ((var->activate & FB_ACTIVATE_MASK) == FB_ACTIVATE_NOW) { in atafb_set_var()
2536 oldxres=fb_display[con].var.xres; in atafb_set_var()
2537 oldyres=fb_display[con].var.yres; in atafb_set_var()
2538 oldxres_virtual=fb_display[con].var.xres_virtual; in atafb_set_var()
2539 oldyres_virtual=fb_display[con].var.yres_virtual; in atafb_set_var()
2540 oldbpp=fb_display[con].var.bits_per_pixel; in atafb_set_var()
2541 oldyoffset=fb_display[con].var.yoffset; in atafb_set_var()
2542 fb_display[con].var=*var; in atafb_set_var()
2543 if (oldxres != var->xres || oldyres != var->yres in atafb_set_var()
2544 || oldxres_virtual != var->xres_virtual in atafb_set_var()
2545 || oldyres_virtual != var->yres_virtual in atafb_set_var()
2546 || oldbpp != var->bits_per_pixel in atafb_set_var()
2547 || oldyoffset != var->yoffset) { in atafb_set_var()
2554 var->activate=0; in atafb_set_var()
2569 fb_copy_cmap(fb_default_cmap(1<<fb_display[con].var.bits_per_pixel), in atafb_get_cmap()
2580 1 << fb_display[con].var.bits_per_pixel, in atafb_set_cmap()
2592 atafb_pan_display(struct fb_var_screeninfo *var, int con, struct fb_info *info) in atafb_pan_display() argument
2594 int xoffset = var->xoffset; in atafb_pan_display()
2595 int yoffset = var->yoffset; in atafb_pan_display()
2598 if ( xoffset < 0 || xoffset + fb_display[con].var.xres > fb_display[con].var.xres_virtual in atafb_pan_display()
2599 || yoffset < 0 || yoffset + fb_display[con].var.yres > fb_display[con].var.yres_virtual) in atafb_pan_display()
2604 if ((err = fbhw->pan_display(var, ¤t_par))) in atafb_pan_display()
2610 fb_display[con].var.xoffset = var->xoffset; in atafb_pan_display()
2611 fb_display[con].var.yoffset = var->yoffset; in atafb_pan_display()
2655 struct fb_var_screeninfo var; in check_default_par() local
2660 var=atafb_predefined[default_par-1]; in check_default_par()
2661 var.activate = FB_ACTIVATE_TEST; in check_default_par()
2662 if (do_fb_set_var(&var,1)) in check_default_par()
2667 var=atafb_predefined[detected_mode-1]; /* autodetect */ in check_default_par()
2668 var.activate = FB_ACTIVATE_TEST; in check_default_par()
2669 if (!do_fb_set_var(&var,1)) in check_default_par()
2680 var=atafb_predefined[default_par-1]; in check_default_par()
2681 var.activate = FB_ACTIVATE_TEST; in check_default_par()
2682 if (! do_fb_set_var(&var,1)) in check_default_par()
2686 min_mem=var.xres_virtual * var.yres_virtual * var.bits_per_pixel/8; in check_default_par()
2698 do_fb_set_var(&fb_display[con].var,1); in atafb_switch()
2841 atafb_get_var(&disp.var, -1, &fb_info); in atafb_init()
2849 disp.var.xres, disp.var.yres, disp.var.bits_per_pixel); in atafb_init()
2850 if ((disp.var.xres != disp.var.xres_virtual) || in atafb_init()
2851 (disp.var.yres != disp.var.yres_virtual)) in atafb_init()
2853 disp.var.xres_virtual, disp.var.yres_virtual); in atafb_init()