Lines Matching refs:tempax

953    unsigned short tempax, tempbx, temp;
972 tempax = SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) << 8;
973 tempax &= (DriverMode | LoadDACFlag | SetNotSimuMode | SetPALTV);
974 tempbx |= tempax;
1064 tempax = DisableCRT2Display;
1109 if(tempax & DisableCRT2Display) {
3127 unsigned short tempax=0, tempbx=0, index, dotclock;
3138 tempax = SiS_Pr->SiS_StandTable[index].CRTC[0];
3149 tempax = SiS_Pr->SiS_CRT1Table[index].CR[0];
3150 tempax |= (SiS_Pr->SiS_CRT1Table[index].CR[14] << 8);
3151 tempax &= 0x03FF;
3166 tempax += 5;
3167 tempax *= dotclock;
3168 if(modeflag & HalfDCLK) tempax <<= 1;
3172 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax;
3319 unsigned short tempax, tempbx, modeflag, romptr=0;
3371 tempax = SiS_Pr->CHTotal;
3372 if(modeflag & HalfDCLK) tempax <<= 1;
3373 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax;
3419 tempax = ((TVPtr+ResIndex)->RVBHRS2 >> 12) & 0x07;
3420 if((TVPtr+ResIndex)->RVBHRS2 & 0x8000) SiS_Pr->SiS_RVBHRS2 -= tempax;
3421 else SiS_Pr->SiS_RVBHRS2 += tempax;
3502 tempax = SiS_Pr->CHTotal;
3503 if(modeflag & HalfDCLK) tempax <<= 1;
3504 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax;
3531 tempax = (ROMAddr[romptr+9] >> 4) & 0x07;
3532 if(ROMAddr[romptr+9] & 0x80) SiS_Pr->SiS_RVBHRS2 -= tempax;
3533 else SiS_Pr->SiS_RVBHRS2 += tempax;
3603 tempax = SiS_Pr->PanelXRes;
3641 tempax = SiS_Pr->SiS_VGAHDE;
3645 SiS_Pr->SiS_HDE = tempax;
5349 unsigned int tempax,tempbx;
5352 tempax = (SiS_Pr->SiS_VT - SiS_Pr->SiS_VDE) * SiS_Pr->SiS_RVBHCFACT;
5353 tempax = (tempax * SiS_Pr->SiS_HT) / tempbx;
5354 return (unsigned short)tempax;
5513 unsigned short push2, tempax, tempbx, tempcx, temp;
5593 tempax = SiS_Pr->SiS_LCDHDES;
5599 tempax -= 8;
5605 temp = (tempax & 0x0007);
5607 temp = (tempax >> 3) & 0x00FF;
5622 tempax += tempbx;
5623 if(tempax >= SiS_Pr->SiS_HT) tempax -= SiS_Pr->SiS_HT;
5625 temp = tempax;
5638 tempcx += tempax;
5687 tempax = SiS_Pr->SiS_VGAVDE;
5690 tempax = SiS_Pr->PanelYRes;
5694 tempbx = SiS_Pr->SiS_LCDVDES + tempax;
5977 tempax = SiS_Pr->SiS_HDE; /* Blps = lcdhdee(lcdhdes+HDE) + 64 */
5980 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1;
5981 tempax += 64;
5982 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x38,tempax & 0xff);
5983 temp = (tempax >> 8) << 3;
5985 tempax += 32; /* Blpe = lBlps+32 */
5986 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x39,tempax & 0xff);
5990 tempax = SiS_Pr->SiS_VDE;
5993 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1;
5994 tempax >>= 1;
5995 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3B,tempax & 0xff);
5996 temp = (tempax >> 8) << 3;
6014 tempax = SiS_Pr->SiS_HDE;
6017 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1;
6018 tempax >>= 4; /* BDxWadroff = HDE*4/8/8 */
6019 pushcx = tempax;
6020 temp = tempax & 0x00FF;
6022 temp = ((tempax & 0xFF00) >> 8) << 3;
6025 tempax = SiS_Pr->SiS_VDE; /* BDxWadrst1 = BDxWadrst0 + BDxWadroff * VDE */
6028 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1;
6029 tempeax = tempax * pushcx;
6079 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0;
6158 tempax = SiS_Pr->SiS_VGAHDE >> 1;
6159 tempcx = SiS_Pr->SiS_HT - SiS_Pr->SiS_HDE + tempax;
6161 tempcx = SiS_Pr->SiS_HT - tempax;
6212 tempax = SiS_Pr->SiS_VGAHT;
6213 if(modeflag & HalfDCLK) tempax >>= 1;
6214 tempax--;
6215 if(tempcx > tempax) tempcx = tempax;
6237 tempax = SiS_Pr->SiS_VGAHT;
6238 if(modeflag & HalfDCLK) tempax >>= 1;
6239 tempax--;
6240 if(tempcx > tempax) tempcx = tempax;
6415 tempax = 0;
6416 if(modeflag & DoubleScanMode) tempax |= 0x80;
6417 if(modeflag & HalfDCLK) tempax |= 0x40;
6418 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2C,0x3f,tempax);
6714 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp;
6830 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempax = 950;
6831 else if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempax = 680;
6832 else if(SiS_Pr->SiS_TVMode & TVSetPALTiming) tempax = 520;
6833 else tempax = 440; /* NTSC, YPbPr 525 */
6835 if((SiS_Pr->SiS_VBInfo & SetCRT2ToTV) && (SiS_Pr->SiS_VDE <= tempax)) {
6837 tempax -= SiS_Pr->SiS_VDE;
6838 tempax >>= 1;
6840 tempax >>= 1;
6842 tempax &= 0x00ff;
6844 temp = tempax + (unsigned short)TimingPoint[0];
6847 temp = tempax + (unsigned short)TimingPoint[1];
6964 tempax = tempbx = tempcx = 0;
6992 tempax = longtemp / SiS_Pr->SiS_HDE;
6993 if(longtemp % SiS_Pr->SiS_HDE) tempax++;
6994 tempbx |= ((tempax >> 8) & 0x1F);
6995 tempcx = tempax >> 13;
6998 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x44,tempax);
7138 tempax = 1;
7140 tempax = SiS_Pr->PanelYRes;
7141 /* if(SiS_Pr->SiS_VGAVDE == 525) tempax += 0x3c; */ /* 651+301C */
7143 tempax = tempcx = 0;
7145 tempax -= SiS_Pr->SiS_VDE;
7147 tempax >>= 1;
7149 tempcx -= tempax; /* lcdvdes */
7150 tempbx -= tempax; /* lcdvdee */
7168 tempax = SiS_Pr->SiS_VDE;
7170 tempax = SiS_Pr->PanelYRes;
7172 tempcx = (SiS_Pr->SiS_VT - tempax) >> 4;
7175 tempcx = (SiS_Pr->SiS_VT - tempax) / 10;
7183 tempax = SiS_Pr->SiS_VT - SiS_Pr->PanelYRes;
7184 if(tempax % 4) { tempax >>= 2; tempax++; }
7185 else { tempax >>= 2; }
7186 tempbx -= (tempax - 1);
7257 tempax = tempbx = SiS_Pr->SiS_HDE;
7260 tempax = SiS_Pr->PanelXRes;
7267 tempax >>= 1;
7281 tempcx = (tempcx - tempax) >> 2;
7565 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo;
7687 tempax = SiS_Pr->SiS_VGAHDE;
7688 if(modeflag & HalfDCLK) tempax >>= 1;
7689 if(SiS_IsDualLink(SiS_Pr)) tempax >>= 1;
7690 if(tempax > 800) {
7692 tempax -= 800;
7695 if(tempax == 960) tempax *= 25; /* Correct */
7696 else if(tempax == 1024) tempax *= 25;
7697 else tempax *= 20;
7698 temp = tempax % 32;
7699 tempax /= 32;
7700 if(temp) tempax++;
7701 tempax++;
7708 tempax = (tempax & 0xff00) | 0x20;
7710 tempax = (tempax & 0xff00) | 0xed;
7715 tempax--;
7716 temp = ((tempax >> 4) & 0x30) | tempbx;
7717 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1D,tempax);
9573 SiS_WriteDDC2Data(struct SiS_Private *SiS_Pr, unsigned short tempax)
9580 if(tempax & flag) {
10671 unsigned short tempcl,tempch,tempbl,tempbh,tempbx,tempax,temp;
10850 tempax = 768 - SiS_Pr->SiS_VGAVDE;
10851 tempax >>= 4; /* 1.10.7w; 1.10.6s: 3; */
10852 if(SiS_Pr->SiS_VGAVDE <= 480) tempax >>= 4; /* 1.10.7w; 1.10.6s: < 480; >>=1; */
10853 tempbx -= tempax;