Lines Matching defs:tempax

389 static unsigned short	SiS_WriteDDC2Data(struct SiS_Private *SiS_Pr, unsigned short tempax);
1261 unsigned short tempax, tempbx, temp;
1280 tempax = SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) << 8;
1281 tempax &= (DriverMode | LoadDACFlag | SetNotSimuMode | SetPALTV);
1282 tempbx |= tempax;
1372 tempax = DisableCRT2Display;
1417 if(tempax & DisableCRT2Display) {
3336 unsigned short tempax=0, tempbx=0, index, dotclock;
3347 tempax = SiS_Pr->SiS_StandTable[index].CRTC[0];
3358 tempax = SiS_Pr->SiS_CRT1Table[index].CR[0];
3359 tempax |= (SiS_Pr->SiS_CRT1Table[index].CR[14] << 8);
3360 tempax &= 0x03FF;
3375 tempax += 5;
3376 tempax *= dotclock;
3377 if(modeflag & HalfDCLK) tempax <<= 1;
3381 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax;
3528 unsigned short tempax, tempbx, modeflag, romptr=0;
3580 tempax = SiS_Pr->CHTotal;
3581 if(modeflag & HalfDCLK) tempax <<= 1;
3582 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax;
3624 tempax = ((TVPtr+ResIndex)->RVBHRS2 >> 12) & 0x07;
3625 if((TVPtr+ResIndex)->RVBHRS2 & 0x8000) SiS_Pr->SiS_RVBHRS2 -= tempax;
3626 else SiS_Pr->SiS_RVBHRS2 += tempax;
3703 tempax = SiS_Pr->CHTotal;
3704 if(modeflag & HalfDCLK) tempax <<= 1;
3705 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax;
3732 tempax = (ROMAddr[romptr+9] >> 4) & 0x07;
3733 if(ROMAddr[romptr+9] & 0x80) SiS_Pr->SiS_RVBHRS2 -= tempax;
3734 else SiS_Pr->SiS_RVBHRS2 += tempax;
3798 tempax = SiS_Pr->PanelXRes;
3836 tempax = SiS_Pr->SiS_VGAHDE;
3840 SiS_Pr->SiS_HDE = tempax;
5532 unsigned int tempax,tempbx;
5535 tempax = (SiS_Pr->SiS_VT - SiS_Pr->SiS_VDE) * SiS_Pr->SiS_RVBHCFACT;
5536 tempax = (tempax * SiS_Pr->SiS_HT) / tempbx;
5537 return (unsigned short)tempax;
5675 unsigned short push2, tempax, tempbx, tempcx, temp;
5747 tempax = SiS_Pr->SiS_LCDHDES;
5753 tempax -= 8;
5759 temp = (tempax & 0x0007);
5761 temp = (tempax >> 3) & 0x00FF;
5776 tempax += tempbx;
5777 if(tempax >= SiS_Pr->SiS_HT) tempax -= SiS_Pr->SiS_HT;
5779 temp = tempax;
5792 tempcx += tempax;
5841 tempax = SiS_Pr->SiS_VGAVDE;
5844 tempax = SiS_Pr->PanelYRes;
5848 tempbx = SiS_Pr->SiS_LCDVDES + tempax;
6131 tempax = SiS_Pr->SiS_HDE; /* Blps = lcdhdee(lcdhdes+HDE) + 64 */
6134 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1;
6135 tempax += 64;
6136 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x38,tempax & 0xff);
6137 temp = (tempax >> 8) << 3;
6139 tempax += 32; /* Blpe = lBlps+32 */
6140 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x39,tempax & 0xff);
6144 tempax = SiS_Pr->SiS_VDE;
6147 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1;
6148 tempax >>= 1;
6149 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3B,tempax & 0xff);
6150 temp = (tempax >> 8) << 3;
6168 tempax = SiS_Pr->SiS_HDE;
6171 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1;
6172 tempax >>= 4; /* BDxWadroff = HDE*4/8/8 */
6173 pushcx = tempax;
6174 temp = tempax & 0x00FF;
6176 temp = ((tempax & 0xFF00) >> 8) << 3;
6179 tempax = SiS_Pr->SiS_VDE; /* BDxWadrst1 = BDxWadrst0 + BDxWadroff * VDE */
6182 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1;
6183 tempeax = tempax * pushcx;
6233 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0;
6304 tempax = SiS_Pr->SiS_VGAHDE >> 1;
6305 tempcx = SiS_Pr->SiS_HT - SiS_Pr->SiS_HDE + tempax;
6307 tempcx = SiS_Pr->SiS_HT - tempax;
6357 tempax = SiS_Pr->SiS_VGAHT;
6358 if(modeflag & HalfDCLK) tempax >>= 1;
6359 tempax--;
6360 if(tempcx > tempax) tempcx = tempax;
6382 tempax = SiS_Pr->SiS_VGAHT;
6383 if(modeflag & HalfDCLK) tempax >>= 1;
6384 tempax--;
6385 if(tempcx > tempax) tempcx = tempax;
6432 tempax = tempbx;
6434 tempcx -= tempax;
6567 tempax = 0;
6568 if(modeflag & DoubleScanMode) tempax |= 0x80;
6569 if(modeflag & HalfDCLK) tempax |= 0x40;
6570 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2C,0x3f,tempax);
6908 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp;
7022 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempax = 950;
7023 else if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempax = 680;
7024 else if(SiS_Pr->SiS_TVMode & TVSetPAL) tempax = 520;
7025 else tempax = 440; /* NTSC, YPbPr 525 */
7027 if( ((SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) && (SiS_Pr->SiS_VDE <= tempax)) ||
7029 ((SiS_Pr->SiS_VGAHDE == 1024) || (SiS_Pr->SiS_VDE <= tempax)) ) ) {
7031 tempax -= SiS_Pr->SiS_VDE;
7032 tempax >>= 1;
7034 tempax >>= 1;
7036 tempax &= 0x00ff;
7038 temp = tempax + (unsigned short)TimingPoint[0];
7041 temp = tempax + (unsigned short)TimingPoint[1];
7162 tempax = 0;
7186 tempax = longtemp / SiS_Pr->SiS_HDE;
7187 if(longtemp % SiS_Pr->SiS_HDE) tempax++;
7188 tempbx |= ((tempax >> 8) & 0x1F);
7189 tempcx = tempax >> 13;
7192 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x44,tempax);
7334 tempax = 1;
7336 tempax = SiS_Pr->PanelYRes;
7337 /* if(SiS_Pr->SiS_VGAVDE == 525) tempax += 0x3c; */ /* 651+301C */
7339 tempax = tempcx = 0;
7341 tempax -= SiS_Pr->SiS_VDE;
7343 tempax >>= 1;
7345 tempcx -= tempax; /* lcdvdes */
7346 tempbx -= tempax; /* lcdvdee */
7358 tempax = SiS_Pr->SiS_VDE;
7360 tempax = SiS_Pr->PanelYRes;
7362 tempcx = (SiS_Pr->SiS_VT - tempax) >> 4;
7365 tempcx = (SiS_Pr->SiS_VT - tempax) / 10;
7373 tempax = SiS_Pr->SiS_VT - SiS_Pr->PanelYRes;
7374 if(tempax % 4) { tempax >>= 2; tempax++; }
7375 else { tempax >>= 2; }
7376 tempbx -= (tempax - 1);
7435 tempax = tempbx = SiS_Pr->SiS_HDE;
7438 tempax = SiS_Pr->PanelXRes;
7445 tempax >>= 1;
7453 tempcx = (tempcx - tempax) >> 2;
7723 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo;
7845 tempax = SiS_Pr->SiS_VGAHDE;
7846 if(modeflag & HalfDCLK) tempax >>= 1;
7847 if(SiS_IsDualLink(SiS_Pr)) tempax >>= 1;
7848 if(tempax > 800) {
7850 tempax -= 800;
7853 if(tempax == 960) tempax *= 25; /* Correct */
7854 else if(tempax == 1024) tempax *= 25;
7855 else tempax *= 20;
7856 temp = tempax % 32;
7857 tempax /= 32;
7858 if(temp) tempax++;
7859 tempax++;
7866 tempax = (tempax & 0xff00) | 0x20;
7871 tempax--;
7872 temp = ((tempax >> 4) & 0x30) | tempbx;
7873 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1D,tempax);
9667 SiS_WriteDDC2Data(struct SiS_Private *SiS_Pr, unsigned short tempax)
9674 if(tempax & flag) {
10753 unsigned short tempcl,tempch,tempbl,tempbh,tempbx,tempax,temp;
10932 tempax = 768 - SiS_Pr->SiS_VGAVDE;
10933 tempax >>= 4; /* 1.10.7w; 1.10.6s: 3; */
10934 if(SiS_Pr->SiS_VGAVDE <= 480) tempax >>= 4; /* 1.10.7w; 1.10.6s: < 480; >>=1; */
10935 tempbx -= tempax;