• 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/matrox/

Lines Matching defs:var

163 	if (info && (info->fbcon.var.bits_per_pixel == minfo->fbcon.var.bits_per_pixel)
164 && (info->fbcon.var.xres_virtual == minfo->fbcon.var.xres_virtual)
165 && (info->fbcon.var.green.length == minfo->fbcon.var.green.length)
167 switch (minfo->fbcon.var.bits_per_pixel) {
173 mga_outl(0x3C28, pos + minfo->fbcon.var.xres_virtual * minfo->fbcon.var.bits_per_pixel / 8);
310 struct fb_var_screeninfo *var)
325 minfo->fbcon.var.xoffset = var->xoffset;
326 minfo->fbcon.var.yoffset = var->yoffset;
327 pos = (minfo->fbcon.var.yoffset * minfo->fbcon.var.xres_virtual + minfo->fbcon.var.xoffset) * minfo->curr.final_bppShift / 32;
335 vbl = (var->activate & FB_ACTIVATE_VBL) && (matroxfb_enable_irq(minfo, 0) == 0);
424 static int matroxfb_pan_display(struct fb_var_screeninfo *var,
430 matrox_pan_var(minfo, var);
511 static int matroxfb_get_cmap_len(struct fb_var_screeninfo *var) {
515 switch (var->bits_per_pixel) {
534 struct fb_var_screeninfo *var, int *visual,
556 unsigned int bpp = var->bits_per_pixel;
573 if (var->yres_virtual < var->yres)
574 var->yres_virtual = var->yres;
575 if (var->xres_virtual < var->xres)
576 var->xres_virtual = var->xres;
578 var->xres_virtual = matroxfb_pitch_adjust(minfo, var->xres_virtual, bpp);
579 memlen = var->xres_virtual * bpp * var->yres_virtual / 8;
581 var->yres_virtual = vramlen * 8 / (var->xres_virtual * bpp);
582 memlen = var->xres_virtual * bpp * var->yres_virtual / 8;
591 unsigned int m1 = linelen = var->xres_virtual * bpp / 8;
606 if (var->yres_virtual > max_yres)
607 var->yres_virtual = max_yres;
611 if (var->yres_virtual > 32767)
612 var->yres_virtual = 32767;
615 if (var->yres_virtual < var->yres)
616 var->yres = var->yres_virtual;
617 if (var->xres_virtual < var->xres)
618 var->xres = var->xres_virtual;
619 if (var->xoffset + var->xres > var->xres_virtual)
620 var->xoffset = var->xres_virtual - var->xres;
621 if (var->yoffset + var->yres > var->yres_virtual)
622 var->yoffset = var->yres_virtual - var->yres;
624 if (bpp == 16 && var->green.length == 5) {
630 var->clr.offset = rgbt->clr.offset;\
631 var->clr.length = rgbt->clr.length
642 var->transp.length, var->red.length, var->green.length, var->blue.length,
643 var->transp.offset, var->red.offset, var->green.offset, var->blue.offset);
645 *video_cmap_len = matroxfb_get_cmap_len(var);
646 dprintk(KERN_INFO "requested %d*%d/%dbpp (%d*%d)\n", var->xres, var->yres, var->bits_per_pixel,
647 var->xres_virtual, var->yres_virtual);
662 * (according to the entries in the `var' structure). Return
669 if (minfo->fbcon.var.grayscale) {
674 red = CNVT_TOHW(red, minfo->fbcon.var.red.length);
675 green = CNVT_TOHW(green, minfo->fbcon.var.green.length);
676 blue = CNVT_TOHW(blue, minfo->fbcon.var.blue.length);
677 transp = CNVT_TOHW(transp, minfo->fbcon.var.transp.length);
679 switch (minfo->fbcon.var.bits_per_pixel) {
692 (red << minfo->fbcon.var.red.offset) |
693 (green << minfo->fbcon.var.green.offset) |
694 (blue << minfo->fbcon.var.blue.offset) |
695 (transp << minfo->fbcon.var.transp.offset); /* for 1:5:5:5 */
704 (red << minfo->fbcon.var.red.offset) |
705 (green << minfo->fbcon.var.green.offset) |
706 (blue << minfo->fbcon.var.blue.offset) |
707 (transp << minfo->fbcon.var.transp.offset); /* 8:8:8:8 */
739 static int matroxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
750 if ((err = matroxfb_decode_var(minfo, var, &visual, &cmap_len, &ydstorg)) != 0)
761 struct fb_var_screeninfo *var;
770 var = &info->var;
771 if ((err = matroxfb_decode_var(minfo, var, &visual, &cmap_len, &ydstorg)) != 0)
778 minfo->fbcon.fix.line_length = (var->xres_virtual * var->bits_per_pixel) >> 3;
786 if (var->bits_per_pixel == 4)
789 minfo->curr.ydstorg.pixels = (ydstorg * 8) / var->bits_per_pixel;
790 minfo->curr.final_bppShift = matroxfb_get_final_bppShift(minfo, var->bits_per_pixel);
795 matroxfb_var2my(var, &mt);
798 switch (var->bits_per_pixel) {
819 pos = (var->yoffset * var->xres_virtual + var->xoffset) * minfo->curr.final_bppShift / 32;
867 if (vblank->vcount >= minfo->fbcon.var.yres)
1856 struct fb_var_screeninfo var;
1865 if (!mac_vmode_to_var(default_vmode, default_cmode, &var)) {
1866 var.accel_flags = vesafb_defined.accel_flags;
1867 var.xoffset = var.yoffset = 0;
1869 vesafb_defined = var;
1885 /* And put it into "current" var. Do NOT program hardware yet, or we'll not take over
1889 minfo->fbcon.var = vesafb_defined;
1913 /* We have to use FB_ACTIVATE_FORCE, as we had to put vesafb_defined to the fbcon.var