Lines Matching refs:xres

318  *   Round up in the following order: bits_per_pixel, xres, yres,
336 * if yres_virtual > yres or xres_virtual > xres.
399 0, 0, 0, 0, 0, 0, 0, 0, /* xres-grayscale */
581 int xres = var->xres;
588 if (bpp > 1 || xres > sttt_xres * 2 || yres > tt_yres * 2)
591 xres = sttt_xres * 2;
595 if (bpp > 8 || xres > sttt_xres || yres > tt_yres)
598 if (xres > sttt_xres / 2 || yres > tt_yres)
601 xres = sttt_xres / 2;
605 if (xres > sttt_xres || yres > tt_yres)
607 if (xres > sttt_xres / 2 || yres > st_yres / 2) {
609 xres = sttt_xres;
614 xres = sttt_xres / 2;
619 if (xres > sttt_xres || yres > st_yres / 2)
622 xres = sttt_xres;
625 } else if (var->xres > sttt_xres || var->yres > st_yres) {
629 xres = sttt_xres;
642 linelen = xres * bpp / 8;
682 var->xres = sttt_xres / 2;
688 var->xres = sttt_xres;
694 var->xres = sttt_xres;
700 var->xres = sttt_xres / 2;
706 var->xres = sttt_xres;
713 var->xres = sttt_xres * 2;
884 int xres = var->xres;
904 Round up in the following order: bits_per_pixel, xres, yres,
924 if (!xres || !yres || !bpp)
957 var->xres > myvar->xres ||
965 if (xres <= 320)
966 xres = 320;
967 else if (xres <= 640 && bpp != 16)
968 xres = 640;
981 * this and the console fontwidth yields the alignment for xres and
989 xres = (xres + 63) & ~63;
991 xres = (xres + 31) & ~31;
993 xres = (xres + 15) & ~15;
999 if (xres_virtual < xres)
1000 xres_virtual = xres;
1011 par->hw.falcon.line_width = bpp * xres / 16;
1012 par->hw.falcon.line_offset = bpp * (xres_virtual - xres) / 16;
1015 xstretch = (xres < 640) ? 2 : 1;
1019 if (xres != 640 && yres != 400)
1071 if ((plen * xres + f25.right + f25.hsync + f25.left) *
1074 else if ((plen * xres + f32.right + f32.hsync +
1077 else if ((plen * xres + fext.right + fext.hsync +
1219 /* gend1 is for hde (gend-gstart multiple of align), shifter's xres */
1220 gend1 = gstart + roundup(xres, align) * plen / prescale;
1221 /* gend2 is for hbb, visible xres (rest to gend1 is cut off by hblank) */
1222 gend2 = gstart + xres * plen / prescale;
1223 par->HHT = plen * (left_margin + xres + right_margin) /
1410 var->xres = hw->line_width * 16 / var->bits_per_pixel;
1411 var->xres_virtual = var->xres + hw->line_offset * 16 / var->bits_per_pixel;
1649 (info->var.xres_virtual - info->var.xres) / 16;
1801 int xres = var->xres;
1808 if (bpp > 1 || xres > sttt_xres || yres > st_yres)
1811 xres = sttt_xres;
1815 if (bpp > 4 || xres > sttt_xres || yres > st_yres)
1818 if (xres > sttt_xres / 2 || yres > st_yres / 2)
1821 xres = sttt_xres / 2;
1825 if (xres > sttt_xres || yres > st_yres / 2)
1828 xres = sttt_xres;
1842 linelen = xres * bpp / 8;
1883 var->xres = sttt_xres / 2;
1888 var->xres = sttt_xres;
1893 var->xres = sttt_xres;
2120 var->xres > myvar->xres ||
2153 var->xres = external_xres;
2234 myvar->xres = external_xres;
2721 int xres, xres_virtual, yres, depth, planes;
2725 /* Format is: <xres>;<yres>;<depth>;<plane organ.>;
2728 * [;<xres-virtual>]]]]]
2738 xres_virtual = xres = simple_strtoul(p, NULL, 10);
2739 if (xres <= 0)
2778 len = xres * yres * depth / 8;
2806 if (xres_virtual < xres)
2807 xres_virtual = xres;
2812 external_xres = xres;
2839 * "internal:<xres>;<yres>;<xres_max>;<yres_max>;<offset>"
2841 * <xres>: x-resolution
2850 int xres;
2855 xres = simple_strtoul(p, NULL, 10);
2858 sttt_xres = xres;
2911 /* Format of user defined video mode is: <xres>;<yres>;<depth>
2914 int xres, yres, depth, temp;
2919 xres = simple_strtoul(p, NULL, 10);
2931 atafb_predefined[default_par - 1].xres = xres;
3130 dev_info(&pdev->dev, "Determined %dx%d, depth %d\n", fb_info.var.xres,
3132 if ((fb_info.var.xres != fb_info.var.xres_virtual) ||