• 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/drivers/video/

Lines Matching defs:var

269 	if ((info->var.bits_per_pixel == 4) && (image->depth == 1)
281 if ((info->var.bits_per_pixel == 4)
559 /* Validate passed in var */
561 static int arkfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
566 rv = svga_match_format (arkfb_formats, var, NULL);
574 if (var->xres > var->xres_virtual)
575 var->xres_virtual = var->xres;
577 if (var->yres > var->yres_virtual)
578 var->yres_virtual = var->yres;
582 var->xres_virtual = (var->xres_virtual+step) & ~step;
586 mem = ((var->bits_per_pixel * var->xres_virtual) >> 3) * var->yres_virtual;
593 rv = svga_check_timings (&ark_timing_regs, var, info->node);
601 if (var->vmode & FB_VMODE_INTERLACED)
613 u32 bpp = info->var.bits_per_pixel;
618 info->fix.line_length = (info->var.xres_virtual * bpp) / 8;
627 offset_value = (info->var.xres_virtual * bpp) / 64;
628 screen_size = info->var.yres_virtual * info->fix.line_length;
640 offset_value = info->var.xres_virtual / 16;
641 screen_size = (info->var.xres_virtual * info->var.yres_virtual) / 64;
644 info->var.xoffset = 0;
645 info->var.yoffset = 0;
646 info->var.activate = FB_ACTIVATE_NOW;
684 if (info->var.vmode & FB_VMODE_DOUBLE)
689 if (info->var.vmode & FB_VMODE_INTERLACED)
696 mode = svga_match_format(arkfb_formats, &(info->var), &(info->fix));
729 if (info->var.pixclock > 20000) {
776 ark_set_pixclock(info, (hdiv * info->var.pixclock) / hmul);
777 svga_set_timings(&ark_timing_regs, &(info->var), hmul, hdiv,
778 (info->var.vmode & FB_VMODE_DOUBLE) ? 2 : 1,
779 (info->var.vmode & FB_VMODE_INTERLACED) ? 2 : 1,
783 value = info->var.xres + info->var.left_margin + info->var.right_margin + info->var.hsync_len;
800 switch (fb->var.bits_per_pixel) {
806 if ((fb->var.bits_per_pixel == 4) &&
807 (fb->var.nonstd == 0)) {
832 if (fb->var.green.length == 5)
835 else if (fb->var.green.length == 6)
885 static int arkfb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
890 if (var->bits_per_pixel == 0) {
891 offset = (var->yoffset / 16) * (var->xres_virtual / 2) + (var->xoffset / 2);
894 offset = (var->yoffset * info->fix.line_length) +
895 (var->xoffset * var->bits_per_pixel / 8);
896 offset = offset >> ((var->bits_per_pixel == 4) ? 2 : 3);
1002 rc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8);