Lines Matching refs:tempbx

1261    unsigned short tempax, tempbx, temp;  in SiS_GetVBInfo()  local
1274 tempbx = 0; in SiS_GetVBInfo()
1279 tempbx |= temp; in SiS_GetVBInfo()
1282 tempbx |= tempax; in SiS_GetVBInfo()
1306 tempbx |= SetCRT2ToLCDA; in SiS_GetVBInfo()
1311 tempbx &= ~(SetCRT2ToYPbPr525750 | SetCRT2ToHiVision); in SiS_GetVBInfo()
1314 if(temp == 0x60) tempbx |= SetCRT2ToHiVision; in SiS_GetVBInfo()
1316 tempbx |= SetCRT2ToYPbPr525750; in SiS_GetVBInfo()
1324 tempbx |= SetCRT2ToLCDA; in SiS_GetVBInfo()
1328 tempbx |= SetCRT2ToCHYPbPr; in SiS_GetVBInfo()
1337 tempbx &= ~(SetCRT2ToRAMDAC); in SiS_GetVBInfo()
1371 if(!(tempbx & temp)) { in SiS_GetVBInfo()
1373 tempbx = 0; in SiS_GetVBInfo()
1387 if(tempbx & SetCRT2ToLCDA) tempbx &= (clearmask | SetCRT2ToLCDA); in SiS_GetVBInfo()
1388 if(tempbx & SetCRT2ToRAMDAC) tempbx &= (clearmask | SetCRT2ToRAMDAC); in SiS_GetVBInfo()
1389 if(tempbx & SetCRT2ToLCD) tempbx &= (clearmask | SetCRT2ToLCD); in SiS_GetVBInfo()
1390 if(tempbx & SetCRT2ToSCART) tempbx &= (clearmask | SetCRT2ToSCART); in SiS_GetVBInfo()
1391 if(tempbx & SetCRT2ToHiVision) tempbx &= (clearmask | SetCRT2ToHiVision); in SiS_GetVBInfo()
1392 if(tempbx & SetCRT2ToYPbPr525750) tempbx &= (clearmask | SetCRT2ToYPbPr525750); in SiS_GetVBInfo()
1397 if(tempbx & SetCRT2ToLCDA) { in SiS_GetVBInfo()
1398 tempbx &= (0xFF00|SwitchCRT2|SetSimuScanMode); in SiS_GetVBInfo()
1402 if(tempbx & SetCRT2ToTV) { in SiS_GetVBInfo()
1403 tempbx &= (0xFF00|SetCRT2ToTV|SwitchCRT2|SetSimuScanMode); in SiS_GetVBInfo()
1406 if(tempbx & SetCRT2ToLCD) { in SiS_GetVBInfo()
1407 tempbx &= (0xFF00|SetCRT2ToLCD|SwitchCRT2|SetSimuScanMode); in SiS_GetVBInfo()
1410 if(tempbx & SetCRT2ToLCDA) { in SiS_GetVBInfo()
1411 tempbx |= SetCRT2ToLCD; in SiS_GetVBInfo()
1418 if(!(tempbx & (SwitchCRT2 | SetSimuScanMode))) { in SiS_GetVBInfo()
1419 tempbx = SetSimuScanMode | DisableCRT2Display; in SiS_GetVBInfo()
1423 if(!(tempbx & DriverMode)) tempbx |= SetSimuScanMode; in SiS_GetVBInfo()
1428 ((SiS_Pr->SiS_VBType & VB_NoLCD) && (tempbx & SetCRT2ToLCD)) ) { in SiS_GetVBInfo()
1433 if(!(tempbx & SetSimuScanMode)) { in SiS_GetVBInfo()
1434 if(tempbx & SwitchCRT2) { in SiS_GetVBInfo()
1437 tempbx |= SetSimuScanMode; in SiS_GetVBInfo()
1442 if(!(tempbx & DriverMode)) { in SiS_GetVBInfo()
1444 tempbx |= SetSimuScanMode; in SiS_GetVBInfo()
1451 if(!(tempbx & DisableCRT2Display)) { in SiS_GetVBInfo()
1452 if(tempbx & DriverMode) { in SiS_GetVBInfo()
1453 if(tempbx & SetSimuScanMode) { in SiS_GetVBInfo()
1456 tempbx |= SetInSlaveMode; in SiS_GetVBInfo()
1461 tempbx |= SetInSlaveMode; in SiS_GetVBInfo()
1467 SiS_Pr->SiS_VBInfo = tempbx; in SiS_GetVBInfo()
2478 unsigned short resinfo, tempbx; in SiS_GetVCLK2Ptr() local
2590 tempbx = 0; in SiS_GetVCLK2Ptr()
2591 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; in SiS_GetVCLK2Ptr()
2593 tempbx += 2; in SiS_GetVCLK2Ptr()
2595 if(SiS_Pr->SiS_CHSOverScan) tempbx = 8; in SiS_GetVCLK2Ptr()
2598 tempbx = 4; in SiS_GetVCLK2Ptr()
2599 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; in SiS_GetVCLK2Ptr()
2601 tempbx = 6; in SiS_GetVCLK2Ptr()
2602 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; in SiS_GetVCLK2Ptr()
2605 switch(tempbx) { in SiS_GetVCLK2Ptr()
3157 unsigned short tempbx=0, tempal=0, resinfo=0; in SiS_GetCRT2Ptr() local
3170 tempbx = SiS_Pr->SiS_LCDResInfo; in SiS_GetCRT2Ptr()
3171 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx += 32; in SiS_GetCRT2Ptr()
3187 tempbx = 100; in SiS_GetCRT2Ptr()
3197 tempbx = 200; in SiS_GetCRT2Ptr()
3198 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx++; in SiS_GetCRT2Ptr()
3208 tempbx = 2; in SiS_GetCRT2Ptr()
3210 tempbx = 13; in SiS_GetCRT2Ptr()
3211 if(!(SiS_Pr->SiS_TVMode & TVSetTVSimuMode)) tempbx = 14; in SiS_GetCRT2Ptr()
3214 if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempbx = 7; in SiS_GetCRT2Ptr()
3215 else if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) tempbx = 6; in SiS_GetCRT2Ptr()
3216 else tempbx = 5; in SiS_GetCRT2Ptr()
3217 if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) tempbx += 5; in SiS_GetCRT2Ptr()
3219 if(SiS_Pr->SiS_TVMode & TVSetPAL) tempbx = 3; in SiS_GetCRT2Ptr()
3220 else tempbx = 4; in SiS_GetCRT2Ptr()
3221 if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) tempbx += 5; in SiS_GetCRT2Ptr()
3262 *CRT2Index = tempbx; in SiS_GetCRT2Ptr()
3267 tempbx = 0; in SiS_GetCRT2Ptr()
3270 tempbx = 90; in SiS_GetCRT2Ptr()
3272 tempbx = 92; in SiS_GetCRT2Ptr()
3274 if(SiS_Pr->SiS_CHSOverScan) tempbx = 99; in SiS_GetCRT2Ptr()
3276 if(SiS_Pr->SiS_TVMode & TVSetPALM) tempbx = 94; in SiS_GetCRT2Ptr()
3277 else if(SiS_Pr->SiS_TVMode & TVSetPALN) tempbx = 96; in SiS_GetCRT2Ptr()
3279 if(tempbx != 99) { in SiS_GetCRT2Ptr()
3280 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx++; in SiS_GetCRT2Ptr()
3286 case Panel_640x480: tempbx = 12; break; in SiS_GetCRT2Ptr()
3287 case Panel_320x240_1: tempbx = 10; break; in SiS_GetCRT2Ptr()
3289 case Panel_320x240_3: tempbx = 14; break; in SiS_GetCRT2Ptr()
3290 case Panel_800x600: tempbx = 16; break; in SiS_GetCRT2Ptr()
3291 case Panel_1024x600: tempbx = 18; break; in SiS_GetCRT2Ptr()
3293 case Panel_1024x768: tempbx = 20; break; in SiS_GetCRT2Ptr()
3294 case Panel_1280x768: tempbx = 22; break; in SiS_GetCRT2Ptr()
3295 case Panel_1280x1024: tempbx = 24; break; in SiS_GetCRT2Ptr()
3296 case Panel_1400x1050: tempbx = 26; break; in SiS_GetCRT2Ptr()
3297 case Panel_1600x1200: tempbx = 28; break; in SiS_GetCRT2Ptr()
3299 case Panel_Barco1366: tempbx = 80; break; in SiS_GetCRT2Ptr()
3310 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; in SiS_GetCRT2Ptr()
3313 if(SiS_Pr->SiS_LCDInfo & LCDPass11) tempbx = 30; in SiS_GetCRT2Ptr()
3317 tempbx = 82; in SiS_GetCRT2Ptr()
3318 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; in SiS_GetCRT2Ptr()
3320 tempbx = 84; in SiS_GetCRT2Ptr()
3321 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; in SiS_GetCRT2Ptr()
3327 (*CRT2Index) = tempbx; in SiS_GetCRT2Ptr()
3336 unsigned short tempax=0, tempbx=0, index, dotclock; in SiS_GetRAMDAC2DATA() local
3348 tempbx = SiS_Pr->SiS_StandTable[index].CRTC[6]; in SiS_GetRAMDAC2DATA()
3361 tempbx = SiS_Pr->SiS_CRT1Table[index].CR[6]; in SiS_GetRAMDAC2DATA()
3365 tempbx |= tempcx; in SiS_GetRAMDAC2DATA()
3372 if(temp1 & 0x01) tempbx |= 0x0100; in SiS_GetRAMDAC2DATA()
3373 if(temp1 & 0x20) tempbx |= 0x0200; in SiS_GetRAMDAC2DATA()
3379 tempbx++; in SiS_GetRAMDAC2DATA()
3382 SiS_Pr->SiS_VGAVT = SiS_Pr->SiS_VT = tempbx; in SiS_GetRAMDAC2DATA()
3528 unsigned short tempax, tempbx, modeflag, romptr=0; in SiS_GetCRT2Data301() local
3799 tempbx = SiS_Pr->PanelYRes; in SiS_GetCRT2Data301()
3805 if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 560; in SiS_GetCRT2Data301()
3806 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 640; in SiS_GetCRT2Data301()
3809 if (SiS_Pr->SiS_VGAVDE == 357) tempbx = 527; in SiS_GetCRT2Data301()
3810 else if(SiS_Pr->SiS_VGAVDE == 420) tempbx = 620; in SiS_GetCRT2Data301()
3811 else if(SiS_Pr->SiS_VGAVDE == 525) tempbx = 775; in SiS_GetCRT2Data301()
3812 else if(SiS_Pr->SiS_VGAVDE == 600) tempbx = 775; in SiS_GetCRT2Data301()
3813 else if(SiS_Pr->SiS_VGAVDE == 350) tempbx = 560; in SiS_GetCRT2Data301()
3814 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 640; in SiS_GetCRT2Data301()
3818 if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 700; in SiS_GetCRT2Data301()
3819 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 800; in SiS_GetCRT2Data301()
3820 else if(SiS_Pr->SiS_VGAVDE == 1024) tempbx = 960; in SiS_GetCRT2Data301()
3823 if (SiS_Pr->SiS_VGAVDE == 360) tempbx = 768; in SiS_GetCRT2Data301()
3824 else if(SiS_Pr->SiS_VGAVDE == 375) tempbx = 800; in SiS_GetCRT2Data301()
3825 else if(SiS_Pr->SiS_VGAVDE == 405) tempbx = 864; in SiS_GetCRT2Data301()
3829 if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 875; in SiS_GetCRT2Data301()
3830 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 1000; in SiS_GetCRT2Data301()
3837 tempbx = SiS_Pr->SiS_VGAVDE; in SiS_GetCRT2Data301()
3841 SiS_Pr->SiS_VDE = tempbx; in SiS_GetCRT2Data301()
5338 unsigned short tempbx, tempcl, CRT1ModeNo, CRT2ModeNo, SelectRate_backup; in SiS_SetCRT2FIFO_300() local
5398 SiS_GetFIFOThresholdIndex300(SiS_Pr, &tempbx, &tempcl); in SiS_SetCRT2FIFO_300()
5399 data = SiS_GetFIFOThresholdB300(tempbx, tempcl); in SiS_SetCRT2FIFO_300()
5532 unsigned int tempax,tempbx; in SiS_GetVGAHT2() local
5534 tempbx = (SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) * SiS_Pr->SiS_RVBHCMAX; in SiS_GetVGAHT2()
5536 tempax = (tempax * SiS_Pr->SiS_HT) / tempbx; in SiS_GetVGAHT2()
5675 unsigned short push2, tempax, tempbx, tempcx, temp; in SiS_SetGroup1_LVDS() local
5764 tempbx = SiS_Pr->SiS_HDE; in SiS_SetGroup1_LVDS()
5767 tempbx = SiS_Pr->PanelXRes; in SiS_SetGroup1_LVDS()
5772 tempbx >>= 1; in SiS_SetGroup1_LVDS()
5776 tempax += tempbx; in SiS_SetGroup1_LVDS()
5784 tempcx = (SiS_Pr->SiS_HT - tempbx) >> 2; in SiS_SetGroup1_LVDS()
5848 tempbx = SiS_Pr->SiS_LCDVDES + tempax; in SiS_SetGroup1_LVDS()
5849 if(tempbx >= SiS_Pr->SiS_VT) tempbx -= SiS_Pr->SiS_VT; in SiS_SetGroup1_LVDS()
5851 push2 = tempbx; in SiS_SetGroup1_LVDS()
5868 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5869 if(issis) tempbx++; in SiS_SetGroup1_LVDS()
5871 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5872 if(SiS_Pr->ChipType < SIS_315H) tempbx++; in SiS_SetGroup1_LVDS()
5873 else if(issis) tempbx++; in SiS_SetGroup1_LVDS()
5876 if(tempbx >= SiS_Pr->SiS_VT) tempbx -= SiS_Pr->SiS_VT; in SiS_SetGroup1_LVDS()
5878 temp = tempbx & 0x00FF; in SiS_SetGroup1_LVDS()
5895 tempcx += tempbx; in SiS_SetGroup1_LVDS()
5899 temp = ((tempbx >> 8) & 0x07) << 3; in SiS_SetGroup1_LVDS()
5906 tempbx = 0x87; in SiS_SetGroup1_LVDS()
5909 tempbx = 0x07; in SiS_SetGroup1_LVDS()
5922 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x1A,tempbx,temp); in SiS_SetGroup1_LVDS()
5924 tempbx = push2; /* BPLVDEE */ in SiS_SetGroup1_LVDS()
5931 tempbx = SiS_Pr->SiS_VGAVDE - 1; in SiS_SetGroup1_LVDS()
5957 temp = ((tempbx >> 8) & 0x07) << 3; in SiS_SetGroup1_LVDS()
5960 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1C,tempbx); in SiS_SetGroup1_LVDS()
6040 tempbx = (unsigned short)(tempeax & 0xFFFF); in SiS_SetGroup1_LVDS()
6043 tempbx = tempvcfact & 0x3f; in SiS_SetGroup1_LVDS()
6044 if(tempbx == 0) tempbx = 64; in SiS_SetGroup1_LVDS()
6045 tempeax /= tempbx; in SiS_SetGroup1_LVDS()
6046 tempbx = (unsigned short)(tempeax & 0xFFFF); in SiS_SetGroup1_LVDS()
6048 if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) tempbx--; in SiS_SetGroup1_LVDS()
6050 if((!SiS_Pr->SiS_IF_DEF_FSTN) && (!SiS_Pr->SiS_IF_DEF_DSTN)) tempbx = 1; in SiS_SetGroup1_LVDS()
6051 else if(SiS_Pr->SiS_LCDResInfo != Panel_640x480) tempbx = 1; in SiS_SetGroup1_LVDS()
6054 temp = ((tempbx >> 8) & 0x07) << 3; in SiS_SetGroup1_LVDS()
6057 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x21,tempbx); in SiS_SetGroup1_LVDS()
6233 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; in SiS_SetGroup1() local
6287 tempbx = pushbx + tempcx; in SiS_SetGroup1()
6289 tempcx += tempbx; in SiS_SetGroup1()
6317 tempbx = SiS_Pr->SiS_VGAHDE; in SiS_SetGroup1()
6318 tempcx -= tempbx; in SiS_SetGroup1()
6321 tempbx >>= 1; in SiS_SetGroup1()
6324 tempbx += 16; in SiS_SetGroup1()
6326 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0A,tempbx); /* CRT2 Horizontal Display Enable End */ in SiS_SetGroup1()
6328 pushbx = tempbx; in SiS_SetGroup1()
6330 tempbx += tempcx; in SiS_SetGroup1()
6331 tempcx += tempbx; in SiS_SetGroup1()
6355 tempbx = SiS_Pr->CHSyncStart + bridgeadd; in SiS_SetGroup1()
6376 tempbx = ((cr4 | ((cr14 & 0xC0) << 2)) - 3) << 3; /* (VGAHRS-3)*8 */ in SiS_SetGroup1()
6379 tempcx |= (tempbx & 0xFF00); in SiS_SetGroup1()
6380 tempbx += bridgeadd; in SiS_SetGroup1()
6389 tempbx = 1040; in SiS_SetGroup1()
6395 … SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0B,tempbx); /* CRT2 Horizontal Retrace Start */ in SiS_SetGroup1()
6399 temp = ((tempbx >> 8) & 0x0F) | ((pushbx >> 4) & 0xF0); in SiS_SetGroup1()
6424 tempbx = SiS_Pr->SiS_VGAVDE - 1; in SiS_SetGroup1()
6425 …SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0F,tempbx); /* CRT2 Vertical Display Enable End */ in SiS_SetGroup1()
6427 temp = ((tempbx >> 5) & 0x38) | ((tempcx >> 8) & 0x07); in SiS_SetGroup1()
6431 tempbx++; in SiS_SetGroup1()
6432 tempax = tempbx; in SiS_SetGroup1()
6436 tempbx += tempcx; in SiS_SetGroup1()
6439 tempcx += tempbx; in SiS_SetGroup1()
6442tempbx = (SiS_Pr->SiS_VGAVT + SiS_Pr->SiS_VGAVDE) >> 1; /* BTVGA2VRS 0x10,0x1… in SiS_SetGroup1()
6443 …tempcx = ((SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 … in SiS_SetGroup1()
6448 tempbx = SiS_Pr->CVSyncStart; in SiS_SetGroup1()
6464 tempbx = cr8; in SiS_SetGroup1()
6465 if(cr7 & 0x04) tempbx |= 0x0100; in SiS_SetGroup1()
6466 if(cr7 & 0x80) tempbx |= 0x0200; in SiS_SetGroup1()
6467 if(cr13 & 0x08) tempbx |= 0x0400; in SiS_SetGroup1()
6470 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x10,tempbx); /* CRT2 Vertical Retrace Start */ in SiS_SetGroup1()
6472 temp = ((tempbx >> 4) & 0x70) | (tempcx & 0x0F); in SiS_SetGroup1()
6908 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; in SiS_SetGroup2() local
7069 tempbx = TimingPoint[j] | (TimingPoint[j+1] << 8); in SiS_SetGroup2()
7070 tempbx += tempcx; in SiS_SetGroup2()
7071 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x24,tempbx); in SiS_SetGroup2()
7072 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0x0F,((tempbx >> 4) & 0xf0)); in SiS_SetGroup2()
7074 tempbx += 8; in SiS_SetGroup2()
7076 tempbx -= 4; in SiS_SetGroup2()
7077 tempcx = tempbx; in SiS_SetGroup2()
7079 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x29,0x0F,((tempbx << 4) & 0xf0)); in SiS_SetGroup2()
7102 tempbx = SiS_Pr->SiS_VDE; in SiS_SetGroup2()
7104 if(SiS_Pr->SiS_VGAVDE == 360) tempbx = 746; in SiS_SetGroup2()
7105 if(SiS_Pr->SiS_VGAVDE == 375) tempbx = 746; in SiS_SetGroup2()
7106 if(SiS_Pr->SiS_VGAVDE == 405) tempbx = 853; in SiS_SetGroup2()
7109 tempbx >>= 1; in SiS_SetGroup2()
7112 if((ModeNo <= 0x13) && (crt2crtc == 1)) tempbx++; in SiS_SetGroup2()
7115 if(crt2crtc == 4) tempbx++; in SiS_SetGroup2()
7121 if((ModeNo == 0x2f) || (ModeNo == 0x5d) || (ModeNo == 0x5e)) tempbx++; in SiS_SetGroup2()
7124 if(ModeNo == 0x03) tempbx++; /* From 1.10.7w - doesn't make sense */ in SiS_SetGroup2()
7128 tempbx -= 2; in SiS_SetGroup2()
7129 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2F,tempbx); in SiS_SetGroup2()
7132 temp |= ((tempbx >> 2) & 0xC0); in SiS_SetGroup2()
7140 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x10,0xdf,((tempbx & 0x0400) >> 5)); in SiS_SetGroup2()
7144 tempbx = SiS_Pr->SiS_VDE; in SiS_SetGroup2()
7147 tempbx >>= 1; in SiS_SetGroup2()
7149 tempbx -= 3; in SiS_SetGroup2()
7150 temp = ((tempbx >> 3) & 0x60) | 0x18; in SiS_SetGroup2()
7152 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x47,tempbx); in SiS_SetGroup2()
7155 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x10,0xbf,((tempbx & 0x0400) >> 4)); in SiS_SetGroup2()
7159 tempbx = 0; in SiS_SetGroup2()
7163 tempbx |= 0x20; in SiS_SetGroup2()
7174 tempbx &= ~0x20; in SiS_SetGroup2()
7182 if(!(tempbx & 0x20)) { in SiS_SetGroup2()
7188 tempbx |= ((tempax >> 8) & 0x1F); in SiS_SetGroup2()
7193 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x45,0xC0,tempbx); in SiS_SetGroup2()
7198 if(tempbx & 0x20) tempcx = 0; in SiS_SetGroup2()
7202 tempbx = 0x0382; in SiS_SetGroup2()
7205 tempbx = 0x0369; in SiS_SetGroup2()
7208 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4B,tempbx); in SiS_SetGroup2()
7211 temp |= ((tempbx >> 8) & 0x03); in SiS_SetGroup2()
7250 tempbx = SiS_Pr->SiS_HDE; in SiS_SetGroup2()
7251 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; in SiS_SetGroup2()
7252 tempbx--; /* RHACTE = HDE - 1 */ in SiS_SetGroup2()
7253 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2C,tempbx); in SiS_SetGroup2()
7254 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2B,0x0F,((tempbx >> 4) & 0xf0)); in SiS_SetGroup2()
7269 tempbx = SiS_Pr->SiS_VDE - 1; in SiS_SetGroup2()
7270 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x03,tempbx); in SiS_SetGroup2()
7271 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x0C,0xF8,((tempbx >> 8) & 0x07)); in SiS_SetGroup2()
7325 tempbx = SiS_Pr->SiS_VDE - 1; in SiS_SetGroup2()
7328 tempbx = SiS_Pr->SiS_VDE + ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2); in SiS_SetGroup2()
7332 tempbx = SiS_Pr->PanelYRes; in SiS_SetGroup2()
7346 tempbx -= tempax; /* lcdvdee */ in SiS_SetGroup2()
7352 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x06,tempbx); /* lcdvdee */ in SiS_SetGroup2()
7354 temp = (tempbx >> 5) & 0x38; in SiS_SetGroup2()
7369 tempbx = ((SiS_Pr->SiS_VT + SiS_Pr->SiS_VDE) >> 1) - 1; in SiS_SetGroup2()
7376 tempbx -= (tempax - 1); in SiS_SetGroup2()
7378 tempbx -= 10; in SiS_SetGroup2()
7379 if(tempbx <= SiS_Pr->SiS_VDE) tempbx = SiS_Pr->SiS_VDE + 1; in SiS_SetGroup2()
7384 tempbx++; in SiS_SetGroup2()
7387 tempbx = 770; in SiS_SetGroup2()
7396 tempbx = SiS_Pr->CVSyncStart; in SiS_SetGroup2()
7399 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,tempbx); /* lcdvrs */ in SiS_SetGroup2()
7401 temp = (tempbx >> 4) & 0xF0; in SiS_SetGroup2()
7402 tempbx += (tempcx + 1); in SiS_SetGroup2()
7403 temp |= (tempbx & 0x0F); in SiS_SetGroup2()
7435 tempax = tempbx = SiS_Pr->SiS_HDE; in SiS_SetGroup2()
7439 tempbx = SiS_Pr->PanelXRes - ((SiS_Pr->PanelXRes - SiS_Pr->SiS_HDE) / 2); in SiS_SetGroup2()
7444 tempbx >>= 1; in SiS_SetGroup2()
7448 tempbx += bridgeoffset; in SiS_SetGroup2()
7450 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x23,tempbx); /* lcdhdee */ in SiS_SetGroup2()
7451 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0xF0,((tempbx >> 8) & 0x0f)); in SiS_SetGroup2()
7455 tempbx += tempcx; in SiS_SetGroup2()
7456 push2 = tempbx; in SiS_SetGroup2()
7461 if(SiS_Pr->SiS_HDE == 1280) tempbx = (tempbx & 0xff00) | 0x47; in SiS_SetGroup2()
7467 tempbx = SiS_Pr->CHSyncStart; in SiS_SetGroup2()
7468 if(modeflag & HalfDCLK) tempbx <<= 1; in SiS_SetGroup2()
7469 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; in SiS_SetGroup2()
7470 tempbx += bridgeoffset; in SiS_SetGroup2()
7473 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1C,tempbx); /* lcdhrs */ in SiS_SetGroup2()
7474 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0x0F,((tempbx >> 4) & 0xf0)); in SiS_SetGroup2()
7476 tempbx = push2; in SiS_SetGroup2()
7482 tempbx += tempcx; in SiS_SetGroup2()
7485 tempbx = SiS_Pr->CHSyncEnd; in SiS_SetGroup2()
7486 if(modeflag & HalfDCLK) tempbx <<= 1; in SiS_SetGroup2()
7487 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; in SiS_SetGroup2()
7488 tempbx += bridgeoffset; in SiS_SetGroup2()
7491 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x21,tempbx); /* lcdhre */ in SiS_SetGroup2()
7723 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo; in SiS_SetGroup4() local
7760 tempbx = SiS_Pr->SiS_RVBHCMAX; in SiS_SetGroup4()
7761 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x14,tempbx); in SiS_SetGroup4()
7763 temp = (tempbx >> 1) & 0x80; in SiS_SetGroup4()
7777 tempbx = SiS_Pr->SiS_VGAHDE; in SiS_SetGroup4()
7778 if(modeflag & HalfDCLK) tempbx >>= 1; in SiS_SetGroup4()
7779 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; in SiS_SetGroup4()
7783 if(tempbx > 800) temp = 0x60; in SiS_SetGroup4()
7786 if(tempbx > 1024) temp = 0xC0; in SiS_SetGroup4()
7787 else if(tempbx >= 960) temp = 0xA0; in SiS_SetGroup4()
7790 if(tempbx >= 1280) temp = 0x40; in SiS_SetGroup4()
7791 else if(tempbx >= 1024) temp = 0x20; in SiS_SetGroup4()
7794 if(tempbx >= 1024) temp = 0xA0; in SiS_SetGroup4()
7843 tempbx = 0; in SiS_SetGroup4()
7844 if(SiS_Pr->SiS_TVMode & (TVSetHiVision | TVSetYPbPr750p)) tempbx = 0x08; in SiS_SetGroup4()
7852 tempbx = 0x08; in SiS_SetGroup4()
7872 temp = ((tempax >> 4) & 0x30) | tempbx; in SiS_SetGroup4()
7876 temp = 0x0036; tempbx = 0xD0; in SiS_SetGroup4()
7878 temp = 0x0026; tempbx = 0xC0; /* See En/DisableBridge() */ in SiS_SetGroup4()
7890 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x1F,tempbx,temp); in SiS_SetGroup4()
7892 tempbx = SiS_Pr->SiS_HT >> 1; in SiS_SetGroup4()
7893 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; in SiS_SetGroup4()
7894 tempbx -= 2; in SiS_SetGroup4()
7895 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x22,tempbx); in SiS_SetGroup4()
7896 temp = (tempbx >> 5) & 0x38; in SiS_SetGroup4()
9202 SiS_GetCH700x(struct SiS_Private *SiS_Pr, unsigned short tempbx) in SiS_GetCH700x() argument
9217 SiS_Pr->SiS_DDC_ReadAddr = tempbx; in SiS_GetCH700x()
9235 SiS_GetCH701x(struct SiS_Private *SiS_Pr, unsigned short tempbx) in SiS_GetCH701x() argument
9243 SiS_Pr->SiS_DDC_ReadAddr = tempbx; in SiS_GetCH701x()
9252 SiS_GetCH70xx(struct SiS_Private *SiS_Pr, unsigned short tempbx) in SiS_GetCH70xx() argument
9255 return SiS_GetCH700x(SiS_Pr, tempbx); in SiS_GetCH70xx()
9257 return SiS_GetCH701x(SiS_Pr, tempbx); in SiS_GetCH70xx()
10753 unsigned short tempcl,tempch,tempbl,tempbh,tempbx,tempax,temp; in SiS_FinalizeLCD() local
10874 tempbx = 806; /* 0x326 */ /* other older BIOSes */ in SiS_FinalizeLCD()
10875 tempbx--; in SiS_FinalizeLCD()
10876 temp = tempbx & 0xff; in SiS_FinalizeLCD()
10878 temp = (tempbx >> 8) & 0x03; in SiS_FinalizeLCD()
10924 tempbx = (tempbh << 8) | tempbl; in SiS_FinalizeLCD()
10928 tempbx = 770; in SiS_FinalizeLCD()
10930 if(tempbx > 770) tempbx = 770; in SiS_FinalizeLCD()
10935 tempbx -= tempax; in SiS_FinalizeLCD()
10940 temp = tempbx & 0xff; in SiS_FinalizeLCD()
10942 temp = ((tempbx & 0xff00) >> 4) | tempcl; in SiS_FinalizeLCD()
11002 unsigned short tempbx=0,romptr=0; in GetOEMLCDPtr() local
11014 tempbx = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) & 0x0f; in GetOEMLCDPtr()
11015 if(SiS_Pr->SiS_VBType & VB_SIS301) tempbx &= 0x07; in GetOEMLCDPtr()
11016 tempbx -= 2; in GetOEMLCDPtr()
11017 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx += 4; in GetOEMLCDPtr()
11019 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx += 3; in GetOEMLCDPtr()
11023 tempbx = SiS_Pr->SiS_LCDTypeInfo; in GetOEMLCDPtr()
11026 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
11027 else tempbx = customtable300[SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
11028 if(tempbx == 0xFF) return 0xFFFF; in GetOEMLCDPtr()
11030 tempbx <<= 1; in GetOEMLCDPtr()
11031 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx++; in GetOEMLCDPtr()
11040 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
11041 else tempbx = 0xff; in GetOEMLCDPtr()
11043 tempbx = customtable630[SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
11045 if(tempbx == 0xFF) return 0xFFFF; in GetOEMLCDPtr()
11046 tempbx <<= 2; in GetOEMLCDPtr()
11047 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempbx += 2; in GetOEMLCDPtr()
11048 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; in GetOEMLCDPtr()
11049 return tempbx; in GetOEMLCDPtr()
11051 tempbx = SiS_Pr->SiS_LCDTypeInfo << 2; in GetOEMLCDPtr()
11052 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempbx += 2; in GetOEMLCDPtr()
11053 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; in GetOEMLCDPtr()
11057 return tempbx; in GetOEMLCDPtr()