Lines Matching defs:newmode
670 struct riva_regs newmode;
701 memcpy(&newmode, ®_template, sizeof(struct riva_regs));
715 newmode.crtc[0x0] = Set8Bits (hTotal);
716 newmode.crtc[0x1] = Set8Bits (hDisplay);
717 newmode.crtc[0x2] = Set8Bits (hBlankStart);
718 newmode.crtc[0x3] = SetBitField (hBlankEnd, 4: 0, 4:0) | SetBit (7);
719 newmode.crtc[0x4] = Set8Bits (hStart);
720 newmode.crtc[0x5] = SetBitField (hBlankEnd, 5: 5, 7:7)
722 newmode.crtc[0x6] = SetBitField (vTotal, 7: 0, 7:0);
723 newmode.crtc[0x7] = SetBitField (vTotal, 8: 8, 0:0)
731 newmode.crtc[0x9] = SetBitField (vBlankStart, 9: 9, 5:5)
733 newmode.crtc[0x10] = Set8Bits (vStart);
734 newmode.crtc[0x11] = SetBitField (vEnd, 3: 0, 3:0)
736 newmode.crtc[0x12] = Set8Bits (vDisplay);
737 newmode.crtc[0x13] = (width / 8) * ((bpp + 1) / 8);
738 newmode.crtc[0x15] = Set8Bits (vBlankStart);
739 newmode.crtc[0x16] = Set8Bits (vBlankEnd);
741 newmode.ext.screen = SetBitField(hBlankEnd,6:6,4:4)
746 newmode.ext.horiz = SetBitField(hTotal,8:8,0:0)
750 newmode.ext.extra = SetBitField(vTotal,11:11,0:0)
757 newmode.ext.interlace = Set8Bits(tmp);
758 newmode.ext.horiz |= SetBitField(tmp, 8:8,4:4);
760 newmode.ext.interlace = 0xff; /* interlace off */
766 newmode.misc_output &= ~0x40;
768 newmode.misc_output |= 0x40;
770 newmode.misc_output &= ~0x80;
772 newmode.misc_output |= 0x80;
774 rc = CalcStateExt(&par->riva, &newmode.ext, par->pdev, bpp, width,
779 newmode.ext.scale = NV_RD32(par->riva.PRAMDAC, 0x00000848) &
782 newmode.ext.pixel |= (1 << 7);
783 newmode.ext.scale |= (1 << 8);
786 newmode.ext.head = NV_RD32(par->riva.PCRTC0, 0x00000860) &
788 newmode.ext.head2 = NV_RD32(par->riva.PCRTC0, 0x00002860) |
790 newmode.ext.crtcOwner = 3;
791 newmode.ext.pllsel |= 0x20000800;
792 newmode.ext.vpll2 = newmode.ext.vpll;
794 newmode.ext.head = NV_RD32(par->riva.PCRTC0, 0x00000860) |
796 newmode.ext.head2 = NV_RD32(par->riva.PCRTC0, 0x00002860) &
798 newmode.ext.crtcOwner = 0;
799 newmode.ext.vpll2 = NV_RD32(par->riva.PRAMDAC0, 0x00000520);
802 newmode.ext.pixel |= (1 << 7);
803 newmode.ext.scale |= (1 << 8);
805 newmode.ext.cursorConfig = 0x02000100;
806 par->current_state = newmode;