Lines Matching defs:xres
137 640,480,640,480,/* W,H, W, H (virtual) load xres,xres_virtual*/
449 int xres, int bpp)
457 case 0: return xres;
475 over = xres % rounding;
477 xres += rounding-over;
478 return xres;
481 static int matroxfb_pitch_adjust(const struct matrox_fb_info *minfo, int xres,
489 if (!bpp) return xres;
495 if ((*width >= xres) && (matroxfb_test_and_set_rounding(minfo, *width, bpp) == *width)) {
502 xres_new = matroxfb_test_and_set_rounding(minfo, xres, bpp);
571 if (var->xres_virtual < var->xres)
572 var->xres_virtual = var->xres;
606 /* we must round yres/xres down, we already rounded y/xres_virtual up
610 if (var->xres_virtual < var->xres)
611 var->xres = var->xres_virtual;
612 if (var->xoffset + var->xres > var->xres_virtual)
613 var->xoffset = var->xres_virtual - var->xres;
639 dprintk(KERN_INFO "requested %d*%d/%dbpp (%d*%d)\n", var->xres, var->yres, var->bits_per_pixel,
1259 static unsigned int xres; /* "matroxfb:xres:xxxxx" */
1843 if (xres)
1844 vesafb_defined.xres = xres;
1867 tmp = fh * (vesafb_defined.left_margin + vesafb_defined.xres
1908 vesafb_defined.xres_virtual = vesafb_defined.xres;
1927 vesafb_defined.xres, vesafb_defined.yres, vesafb_defined.bits_per_pixel,
2195 static struct { int xres, yres, left, right, upper, lower, hslen, vslen, vfreq; } timmings[] __initdata = {
2293 if (!xres)
2294 xres = timmings[res].xres;
2363 } else if (!strncmp(this_opt, "xres:", 5))
2364 xres = simple_strtoul(this_opt+5, NULL, 0);
2535 module_param(xres, int, 0);
2536 MODULE_PARM_DESC(xres, "Horizontal resolution (px), overrides xres from vesa (default=vesa)");