Lines Matching defs:xres
136 640,480,640,480,/* W,H, W, H (virtual) load xres,xres_virtual*/
448 int xres, int bpp)
456 case 0: return xres;
474 over = xres % rounding;
476 xres += rounding-over;
477 return xres;
480 static int matroxfb_pitch_adjust(const struct matrox_fb_info *minfo, int xres,
488 if (!bpp) return xres;
494 if ((*width >= xres) && (matroxfb_test_and_set_rounding(minfo, *width, bpp) == *width)) {
501 xres_new = matroxfb_test_and_set_rounding(minfo, xres, bpp);
570 if (var->xres_virtual < var->xres)
571 var->xres_virtual = var->xres;
605 /* we must round yres/xres down, we already rounded y/xres_virtual up
609 if (var->xres_virtual < var->xres)
610 var->xres = var->xres_virtual;
611 if (var->xoffset + var->xres > var->xres_virtual)
612 var->xoffset = var->xres_virtual - var->xres;
638 dprintk(KERN_INFO "requested %d*%d/%dbpp (%d*%d)\n", var->xres, var->yres, var->bits_per_pixel,
1258 static unsigned int xres; /* "matroxfb:xres:xxxxx" */
1842 if (xres)
1843 vesafb_defined.xres = xres;
1866 tmp = fh * (vesafb_defined.left_margin + vesafb_defined.xres
1907 vesafb_defined.xres_virtual = vesafb_defined.xres;
1926 vesafb_defined.xres, vesafb_defined.yres, vesafb_defined.bits_per_pixel,
2194 static struct { int xres, yres, left, right, upper, lower, hslen, vslen, vfreq; } timmings[] __initdata = {
2292 if (!xres)
2293 xres = timmings[res].xres;
2359 } else if (!strncmp(this_opt, "xres:", 5))
2360 xres = simple_strtoul(this_opt+5, NULL, 0);
2533 module_param(xres, int, 0);
2534 MODULE_PARM_DESC(xres, "Horizontal resolution (px), overrides xres from vesa (default=vesa)");