Lines Matching refs:yres
491 int yres=var->yres; in tt_decode_var() local
497 if (bpp > 1 || xres > sttt_xres*2 || yres >tt_yres*2) in tt_decode_var()
501 yres=tt_yres*2; in tt_decode_var()
504 if (bpp > 8 || xres > sttt_xres || yres > tt_yres) in tt_decode_var()
507 if (xres > sttt_xres/2 || yres > tt_yres) in tt_decode_var()
511 yres=tt_yres; in tt_decode_var()
515 if (xres > sttt_xres || yres > tt_yres) in tt_decode_var()
517 if (xres > sttt_xres/2 || yres > st_yres/2) { in tt_decode_var()
520 yres=tt_yres; in tt_decode_var()
526 yres=st_yres/2; in tt_decode_var()
531 if (xres > sttt_xres || yres > st_yres/2) in tt_decode_var()
535 yres=st_yres/2; in tt_decode_var()
538 else if (var->xres > sttt_xres || var->yres > st_yres) { in tt_decode_var()
544 yres=st_yres; in tt_decode_var()
550 else if (yres_virtual < yres) in tt_decode_var()
551 yres_virtual = yres; in tt_decode_var()
559 if (yres * linelen > screen_len && screen_len) in tt_decode_var()
561 if (var->yoffset + yres > yres_virtual && yres_virtual) in tt_decode_var()
598 var->yres=st_yres/2; in tt_encode_var()
604 var->yres=st_yres/2; in tt_encode_var()
610 var->yres=st_yres; in tt_encode_var()
616 var->yres=tt_yres; in tt_encode_var()
622 var->yres=tt_yres; in tt_encode_var()
629 var->yres=tt_yres*2; in tt_encode_var()
639 var->yres_virtual=var->yres; 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()
831 int yres = var->yres; in falcon_decode_var() local
868 if (!xres || !yres || !bpp) in falcon_decode_var()
907 var->yres > myvar->yres) in falcon_decode_var()
918 if (yres <= 200) in falcon_decode_var()
919 yres = 200; in falcon_decode_var()
920 else if (yres <= 240) in falcon_decode_var()
921 yres = 240; in falcon_decode_var()
922 else if (yres <= 400) in falcon_decode_var()
923 yres = 400; in falcon_decode_var()
943 if (yres >= 400) in falcon_decode_var()
944 yres = (yres + 15) & ~15; in falcon_decode_var()
946 yres = (yres + 7) & ~7; in falcon_decode_var()
957 else if (yres_virtual < yres) in falcon_decode_var()
958 yres_virtual = yres; in falcon_decode_var()
972 if (xres != 640 && yres != 400) in falcon_decode_var()
991 if (yres > 240) in falcon_decode_var()
1228 par->VDE = yres; in falcon_decode_var()
1260 (hfreq*2)/(par->VFT+1+4*lines-2*yres)>fb_info.monspecs.vfmax; in falcon_decode_var()
1297 if (yres * linelen > screen_len && screen_len) in falcon_decode_var()
1299 if (var->yoffset + yres > yres_virtual && yres_virtual) in falcon_decode_var()
1342 var->yres = hw->vde - hw->vdb; in falcon_encode_var()
1344 var->yres >>= 1; in falcon_encode_var()
1346 var->yres >>= 1; 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()
1791 int yres=var->yres; in stste_decode_var() local
1797 if (bpp > 1 || xres > sttt_xres || yres > st_yres) in stste_decode_var()
1801 yres=st_yres; in stste_decode_var()
1804 if (bpp > 4 || xres > sttt_xres || yres > st_yres) in stste_decode_var()
1807 if (xres > sttt_xres/2 || yres > st_yres/2) in stste_decode_var()
1811 yres=st_yres/2; in stste_decode_var()
1815 if (xres > sttt_xres || yres > st_yres/2) in stste_decode_var()
1819 yres=st_yres/2; in stste_decode_var()
1827 else if (yres_virtual < yres) in stste_decode_var()
1828 yres_virtual = yres; in stste_decode_var()
1836 if (yres * linelen > screen_len && screen_len) in stste_decode_var()
1838 if (var->yoffset + yres > yres_virtual && yres_virtual) in stste_decode_var()
1874 var->yres=st_yres/2; in stste_encode_var()
1879 var->yres=st_yres/2; in stste_encode_var()
1884 var->yres=st_yres; in stste_encode_var()
1897 var->yres_virtual=var->yres; 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()
2159 var->yres > myvar->yres || in ext_decode_var()
2191 var->yres = external_yres; in ext_encode_var()
2199 var->yres_virtual=var->yres; in ext_encode_var()
2287 myvar->yres = external_yres; in ext_detect()
2537 oldyres=fb_display[con].var.yres; in atafb_set_var()
2543 if (oldxres != var->xres || oldyres != var->yres in atafb_set_var()
2599 || yoffset < 0 || yoffset + fb_display[con].var.yres > fb_display[con].var.yres_virtual) in atafb_pan_display()
2849 disp.var.xres, disp.var.yres, disp.var.bits_per_pixel); in atafb_init()
2851 (disp.var.yres != disp.var.yres_virtual)) in atafb_init()
2982 int xres, xres_virtual, yres, depth, planes; in atafb_setup() local
3001 yres = simple_strtoul(p, NULL, 10); in atafb_setup()
3002 if (yres <= 0) goto ext_invalid; in atafb_setup()
3026 len = xres*yres*depth/8; in atafb_setup()
3053 if (xres_virtual*yres*depth/8 > len) in atafb_setup()
3054 len=xres_virtual*yres*depth/8; in atafb_setup()
3059 external_yres = yres; in atafb_setup()
3118 int xres, yres, depth, temp; in atafb_setup() local
3123 yres = simple_strtoul(p, NULL, 10); in atafb_setup()
3129 atafb_predefined[default_par-1].yres = yres; in atafb_setup()