• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/video/

Lines Matching defs:var

305 	if ((info->var.bits_per_pixel == 4) && (image->depth == 1)
317 if ((info->var.bits_per_pixel == 4)
409 /* Validate passed in var */
411 static int s3fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
418 rv = svga_match_format (s3fb_formats, var, NULL);
431 if (var->xres > var->xres_virtual)
432 var->xres_virtual = var->xres;
434 if (var->yres > var->yres_virtual)
435 var->yres_virtual = var->yres;
439 var->xres_virtual = (var->xres_virtual+step) & ~step;
442 mem = ((var->bits_per_pixel * var->xres_virtual) >> 3) * var->yres_virtual;
449 rv = svga_check_timings (&s3_timing_regs, var, info->node);
455 rv = svga_compute_pll(&s3_pll, PICOS2KHZ(var->pixclock), &m, &n, &r,
472 u32 bpp = info->var.bits_per_pixel;
476 info->fix.line_length = (info->var.xres_virtual * bpp) / 8;
485 offset_value = (info->var.xres_virtual * bpp) / 64;
486 screen_size = info->var.yres_virtual * info->fix.line_length;
498 offset_value = info->var.xres_virtual / 16;
499 screen_size = (info->var.xres_virtual * info->var.yres_virtual) / 64;
502 info->var.xoffset = 0;
503 info->var.yoffset = 0;
504 info->var.activate = FB_ACTIVATE_NOW;
557 if (info->var.vmode & FB_VMODE_DOUBLE)
562 if (info->var.vmode & FB_VMODE_INTERLACED)
572 mode = svga_match_format(s3fb_formats, &(info->var), &(info->fix));
592 dbytes = info->var.xres * ((bpp+7)/8);
645 if (info->var.pixclock > 20000 ||
658 if (info->var.pixclock > 20000)
674 if (info->var.pixclock > 20000)
707 s3_set_pixclock(info, info->var.pixclock);
708 svga_set_timings(&s3_timing_regs, &(info->var), hmul, 1,
709 (info->var.vmode & FB_VMODE_DOUBLE) ? 2 : 1,
710 (info->var.vmode & FB_VMODE_INTERLACED) ? 2 : 1,
714 value = info->var.xres + info->var.left_margin + info->var.right_margin + info->var.hsync_len;
731 switch (fb->var.bits_per_pixel) {
737 if ((fb->var.bits_per_pixel == 4) &&
738 (fb->var.nonstd == 0)) {
763 if (fb->var.green.length == 5)
766 else if (fb->var.green.length == 6)
825 static int s3fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info) {
830 if (var->bits_per_pixel == 0) {
831 offset = (var->yoffset / 16) * (var->xres_virtual / 2) + (var->xoffset / 2);
834 offset = (var->yoffset * info->fix.line_length) +
835 (var->xoffset * var->bits_per_pixel / 8);
1023 rc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8);