Lines Matching refs:ModeNo

254 SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo,  in SiS_SearchModeID()  argument
257 if ((*ModeNo) <= 0x13) { in SiS_SearchModeID()
259 if ((*ModeNo) != 0x03) in SiS_SearchModeID()
269 (*ModeNo)) in SiS_SearchModeID()
297 SiS_GetColorDepth(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_GetColorDepth() argument
304 if (ModeNo <= 0x13) { in SiS_GetColorDepth()
321 SiS_GetOffset(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_GetOffset() argument
329 colordepth = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex); in SiS_GetOffset()
445 static void SiS_ClearExt1Regs(struct SiS_Private *SiS_Pr, unsigned short ModeNo) in SiS_ClearExt1Regs() argument
461 SiS_GetRatePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_GetRatePtr() argument
466 if (ModeNo <= 0x13) in SiS_GetRatePtr()
474 ModeNo = SiS_Pr->SiS_RefIndex[rrti].ModeID; in SiS_GetRatePtr()
478 if (SiS_Pr->SiS_RefIndex[rrti + i].ModeID != ModeNo) in SiS_GetRatePtr()
512 SiS_SetCRT1CRTC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_SetCRT1CRTC() argument
560 SiS_SetCRT1Offset(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_SetCRT1Offset() argument
563 unsigned short du = SiS_GetOffset(SiS_Pr, ModeNo, ModeIdIndex, rrti); in SiS_SetCRT1Offset()
588 SiS_SetCRT1VCLK(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_SetCRT1VCLK() argument
607 SiS_SetCRT1FIFO_310(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_SetCRT1FIFO_310() argument
618 if (ModeNo <= 0x13) in SiS_SetCRT1FIFO_310()
632 SiS_SetVCLKState(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_SetVCLKState() argument
637 if (ModeNo > 0x13) { in SiS_SetVCLKState()
662 SiS_SetCRT1ModeRegs(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_SetCRT1ModeRegs() argument
667 if (ModeNo <= 0x13) in SiS_SetCRT1ModeRegs()
678 if (ModeNo > 0x13) { in SiS_SetCRT1ModeRegs()
712 if ((SiS_Pr->SiS_ModeType == ModeEGA) && (ModeNo > 0x13)) in SiS_SetCRT1ModeRegs()
725 SiS_SetVCLKState(SiS_Pr, ModeNo, rrti); in SiS_SetCRT1ModeRegs()
766 SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_LoadDAC() argument
774 if (ModeNo < 0x13) in SiS_LoadDAC()
849 SiS_SetCRT1Group(struct SiS_Private *SiS_Pr, unsigned short ModeNo, in SiS_SetCRT1Group() argument
854 SiS_Pr->SiS_CRT1Mode = ModeNo; in SiS_SetCRT1Group()
856 if (ModeNo <= 0x13) in SiS_SetCRT1Group()
867 SiS_ClearExt1Regs(SiS_Pr, ModeNo); in SiS_SetCRT1Group()
869 rrti = SiS_GetRatePtr(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1Group()
873 SiS_SetCRT1CRTC(SiS_Pr, ModeNo, ModeIdIndex, rrti); in SiS_SetCRT1Group()
874 SiS_SetCRT1Offset(SiS_Pr, ModeNo, ModeIdIndex, rrti); in SiS_SetCRT1Group()
875 SiS_SetCRT1VCLK(SiS_Pr, ModeNo, rrti); in SiS_SetCRT1Group()
878 SiS_SetCRT1FIFO_310(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1Group()
880 SiS_SetCRT1ModeRegs(SiS_Pr, ModeNo, ModeIdIndex, rrti); in SiS_SetCRT1Group()
882 SiS_LoadDAC(SiS_Pr, ModeNo, ModeIdIndex); in SiS_SetCRT1Group()
891 int SiSUSBSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo) in SiSUSBSetMode() argument
900 if (!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) in SiSUSBSetMode()
907 ModeNo &= 0x7f; in SiSUSBSetMode()
915 SiS_SetCRT1Group(SiS_Pr, ModeNo, ModeIdIndex); in SiSUSBSetMode()
923 SiS_SetReg(SiS_Pr, SiS_Pr->SiS_P3d4, 0x34, ModeNo); in SiSUSBSetMode()
930 unsigned short ModeNo = 0; in SiSUSBSetVESAMode() local
937 ModeNo = 0x03; in SiSUSBSetVESAMode()
945 ModeNo = SiS_Pr->SiS_EModeIDTable[i].Ext_ModeID; in SiSUSBSetVESAMode()
953 if (!ModeNo) in SiSUSBSetVESAMode()
956 return SiSUSBSetMode(SiS_Pr, ModeNo); in SiSUSBSetVESAMode()