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