Lines Matching refs:ModeNo
205 SiS_AdjustCRT2Rate(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
293 SiS_GetRatePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
306 if(ModeNo == 0xfe) return 0;
308 if(ModeNo <= 0x13) {
320 if(ModeNo < 0x14) return 0xFFFF;
348 ModeNo = SiS_Pr->SiS_RefIndex[RRTI].ModeID;
361 if(SiS_Pr->SiS_RefIndex[RRTI + i].ModeID != ModeNo) break;
380 if(!(SiS_AdjustCRT2Rate(SiS_Pr, ModeNo, ModeIdIndex, RRTI, &i))) {
393 SiS_SaveCRT2Info(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
397 /* Store CRT1 ModeNo in CR34 */
398 SiS_SetReg(SiS_Pr->SiS_P3d4,0x34,ModeNo);
950 SiS_GetVBInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
958 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
962 if((ModeNo > 0x13) && (!SiS_Pr->UseCustomMode)) {
979 if(ModeNo == 0x03) {
990 if((ModeNo <= 0x13) || (!(SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) & (DriverMode >> 8)))) {
1229 SiS_SetTVMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
1240 if(ModeNo > 0x13) {
1564 SiS_GetLCDResInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
1592 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
1594 if((ModeNo > 0x13) && (!SiS_Pr->UseCustomMode)) {
2144 if((SiS_Pr->SiS_SetFlag & SetDOSMode) && ((ModeNo == 0x03) || (ModeNo == 0x10))) {
2194 if(ModeNo == 0x12) {
2198 } else if(ModeNo > 0x13) {
2217 } else if(ModeNo > 0x13) {
2255 SiS_GetVCLK2Ptr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
2262 if(ModeNo <= 0x13) {
2305 if(ModeNo <= 0x13) {
2340 if(ModeNo > 0x13) {
2355 if(ModeNo > 0x13) {
2430 if(ModeNo > 0x13) {
2443 if(ModeNo > 0x13) {
2475 SiS_SetCRT2ModeRegs(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
2487 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
2519 if(ModeNo > 0x13) {
2534 if(ModeNo > 0x13) {
2834 SiS_GetResInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
2836 if(ModeNo <= 0x13)
2843 SiS_GetCRT2ResInfo(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
2856 resindex = SiS_GetResInfo(SiS_Pr,ModeNo,ModeIdIndex);
2858 if(ModeNo <= 0x13) {
2870 if((ModeNo != 0x03) && (SiS_Pr->SiS_SetFlag & SetDOSMode)) {
2874 if(ModeNo == 0x12) yres = 400;
2942 SiS_GetCRT2Ptr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
2948 if(ModeNo <= 0x13) {
2977 if(ModeNo >= 0x13) {
3019 if(ModeNo > 0x13) {
3124 SiS_GetRAMDAC2DATA(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
3133 if(ModeNo <= 0x13) {
3136 index = SiS_GetModePtr(SiS_Pr,ModeNo,ModeIdIndex);
3177 SiS_CalcPanelLinkTiming(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
3190 if(ModeNo < 0x13) {
3220 SiS_GetCRT2DataLVDS(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
3226 SiS_GetCRT2ResInfo(SiS_Pr, ModeNo, ModeIdIndex);
3243 SiS_CalcPanelLinkTiming(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
3244 SiS_CalcLCDACRT1Timing(SiS_Pr, ModeNo, ModeIdIndex);
3255 SiS_GetCRT2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex,
3291 SiS_CalcPanelLinkTiming(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
3315 SiS_GetCRT2Data301(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
3327 if(ModeNo <= 0x13) {
3360 SiS_GetCRT2ResInfo(SiS_Pr,ModeNo,ModeIdIndex);
3378 SiS_GetRAMDAC2DATA(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
3384 SiS_GetCRT2Ptr(SiS_Pr,ModeNo,ModeIdIndex,RefreshRateTableIndex,
3554 SiS_GetCRT2Ptr(SiS_Pr,ModeNo,ModeIdIndex,RefreshRateTableIndex,
3652 SiS_GetCRT2Data(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
3659 SiS_GetCRT2DataLVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
3663 SiS_GetCRT2DataLVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
3665 SiS_GetCRT2Data301(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
3671 SiS_GetCRT2DataLVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
3709 SiS_GetLVDSDesData(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
3752 if(ModeNo <= 0x13) ResIndex = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC;
3895 if((ModeNo <= 0x13) && (SiS_Pr->SiS_LCDInfo & DontExpandLCD)) {
4956 SiS_SetCRT2Offset(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
4964 offset = SiS_GetOffset(SiS_Pr,ModeNo,ModeIdIndex,RRTI);
4976 SiS_SetCRT2Sync(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short RefreshRateTableIndex)
5103 if(ModeNo <= 0x13) {
5145 SiS_SetCRT2FIFO_300(struct SiS_Private *SiS_Pr,unsigned short ModeNo)
5160 CRT1ModeNo = SiS_Pr->SiS_CRT1Mode; /* get CRT1 ModeNo */
5257 CRT2ModeNo = ModeNo;
5359 SiS_SetGroup1_301(struct SiS_Private *SiS_Pr, unsigned short ModeNo,unsigned short ModeIdIndex,
5372 if(ModeNo <= 0x13) {
5434 if(ModeNo == 0x3c) SiS_Pr->CVBlankEnd = 226;
5509 SiS_SetGroup1_LVDS(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
5524 if(ModeNo <= 0x13) {
5645 switch(ModeNo) {
5727 if(ModeNo == 0x10) temp = 0xa9;
5953 if(ModeNo == 0x13) {
5957 } else if(ModeNo == 0x10) {
6073 SiS_SetGroup1(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
6086 SiS_SetGroup1_LVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
6090 if(ModeNo <= 0x13) {
6107 SiS_SetCRT2Offset(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
6116 SiS_SetCRT2FIFO_300(SiS_Pr, ModeNo);
6429 SiS_SetGroup1_LVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
6431 SiS_SetGroup1_301(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
6435 SiS_SetGroup1_LVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
6439 SiS_SetGroup1_LVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
6442 SiS_SetGroup1_LVDS(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
6454 SiS_GetCRT2Part2Ptr(struct SiS_Private *SiS_Pr,unsigned short ModeNo,unsigned short ModeIdIndex,
6461 if(ModeNo <= 0x13)
6486 SiS_Group2LCDSpecial(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short crt2crtc)
6501 if(ModeNo == 0x13) {
6545 unsigned short ModeNo)
6555 if(ModeNo <= 0x13) {
6566 if(ModeNo > 0x13) {
6588 SiS_SetTVSpecial(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
6609 if(ModeNo == 0x79 || ModeNo == 0x75 || ModeNo == 0x78) {
6662 if((ModeNo == 0x38) || (ModeNo == 0x4a) || (ModeNo == 0x64) ||
6663 (ModeNo == 0x52) || (ModeNo == 0x58) || (ModeNo == 0x5c)) {
6674 SiS_SetGroup2_Tail(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
6704 if(ModeNo <= 0x13) temp = 3;
6711 SiS_SetGroup2(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
6726 if(ModeNo <= 0x13) {
6917 if((ModeNo <= 0x13) && (crt2crtc == 1)) tempbx++;
6926 if((ModeNo == 0x2f) || (ModeNo == 0x5d) || (ModeNo == 0x5e)) tempbx++;
6929 if(ModeNo == 0x03) tempbx++; /* From 1.10.7w - doesn't make sense */
7026 SiS_SetTVSpecial(SiS_Pr, ModeNo);
7095 if(SiS_GetCRT2Part2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex,
7117 SiS_SetGroup2_Tail(SiS_Pr, ModeNo);
7235 SiS_Group2LCDSpecial(SiS_Pr, ModeNo, crt2crtc);
7333 SiS_SetGroup2_Tail(SiS_Pr, ModeNo);
7336 SiS_Set300Part2Regs(SiS_Pr, ModeIdIndex, RefreshRateTableIndex, ModeNo);
7348 SiS_SetGroup3(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
7433 SiS_SetGroup4_C_ELV(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
7467 if(ModeNo > 0x13) {
7476 if(ModeNo > 0x13) {
7503 SiS_SetCRT2VCLK(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
7512 vclkindex = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
7562 SiS_SetGroup4(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
7568 if(ModeNo <= 0x13) {
7756 SiS_SetCRT2VCLK(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
7764 SiS_SetGroup5(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
7772 SiS_LoadDAC(SiS_Pr, ModeNo, ModeIdIndex);
7782 SiS_GetLVDSCRT1Ptr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
7791 if(ModeNo <= 0x13) {
7846 SiS_ModCRT1CRTC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
7876 if(!(SiS_GetLVDSCRT1Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex,
7919 if(ModeNo <= 0x13) modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag;
7928 SiS_CalcLCDACRT1Timing(SiS_Pr, ModeNo, ModeIdIndex);
7938 SiS_SetCRT2ECLK(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
7950 vclkindex = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex,
7954 vclkindex = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex,
7993 SiS_SetCHTVReg(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
7999 if(ModeNo <= 0x13)
8535 SiS_ChrontelDoSomething3(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
8564 if(ModeNo > 0x13) {
8691 SiS_SetCRT2Group(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
8701 SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex);
8711 RefreshRateTableIndex = SiS_GetRatePtr(SiS_Pr, ModeNo, ModeIdIndex);
8713 SiS_SaveCRT2Info(SiS_Pr,ModeNo);
8720 SiS_SetCRT2ModeRegs(SiS_Pr, ModeNo, ModeIdIndex);
8729 SiS_GetCRT2Data(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
8736 SiS_GetLVDSDesData(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
8750 SiS_SetGroup1(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
8757 SiS_SetGroup2(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
8759 SiS_SetGroup2_C_ELV(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
8761 SiS_SetGroup3(SiS_Pr, ModeNo, ModeIdIndex);
8762 SiS_SetGroup4(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
8764 SiS_SetGroup4_C_ELV(SiS_Pr, ModeNo, ModeIdIndex);
8766 SiS_SetGroup5(SiS_Pr, ModeNo, ModeIdIndex);
8768 SiS_SetCRT2Sync(SiS_Pr, ModeNo, RefreshRateTableIndex);
8773 if(!((SiS_Pr->SiS_SetFlag & SetDOSMode) && ((ModeNo == 0x03) || (ModeNo == 0x10)))) {
8775 SiS_ModCRT1CRTC(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
8778 SiS_SetCRT2ECLK(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
8784 SiS_SetCRT2Sync(SiS_Pr, ModeNo, RefreshRateTableIndex);
8786 SiS_ModCRT1CRTC(SiS_Pr,ModeNo,ModeIdIndex,RefreshRateTableIndex);
8788 SiS_SetCRT2ECLK(SiS_Pr,ModeNo,ModeIdIndex,RefreshRateTableIndex);
8800 SiS_SetCHTVReg(SiS_Pr,ModeNo,ModeIdIndex,RefreshRateTableIndex);
8813 SiS_OEM300Setting(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
8816 SiS_OEM300Setting(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
8822 SetOEMLCDData2(SiS_Pr, ModeNo, ModeIdIndex,RefreshRateTableIndex);
8834 SiS_FinalizeLCD(SiS_Pr, ModeNo, ModeIdIndex);
8835 SiS_OEM310Setting(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
8837 SiS_OEM661Setting(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
9862 SetDelayComp(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
10169 SetAntiFlicker(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
10176 if(ModeNo<=0x13)
10214 SetEdgeEnhance(struct SiS_Private *SiS_Pr, unsigned short ModeNo,unsigned short ModeIdIndex)
10221 if(ModeNo <= 0x13)
10254 SetYFilter(struct SiS_Private *SiS_Pr, unsigned short ModeNo,unsigned short ModeIdIndex)
10258 if(ModeNo <= 0x13) {
10286 SetPhaseIncr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
10309 if(ModeNo<=0x13) {
10356 if((!(SiS_Pr->SiS_TVMode & (TVSetPAL | TVSetYPbPrProg))) && (ModeNo > 0x13)) {
10374 SetDelayComp661(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
10393 } else if(ModeNo > 0x13) {
10394 index = SiS_GetVCLK2Ptr(SiS_Pr,ModeNo,ModeIdIndex,RTI);
10418 else if(ModeNo <= 0x13) delay = 0x04;
10534 SetCRT2SyncDither661(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short RTI)
10541 if(ModeNo <= 0x13) {
10615 SiS_OEM310Setting(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, unsigned short RRTI)
10618 SetDelayComp661(SiS_Pr, ModeNo, ModeIdIndex, RRTI);
10620 SetCRT2SyncDither661(SiS_Pr, ModeNo, RRTI);
10624 SetDelayComp(SiS_Pr,ModeNo);
10628 SetAntiFlicker(SiS_Pr,ModeNo,ModeIdIndex);
10629 SetPhaseIncr(SiS_Pr,ModeNo,ModeIdIndex);
10630 SetYFilter(SiS_Pr,ModeNo,ModeIdIndex);
10632 SetEdgeEnhance(SiS_Pr,ModeNo,ModeIdIndex);
10638 SiS_OEM661Setting(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
10643 SetDelayComp661(SiS_Pr, ModeNo, ModeIdIndex, RRTI);
10646 SetCRT2SyncDither661(SiS_Pr, ModeNo, RRTI);
10651 SetPhaseIncr(SiS_Pr, ModeNo, ModeIdIndex);
10652 SetYFilter(SiS_Pr, ModeNo, ModeIdIndex);
10653 SetAntiFlicker(SiS_Pr, ModeNo, ModeIdIndex);
10655 SetEdgeEnhance(SiS_Pr, ModeNo, ModeIdIndex);
10669 SiS_FinalizeLCD(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
10694 if(ModeNo <= 0x13) {
10769 if((SiS_Pr->Backup == TRUE) && (SiS_Pr->Backup_Mode == ModeNo)) {
10782 if(ModeNo <= 0x13) {
10789 if((ModeNo > 0x13) && (resinfo == SIS_RI_1024x768)) {
10800 } else if(ModeNo <= 0x13) {
10801 if(ModeNo <= 1) {
10814 if(ModeNo == 0x12) {
10873 SetOEMLCDData2(struct SiS_Private *SiS_Pr, unsigned short ModeNo,unsigned short ModeIdIndex,
10880 if(ModeNo <= 0x13) {
10979 SetOEMLCDDelay(struct SiS_Private *SiS_Pr, unsigned short ModeNo,unsigned short ModeIdIndex)
11052 SetOEMLCDData(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
11102 SetOEMTVDelay(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
11133 SetOEMAntiFlicker(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
11161 SetOEMPhaseIncr(struct SiS_Private *SiS_Pr, unsigned short ModeNo,unsigned short ModeIdIndex)
11201 SetOEMYFilter(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
11246 SiS_SearchVBModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo)
11251 if(*ModeNo <= 5) *ModeNo |= 1;
11254 if(SiS_Pr->SiS_VBModeIDTable[ModeIdIndex].ModeID == *ModeNo) break;
11258 if(*ModeNo != 0x07) {
11259 if(*ModeNo > 0x03) return ModeIdIndex;
11270 SiS_OEM300Setting(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex,
11276 OEMModeIdIndex = SiS_SearchVBModeID(SiS_Pr,&ModeNo);
11281 SetOEMLCDDelay(SiS_Pr, ModeNo, OEMModeIdIndex);
11283 SetOEMLCDData(SiS_Pr, ModeNo, OEMModeIdIndex);
11288 SetOEMTVDelay(SiS_Pr, ModeNo,OEMModeIdIndex);
11290 SetOEMAntiFlicker(SiS_Pr, ModeNo, OEMModeIdIndex);
11291 SetOEMPhaseIncr(SiS_Pr, ModeNo, OEMModeIdIndex);
11292 SetOEMYFilter(SiS_Pr, ModeNo, OEMModeIdIndex);