Lines Matching refs:ModeNo
1233 SiS_GetModeFlag(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_GetModeFlag() argument
1238 } else if(ModeNo <= 0x13) { in SiS_GetModeFlag()
1482 SiS_CheckMemorySize(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_CheckMemorySize() argument
1486 unsigned short modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); in SiS_CheckMemorySize()
1567 SiS_ClearBuffer(struct SiS_Private *SiS_Pr, unsigned short ModeNo) in SiS_ClearBuffer() argument
1577 if(ModeNo > 0x13) { in SiS_ClearBuffer()
1596 SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo, in SiS_SearchModeID() argument
1601 if((*ModeNo) <= 0x13) { in SiS_SearchModeID()
1603 if((*ModeNo) <= 0x05) (*ModeNo) |= 0x01; in SiS_SearchModeID()
1606 if(SiS_Pr->SiS_SModeIDTable[(*ModeIdIndex)].St_ModeID == (*ModeNo)) break; in SiS_SearchModeID()
1610 if((*ModeNo) == 0x07) { in SiS_SearchModeID()
1614 if((*ModeNo) <= 0x03) { in SiS_SearchModeID()
1624 if(SiS_Pr->SiS_EModeIDTable[(*ModeIdIndex)].Ext_ModeID == (*ModeNo)) break; in SiS_SearchModeID()
1637 SiS_GetModePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) in SiS_GetModePtr() argument
1641 if(ModeNo <= 0x13) { in SiS_GetModePtr()
1687 SiS_DoLowModeTest(struct SiS_Private *SiS_Pr, unsigned short ModeNo) in SiS_DoLowModeTest() argument
1691 if((ModeNo != 0x03) && (ModeNo != 0x10) && (ModeNo != 0x12)) in SiS_DoLowModeTest()
1714 SiS_SetLowModeTest(struct SiS_Private *SiS_Pr, unsigned short ModeNo) in SiS_SetLowModeTest() argument
1716 if(SiS_DoLowModeTest(SiS_Pr, ModeNo)) { in SiS_SetLowModeTest()
1778 SiS_GetColorDepth(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_GetColorDepth() argument
1786 if(ModeNo == 0xfe) { in SiS_GetColorDepth()
1788 } else if(ModeNo <= 0x13) { in SiS_GetColorDepth()
1804 SiS_GetOffset(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_GetOffset() argument
1817 colordepth = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex); in SiS_GetOffset()
2002 SiS_ClearExt1Regs(struct SiS_Private *SiS_Pr, unsigned short ModeNo) in SiS_ClearExt1Regs() argument
2012 if(ModeNo <= 0x13) { in SiS_ClearExt1Regs()
2013 if(ModeNo == 0x06 || ModeNo >= 0x0e) { in SiS_ClearExt1Regs()
2073 SiS_SetCRT1CRTC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_SetCRT1CRTC() argument
2079 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1CRTC()
2143 SiS_SetCRT1Offset(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_SetCRT1Offset() argument
2154 DisplayUnit = SiS_GetOffset(SiS_Pr, ModeNo, ModeIdIndex, RRTI); in SiS_SetCRT1Offset()
2167 if(ModeNo == 0x4a || ModeNo == 0x49) temp--; in SiS_SetCRT1Offset()
2177 SiS_SetCRT1VCLK(struct SiS_Private *SiS_Pr, unsigned short ModeNo, 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()
2302 SiS_SetCRT1FIFO_300(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_SetCRT1FIFO_300() argument
2309 if(ModeNo > 0x13) { in SiS_SetCRT1FIFO_300()
2346 if(ModeNo > 0x13) temp |= 0x40; in SiS_SetCRT1FIFO_300()
2403 SiS_SetCRT1FIFO_630(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_SetCRT1FIFO_630() argument
2436 if(ModeNo > 0x13) { in SiS_SetCRT1FIFO_630()
2505 if( (ModeNo <= 0x13) && in SiS_SetCRT1FIFO_630()
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()
2549 if(ModeNo > 0x13) { in SiS_SetCRT1FIFO_310()
2573 SiS_SetVCLKState(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_SetVCLKState() argument
2578 if(ModeNo > 0x13) { in SiS_SetVCLKState()
2582 index = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex); in SiS_SetVCLKState()
2639 if(ModeNo > 0x13) data &= 0xfc; in SiS_SetVCLKState()
2648 SiS_SetCRT1ModeRegs(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_SetCRT1ModeRegs() argument
2657 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1ModeRegs()
2662 if(ModeNo > 0x13) { in SiS_SetCRT1ModeRegs()
2671 if(ModeNo > 0x13) { in SiS_SetCRT1ModeRegs()
2705 if(ModeNo > 0x13) { 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
2952 SiS_Pr->SiS_CRT1Mode = ModeNo; in SiS_SetCRT1Group()
2954 StandTableIndex = SiS_GetModePtr(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1Group()
2969 SiS_ClearExt1Regs(SiS_Pr, ModeNo); 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()
3001 SiS_SetCRT1FIFO_300(SiS_Pr, ModeNo, RefreshRateTableIndex); in SiS_SetCRT1Group()
3006 SiS_SetCRT1FIFO_630(SiS_Pr, ModeNo, RefreshRateTableIndex); in SiS_SetCRT1Group()
3013 switch(ModeNo) { 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()
3042 SiS_ClearBuffer(SiS_Pr, ModeNo); in SiS_SetCRT1Group()
3167 SiSSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo) in SiSSetMode() argument
3180 ModeNo = 0xfe; in SiSSetMode()
3182 if(!(ModeNo & 0x80)) SiS_Pr->SiS_flag_clearbuffer = 1; in SiSSetMode()
3183 ModeNo &= 0x7f; in SiSSetMode()
3187 RealModeNo = ModeNo; in SiSSetMode()
3188 if(ModeNo == 0x5b) ModeNo = 0x56; in SiSSetMode()
3206 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return false; 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()
3231 SiS_SetLowModeTest(SiS_Pr, ModeNo); in SiSSetMode()
3234 if(!SiS_CheckMemorySize(SiS_Pr, ModeNo, ModeIdIndex)) { in SiSSetMode()
3251 SiS_SetCRT1Group(SiS_Pr, ModeNo, ModeIdIndex); in SiSSetMode()
3295 if((ModeNo == 0x03) || (ModeNo == 0x10)) { in SiSSetMode()
3384 SiS_CalcLCDACRT1Timing(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_CalcLCDACRT1Timing() argument
3394 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex); in SiS_CalcLCDACRT1Timing()