Lines Matching refs:tempbx
1260 unsigned short tempax, tempbx, temp; in SiS_GetVBInfo() local
1273 tempbx = 0; in SiS_GetVBInfo()
1278 tempbx |= temp; in SiS_GetVBInfo()
1281 tempbx |= tempax; in SiS_GetVBInfo()
1305 tempbx |= SetCRT2ToLCDA; in SiS_GetVBInfo()
1310 tempbx &= ~(SetCRT2ToYPbPr525750 | SetCRT2ToHiVision); in SiS_GetVBInfo()
1313 if(temp == 0x60) tempbx |= SetCRT2ToHiVision; in SiS_GetVBInfo()
1315 tempbx |= SetCRT2ToYPbPr525750; in SiS_GetVBInfo()
1323 tempbx |= SetCRT2ToLCDA; in SiS_GetVBInfo()
1327 tempbx |= SetCRT2ToCHYPbPr; in SiS_GetVBInfo()
1336 tempbx &= ~(SetCRT2ToRAMDAC); in SiS_GetVBInfo()
1370 if(!(tempbx & temp)) { in SiS_GetVBInfo()
1372 tempbx = 0; in SiS_GetVBInfo()
1386 if(tempbx & SetCRT2ToLCDA) tempbx &= (clearmask | SetCRT2ToLCDA); in SiS_GetVBInfo()
1387 if(tempbx & SetCRT2ToRAMDAC) tempbx &= (clearmask | SetCRT2ToRAMDAC); in SiS_GetVBInfo()
1388 if(tempbx & SetCRT2ToLCD) tempbx &= (clearmask | SetCRT2ToLCD); in SiS_GetVBInfo()
1389 if(tempbx & SetCRT2ToSCART) tempbx &= (clearmask | SetCRT2ToSCART); in SiS_GetVBInfo()
1390 if(tempbx & SetCRT2ToHiVision) tempbx &= (clearmask | SetCRT2ToHiVision); in SiS_GetVBInfo()
1391 if(tempbx & SetCRT2ToYPbPr525750) tempbx &= (clearmask | SetCRT2ToYPbPr525750); in SiS_GetVBInfo()
1396 if(tempbx & SetCRT2ToLCDA) { in SiS_GetVBInfo()
1397 tempbx &= (0xFF00|SwitchCRT2|SetSimuScanMode); in SiS_GetVBInfo()
1401 if(tempbx & SetCRT2ToTV) { in SiS_GetVBInfo()
1402 tempbx &= (0xFF00|SetCRT2ToTV|SwitchCRT2|SetSimuScanMode); in SiS_GetVBInfo()
1405 if(tempbx & SetCRT2ToLCD) { in SiS_GetVBInfo()
1406 tempbx &= (0xFF00|SetCRT2ToLCD|SwitchCRT2|SetSimuScanMode); in SiS_GetVBInfo()
1409 if(tempbx & SetCRT2ToLCDA) { in SiS_GetVBInfo()
1410 tempbx |= SetCRT2ToLCD; in SiS_GetVBInfo()
1417 if(!(tempbx & (SwitchCRT2 | SetSimuScanMode))) { in SiS_GetVBInfo()
1418 tempbx = SetSimuScanMode | DisableCRT2Display; in SiS_GetVBInfo()
1422 if(!(tempbx & DriverMode)) tempbx |= SetSimuScanMode; in SiS_GetVBInfo()
1427 ((SiS_Pr->SiS_VBType & VB_NoLCD) && (tempbx & SetCRT2ToLCD)) ) { in SiS_GetVBInfo()
1432 if(!(tempbx & SetSimuScanMode)) { in SiS_GetVBInfo()
1433 if(tempbx & SwitchCRT2) { in SiS_GetVBInfo()
1436 tempbx |= SetSimuScanMode; in SiS_GetVBInfo()
1441 if(!(tempbx & DriverMode)) { in SiS_GetVBInfo()
1443 tempbx |= SetSimuScanMode; in SiS_GetVBInfo()
1450 if(!(tempbx & DisableCRT2Display)) { in SiS_GetVBInfo()
1451 if(tempbx & DriverMode) { in SiS_GetVBInfo()
1452 if(tempbx & SetSimuScanMode) { in SiS_GetVBInfo()
1455 tempbx |= SetInSlaveMode; in SiS_GetVBInfo()
1460 tempbx |= SetInSlaveMode; in SiS_GetVBInfo()
1466 SiS_Pr->SiS_VBInfo = tempbx; in SiS_GetVBInfo()
2477 unsigned short resinfo, tempbx; in SiS_GetVCLK2Ptr() local
2589 tempbx = 0; in SiS_GetVCLK2Ptr()
2590 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; in SiS_GetVCLK2Ptr()
2592 tempbx += 2; in SiS_GetVCLK2Ptr()
2594 if(SiS_Pr->SiS_CHSOverScan) tempbx = 8; in SiS_GetVCLK2Ptr()
2597 tempbx = 4; in SiS_GetVCLK2Ptr()
2598 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; in SiS_GetVCLK2Ptr()
2600 tempbx = 6; in SiS_GetVCLK2Ptr()
2601 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; in SiS_GetVCLK2Ptr()
2604 switch(tempbx) { in SiS_GetVCLK2Ptr()
3156 unsigned short tempbx=0, tempal=0, resinfo=0; in SiS_GetCRT2Ptr() local
3169 tempbx = SiS_Pr->SiS_LCDResInfo; in SiS_GetCRT2Ptr()
3170 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx += 32; in SiS_GetCRT2Ptr()
3186 tempbx = 100; in SiS_GetCRT2Ptr()
3196 tempbx = 200; in SiS_GetCRT2Ptr()
3197 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx++; in SiS_GetCRT2Ptr()
3207 tempbx = 2; in SiS_GetCRT2Ptr()
3209 tempbx = 13; in SiS_GetCRT2Ptr()
3210 if(!(SiS_Pr->SiS_TVMode & TVSetTVSimuMode)) tempbx = 14; in SiS_GetCRT2Ptr()
3213 if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempbx = 7; in SiS_GetCRT2Ptr()
3214 else if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) tempbx = 6; in SiS_GetCRT2Ptr()
3215 else tempbx = 5; in SiS_GetCRT2Ptr()
3216 if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) tempbx += 5; in SiS_GetCRT2Ptr()
3218 if(SiS_Pr->SiS_TVMode & TVSetPAL) tempbx = 3; in SiS_GetCRT2Ptr()
3219 else tempbx = 4; in SiS_GetCRT2Ptr()
3220 if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) tempbx += 5; in SiS_GetCRT2Ptr()
3261 *CRT2Index = tempbx; in SiS_GetCRT2Ptr()
3266 tempbx = 0; in SiS_GetCRT2Ptr()
3269 tempbx = 90; in SiS_GetCRT2Ptr()
3271 tempbx = 92; in SiS_GetCRT2Ptr()
3273 if(SiS_Pr->SiS_CHSOverScan) tempbx = 99; in SiS_GetCRT2Ptr()
3275 if(SiS_Pr->SiS_TVMode & TVSetPALM) tempbx = 94; in SiS_GetCRT2Ptr()
3276 else if(SiS_Pr->SiS_TVMode & TVSetPALN) tempbx = 96; in SiS_GetCRT2Ptr()
3278 if(tempbx != 99) { in SiS_GetCRT2Ptr()
3279 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx++; in SiS_GetCRT2Ptr()
3285 case Panel_640x480: tempbx = 12; break; in SiS_GetCRT2Ptr()
3286 case Panel_320x240_1: tempbx = 10; break; in SiS_GetCRT2Ptr()
3288 case Panel_320x240_3: tempbx = 14; break; in SiS_GetCRT2Ptr()
3289 case Panel_800x600: tempbx = 16; break; in SiS_GetCRT2Ptr()
3290 case Panel_1024x600: tempbx = 18; break; in SiS_GetCRT2Ptr()
3292 case Panel_1024x768: tempbx = 20; break; in SiS_GetCRT2Ptr()
3293 case Panel_1280x768: tempbx = 22; break; in SiS_GetCRT2Ptr()
3294 case Panel_1280x1024: tempbx = 24; break; in SiS_GetCRT2Ptr()
3295 case Panel_1400x1050: tempbx = 26; break; in SiS_GetCRT2Ptr()
3296 case Panel_1600x1200: tempbx = 28; break; in SiS_GetCRT2Ptr()
3298 case Panel_Barco1366: tempbx = 80; break; in SiS_GetCRT2Ptr()
3309 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; in SiS_GetCRT2Ptr()
3312 if(SiS_Pr->SiS_LCDInfo & LCDPass11) tempbx = 30; in SiS_GetCRT2Ptr()
3316 tempbx = 82; in SiS_GetCRT2Ptr()
3317 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; in SiS_GetCRT2Ptr()
3319 tempbx = 84; in SiS_GetCRT2Ptr()
3320 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; in SiS_GetCRT2Ptr()
3326 (*CRT2Index) = tempbx; in SiS_GetCRT2Ptr()
3335 unsigned short tempax=0, tempbx=0, index, dotclock; in SiS_GetRAMDAC2DATA() local
3347 tempbx = SiS_Pr->SiS_StandTable[index].CRTC[6]; in SiS_GetRAMDAC2DATA()
3360 tempbx = SiS_Pr->SiS_CRT1Table[index].CR[6]; in SiS_GetRAMDAC2DATA()
3364 tempbx |= tempcx; in SiS_GetRAMDAC2DATA()
3371 if(temp1 & 0x01) tempbx |= 0x0100; in SiS_GetRAMDAC2DATA()
3372 if(temp1 & 0x20) tempbx |= 0x0200; in SiS_GetRAMDAC2DATA()
3378 tempbx++; in SiS_GetRAMDAC2DATA()
3381 SiS_Pr->SiS_VGAVT = SiS_Pr->SiS_VT = tempbx; in SiS_GetRAMDAC2DATA()
3527 unsigned short tempax, tempbx, modeflag, romptr=0; in SiS_GetCRT2Data301() local
3798 tempbx = SiS_Pr->PanelYRes; in SiS_GetCRT2Data301()
3804 if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 560; in SiS_GetCRT2Data301()
3805 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 640; in SiS_GetCRT2Data301()
3808 if (SiS_Pr->SiS_VGAVDE == 357) tempbx = 527; in SiS_GetCRT2Data301()
3809 else if(SiS_Pr->SiS_VGAVDE == 420) tempbx = 620; in SiS_GetCRT2Data301()
3810 else if(SiS_Pr->SiS_VGAVDE == 525) tempbx = 775; in SiS_GetCRT2Data301()
3811 else if(SiS_Pr->SiS_VGAVDE == 600) tempbx = 775; in SiS_GetCRT2Data301()
3812 else if(SiS_Pr->SiS_VGAVDE == 350) tempbx = 560; in SiS_GetCRT2Data301()
3813 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 640; in SiS_GetCRT2Data301()
3817 if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 700; in SiS_GetCRT2Data301()
3818 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 800; in SiS_GetCRT2Data301()
3819 else if(SiS_Pr->SiS_VGAVDE == 1024) tempbx = 960; in SiS_GetCRT2Data301()
3822 if (SiS_Pr->SiS_VGAVDE == 360) tempbx = 768; in SiS_GetCRT2Data301()
3823 else if(SiS_Pr->SiS_VGAVDE == 375) tempbx = 800; in SiS_GetCRT2Data301()
3824 else if(SiS_Pr->SiS_VGAVDE == 405) tempbx = 864; in SiS_GetCRT2Data301()
3828 if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 875; in SiS_GetCRT2Data301()
3829 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 1000; in SiS_GetCRT2Data301()
3836 tempbx = SiS_Pr->SiS_VGAVDE; in SiS_GetCRT2Data301()
3840 SiS_Pr->SiS_VDE = tempbx; in SiS_GetCRT2Data301()
5337 unsigned short tempbx, tempcl, CRT1ModeNo, CRT2ModeNo, SelectRate_backup; in SiS_SetCRT2FIFO_300() local
5397 SiS_GetFIFOThresholdIndex300(SiS_Pr, &tempbx, &tempcl); in SiS_SetCRT2FIFO_300()
5398 data = SiS_GetFIFOThresholdB300(tempbx, tempcl); in SiS_SetCRT2FIFO_300()
5531 unsigned int tempax,tempbx; in SiS_GetVGAHT2() local
5533 tempbx = (SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) * SiS_Pr->SiS_RVBHCMAX; in SiS_GetVGAHT2()
5535 tempax = (tempax * SiS_Pr->SiS_HT) / tempbx; in SiS_GetVGAHT2()
5674 unsigned short push2, tempax, tempbx, tempcx, temp; in SiS_SetGroup1_LVDS() local
5763 tempbx = SiS_Pr->SiS_HDE; in SiS_SetGroup1_LVDS()
5766 tempbx = SiS_Pr->PanelXRes; in SiS_SetGroup1_LVDS()
5771 tempbx >>= 1; in SiS_SetGroup1_LVDS()
5775 tempax += tempbx; in SiS_SetGroup1_LVDS()
5783 tempcx = (SiS_Pr->SiS_HT - tempbx) >> 2; in SiS_SetGroup1_LVDS()
5847 tempbx = SiS_Pr->SiS_LCDVDES + tempax; in SiS_SetGroup1_LVDS()
5848 if(tempbx >= SiS_Pr->SiS_VT) tempbx -= SiS_Pr->SiS_VT; in SiS_SetGroup1_LVDS()
5850 push2 = tempbx; in SiS_SetGroup1_LVDS()
5867 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5868 if(issis) tempbx++; in SiS_SetGroup1_LVDS()
5870 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5871 if(SiS_Pr->ChipType < SIS_315H) tempbx++; in SiS_SetGroup1_LVDS()
5872 else if(issis) tempbx++; in SiS_SetGroup1_LVDS()
5875 if(tempbx >= SiS_Pr->SiS_VT) tempbx -= SiS_Pr->SiS_VT; in SiS_SetGroup1_LVDS()
5877 temp = tempbx & 0x00FF; in SiS_SetGroup1_LVDS()
5894 tempcx += tempbx; in SiS_SetGroup1_LVDS()
5898 temp = ((tempbx >> 8) & 0x07) << 3; in SiS_SetGroup1_LVDS()
5905 tempbx = 0x87; in SiS_SetGroup1_LVDS()
5908 tempbx = 0x07; in SiS_SetGroup1_LVDS()
5921 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x1A,tempbx,temp); in SiS_SetGroup1_LVDS()
5923 tempbx = push2; /* BPLVDEE */ in SiS_SetGroup1_LVDS()
5930 tempbx = SiS_Pr->SiS_VGAVDE - 1; in SiS_SetGroup1_LVDS()
5956 temp = ((tempbx >> 8) & 0x07) << 3; in SiS_SetGroup1_LVDS()
5959 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1C,tempbx); in SiS_SetGroup1_LVDS()
6039 tempbx = (unsigned short)(tempeax & 0xFFFF); in SiS_SetGroup1_LVDS()
6042 tempbx = tempvcfact & 0x3f; in SiS_SetGroup1_LVDS()
6043 if(tempbx == 0) tempbx = 64; in SiS_SetGroup1_LVDS()
6044 tempeax /= tempbx; in SiS_SetGroup1_LVDS()
6045 tempbx = (unsigned short)(tempeax & 0xFFFF); in SiS_SetGroup1_LVDS()
6047 if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) tempbx--; in SiS_SetGroup1_LVDS()
6049 if((!SiS_Pr->SiS_IF_DEF_FSTN) && (!SiS_Pr->SiS_IF_DEF_DSTN)) tempbx = 1; in SiS_SetGroup1_LVDS()
6050 else if(SiS_Pr->SiS_LCDResInfo != Panel_640x480) tempbx = 1; in SiS_SetGroup1_LVDS()
6053 temp = ((tempbx >> 8) & 0x07) << 3; in SiS_SetGroup1_LVDS()
6056 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x21,tempbx); in SiS_SetGroup1_LVDS()
6232 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; in SiS_SetGroup1() local
6286 tempbx = pushbx + tempcx; in SiS_SetGroup1()
6288 tempcx += tempbx; in SiS_SetGroup1()
6316 tempbx = SiS_Pr->SiS_VGAHDE; in SiS_SetGroup1()
6317 tempcx -= tempbx; in SiS_SetGroup1()
6320 tempbx >>= 1; in SiS_SetGroup1()
6323 tempbx += 16; in SiS_SetGroup1()
6325 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0A,tempbx); /* CRT2 Horizontal Display Enable End */ in SiS_SetGroup1()
6327 pushbx = tempbx; in SiS_SetGroup1()
6329 tempbx += tempcx; in SiS_SetGroup1()
6330 tempcx += tempbx; in SiS_SetGroup1()
6354 tempbx = SiS_Pr->CHSyncStart + bridgeadd; in SiS_SetGroup1()
6375 tempbx = ((cr4 | ((cr14 & 0xC0) << 2)) - 3) << 3; /* (VGAHRS-3)*8 */ in SiS_SetGroup1()
6378 tempcx |= (tempbx & 0xFF00); in SiS_SetGroup1()
6379 tempbx += bridgeadd; in SiS_SetGroup1()
6388 tempbx = 1040; in SiS_SetGroup1()
6394 … SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0B,tempbx); /* CRT2 Horizontal Retrace Start */ in SiS_SetGroup1()
6398 temp = ((tempbx >> 8) & 0x0F) | ((pushbx >> 4) & 0xF0); in SiS_SetGroup1()
6423 tempbx = SiS_Pr->SiS_VGAVDE - 1; in SiS_SetGroup1()
6424 …SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0F,tempbx); /* CRT2 Vertical Display Enable End */ in SiS_SetGroup1()
6426 temp = ((tempbx >> 5) & 0x38) | ((tempcx >> 8) & 0x07); in SiS_SetGroup1()
6430 tempbx++; in SiS_SetGroup1()
6431 tempax = tempbx; in SiS_SetGroup1()
6435 tempbx += tempcx; in SiS_SetGroup1()
6438 tempcx += tempbx; in SiS_SetGroup1()
6441 …tempbx = (SiS_Pr->SiS_VGAVT + SiS_Pr->SiS_VGAVDE) >> 1; /* BTVGA2VRS 0x10,0x1… in SiS_SetGroup1()
6442 …tempcx = ((SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 … in SiS_SetGroup1()
6447 tempbx = SiS_Pr->CVSyncStart; in SiS_SetGroup1()
6463 tempbx = cr8; in SiS_SetGroup1()
6464 if(cr7 & 0x04) tempbx |= 0x0100; in SiS_SetGroup1()
6465 if(cr7 & 0x80) tempbx |= 0x0200; in SiS_SetGroup1()
6466 if(cr13 & 0x08) tempbx |= 0x0400; in SiS_SetGroup1()
6469 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x10,tempbx); /* CRT2 Vertical Retrace Start */ in SiS_SetGroup1()
6471 temp = ((tempbx >> 4) & 0x70) | (tempcx & 0x0F); in SiS_SetGroup1()
6907 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; in SiS_SetGroup2() local
7068 tempbx = TimingPoint[j] | (TimingPoint[j+1] << 8); in SiS_SetGroup2()
7069 tempbx += tempcx; in SiS_SetGroup2()
7070 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x24,tempbx); in SiS_SetGroup2()
7071 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0x0F,((tempbx >> 4) & 0xf0)); in SiS_SetGroup2()
7073 tempbx += 8; in SiS_SetGroup2()
7075 tempbx -= 4; in SiS_SetGroup2()
7076 tempcx = tempbx; in SiS_SetGroup2()
7078 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x29,0x0F,((tempbx << 4) & 0xf0)); in SiS_SetGroup2()
7101 tempbx = SiS_Pr->SiS_VDE; in SiS_SetGroup2()
7103 if(SiS_Pr->SiS_VGAVDE == 360) tempbx = 746; in SiS_SetGroup2()
7104 if(SiS_Pr->SiS_VGAVDE == 375) tempbx = 746; in SiS_SetGroup2()
7105 if(SiS_Pr->SiS_VGAVDE == 405) tempbx = 853; in SiS_SetGroup2()
7108 tempbx >>= 1; in SiS_SetGroup2()
7111 if((ModeNo <= 0x13) && (crt2crtc == 1)) tempbx++; in SiS_SetGroup2()
7114 if(crt2crtc == 4) tempbx++; in SiS_SetGroup2()
7120 if((ModeNo == 0x2f) || (ModeNo == 0x5d) || (ModeNo == 0x5e)) tempbx++; in SiS_SetGroup2()
7123 if(ModeNo == 0x03) tempbx++; /* From 1.10.7w - doesn't make sense */ in SiS_SetGroup2()
7127 tempbx -= 2; in SiS_SetGroup2()
7128 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2F,tempbx); in SiS_SetGroup2()
7131 temp |= ((tempbx >> 2) & 0xC0); in SiS_SetGroup2()
7139 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x10,0xdf,((tempbx & 0x0400) >> 5)); in SiS_SetGroup2()
7143 tempbx = SiS_Pr->SiS_VDE; in SiS_SetGroup2()
7146 tempbx >>= 1; in SiS_SetGroup2()
7148 tempbx -= 3; in SiS_SetGroup2()
7149 temp = ((tempbx >> 3) & 0x60) | 0x18; in SiS_SetGroup2()
7151 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x47,tempbx); in SiS_SetGroup2()
7154 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x10,0xbf,((tempbx & 0x0400) >> 4)); in SiS_SetGroup2()
7158 tempbx = 0; in SiS_SetGroup2()
7162 tempbx |= 0x20; in SiS_SetGroup2()
7173 tempbx &= ~0x20; in SiS_SetGroup2()
7181 if(!(tempbx & 0x20)) { in SiS_SetGroup2()
7187 tempbx |= ((tempax >> 8) & 0x1F); in SiS_SetGroup2()
7192 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x45,0xC0,tempbx); in SiS_SetGroup2()
7197 if(tempbx & 0x20) tempcx = 0; in SiS_SetGroup2()
7201 tempbx = 0x0382; in SiS_SetGroup2()
7204 tempbx = 0x0369; in SiS_SetGroup2()
7207 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4B,tempbx); in SiS_SetGroup2()
7210 temp |= ((tempbx >> 8) & 0x03); in SiS_SetGroup2()
7249 tempbx = SiS_Pr->SiS_HDE; in SiS_SetGroup2()
7250 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; in SiS_SetGroup2()
7251 tempbx--; /* RHACTE = HDE - 1 */ in SiS_SetGroup2()
7252 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2C,tempbx); in SiS_SetGroup2()
7253 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2B,0x0F,((tempbx >> 4) & 0xf0)); in SiS_SetGroup2()
7268 tempbx = SiS_Pr->SiS_VDE - 1; in SiS_SetGroup2()
7269 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x03,tempbx); in SiS_SetGroup2()
7270 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x0C,0xF8,((tempbx >> 8) & 0x07)); in SiS_SetGroup2()
7324 tempbx = SiS_Pr->SiS_VDE - 1; in SiS_SetGroup2()
7327 tempbx = SiS_Pr->SiS_VDE + ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2); in SiS_SetGroup2()
7331 tempbx = SiS_Pr->PanelYRes; in SiS_SetGroup2()
7345 tempbx -= tempax; /* lcdvdee */ in SiS_SetGroup2()
7351 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x06,tempbx); /* lcdvdee */ in SiS_SetGroup2()
7353 temp = (tempbx >> 5) & 0x38; in SiS_SetGroup2()
7368 tempbx = ((SiS_Pr->SiS_VT + SiS_Pr->SiS_VDE) >> 1) - 1; in SiS_SetGroup2()
7375 tempbx -= (tempax - 1); in SiS_SetGroup2()
7377 tempbx -= 10; in SiS_SetGroup2()
7378 if(tempbx <= SiS_Pr->SiS_VDE) tempbx = SiS_Pr->SiS_VDE + 1; in SiS_SetGroup2()
7383 tempbx++; in SiS_SetGroup2()
7386 tempbx = 770; in SiS_SetGroup2()
7395 tempbx = SiS_Pr->CVSyncStart; in SiS_SetGroup2()
7398 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,tempbx); /* lcdvrs */ in SiS_SetGroup2()
7400 temp = (tempbx >> 4) & 0xF0; in SiS_SetGroup2()
7401 tempbx += (tempcx + 1); in SiS_SetGroup2()
7402 temp |= (tempbx & 0x0F); in SiS_SetGroup2()
7434 tempax = tempbx = SiS_Pr->SiS_HDE; in SiS_SetGroup2()
7438 tempbx = SiS_Pr->PanelXRes - ((SiS_Pr->PanelXRes - SiS_Pr->SiS_HDE) / 2); in SiS_SetGroup2()
7443 tempbx >>= 1; in SiS_SetGroup2()
7447 tempbx += bridgeoffset; in SiS_SetGroup2()
7449 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x23,tempbx); /* lcdhdee */ in SiS_SetGroup2()
7450 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0xF0,((tempbx >> 8) & 0x0f)); in SiS_SetGroup2()
7454 tempbx += tempcx; in SiS_SetGroup2()
7455 push2 = tempbx; in SiS_SetGroup2()
7460 if(SiS_Pr->SiS_HDE == 1280) tempbx = (tempbx & 0xff00) | 0x47; in SiS_SetGroup2()
7466 tempbx = SiS_Pr->CHSyncStart; in SiS_SetGroup2()
7467 if(modeflag & HalfDCLK) tempbx <<= 1; in SiS_SetGroup2()
7468 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; in SiS_SetGroup2()
7469 tempbx += bridgeoffset; in SiS_SetGroup2()
7472 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1C,tempbx); /* lcdhrs */ in SiS_SetGroup2()
7473 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0x0F,((tempbx >> 4) & 0xf0)); in SiS_SetGroup2()
7475 tempbx = push2; in SiS_SetGroup2()
7481 tempbx += tempcx; in SiS_SetGroup2()
7484 tempbx = SiS_Pr->CHSyncEnd; in SiS_SetGroup2()
7485 if(modeflag & HalfDCLK) tempbx <<= 1; in SiS_SetGroup2()
7486 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; in SiS_SetGroup2()
7487 tempbx += bridgeoffset; in SiS_SetGroup2()
7490 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x21,tempbx); /* lcdhre */ in SiS_SetGroup2()
7722 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo; in SiS_SetGroup4() local
7759 tempbx = SiS_Pr->SiS_RVBHCMAX; in SiS_SetGroup4()
7760 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x14,tempbx); in SiS_SetGroup4()
7762 temp = (tempbx >> 1) & 0x80; in SiS_SetGroup4()
7776 tempbx = SiS_Pr->SiS_VGAHDE; in SiS_SetGroup4()
7777 if(modeflag & HalfDCLK) tempbx >>= 1; in SiS_SetGroup4()
7778 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; in SiS_SetGroup4()
7782 if(tempbx > 800) temp = 0x60; in SiS_SetGroup4()
7785 if(tempbx > 1024) temp = 0xC0; in SiS_SetGroup4()
7786 else if(tempbx >= 960) temp = 0xA0; in SiS_SetGroup4()
7789 if(tempbx >= 1280) temp = 0x40; in SiS_SetGroup4()
7790 else if(tempbx >= 1024) temp = 0x20; in SiS_SetGroup4()
7793 if(tempbx >= 1024) temp = 0xA0; in SiS_SetGroup4()
7842 tempbx = 0; in SiS_SetGroup4()
7843 if(SiS_Pr->SiS_TVMode & (TVSetHiVision | TVSetYPbPr750p)) tempbx = 0x08; in SiS_SetGroup4()
7851 tempbx = 0x08; in SiS_SetGroup4()
7871 temp = ((tempax >> 4) & 0x30) | tempbx; in SiS_SetGroup4()
7875 temp = 0x0036; tempbx = 0xD0; in SiS_SetGroup4()
7877 temp = 0x0026; tempbx = 0xC0; /* See En/DisableBridge() */ in SiS_SetGroup4()
7889 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x1F,tempbx,temp); in SiS_SetGroup4()
7891 tempbx = SiS_Pr->SiS_HT >> 1; in SiS_SetGroup4()
7892 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; in SiS_SetGroup4()
7893 tempbx -= 2; in SiS_SetGroup4()
7894 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x22,tempbx); in SiS_SetGroup4()
7895 temp = (tempbx >> 5) & 0x38; in SiS_SetGroup4()
9201 SiS_GetCH700x(struct SiS_Private *SiS_Pr, unsigned short tempbx) in SiS_GetCH700x() argument
9216 SiS_Pr->SiS_DDC_ReadAddr = tempbx; in SiS_GetCH700x()
9234 SiS_GetCH701x(struct SiS_Private *SiS_Pr, unsigned short tempbx) in SiS_GetCH701x() argument
9242 SiS_Pr->SiS_DDC_ReadAddr = tempbx; in SiS_GetCH701x()
9251 SiS_GetCH70xx(struct SiS_Private *SiS_Pr, unsigned short tempbx) in SiS_GetCH70xx() argument
9254 return SiS_GetCH700x(SiS_Pr, tempbx); in SiS_GetCH70xx()
9256 return SiS_GetCH701x(SiS_Pr, tempbx); in SiS_GetCH70xx()
10752 unsigned short tempcl,tempch,tempbl,tempbh,tempbx,tempax,temp; in SiS_FinalizeLCD() local
10873 tempbx = 806; /* 0x326 */ /* other older BIOSes */ in SiS_FinalizeLCD()
10874 tempbx--; in SiS_FinalizeLCD()
10875 temp = tempbx & 0xff; in SiS_FinalizeLCD()
10877 temp = (tempbx >> 8) & 0x03; in SiS_FinalizeLCD()
10923 tempbx = (tempbh << 8) | tempbl; in SiS_FinalizeLCD()
10927 tempbx = 770; in SiS_FinalizeLCD()
10929 if(tempbx > 770) tempbx = 770; in SiS_FinalizeLCD()
10934 tempbx -= tempax; in SiS_FinalizeLCD()
10939 temp = tempbx & 0xff; in SiS_FinalizeLCD()
10941 temp = ((tempbx & 0xff00) >> 4) | tempcl; in SiS_FinalizeLCD()
11001 unsigned short tempbx=0,romptr=0; in GetOEMLCDPtr() local
11013 tempbx = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) & 0x0f; in GetOEMLCDPtr()
11014 if(SiS_Pr->SiS_VBType & VB_SIS301) tempbx &= 0x07; in GetOEMLCDPtr()
11015 tempbx -= 2; in GetOEMLCDPtr()
11016 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx += 4; in GetOEMLCDPtr()
11018 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx += 3; in GetOEMLCDPtr()
11022 tempbx = SiS_Pr->SiS_LCDTypeInfo; in GetOEMLCDPtr()
11025 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
11026 else tempbx = customtable300[SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
11027 if(tempbx == 0xFF) return 0xFFFF; in GetOEMLCDPtr()
11029 tempbx <<= 1; in GetOEMLCDPtr()
11030 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx++; in GetOEMLCDPtr()
11039 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
11040 else tempbx = 0xff; in GetOEMLCDPtr()
11042 tempbx = customtable630[SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
11044 if(tempbx == 0xFF) return 0xFFFF; in GetOEMLCDPtr()
11045 tempbx <<= 2; in GetOEMLCDPtr()
11046 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempbx += 2; in GetOEMLCDPtr()
11047 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; in GetOEMLCDPtr()
11048 return tempbx; in GetOEMLCDPtr()
11050 tempbx = SiS_Pr->SiS_LCDTypeInfo << 2; in GetOEMLCDPtr()
11051 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempbx += 2; in GetOEMLCDPtr()
11052 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; in GetOEMLCDPtr()
11056 return tempbx; in GetOEMLCDPtr()