Lines Matching defs:newmode
675 struct riva_regs newmode;
706 memcpy(&newmode, ®_template, sizeof(struct riva_regs));
720 newmode.crtc[0x0] = Set8Bits (hTotal);
721 newmode.crtc[0x1] = Set8Bits (hDisplay);
722 newmode.crtc[0x2] = Set8Bits (hBlankStart);
723 newmode.crtc[0x3] = SetBitField (hBlankEnd, 4: 0, 4:0) | SetBit (7);
724 newmode.crtc[0x4] = Set8Bits (hStart);
725 newmode.crtc[0x5] = SetBitField (hBlankEnd, 5: 5, 7:7)
727 newmode.crtc[0x6] = SetBitField (vTotal, 7: 0, 7:0);
728 newmode.crtc[0x7] = SetBitField (vTotal, 8: 8, 0:0)
736 newmode.crtc[0x9] = SetBitField (vBlankStart, 9: 9, 5:5)
738 newmode.crtc[0x10] = Set8Bits (vStart);
739 newmode.crtc[0x11] = SetBitField (vEnd, 3: 0, 3:0)
741 newmode.crtc[0x12] = Set8Bits (vDisplay);
742 newmode.crtc[0x13] = (width / 8) * ((bpp + 1) / 8);
743 newmode.crtc[0x15] = Set8Bits (vBlankStart);
744 newmode.crtc[0x16] = Set8Bits (vBlankEnd);
746 newmode.ext.screen = SetBitField(hBlankEnd,6:6,4:4)
751 newmode.ext.horiz = SetBitField(hTotal,8:8,0:0)
755 newmode.ext.extra = SetBitField(vTotal,11:11,0:0)
762 newmode.ext.interlace = Set8Bits(tmp);
763 newmode.ext.horiz |= SetBitField(tmp, 8:8,4:4);
765 newmode.ext.interlace = 0xff; /* interlace off */
771 newmode.misc_output &= ~0x40;
773 newmode.misc_output |= 0x40;
775 newmode.misc_output &= ~0x80;
777 newmode.misc_output |= 0x80;
779 rc = CalcStateExt(&par->riva, &newmode.ext, par->pdev, bpp, width,
784 newmode.ext.scale = NV_RD32(par->riva.PRAMDAC, 0x00000848) &
787 newmode.ext.pixel |= (1 << 7);
788 newmode.ext.scale |= (1 << 8);
791 newmode.ext.head = NV_RD32(par->riva.PCRTC0, 0x00000860) &
793 newmode.ext.head2 = NV_RD32(par->riva.PCRTC0, 0x00002860) |
795 newmode.ext.crtcOwner = 3;
796 newmode.ext.pllsel |= 0x20000800;
797 newmode.ext.vpll2 = newmode.ext.vpll;
799 newmode.ext.head = NV_RD32(par->riva.PCRTC0, 0x00000860) |
801 newmode.ext.head2 = NV_RD32(par->riva.PCRTC0, 0x00002860) &
803 newmode.ext.crtcOwner = 0;
804 newmode.ext.vpll2 = NV_RD32(par->riva.PRAMDAC0, 0x00000520);
807 newmode.ext.pixel |= (1 << 7);
808 newmode.ext.scale |= (1 << 8);
810 newmode.ext.cursorConfig = 0x02000100;
811 par->current_state = newmode;