Lines Matching refs:tempax
937 unsigned short tempax, tempbx, temp; in SiS_GetVBInfo() local
956 tempax = SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) << 8; in SiS_GetVBInfo()
957 tempax &= (DriverMode | LoadDACFlag | SetNotSimuMode | SetPALTV); in SiS_GetVBInfo()
958 tempbx |= tempax; in SiS_GetVBInfo()
1048 tempax = DisableCRT2Display; in SiS_GetVBInfo()
1093 if(tempax & DisableCRT2Display) { in SiS_GetVBInfo()
3014 unsigned short tempax=0, tempbx=0, index, dotclock; in SiS_GetRAMDAC2DATA() local
3025 tempax = SiS_Pr->SiS_StandTable[index].CRTC[0]; in SiS_GetRAMDAC2DATA()
3036 tempax = SiS_Pr->SiS_CRT1Table[index].CR[0]; in SiS_GetRAMDAC2DATA()
3037 tempax |= (SiS_Pr->SiS_CRT1Table[index].CR[14] << 8); in SiS_GetRAMDAC2DATA()
3038 tempax &= 0x03FF; in SiS_GetRAMDAC2DATA()
3053 tempax += 5; in SiS_GetRAMDAC2DATA()
3054 tempax *= dotclock; in SiS_GetRAMDAC2DATA()
3055 if(modeflag & HalfDCLK) tempax <<= 1; in SiS_GetRAMDAC2DATA()
3059 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; in SiS_GetRAMDAC2DATA()
3206 unsigned short tempax, tempbx, modeflag, romptr=0; in SiS_GetCRT2Data301() local
3258 tempax = SiS_Pr->CHTotal; in SiS_GetCRT2Data301()
3259 if(modeflag & HalfDCLK) tempax <<= 1; in SiS_GetCRT2Data301()
3260 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; in SiS_GetCRT2Data301()
3302 tempax = ((TVPtr+ResIndex)->RVBHRS2 >> 12) & 0x07; in SiS_GetCRT2Data301()
3303 if((TVPtr+ResIndex)->RVBHRS2 & 0x8000) SiS_Pr->SiS_RVBHRS2 -= tempax; in SiS_GetCRT2Data301()
3304 else SiS_Pr->SiS_RVBHRS2 += tempax; in SiS_GetCRT2Data301()
3381 tempax = SiS_Pr->CHTotal; in SiS_GetCRT2Data301()
3382 if(modeflag & HalfDCLK) tempax <<= 1; in SiS_GetCRT2Data301()
3383 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; in SiS_GetCRT2Data301()
3410 tempax = (ROMAddr[romptr+9] >> 4) & 0x07; in SiS_GetCRT2Data301()
3411 if(ROMAddr[romptr+9] & 0x80) SiS_Pr->SiS_RVBHRS2 -= tempax; in SiS_GetCRT2Data301()
3412 else SiS_Pr->SiS_RVBHRS2 += tempax; in SiS_GetCRT2Data301()
3476 tempax = SiS_Pr->PanelXRes; in SiS_GetCRT2Data301()
3514 tempax = SiS_Pr->SiS_VGAHDE; in SiS_GetCRT2Data301()
3518 SiS_Pr->SiS_HDE = tempax; in SiS_GetCRT2Data301()
5210 unsigned int tempax,tempbx; in SiS_GetVGAHT2() local
5213 tempax = (SiS_Pr->SiS_VT - SiS_Pr->SiS_VDE) * SiS_Pr->SiS_RVBHCFACT; in SiS_GetVGAHT2()
5214 tempax = (tempax * SiS_Pr->SiS_HT) / tempbx; in SiS_GetVGAHT2()
5215 return (unsigned short)tempax; in SiS_GetVGAHT2()
5353 unsigned short push2, tempax, tempbx, tempcx, temp; in SiS_SetGroup1_LVDS() local
5425 tempax = SiS_Pr->SiS_LCDHDES; in SiS_SetGroup1_LVDS()
5431 tempax -= 8; in SiS_SetGroup1_LVDS()
5437 temp = (tempax & 0x0007); in SiS_SetGroup1_LVDS()
5439 temp = (tempax >> 3) & 0x00FF; in SiS_SetGroup1_LVDS()
5454 tempax += tempbx; in SiS_SetGroup1_LVDS()
5455 if(tempax >= SiS_Pr->SiS_HT) tempax -= SiS_Pr->SiS_HT; in SiS_SetGroup1_LVDS()
5457 temp = tempax; in SiS_SetGroup1_LVDS()
5470 tempcx += tempax; in SiS_SetGroup1_LVDS()
5519 tempax = SiS_Pr->SiS_VGAVDE; in SiS_SetGroup1_LVDS()
5522 tempax = SiS_Pr->PanelYRes; in SiS_SetGroup1_LVDS()
5526 tempbx = SiS_Pr->SiS_LCDVDES + tempax; in SiS_SetGroup1_LVDS()
5809 tempax = SiS_Pr->SiS_HDE; /* Blps = lcdhdee(lcdhdes+HDE) + 64 */ in SiS_SetGroup1_LVDS()
5812 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; in SiS_SetGroup1_LVDS()
5813 tempax += 64; in SiS_SetGroup1_LVDS()
5814 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x38,tempax & 0xff); in SiS_SetGroup1_LVDS()
5815 temp = (tempax >> 8) << 3; in SiS_SetGroup1_LVDS()
5817 tempax += 32; /* Blpe = lBlps+32 */ in SiS_SetGroup1_LVDS()
5818 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x39,tempax & 0xff); in SiS_SetGroup1_LVDS()
5822 tempax = SiS_Pr->SiS_VDE; in SiS_SetGroup1_LVDS()
5825 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; in SiS_SetGroup1_LVDS()
5826 tempax >>= 1; in SiS_SetGroup1_LVDS()
5827 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3B,tempax & 0xff); in SiS_SetGroup1_LVDS()
5828 temp = (tempax >> 8) << 3; in SiS_SetGroup1_LVDS()
5846 tempax = SiS_Pr->SiS_HDE; in SiS_SetGroup1_LVDS()
5849 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; in SiS_SetGroup1_LVDS()
5850 tempax >>= 4; /* BDxWadroff = HDE*4/8/8 */ in SiS_SetGroup1_LVDS()
5851 pushcx = tempax; in SiS_SetGroup1_LVDS()
5852 temp = tempax & 0x00FF; in SiS_SetGroup1_LVDS()
5854 temp = ((tempax & 0xFF00) >> 8) << 3; in SiS_SetGroup1_LVDS()
5857 tempax = SiS_Pr->SiS_VDE; /* BDxWadrst1 = BDxWadrst0 + BDxWadroff * VDE */ in SiS_SetGroup1_LVDS()
5860 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; in SiS_SetGroup1_LVDS()
5861 tempeax = tempax * pushcx; in SiS_SetGroup1_LVDS()
5911 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; in SiS_SetGroup1() local
5982 tempax = SiS_Pr->SiS_VGAHDE >> 1; in SiS_SetGroup1()
5983 tempcx = SiS_Pr->SiS_HT - SiS_Pr->SiS_HDE + tempax; in SiS_SetGroup1()
5985 tempcx = SiS_Pr->SiS_HT - tempax; in SiS_SetGroup1()
6035 tempax = SiS_Pr->SiS_VGAHT; in SiS_SetGroup1()
6036 if(modeflag & HalfDCLK) tempax >>= 1; in SiS_SetGroup1()
6037 tempax--; in SiS_SetGroup1()
6038 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6060 tempax = SiS_Pr->SiS_VGAHT; in SiS_SetGroup1()
6061 if(modeflag & HalfDCLK) tempax >>= 1; in SiS_SetGroup1()
6062 tempax--; in SiS_SetGroup1()
6063 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6110 tempax = tempbx; in SiS_SetGroup1()
6112 tempcx -= tempax; in SiS_SetGroup1()
6245 tempax = 0; in SiS_SetGroup1()
6246 if(modeflag & DoubleScanMode) tempax |= 0x80; in SiS_SetGroup1()
6247 if(modeflag & HalfDCLK) tempax |= 0x40; in SiS_SetGroup1()
6248 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2C,0x3f,tempax); in SiS_SetGroup1()
6586 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; in SiS_SetGroup2() local
6700 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempax = 950; in SiS_SetGroup2()
6701 else if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempax = 680; in SiS_SetGroup2()
6702 else if(SiS_Pr->SiS_TVMode & TVSetPAL) tempax = 520; in SiS_SetGroup2()
6703 else tempax = 440; /* NTSC, YPbPr 525 */ in SiS_SetGroup2()
6705 if( ((SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) && (SiS_Pr->SiS_VDE <= tempax)) || in SiS_SetGroup2()
6707 ((SiS_Pr->SiS_VGAHDE == 1024) || (SiS_Pr->SiS_VDE <= tempax)) ) ) { in SiS_SetGroup2()
6709 tempax -= SiS_Pr->SiS_VDE; in SiS_SetGroup2()
6710 tempax >>= 1; in SiS_SetGroup2()
6712 tempax >>= 1; in SiS_SetGroup2()
6714 tempax &= 0x00ff; in SiS_SetGroup2()
6716 temp = tempax + (unsigned short)TimingPoint[0]; in SiS_SetGroup2()
6719 temp = tempax + (unsigned short)TimingPoint[1]; in SiS_SetGroup2()
6840 tempax = 0; in SiS_SetGroup2()
6866 tempax = longtemp / SiS_Pr->SiS_HDE; in SiS_SetGroup2()
6867 if(longtemp % SiS_Pr->SiS_HDE) tempax++; in SiS_SetGroup2()
6868 tempbx |= ((tempax >> 8) & 0x1F); in SiS_SetGroup2()
6869 tempcx = tempax >> 13; in SiS_SetGroup2()
6872 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x44,tempax); in SiS_SetGroup2()
7014 tempax = 1; in SiS_SetGroup2()
7016 tempax = SiS_Pr->PanelYRes; in SiS_SetGroup2()
7019 tempax = tempcx = 0; in SiS_SetGroup2()
7021 tempax -= SiS_Pr->SiS_VDE; in SiS_SetGroup2()
7023 tempax >>= 1; in SiS_SetGroup2()
7025 tempcx -= tempax; /* lcdvdes */ in SiS_SetGroup2()
7026 tempbx -= tempax; /* lcdvdee */ in SiS_SetGroup2()
7038 tempax = SiS_Pr->SiS_VDE; in SiS_SetGroup2()
7040 tempax = SiS_Pr->PanelYRes; in SiS_SetGroup2()
7042 tempcx = (SiS_Pr->SiS_VT - tempax) >> 4; in SiS_SetGroup2()
7045 tempcx = (SiS_Pr->SiS_VT - tempax) / 10; in SiS_SetGroup2()
7053 tempax = SiS_Pr->SiS_VT - SiS_Pr->PanelYRes; in SiS_SetGroup2()
7054 if(tempax % 4) { tempax >>= 2; tempax++; } in SiS_SetGroup2()
7055 else { tempax >>= 2; } in SiS_SetGroup2()
7056 tempbx -= (tempax - 1); in SiS_SetGroup2()
7115 tempax = tempbx = SiS_Pr->SiS_HDE; in SiS_SetGroup2()
7118 tempax = SiS_Pr->PanelXRes; in SiS_SetGroup2()
7125 tempax >>= 1; in SiS_SetGroup2()
7133 tempcx = (tempcx - tempax) >> 2; in SiS_SetGroup2()
7407 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo; in SiS_SetGroup4() local
7529 tempax = SiS_Pr->SiS_VGAHDE; in SiS_SetGroup4()
7530 if(modeflag & HalfDCLK) tempax >>= 1; in SiS_SetGroup4()
7531 if(SiS_IsDualLink(SiS_Pr)) tempax >>= 1; in SiS_SetGroup4()
7532 if(tempax > 800) { in SiS_SetGroup4()
7534 tempax -= 800; in SiS_SetGroup4()
7537 if(tempax == 960) tempax *= 25; /* Correct */ in SiS_SetGroup4()
7538 else if(tempax == 1024) tempax *= 25; in SiS_SetGroup4()
7539 else tempax *= 20; in SiS_SetGroup4()
7540 temp = tempax % 32; in SiS_SetGroup4()
7541 tempax /= 32; in SiS_SetGroup4()
7542 if(temp) tempax++; in SiS_SetGroup4()
7543 tempax++; in SiS_SetGroup4()
7550 tempax = (tempax & 0xff00) | 0x20; in SiS_SetGroup4()
7555 tempax--; in SiS_SetGroup4()
7556 temp = ((tempax >> 4) & 0x30) | tempbx; in SiS_SetGroup4()
7557 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1D,tempax); in SiS_SetGroup4()
9356 SiS_WriteDDC2Data(struct SiS_Private *SiS_Pr, unsigned short tempax) in SiS_WriteDDC2Data() argument
9363 if(tempax & flag) { in SiS_WriteDDC2Data()
10444 unsigned short tempcl,tempch,tempbl,tempbh,tempbx,tempax,temp; in SiS_FinalizeLCD() local
10623 tempax = 768 - SiS_Pr->SiS_VGAVDE; in SiS_FinalizeLCD()
10624 tempax >>= 4; /* 1.10.7w; 1.10.6s: 3; */ in SiS_FinalizeLCD()
10625 if(SiS_Pr->SiS_VGAVDE <= 480) tempax >>= 4; /* 1.10.7w; 1.10.6s: < 480; >>=1; */ in SiS_FinalizeLCD()
10626 tempbx -= tempax; in SiS_FinalizeLCD()