• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/video/sis/

Lines Matching refs:ModeNo

1230 SiS_GetModeFlag(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
1235 } else if(ModeNo <= 0x13) {
1482 SiS_CheckMemorySize(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
1486 unsigned short modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
1569 SiS_ClearBuffer(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
1579 if(ModeNo > 0x13) {
1599 SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo,
1604 if((*ModeNo) <= 0x13) {
1606 if((*ModeNo) <= 0x05) (*ModeNo) |= 0x01;
1609 if(SiS_Pr->SiS_SModeIDTable[(*ModeIdIndex)].St_ModeID == (*ModeNo)) break;
1613 if((*ModeNo) == 0x07) {
1617 if((*ModeNo) <= 0x03) {
1627 if(SiS_Pr->SiS_EModeIDTable[(*ModeIdIndex)].Ext_ModeID == (*ModeNo)) break;
1640 SiS_GetModePtr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
1644 if(ModeNo <= 0x13) {
1690 SiS_DoLowModeTest(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
1694 if((ModeNo != 0x03) && (ModeNo != 0x10) && (ModeNo != 0x12))
1717 SiS_SetLowModeTest(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
1719 if(SiS_DoLowModeTest(SiS_Pr, ModeNo)) {
1762 SiS_GetColorDepth(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
1770 if(ModeNo == 0xfe) {
1772 } else if(ModeNo <= 0x13) {
1788 SiS_GetOffset(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
1801 colordepth = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex);
1986 SiS_ClearExt1Regs(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
1996 if(ModeNo <= 0x13) {
1997 if(ModeNo == 0x06 || ModeNo >= 0x0e) {
2057 SiS_SetCRT1CRTC(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2063 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
2127 SiS_SetCRT1Offset(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2138 DisplayUnit = SiS_GetOffset(SiS_Pr, ModeNo, ModeIdIndex, RRTI);
2151 if(ModeNo == 0x4a || ModeNo == 0x49) temp--;
2161 SiS_SetCRT1VCLK(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2170 index = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RRTI);
2192 unsigned short mf = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
2286 SiS_SetCRT1FIFO_300(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2293 if(ModeNo > 0x13) {
2330 if(ModeNo > 0x13) temp |= 0x40;
2387 SiS_SetCRT1FIFO_630(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2415 if(ModeNo > 0x13) {
2494 if( (ModeNo <= 0x13) &&
2536 SiS_SetCRT1FIFO_310(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
2543 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
2547 if(ModeNo > 0x13) {
2571 SiS_SetVCLKState(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2576 if(ModeNo > 0x13) {
2580 index = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
2636 if(ModeNo > 0x13) data &= 0xfc;
2645 SiS_SetCRT1ModeRegs(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
2654 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);
2659 resindex = SiS_GetResInfo(SiS_Pr, ModeNo, ModeIdIndex);
2660 if(ModeNo > 0x13) {
2669 if(ModeNo > 0x13) {
2703 if(ModeNo > 0x13) {
2721 data2 = SiS_GetOffset(SiS_Pr, ModeNo, ModeIdIndex, RRTI) >> 1;
2723 data3 = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex) >> 1;
2748 data2 = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RRTI);
2752 data3 = SiS_GetColorDepth(SiS_Pr, ModeNo, ModeIdIndex) >> 1;
2798 SiS_SetVCLKState(SiS_Pr, ModeNo, RRTI, ModeIdIndex);
2847 SiS_LoadDAC(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
2854 data = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex) & DACInfoFlag;
2923 SiS_SetCRT1Group(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
2927 SiS_Pr->SiS_CRT1Mode = ModeNo;
2929 StandTableIndex = SiS_GetModePtr(SiS_Pr, ModeNo, ModeIdIndex);
2944 SiS_ClearExt1Regs(SiS_Pr, ModeNo);
2965 RefreshRateTableIndex = SiS_GetRatePtr(SiS_Pr, ModeNo, ModeIdIndex);
2973 SiS_SetCRT1CRTC(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
2974 SiS_SetCRT1Offset(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
2975 SiS_SetCRT1VCLK(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
2981 SiS_SetCRT1FIFO_300(SiS_Pr, ModeNo, RefreshRateTableIndex);
2986 SiS_SetCRT1FIFO_630(SiS_Pr, ModeNo, RefreshRateTableIndex);
2993 switch(ModeNo) {
3006 SiS_SetCRT1FIFO_310(SiS_Pr, ModeNo, ModeIdIndex);
3011 SiS_SetCRT1ModeRegs(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
3019 SiS_LoadDAC(SiS_Pr, ModeNo, ModeIdIndex);
3023 SiS_ClearBuffer(SiS_Pr, ModeNo);
3216 SiSSetMode(struct SiS_Private *SiS_Pr, ScrnInfoPtr pScrn, unsigned short ModeNo, bool dosetpitch)
3219 SiSSetMode(struct SiS_Private *SiS_Pr, unsigned short ModeNo)
3235 ModeNo = 0xfe;
3238 if(!(ModeNo & 0x80)) SiS_Pr->SiS_flag_clearbuffer = 1;
3240 ModeNo &= 0x7f;
3244 RealModeNo = ModeNo;
3245 if(ModeNo == 0x5b) ModeNo = 0x56;
3269 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return false;
3290 SiS_GetVBInfo(SiS_Pr, ModeNo, ModeIdIndex, (SiS_Pr->UseCustomMode) ? 0 : 1);
3292 SiS_SetTVMode(SiS_Pr, ModeNo, ModeIdIndex);
3293 SiS_GetLCDResInfo(SiS_Pr, ModeNo, ModeIdIndex);
3294 SiS_SetLowModeTest(SiS_Pr, ModeNo);
3298 if(!SiS_CheckMemorySize(SiS_Pr, ModeNo, ModeIdIndex)) {
3316 SiS_SetCRT1Group(SiS_Pr, ModeNo, ModeIdIndex);
3360 if((ModeNo == 0x03) || (ModeNo == 0x10)) {
3379 if((ModeNo > 0x13) && (dosetpitch)) {
3383 /* Backup/Set ModeNo in BIOS scratch area */
3384 SiS_GetSetModeID(pScrn, ModeNo);
3411 unsigned short ModeNo = 0;
3426 ModeNo = SiS_GetModeNumber(pScrn, mode, pSiS->VBFlags);
3427 if(!ModeNo) return false;
3429 xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 3, "Setting standard mode 0x%x\n", ModeNo);
3433 return(SiSSetMode(SiS_Pr, pScrn, ModeNo, true));
3451 unsigned short ModeNo = 0;
3463 ModeNo = 0xfe;
3467 ModeNo = SiS_GetModeNumber(pScrn, mode, pSiS->VBFlags);
3468 if(!ModeNo) return false;
3491 pSiSEnt->CRT2ModeNo = ModeNo;
3516 "Setting standard mode 0x%x on CRT2\n", ModeNo);
3523 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return false;
3544 SiS_GetVBInfo(SiS_Pr, ModeNo, ModeIdIndex, 1);
3547 SiS_GetVBInfo(SiS_Pr, ModeNo, ModeIdIndex, 0);
3550 SiS_SetTVMode(SiS_Pr, ModeNo, ModeIdIndex);
3551 SiS_GetLCDResInfo(SiS_Pr, ModeNo, ModeIdIndex);
3552 SiS_SetLowModeTest(SiS_Pr, ModeNo);
3561 SiS_SetCRT2Group(SiS_Pr, ModeNo);
3617 unsigned short ModeIdIndex, ModeNo = 0;
3637 ModeNo = 0xfe;
3641 ModeNo = SiS_GetModeNumber(pScrn, mode, 0); /* don't give VBFlags */
3642 if(!ModeNo) return false;
3645 "Setting standard mode 0x%x on CRT1\n", ModeNo);
3667 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return false;
3686 SiS_GetVBInfo(SiS_Pr, ModeNo, ModeIdIndex, 0);
3688 SiS_SetTVMode(SiS_Pr, ModeNo, ModeIdIndex);
3689 SiS_GetLCDResInfo(SiS_Pr, ModeNo, ModeIdIndex);
3690 SiS_SetLowModeTest(SiS_Pr, ModeNo);
3695 SiS_SetCRT1Group(SiS_Pr, ModeNo, ModeIdIndex);
3697 SiS_SetCRT2Group(SiS_Pr, ModeNo);
3711 pSiSEnt->CRT1ModeNo = ModeNo;
3781 /* Backup/Set ModeNo in BIOS scratch area */
3782 SiS_GetSetModeID(pScrn,ModeNo);
3852 SiS_CalcLCDACRT1Timing(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
3862 modeflag = SiS_GetModeFlag(SiS_Pr, ModeNo, ModeIdIndex);