Lines Matching defs:var
414 * @var:contains new xoffset, yoffset and vmode values
418 * flag in @var. If input parameters are correct it calls hga_pan() to
419 * program the hardware. @info->var is updated to the new values.
423 static int hgafb_pan_display(struct fb_var_screeninfo *var,
426 if (var->vmode & FB_VMODE_YWRAP) {
427 if (var->yoffset >= info->var.yres_virtual ||
428 var->xoffset)
431 if (var->xoffset + info->var.xres > info->var.xres_virtual
432 || var->yoffset + info->var.yres > info->var.yres_virtual
433 || var->yoffset % 8)
437 hga_pan(var->xoffset, var->yoffset);
577 info->var = hga_default_var;