Lines Matching refs:ModeIdIndex
1234 unsigned short ModeIdIndex) in SiS_GetModeFlag() argument
1239 return SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; in SiS_GetModeFlag()
1241 return SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; in SiS_GetModeFlag()
1483 unsigned short ModeIdIndex) in SiS_CheckMemorySize() argument
1486 unsigned short modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); in SiS_CheckMemorySize()
1597 unsigned short *ModeIdIndex) in SiS_SearchModeID() argument
1605 for((*ModeIdIndex) = 0; ;(*ModeIdIndex)++) { in SiS_SearchModeID()
1606 if(SiS_Pr->SiS_SModeIDTable[(*ModeIdIndex)].St_ModeID == (*ModeNo)) break; in SiS_SearchModeID()
1607 if(SiS_Pr->SiS_SModeIDTable[(*ModeIdIndex)].St_ModeID == 0xFF) return false; in SiS_SearchModeID()
1611 if(VGAINFO & 0x10) (*ModeIdIndex)++; /* 400 lines */ in SiS_SearchModeID()
1615 if(!(VGAINFO & 0x80)) (*ModeIdIndex)++; in SiS_SearchModeID()
1616 if(VGAINFO & 0x10) (*ModeIdIndex)++; /* 400 lines */ in SiS_SearchModeID()
1623 for((*ModeIdIndex) = 0; ;(*ModeIdIndex)++) { in SiS_SearchModeID()
1624 if(SiS_Pr->SiS_EModeIDTable[(*ModeIdIndex)].Ext_ModeID == (*ModeNo)) break; in SiS_SearchModeID()
1625 if(SiS_Pr->SiS_EModeIDTable[(*ModeIdIndex)].Ext_ModeID == 0xFF) return false; in SiS_SearchModeID()
1637 SiS_GetModePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) in SiS_GetModePtr() argument
1642 index = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_StTableIndex; in SiS_GetModePtr()
1779 unsigned short ModeIdIndex) in SiS_GetColorDepth() argument
1789 modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; in SiS_GetColorDepth()
1791 modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; in SiS_GetColorDepth()
1805 unsigned short ModeIdIndex, unsigned short RRTI) in SiS_GetOffset() argument
1817 colordepth = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex); in SiS_GetOffset()
2074 unsigned short ModeIdIndex, unsigned short RRTI) in SiS_SetCRT1CRTC() argument
2079 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1CRTC()
2144 unsigned short ModeIdIndex, unsigned short RRTI) in SiS_SetCRT1Offset() argument
2154 DisplayUnit = SiS_GetOffset(SiS_Pr, ModeNo, ModeIdIndex, RRTI); in SiS_SetCRT1Offset()
2178 unsigned short ModeIdIndex, unsigned short RRTI) in SiS_SetCRT1VCLK() argument
2186 index = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RRTI); in SiS_SetCRT1VCLK()
2208 unsigned short mf = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1VCLK()
2538 SiS_SetCRT1FIFO_310(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) in SiS_SetCRT1FIFO_310() argument
2545 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1FIFO_310()
2574 unsigned short RefreshRateTableIndex, unsigned short ModeIdIndex) in SiS_SetVCLKState() argument
2582 index = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); in SiS_SetVCLKState()
2649 unsigned short ModeIdIndex, unsigned short RRTI) in SiS_SetCRT1ModeRegs() argument
2657 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1ModeRegs()
2723 data2 = SiS_GetOffset(SiS_Pr, ModeNo, ModeIdIndex, RRTI) >> 1; in SiS_SetCRT1ModeRegs()
2725 data3 = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex) >> 1; in SiS_SetCRT1ModeRegs()
2750 data2 = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RRTI); in SiS_SetCRT1ModeRegs()
2754 data3 = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex) >> 1; in SiS_SetCRT1ModeRegs()
2800 SiS_SetVCLKState(SiS_Pr, ModeNo, RRTI, ModeIdIndex); in SiS_SetCRT1ModeRegs()
2872 SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) in SiS_LoadDAC() argument
2879 data = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex) & DACInfoFlag; in SiS_LoadDAC()
2948 SiS_SetCRT1Group(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) in SiS_SetCRT1Group() argument
2954 StandTableIndex = SiS_GetModePtr(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1Group()
2985 RefreshRateTableIndex = SiS_GetRatePtr(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1Group()
2993 SiS_SetCRT1CRTC(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); in SiS_SetCRT1Group()
2994 SiS_SetCRT1Offset(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); in SiS_SetCRT1Group()
2995 SiS_SetCRT1VCLK(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); in SiS_SetCRT1Group()
3026 SiS_SetCRT1FIFO_310(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1Group()
3031 SiS_SetCRT1ModeRegs(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); in SiS_SetCRT1Group()
3039 SiS_LoadDAC(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1Group()
3170 unsigned short RealModeNo, ModeIdIndex; in SiSSetMode() local
3206 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return false; in SiSSetMode()
3208 ModeIdIndex = 0; in SiSSetMode()
3227 SiS_GetVBInfo(SiS_Pr, ModeNo, ModeIdIndex, (SiS_Pr->UseCustomMode) ? 0 : 1); in SiSSetMode()
3229 SiS_SetTVMode(SiS_Pr, ModeNo, ModeIdIndex); in SiSSetMode()
3230 SiS_GetLCDResInfo(SiS_Pr, ModeNo, ModeIdIndex); in SiSSetMode()
3234 if(!SiS_CheckMemorySize(SiS_Pr, ModeNo, ModeIdIndex)) { in SiSSetMode()
3251 SiS_SetCRT1Group(SiS_Pr, ModeNo, ModeIdIndex); in SiSSetMode()
3385 unsigned short ModeIdIndex) in SiS_CalcLCDACRT1Timing() argument
3394 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); in SiS_CalcLCDACRT1Timing()