Lines Matching refs:tempax
389 static unsigned short SiS_WriteDDC2Data(struct SiS_Private *SiS_Pr, unsigned short tempax);
1263 unsigned short tempax, tempbx, temp; in SiS_GetVBInfo() local
1282 tempax = SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) << 8; in SiS_GetVBInfo()
1283 tempax &= (DriverMode | LoadDACFlag | SetNotSimuMode | SetPALTV); in SiS_GetVBInfo()
1284 tempbx |= tempax; in SiS_GetVBInfo()
1374 tempax = DisableCRT2Display; in SiS_GetVBInfo()
1419 if(tempax & DisableCRT2Display) { in SiS_GetVBInfo()
3338 unsigned short tempax=0, tempbx=0, index, dotclock; in SiS_GetRAMDAC2DATA() local
3349 tempax = SiS_Pr->SiS_StandTable[index].CRTC[0]; in SiS_GetRAMDAC2DATA()
3360 tempax = SiS_Pr->SiS_CRT1Table[index].CR[0]; in SiS_GetRAMDAC2DATA()
3361 tempax |= (SiS_Pr->SiS_CRT1Table[index].CR[14] << 8); in SiS_GetRAMDAC2DATA()
3362 tempax &= 0x03FF; in SiS_GetRAMDAC2DATA()
3377 tempax += 5; in SiS_GetRAMDAC2DATA()
3378 tempax *= dotclock; in SiS_GetRAMDAC2DATA()
3379 if(modeflag & HalfDCLK) tempax <<= 1; in SiS_GetRAMDAC2DATA()
3383 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; in SiS_GetRAMDAC2DATA()
3530 unsigned short tempax, tempbx, modeflag, romptr=0; in SiS_GetCRT2Data301() local
3582 tempax = SiS_Pr->CHTotal; in SiS_GetCRT2Data301()
3583 if(modeflag & HalfDCLK) tempax <<= 1; in SiS_GetCRT2Data301()
3584 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; in SiS_GetCRT2Data301()
3626 tempax = ((TVPtr+ResIndex)->RVBHRS2 >> 12) & 0x07; in SiS_GetCRT2Data301()
3627 if((TVPtr+ResIndex)->RVBHRS2 & 0x8000) SiS_Pr->SiS_RVBHRS2 -= tempax; in SiS_GetCRT2Data301()
3628 else SiS_Pr->SiS_RVBHRS2 += tempax; in SiS_GetCRT2Data301()
3705 tempax = SiS_Pr->CHTotal; in SiS_GetCRT2Data301()
3706 if(modeflag & HalfDCLK) tempax <<= 1; in SiS_GetCRT2Data301()
3707 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; in SiS_GetCRT2Data301()
3734 tempax = (ROMAddr[romptr+9] >> 4) & 0x07; in SiS_GetCRT2Data301()
3735 if(ROMAddr[romptr+9] & 0x80) SiS_Pr->SiS_RVBHRS2 -= tempax; in SiS_GetCRT2Data301()
3736 else SiS_Pr->SiS_RVBHRS2 += tempax; in SiS_GetCRT2Data301()
3800 tempax = SiS_Pr->PanelXRes; in SiS_GetCRT2Data301()
3838 tempax = SiS_Pr->SiS_VGAHDE; in SiS_GetCRT2Data301()
3842 SiS_Pr->SiS_HDE = tempax; in SiS_GetCRT2Data301()
5534 unsigned int tempax,tempbx; in SiS_GetVGAHT2() local
5537 tempax = (SiS_Pr->SiS_VT - SiS_Pr->SiS_VDE) * SiS_Pr->SiS_RVBHCFACT; in SiS_GetVGAHT2()
5538 tempax = (tempax * SiS_Pr->SiS_HT) / tempbx; in SiS_GetVGAHT2()
5539 return (unsigned short)tempax; in SiS_GetVGAHT2()
5677 unsigned short push2, tempax, tempbx, tempcx, temp; in SiS_SetGroup1_LVDS() local
5749 tempax = SiS_Pr->SiS_LCDHDES; in SiS_SetGroup1_LVDS()
5755 tempax -= 8; in SiS_SetGroup1_LVDS()
5761 temp = (tempax & 0x0007); in SiS_SetGroup1_LVDS()
5763 temp = (tempax >> 3) & 0x00FF; in SiS_SetGroup1_LVDS()
5778 tempax += tempbx; in SiS_SetGroup1_LVDS()
5779 if(tempax >= SiS_Pr->SiS_HT) tempax -= SiS_Pr->SiS_HT; in SiS_SetGroup1_LVDS()
5781 temp = tempax; in SiS_SetGroup1_LVDS()
5794 tempcx += tempax; in SiS_SetGroup1_LVDS()
5843 tempax = SiS_Pr->SiS_VGAVDE; in SiS_SetGroup1_LVDS()
5846 tempax = SiS_Pr->PanelYRes; in SiS_SetGroup1_LVDS()
5850 tempbx = SiS_Pr->SiS_LCDVDES + tempax; in SiS_SetGroup1_LVDS()
6133 tempax = SiS_Pr->SiS_HDE; /* Blps = lcdhdee(lcdhdes+HDE) + 64 */ in SiS_SetGroup1_LVDS()
6136 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; in SiS_SetGroup1_LVDS()
6137 tempax += 64; in SiS_SetGroup1_LVDS()
6138 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x38,tempax & 0xff); in SiS_SetGroup1_LVDS()
6139 temp = (tempax >> 8) << 3; in SiS_SetGroup1_LVDS()
6141 tempax += 32; /* Blpe = lBlps+32 */ in SiS_SetGroup1_LVDS()
6142 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x39,tempax & 0xff); in SiS_SetGroup1_LVDS()
6146 tempax = SiS_Pr->SiS_VDE; in SiS_SetGroup1_LVDS()
6149 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; in SiS_SetGroup1_LVDS()
6150 tempax >>= 1; in SiS_SetGroup1_LVDS()
6151 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3B,tempax & 0xff); in SiS_SetGroup1_LVDS()
6152 temp = (tempax >> 8) << 3; in SiS_SetGroup1_LVDS()
6170 tempax = SiS_Pr->SiS_HDE; in SiS_SetGroup1_LVDS()
6173 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; in SiS_SetGroup1_LVDS()
6174 tempax >>= 4; /* BDxWadroff = HDE*4/8/8 */ in SiS_SetGroup1_LVDS()
6175 pushcx = tempax; in SiS_SetGroup1_LVDS()
6176 temp = tempax & 0x00FF; in SiS_SetGroup1_LVDS()
6178 temp = ((tempax & 0xFF00) >> 8) << 3; in SiS_SetGroup1_LVDS()
6181 tempax = SiS_Pr->SiS_VDE; /* BDxWadrst1 = BDxWadrst0 + BDxWadroff * VDE */ in SiS_SetGroup1_LVDS()
6184 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; in SiS_SetGroup1_LVDS()
6185 tempeax = tempax * pushcx; in SiS_SetGroup1_LVDS()
6235 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; in SiS_SetGroup1() local
6306 tempax = SiS_Pr->SiS_VGAHDE >> 1; in SiS_SetGroup1()
6307 tempcx = SiS_Pr->SiS_HT - SiS_Pr->SiS_HDE + tempax; in SiS_SetGroup1()
6309 tempcx = SiS_Pr->SiS_HT - tempax; in SiS_SetGroup1()
6359 tempax = SiS_Pr->SiS_VGAHT; in SiS_SetGroup1()
6360 if(modeflag & HalfDCLK) tempax >>= 1; in SiS_SetGroup1()
6361 tempax--; in SiS_SetGroup1()
6362 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6384 tempax = SiS_Pr->SiS_VGAHT; in SiS_SetGroup1()
6385 if(modeflag & HalfDCLK) tempax >>= 1; in SiS_SetGroup1()
6386 tempax--; in SiS_SetGroup1()
6387 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6434 tempax = tempbx; in SiS_SetGroup1()
6436 tempcx -= tempax; in SiS_SetGroup1()
6569 tempax = 0; in SiS_SetGroup1()
6570 if(modeflag & DoubleScanMode) tempax |= 0x80; in SiS_SetGroup1()
6571 if(modeflag & HalfDCLK) tempax |= 0x40; in SiS_SetGroup1()
6572 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2C,0x3f,tempax); in SiS_SetGroup1()
6910 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; in SiS_SetGroup2() local
7024 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempax = 950; in SiS_SetGroup2()
7025 else if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempax = 680; in SiS_SetGroup2()
7026 else if(SiS_Pr->SiS_TVMode & TVSetPAL) tempax = 520; in SiS_SetGroup2()
7027 else tempax = 440; /* NTSC, YPbPr 525 */ in SiS_SetGroup2()
7029 if( ((SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) && (SiS_Pr->SiS_VDE <= tempax)) || in SiS_SetGroup2()
7031 ((SiS_Pr->SiS_VGAHDE == 1024) || (SiS_Pr->SiS_VDE <= tempax)) ) ) { in SiS_SetGroup2()
7033 tempax -= SiS_Pr->SiS_VDE; in SiS_SetGroup2()
7034 tempax >>= 1; in SiS_SetGroup2()
7036 tempax >>= 1; in SiS_SetGroup2()
7038 tempax &= 0x00ff; in SiS_SetGroup2()
7040 temp = tempax + (unsigned short)TimingPoint[0]; in SiS_SetGroup2()
7043 temp = tempax + (unsigned short)TimingPoint[1]; in SiS_SetGroup2()
7164 tempax = 0; in SiS_SetGroup2()
7188 tempax = longtemp / SiS_Pr->SiS_HDE; in SiS_SetGroup2()
7189 if(longtemp % SiS_Pr->SiS_HDE) tempax++; in SiS_SetGroup2()
7190 tempbx |= ((tempax >> 8) & 0x1F); in SiS_SetGroup2()
7191 tempcx = tempax >> 13; in SiS_SetGroup2()
7194 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x44,tempax); in SiS_SetGroup2()
7336 tempax = 1; in SiS_SetGroup2()
7338 tempax = SiS_Pr->PanelYRes; in SiS_SetGroup2()
7341 tempax = tempcx = 0; in SiS_SetGroup2()
7343 tempax -= SiS_Pr->SiS_VDE; in SiS_SetGroup2()
7345 tempax >>= 1; in SiS_SetGroup2()
7347 tempcx -= tempax; /* lcdvdes */ in SiS_SetGroup2()
7348 tempbx -= tempax; /* lcdvdee */ in SiS_SetGroup2()
7360 tempax = SiS_Pr->SiS_VDE; in SiS_SetGroup2()
7362 tempax = SiS_Pr->PanelYRes; in SiS_SetGroup2()
7364 tempcx = (SiS_Pr->SiS_VT - tempax) >> 4; in SiS_SetGroup2()
7367 tempcx = (SiS_Pr->SiS_VT - tempax) / 10; in SiS_SetGroup2()
7375 tempax = SiS_Pr->SiS_VT - SiS_Pr->PanelYRes; in SiS_SetGroup2()
7376 if(tempax % 4) { tempax >>= 2; tempax++; } in SiS_SetGroup2()
7377 else { tempax >>= 2; } in SiS_SetGroup2()
7378 tempbx -= (tempax - 1); in SiS_SetGroup2()
7437 tempax = tempbx = SiS_Pr->SiS_HDE; in SiS_SetGroup2()
7440 tempax = SiS_Pr->PanelXRes; in SiS_SetGroup2()
7447 tempax >>= 1; in SiS_SetGroup2()
7455 tempcx = (tempcx - tempax) >> 2; in SiS_SetGroup2()
7725 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo; in SiS_SetGroup4() local
7847 tempax = SiS_Pr->SiS_VGAHDE; in SiS_SetGroup4()
7848 if(modeflag & HalfDCLK) tempax >>= 1; in SiS_SetGroup4()
7849 if(SiS_IsDualLink(SiS_Pr)) tempax >>= 1; in SiS_SetGroup4()
7850 if(tempax > 800) { in SiS_SetGroup4()
7852 tempax -= 800; in SiS_SetGroup4()
7855 if(tempax == 960) tempax *= 25; /* Correct */ in SiS_SetGroup4()
7856 else if(tempax == 1024) tempax *= 25; in SiS_SetGroup4()
7857 else tempax *= 20; in SiS_SetGroup4()
7858 temp = tempax % 32; in SiS_SetGroup4()
7859 tempax /= 32; in SiS_SetGroup4()
7860 if(temp) tempax++; in SiS_SetGroup4()
7861 tempax++; in SiS_SetGroup4()
7868 tempax = (tempax & 0xff00) | 0x20; in SiS_SetGroup4()
7873 tempax--; in SiS_SetGroup4()
7874 temp = ((tempax >> 4) & 0x30) | tempbx; in SiS_SetGroup4()
7875 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1D,tempax); in SiS_SetGroup4()
9669 SiS_WriteDDC2Data(struct SiS_Private *SiS_Pr, unsigned short tempax) in SiS_WriteDDC2Data() argument
9676 if(tempax & flag) { in SiS_WriteDDC2Data()
10755 unsigned short tempcl,tempch,tempbl,tempbh,tempbx,tempax,temp; in SiS_FinalizeLCD() local
10934 tempax = 768 - SiS_Pr->SiS_VGAVDE; in SiS_FinalizeLCD()
10935 tempax >>= 4; /* 1.10.7w; 1.10.6s: 3; */ in SiS_FinalizeLCD()
10936 if(SiS_Pr->SiS_VGAVDE <= 480) tempax >>= 4; /* 1.10.7w; 1.10.6s: < 480; >>=1; */ in SiS_FinalizeLCD()
10937 tempbx -= tempax; in SiS_FinalizeLCD()