Lines Matching defs:ModeIdIndex
1236 unsigned short ModeIdIndex)
1241 return SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag;
1243 return SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag;
1488 unsigned short ModeIdIndex)
1491 unsigned short modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
1605 unsigned short *ModeIdIndex)
1613 for((*ModeIdIndex) = 0; ;(*ModeIdIndex)++) {
1614 if(SiS_Pr->SiS_SModeIDTable[(*ModeIdIndex)].St_ModeID == (*ModeNo)) break;
1615 if(SiS_Pr->SiS_SModeIDTable[(*ModeIdIndex)].St_ModeID == 0xFF) return FALSE;
1619 if(VGAINFO & 0x10) (*ModeIdIndex)++; /* 400 lines */
1623 if(!(VGAINFO & 0x80)) (*ModeIdIndex)++;
1624 if(VGAINFO & 0x10) (*ModeIdIndex)++; /* 400 lines */
1631 for((*ModeIdIndex) = 0; ;(*ModeIdIndex)++) {
1632 if(SiS_Pr->SiS_EModeIDTable[(*ModeIdIndex)].Ext_ModeID == (*ModeNo)) break;
1633 if(SiS_Pr->SiS_EModeIDTable[(*ModeIdIndex)].Ext_ModeID == 0xFF) return FALSE;
1645 SiS_GetModePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
1650 index = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_StTableIndex;
1787 unsigned short ModeIdIndex)
1797 modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag;
1799 modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag;
1813 unsigned short ModeIdIndex, unsigned short RRTI)
1825 colordepth = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex);
2082 unsigned short ModeIdIndex, unsigned short RRTI)
2087 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
2152 unsigned short ModeIdIndex, unsigned short RRTI)
2162 DisplayUnit = SiS_GetOffset(SiS_Pr, ModeNo, ModeIdIndex, RRTI);
2186 unsigned short ModeIdIndex, unsigned short RRTI)
2194 index = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RRTI);
2216 unsigned short mf = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
2560 SiS_SetCRT1FIFO_310(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
2567 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
2596 unsigned short RefreshRateTableIndex, unsigned short ModeIdIndex)
2604 index = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
2670 unsigned short ModeIdIndex, unsigned short RRTI)
2678 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
2744 data2 = SiS_GetOffset(SiS_Pr, ModeNo, ModeIdIndex, RRTI) >> 1;
2746 data3 = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex) >> 1;
2771 data2 = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RRTI);
2775 data3 = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex) >> 1;
2821 SiS_SetVCLKState(SiS_Pr, ModeNo, RRTI, ModeIdIndex);
2893 SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
2900 data = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex) & DACInfoFlag;
2969 SiS_SetCRT1Group(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
2975 StandTableIndex = SiS_GetModePtr(SiS_Pr, ModeNo, ModeIdIndex);
3011 RefreshRateTableIndex = SiS_GetRatePtr(SiS_Pr, ModeNo, ModeIdIndex);
3019 SiS_SetCRT1CRTC(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
3020 SiS_SetCRT1Offset(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
3021 SiS_SetCRT1VCLK(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
3052 SiS_SetCRT1FIFO_310(SiS_Pr, ModeNo, ModeIdIndex);
3057 SiS_SetCRT1ModeRegs(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
3065 SiS_LoadDAC(SiS_Pr, ModeNo, ModeIdIndex);
3269 unsigned short RealModeNo, ModeIdIndex;
3314 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return FALSE;
3316 ModeIdIndex = 0;
3335 SiS_GetVBInfo(SiS_Pr, ModeNo, ModeIdIndex, (SiS_Pr->UseCustomMode) ? 0 : 1);
3337 SiS_SetTVMode(SiS_Pr, ModeNo, ModeIdIndex);
3338 SiS_GetLCDResInfo(SiS_Pr, ModeNo, ModeIdIndex);
3343 if(!SiS_CheckMemorySize(SiS_Pr, ModeNo, ModeIdIndex)) {
3361 SiS_SetCRT1Group(SiS_Pr, ModeNo, ModeIdIndex);
3495 unsigned short ModeIdIndex;
3575 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return FALSE;
3577 ModeIdIndex = 0;
3596 SiS_GetVBInfo(SiS_Pr, ModeNo, ModeIdIndex, 1);
3599 SiS_GetVBInfo(SiS_Pr, ModeNo, ModeIdIndex, 0);
3602 SiS_SetTVMode(SiS_Pr, ModeNo, ModeIdIndex);
3603 SiS_GetLCDResInfo(SiS_Pr, ModeNo, ModeIdIndex);
3669 unsigned short ModeIdIndex, ModeNo = 0;
3718 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return FALSE;
3720 ModeIdIndex = 0;
3737 SiS_GetVBInfo(SiS_Pr, ModeNo, ModeIdIndex, 0);
3739 SiS_SetTVMode(SiS_Pr, ModeNo, ModeIdIndex);
3740 SiS_GetLCDResInfo(SiS_Pr, ModeNo, ModeIdIndex);
3746 SiS_SetCRT1Group(SiS_Pr, ModeNo, ModeIdIndex);
3904 unsigned short ModeIdIndex)
3913 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);