Lines Matching refs:xres
330 * Round up in the following order: bits_per_pixel, xres, yres,
348 * if yres_virtual > yres or xres_virtual > xres.
411 0, 0, 0, 0, 0, 0, 0, 0, /* xres-grayscale */
593 int xres = var->xres;
600 if (bpp > 1 || xres > sttt_xres * 2 || yres > tt_yres * 2)
603 xres = sttt_xres * 2;
607 if (bpp > 8 || xres > sttt_xres || yres > tt_yres)
610 if (xres > sttt_xres / 2 || yres > tt_yres)
613 xres = sttt_xres / 2;
617 if (xres > sttt_xres || yres > tt_yres)
619 if (xres > sttt_xres / 2 || yres > st_yres / 2) {
621 xres = sttt_xres;
626 xres = sttt_xres / 2;
631 if (xres > sttt_xres || yres > st_yres / 2)
634 xres = sttt_xres;
637 } else if (var->xres > sttt_xres || var->yres > st_yres) {
641 xres = sttt_xres;
654 linelen = xres * bpp / 8;
694 var->xres = sttt_xres / 2;
700 var->xres = sttt_xres;
706 var->xres = sttt_xres;
712 var->xres = sttt_xres / 2;
718 var->xres = sttt_xres;
725 var->xres = sttt_xres * 2;
896 int xres = var->xres;
916 Round up in the following order: bits_per_pixel, xres, yres,
936 if (!xres || !yres || !bpp)
969 var->xres > myvar->xres ||
977 if (xres <= 320)
978 xres = 320;
979 else if (xres <= 640 && bpp != 16)
980 xres = 640;
993 * this and the console fontwidth yields the alignment for xres and
1001 xres = (xres + 63) & ~63;
1003 xres = (xres + 31) & ~31;
1005 xres = (xres + 15) & ~15;
1011 if (xres_virtual < xres)
1012 xres_virtual = xres;
1027 par->hw.falcon.line_width = bpp * xres / 16;
1028 par->hw.falcon.line_offset = bpp * (xres_virtual - xres) / 16;
1031 xstretch = (xres < 640) ? 2 : 1;
1035 if (xres != 640 && yres != 400)
1089 if ((plen * xres + f25.right + f25.hsync + f25.left) *
1092 else if ((plen * xres + f32.right + f32.hsync +
1095 else if ((plen * xres + fext.right + fext.hsync +
1105 linesize = left_margin + xres + right_margin + hsync_len;
1238 /* gend1 is for hde (gend-gstart multiple of align), shifter's xres */
1239 gend1 = gstart + roundup(xres, align) * plen / prescale;
1240 /* gend2 is for hbb, visible xres (rest to gend1 is cut off by hblank) */
1241 gend2 = gstart + xres * plen / prescale;
1242 par->HHT = plen * (left_margin + xres + right_margin) /
1429 var->xres = hw->line_width * 16 / var->bits_per_pixel;
1430 var->xres_virtual = var->xres + hw->line_offset * 16 / var->bits_per_pixel;
1668 (info->var.xres_virtual - info->var.xres) / 16;
1820 int xres = var->xres;
1827 if (bpp > 1 || xres > sttt_xres || yres > st_yres)
1830 xres = sttt_xres;
1834 if (bpp > 4 || xres > sttt_xres || yres > st_yres)
1837 if (xres > sttt_xres / 2 || yres > st_yres / 2)
1840 xres = sttt_xres / 2;
1844 if (xres > sttt_xres || yres > st_yres / 2)
1847 xres = sttt_xres;
1861 linelen = xres * bpp / 8;
1902 var->xres = sttt_xres / 2;
1907 var->xres = sttt_xres;
1912 var->xres = sttt_xres;
2139 var->xres > myvar->xres ||
2172 var->xres = external_xres;
2249 myvar->xres = external_xres;
2438 if (xoffset + info->var.xres > info->var.xres_virtual ||
2789 int xres, xres_virtual, yres, depth, planes;
2793 /* Format is: <xres>;<yres>;<depth>;<plane organ.>;
2796 * [;<xres-virtual>]]]]]
2806 xres_virtual = xres = simple_strtoul(p, NULL, 10);
2807 if (xres <= 0)
2846 len = xres * yres * depth / 8;
2874 if (xres_virtual < xres)
2875 xres_virtual = xres;
2880 external_xres = xres;
2907 * "internal:<xres>;<yres>;<xres_max>;<yres_max>;<offset>"
2909 * <xres>: x-resolution
2918 int xres;
2923 xres = simple_strtoul(p, NULL, 10);
2926 sttt_xres = xres;
2979 /* Format of user defined video mode is: <xres>;<yres>;<depth>
2982 int xres, yres, depth, temp;
2987 xres = simple_strtoul(p, NULL, 10);
2999 atafb_predefined[default_par - 1].xres = xres;
3199 dev_info(&pdev->dev, "Determined %dx%d, depth %d\n", fb_info.var.xres,
3201 if ((fb_info.var.xres != fb_info.var.xres_virtual) ||