Lines Matching defs:var

227 	if ((info->var.bits_per_pixel == 4) && (image->depth == 1)
239 if ((info->var.bits_per_pixel == 4)
321 static int vt8623fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
325 if (!var->pixclock)
329 rv = svga_match_format (vt8623fb_formats, var, NULL);
337 if (var->xres > var->xres_virtual)
338 var->xres_virtual = var->xres;
340 if (var->yres > var->yres_virtual)
341 var->yres_virtual = var->yres;
345 var->xres_virtual = (var->xres_virtual+step) & ~step;
348 mem = ((var->bits_per_pixel * var->xres_virtual) >> 3) * var->yres_virtual;
357 if ((var->bits_per_pixel == 0) && (mem > (256*1024)))
364 rv = svga_check_timings (&vt8623_timing_regs, var, info->node);
372 if (var->vmode & FB_VMODE_INTERLACED)
383 u32 bpp = info->var.bits_per_pixel;
387 info->fix.line_length = (info->var.xres_virtual * bpp) / 8;
401 offset_value = (info->var.xres_virtual * bpp) / 64;
402 fetch_value = ((info->var.xres * bpp) / 128) + 4;
405 fetch_value = (info->var.xres / 8) + 8; /* + 0 is OK */
407 screen_size = info->var.yres_virtual * info->fix.line_length;
421 offset_value = info->var.xres_virtual / 16;
422 fetch_value = (info->var.xres / 8) + 8;
423 screen_size = (info->var.xres_virtual * info->var.yres_virtual) / 64;
426 info->var.xoffset = 0;
427 info->var.yoffset = 0;
428 info->var.activate = FB_ACTIVATE_NOW;
455 if (info->var.vmode & FB_VMODE_DOUBLE)
477 mode = svga_match_format(vt8623fb_formats, &(info->var), &(info->fix));
513 vt8623_set_pixclock(info, info->var.pixclock);
514 svga_set_timings(par->state.vgabase, &vt8623_timing_regs, &(info->var), 1, 1,
515 (info->var.vmode & FB_VMODE_DOUBLE) ? 2 : 1, 1,
534 switch (fb->var.bits_per_pixel) {
560 if (fb->var.green.length == 5)
563 else if (fb->var.green.length == 6)
622 static int vt8623fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
628 if (info->var.bits_per_pixel == 0) {
629 offset = (var->yoffset / 16) * info->var.xres_virtual
630 + var->xoffset;
633 offset = (var->yoffset * info->fix.line_length) +
634 (var->xoffset * info->var.bits_per_pixel / 8);
635 offset = offset >> ((info->var.bits_per_pixel == 4) ? 2 : 1);
765 rc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8);