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