Lines Matching refs:ModeNo

1235 SiS_GetModeFlag(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
1240 } else if(ModeNo <= 0x13) {
1487 SiS_CheckMemorySize(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
1491 unsigned short modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
1574 SiS_ClearBuffer(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
1584 if(ModeNo > 0x13) {
1604 SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo,
1609 if((*ModeNo) <= 0x13) {
1611 if((*ModeNo) <= 0x05) (*ModeNo) |= 0x01;
1614 if(SiS_Pr->SiS_SModeIDTable[(*ModeIdIndex)].St_ModeID == (*ModeNo)) break;
1618 if((*ModeNo) == 0x07) {
1622 if((*ModeNo) <= 0x03) {
1632 if(SiS_Pr->SiS_EModeIDTable[(*ModeIdIndex)].Ext_ModeID == (*ModeNo)) break;
1645 SiS_GetModePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
1649 if(ModeNo <= 0x13) {
1695 SiS_DoLowModeTest(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
1699 if((ModeNo != 0x03) && (ModeNo != 0x10) && (ModeNo != 0x12))
1722 SiS_SetLowModeTest(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
1724 if(SiS_DoLowModeTest(SiS_Pr, ModeNo)) {
1786 SiS_GetColorDepth(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
1794 if(ModeNo == 0xfe) {
1796 } else if(ModeNo <= 0x13) {
1812 SiS_GetOffset(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
1825 colordepth = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex);
2010 SiS_ClearExt1Regs(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
2020 if(ModeNo <= 0x13) {
2021 if(ModeNo == 0x06 || ModeNo >= 0x0e) {
2081 SiS_SetCRT1CRTC(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2087 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
2151 SiS_SetCRT1Offset(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2162 DisplayUnit = SiS_GetOffset(SiS_Pr, ModeNo, ModeIdIndex, RRTI);
2175 if(ModeNo == 0x4a || ModeNo == 0x49) temp--;
2185 SiS_SetCRT1VCLK(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2194 index = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RRTI);
2216 unsigned short mf = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
2310 SiS_SetCRT1FIFO_300(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2317 if(ModeNo > 0x13) {
2354 if(ModeNo > 0x13) temp |= 0x40;
2411 SiS_SetCRT1FIFO_630(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2439 if(ModeNo > 0x13) {
2518 if( (ModeNo <= 0x13) &&
2560 SiS_SetCRT1FIFO_310(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
2567 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
2571 if(ModeNo > 0x13) {
2595 SiS_SetVCLKState(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2600 if(ModeNo > 0x13) {
2604 index = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
2660 if(ModeNo > 0x13) data &= 0xfc;
2669 SiS_SetCRT1ModeRegs(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2678 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
2683 if(ModeNo > 0x13) {
2692 if(ModeNo > 0x13) {
2726 if(ModeNo > 0x13) {
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)
2973 SiS_Pr->SiS_CRT1Mode = ModeNo;
2975 StandTableIndex = SiS_GetModePtr(SiS_Pr, ModeNo, ModeIdIndex);
2990 SiS_ClearExt1Regs(SiS_Pr, ModeNo);
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);
3027 SiS_SetCRT1FIFO_300(SiS_Pr, ModeNo, RefreshRateTableIndex);
3032 SiS_SetCRT1FIFO_630(SiS_Pr, ModeNo, RefreshRateTableIndex);
3039 switch(ModeNo) {
3052 SiS_SetCRT1FIFO_310(SiS_Pr, ModeNo, ModeIdIndex);
3057 SiS_SetCRT1ModeRegs(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
3065 SiS_LoadDAC(SiS_Pr, ModeNo, ModeIdIndex);
3069 SiS_ClearBuffer(SiS_Pr, ModeNo);
3262 SiSSetMode(struct SiS_Private *SiS_Pr, ScrnInfoPtr pScrn, unsigned short ModeNo, BOOLEAN dosetpitch)
3265 SiSSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
3281 ModeNo = 0xfe;
3284 if(!(ModeNo & 0x80)) SiS_Pr->SiS_flag_clearbuffer = 1;
3286 ModeNo &= 0x7f;
3290 RealModeNo = ModeNo;
3291 if(ModeNo == 0x5b) ModeNo = 0x56;
3314 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return FALSE;
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);
3339 SiS_SetLowModeTest(SiS_Pr, ModeNo);
3343 if(!SiS_CheckMemorySize(SiS_Pr, ModeNo, ModeIdIndex)) {
3361 SiS_SetCRT1Group(SiS_Pr, ModeNo, ModeIdIndex);
3405 if((ModeNo == 0x03) || (ModeNo == 0x10)) {
3424 if((ModeNo > 0x13) && (dosetpitch)) {
3428 /* Backup/Set ModeNo in BIOS scratch area */
3429 SiS_GetSetModeID(pScrn, ModeNo);
3456 unsigned short ModeNo = 0;
3471 ModeNo = SiS_GetModeNumber(pScrn, mode, pSiS->VBFlags);
3472 if(!ModeNo) return FALSE;
3474 xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 3, "Setting standard mode 0x%x\n", ModeNo);
3478 return(SiSSetMode(SiS_Pr, pScrn, ModeNo, TRUE));
3496 unsigned short ModeNo = 0;
3508 ModeNo = 0xfe;
3512 ModeNo = SiS_GetModeNumber(pScrn, mode, pSiS->VBFlags);
3513 if(!ModeNo) return FALSE;
3535 pSiSEnt->CRT2ModeNo = ModeNo;
3568 "Setting standard mode 0x%x on CRT2\n", ModeNo);
3575 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return FALSE;
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);
3604 SiS_SetLowModeTest(SiS_Pr, ModeNo);
3613 SiS_SetCRT2Group(SiS_Pr, ModeNo);
3669 unsigned short ModeIdIndex, ModeNo = 0;
3689 ModeNo = 0xfe;
3693 ModeNo = SiS_GetModeNumber(pScrn, mode, 0); /* don't give VBFlags */
3694 if(!ModeNo) return FALSE;
3697 "Setting standard mode 0x%x on CRT1\n", ModeNo);
3718 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return FALSE;
3737 SiS_GetVBInfo(SiS_Pr, ModeNo, ModeIdIndex, 0);
3739 SiS_SetTVMode(SiS_Pr, ModeNo, ModeIdIndex);
3740 SiS_GetLCDResInfo(SiS_Pr, ModeNo, ModeIdIndex);
3741 SiS_SetLowModeTest(SiS_Pr, ModeNo);
3746 SiS_SetCRT1Group(SiS_Pr, ModeNo, ModeIdIndex);
3748 SiS_SetCRT2Group(SiS_Pr, ModeNo);
3762 pSiSEnt->CRT1ModeNo = ModeNo;
3832 /* Backup/Set ModeNo in BIOS scratch area */
3833 SiS_GetSetModeID(pScrn,ModeNo);
3903 SiS_CalcLCDACRT1Timing(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
3913 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);