Lines Matching refs:tempax
388 static unsigned short SiS_WriteDDC2Data(struct SiS_Private *SiS_Pr, unsigned short tempax);
1260 unsigned short tempax, tempbx, temp; in SiS_GetVBInfo() local
1279 tempax = SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) << 8; in SiS_GetVBInfo()
1280 tempax &= (DriverMode | LoadDACFlag | SetNotSimuMode | SetPALTV); in SiS_GetVBInfo()
1281 tempbx |= tempax; in SiS_GetVBInfo()
1371 tempax = DisableCRT2Display; in SiS_GetVBInfo()
1416 if(tempax & DisableCRT2Display) { in SiS_GetVBInfo()
3335 unsigned short tempax=0, tempbx=0, index, dotclock; in SiS_GetRAMDAC2DATA() local
3346 tempax = SiS_Pr->SiS_StandTable[index].CRTC[0]; in SiS_GetRAMDAC2DATA()
3357 tempax = SiS_Pr->SiS_CRT1Table[index].CR[0]; in SiS_GetRAMDAC2DATA()
3358 tempax |= (SiS_Pr->SiS_CRT1Table[index].CR[14] << 8); in SiS_GetRAMDAC2DATA()
3359 tempax &= 0x03FF; in SiS_GetRAMDAC2DATA()
3374 tempax += 5; in SiS_GetRAMDAC2DATA()
3375 tempax *= dotclock; in SiS_GetRAMDAC2DATA()
3376 if(modeflag & HalfDCLK) tempax <<= 1; in SiS_GetRAMDAC2DATA()
3380 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; in SiS_GetRAMDAC2DATA()
3527 unsigned short tempax, tempbx, modeflag, romptr=0; in SiS_GetCRT2Data301() local
3579 tempax = SiS_Pr->CHTotal; in SiS_GetCRT2Data301()
3580 if(modeflag & HalfDCLK) tempax <<= 1; in SiS_GetCRT2Data301()
3581 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; in SiS_GetCRT2Data301()
3623 tempax = ((TVPtr+ResIndex)->RVBHRS2 >> 12) & 0x07; in SiS_GetCRT2Data301()
3624 if((TVPtr+ResIndex)->RVBHRS2 & 0x8000) SiS_Pr->SiS_RVBHRS2 -= tempax; in SiS_GetCRT2Data301()
3625 else SiS_Pr->SiS_RVBHRS2 += tempax; in SiS_GetCRT2Data301()
3702 tempax = SiS_Pr->CHTotal; in SiS_GetCRT2Data301()
3703 if(modeflag & HalfDCLK) tempax <<= 1; in SiS_GetCRT2Data301()
3704 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; in SiS_GetCRT2Data301()
3731 tempax = (ROMAddr[romptr+9] >> 4) & 0x07; in SiS_GetCRT2Data301()
3732 if(ROMAddr[romptr+9] & 0x80) SiS_Pr->SiS_RVBHRS2 -= tempax; in SiS_GetCRT2Data301()
3733 else SiS_Pr->SiS_RVBHRS2 += tempax; in SiS_GetCRT2Data301()
3797 tempax = SiS_Pr->PanelXRes; in SiS_GetCRT2Data301()
3835 tempax = SiS_Pr->SiS_VGAHDE; in SiS_GetCRT2Data301()
3839 SiS_Pr->SiS_HDE = tempax; in SiS_GetCRT2Data301()
5531 unsigned int tempax,tempbx; in SiS_GetVGAHT2() local
5534 tempax = (SiS_Pr->SiS_VT - SiS_Pr->SiS_VDE) * SiS_Pr->SiS_RVBHCFACT; in SiS_GetVGAHT2()
5535 tempax = (tempax * SiS_Pr->SiS_HT) / tempbx; in SiS_GetVGAHT2()
5536 return (unsigned short)tempax; in SiS_GetVGAHT2()
5674 unsigned short push2, tempax, tempbx, tempcx, temp; in SiS_SetGroup1_LVDS() local
5746 tempax = SiS_Pr->SiS_LCDHDES; in SiS_SetGroup1_LVDS()
5752 tempax -= 8; in SiS_SetGroup1_LVDS()
5758 temp = (tempax & 0x0007); in SiS_SetGroup1_LVDS()
5760 temp = (tempax >> 3) & 0x00FF; in SiS_SetGroup1_LVDS()
5775 tempax += tempbx; in SiS_SetGroup1_LVDS()
5776 if(tempax >= SiS_Pr->SiS_HT) tempax -= SiS_Pr->SiS_HT; in SiS_SetGroup1_LVDS()
5778 temp = tempax; in SiS_SetGroup1_LVDS()
5791 tempcx += tempax; in SiS_SetGroup1_LVDS()
5840 tempax = SiS_Pr->SiS_VGAVDE; in SiS_SetGroup1_LVDS()
5843 tempax = SiS_Pr->PanelYRes; in SiS_SetGroup1_LVDS()
5847 tempbx = SiS_Pr->SiS_LCDVDES + tempax; in SiS_SetGroup1_LVDS()
6130 tempax = SiS_Pr->SiS_HDE; /* Blps = lcdhdee(lcdhdes+HDE) + 64 */ in SiS_SetGroup1_LVDS()
6133 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; in SiS_SetGroup1_LVDS()
6134 tempax += 64; in SiS_SetGroup1_LVDS()
6135 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x38,tempax & 0xff); in SiS_SetGroup1_LVDS()
6136 temp = (tempax >> 8) << 3; in SiS_SetGroup1_LVDS()
6138 tempax += 32; /* Blpe = lBlps+32 */ in SiS_SetGroup1_LVDS()
6139 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x39,tempax & 0xff); in SiS_SetGroup1_LVDS()
6143 tempax = SiS_Pr->SiS_VDE; in SiS_SetGroup1_LVDS()
6146 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; in SiS_SetGroup1_LVDS()
6147 tempax >>= 1; in SiS_SetGroup1_LVDS()
6148 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3B,tempax & 0xff); in SiS_SetGroup1_LVDS()
6149 temp = (tempax >> 8) << 3; in SiS_SetGroup1_LVDS()
6167 tempax = SiS_Pr->SiS_HDE; in SiS_SetGroup1_LVDS()
6170 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; in SiS_SetGroup1_LVDS()
6171 tempax >>= 4; /* BDxWadroff = HDE*4/8/8 */ in SiS_SetGroup1_LVDS()
6172 pushcx = tempax; in SiS_SetGroup1_LVDS()
6173 temp = tempax & 0x00FF; in SiS_SetGroup1_LVDS()
6175 temp = ((tempax & 0xFF00) >> 8) << 3; in SiS_SetGroup1_LVDS()
6178 tempax = SiS_Pr->SiS_VDE; /* BDxWadrst1 = BDxWadrst0 + BDxWadroff * VDE */ in SiS_SetGroup1_LVDS()
6181 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; in SiS_SetGroup1_LVDS()
6182 tempeax = tempax * pushcx; in SiS_SetGroup1_LVDS()
6232 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; in SiS_SetGroup1() local
6303 tempax = SiS_Pr->SiS_VGAHDE >> 1; in SiS_SetGroup1()
6304 tempcx = SiS_Pr->SiS_HT - SiS_Pr->SiS_HDE + tempax; in SiS_SetGroup1()
6306 tempcx = SiS_Pr->SiS_HT - tempax; in SiS_SetGroup1()
6356 tempax = SiS_Pr->SiS_VGAHT; in SiS_SetGroup1()
6357 if(modeflag & HalfDCLK) tempax >>= 1; in SiS_SetGroup1()
6358 tempax--; in SiS_SetGroup1()
6359 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6381 tempax = SiS_Pr->SiS_VGAHT; in SiS_SetGroup1()
6382 if(modeflag & HalfDCLK) tempax >>= 1; in SiS_SetGroup1()
6383 tempax--; in SiS_SetGroup1()
6384 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6431 tempax = tempbx; in SiS_SetGroup1()
6433 tempcx -= tempax; in SiS_SetGroup1()
6566 tempax = 0; in SiS_SetGroup1()
6567 if(modeflag & DoubleScanMode) tempax |= 0x80; in SiS_SetGroup1()
6568 if(modeflag & HalfDCLK) tempax |= 0x40; in SiS_SetGroup1()
6569 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2C,0x3f,tempax); in SiS_SetGroup1()
6907 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; in SiS_SetGroup2() local
7021 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempax = 950; in SiS_SetGroup2()
7022 else if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempax = 680; in SiS_SetGroup2()
7023 else if(SiS_Pr->SiS_TVMode & TVSetPAL) tempax = 520; in SiS_SetGroup2()
7024 else tempax = 440; /* NTSC, YPbPr 525 */ in SiS_SetGroup2()
7026 if( ((SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) && (SiS_Pr->SiS_VDE <= tempax)) || in SiS_SetGroup2()
7028 ((SiS_Pr->SiS_VGAHDE == 1024) || (SiS_Pr->SiS_VDE <= tempax)) ) ) { in SiS_SetGroup2()
7030 tempax -= SiS_Pr->SiS_VDE; in SiS_SetGroup2()
7031 tempax >>= 1; in SiS_SetGroup2()
7033 tempax >>= 1; in SiS_SetGroup2()
7035 tempax &= 0x00ff; in SiS_SetGroup2()
7037 temp = tempax + (unsigned short)TimingPoint[0]; in SiS_SetGroup2()
7040 temp = tempax + (unsigned short)TimingPoint[1]; in SiS_SetGroup2()
7161 tempax = 0; in SiS_SetGroup2()
7185 tempax = longtemp / SiS_Pr->SiS_HDE; in SiS_SetGroup2()
7186 if(longtemp % SiS_Pr->SiS_HDE) tempax++; in SiS_SetGroup2()
7187 tempbx |= ((tempax >> 8) & 0x1F); in SiS_SetGroup2()
7188 tempcx = tempax >> 13; in SiS_SetGroup2()
7191 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x44,tempax); in SiS_SetGroup2()
7333 tempax = 1; in SiS_SetGroup2()
7335 tempax = SiS_Pr->PanelYRes; in SiS_SetGroup2()
7338 tempax = tempcx = 0; in SiS_SetGroup2()
7340 tempax -= SiS_Pr->SiS_VDE; in SiS_SetGroup2()
7342 tempax >>= 1; in SiS_SetGroup2()
7344 tempcx -= tempax; /* lcdvdes */ in SiS_SetGroup2()
7345 tempbx -= tempax; /* lcdvdee */ in SiS_SetGroup2()
7357 tempax = SiS_Pr->SiS_VDE; in SiS_SetGroup2()
7359 tempax = SiS_Pr->PanelYRes; in SiS_SetGroup2()
7361 tempcx = (SiS_Pr->SiS_VT - tempax) >> 4; in SiS_SetGroup2()
7364 tempcx = (SiS_Pr->SiS_VT - tempax) / 10; in SiS_SetGroup2()
7372 tempax = SiS_Pr->SiS_VT - SiS_Pr->PanelYRes; in SiS_SetGroup2()
7373 if(tempax % 4) { tempax >>= 2; tempax++; } in SiS_SetGroup2()
7374 else { tempax >>= 2; } in SiS_SetGroup2()
7375 tempbx -= (tempax - 1); in SiS_SetGroup2()
7434 tempax = tempbx = SiS_Pr->SiS_HDE; in SiS_SetGroup2()
7437 tempax = SiS_Pr->PanelXRes; in SiS_SetGroup2()
7444 tempax >>= 1; in SiS_SetGroup2()
7452 tempcx = (tempcx - tempax) >> 2; in SiS_SetGroup2()
7722 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo; in SiS_SetGroup4() local
7844 tempax = SiS_Pr->SiS_VGAHDE; in SiS_SetGroup4()
7845 if(modeflag & HalfDCLK) tempax >>= 1; in SiS_SetGroup4()
7846 if(SiS_IsDualLink(SiS_Pr)) tempax >>= 1; in SiS_SetGroup4()
7847 if(tempax > 800) { in SiS_SetGroup4()
7849 tempax -= 800; in SiS_SetGroup4()
7852 if(tempax == 960) tempax *= 25; /* Correct */ in SiS_SetGroup4()
7853 else if(tempax == 1024) tempax *= 25; in SiS_SetGroup4()
7854 else tempax *= 20; in SiS_SetGroup4()
7855 temp = tempax % 32; in SiS_SetGroup4()
7856 tempax /= 32; in SiS_SetGroup4()
7857 if(temp) tempax++; in SiS_SetGroup4()
7858 tempax++; in SiS_SetGroup4()
7865 tempax = (tempax & 0xff00) | 0x20; in SiS_SetGroup4()
7870 tempax--; in SiS_SetGroup4()
7871 temp = ((tempax >> 4) & 0x30) | tempbx; in SiS_SetGroup4()
7872 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1D,tempax); in SiS_SetGroup4()
9666 SiS_WriteDDC2Data(struct SiS_Private *SiS_Pr, unsigned short tempax) in SiS_WriteDDC2Data() argument
9673 if(tempax & flag) { in SiS_WriteDDC2Data()
10752 unsigned short tempcl,tempch,tempbl,tempbh,tempbx,tempax,temp; in SiS_FinalizeLCD() local
10931 tempax = 768 - SiS_Pr->SiS_VGAVDE; in SiS_FinalizeLCD()
10932 tempax >>= 4; /* 1.10.7w; 1.10.6s: 3; */ in SiS_FinalizeLCD()
10933 if(SiS_Pr->SiS_VGAVDE <= 480) tempax >>= 4; /* 1.10.7w; 1.10.6s: < 480; >>=1; */ in SiS_FinalizeLCD()
10934 tempbx -= tempax; in SiS_FinalizeLCD()