Lines Matching refs:tempcx

3336   unsigned short temp1=0, modeflag=0, tempcx=0;  in SiS_GetRAMDAC2DATA()  local
3361 tempcx = SiS_Pr->SiS_CRT1Table[index].CR[13] << 8; in SiS_GetRAMDAC2DATA()
3362 tempcx &= 0x0100; in SiS_GetRAMDAC2DATA()
3363 tempcx <<= 2; in SiS_GetRAMDAC2DATA()
3364 tempbx |= tempcx; in SiS_GetRAMDAC2DATA()
5674 unsigned short push2, tempax, tempbx, tempcx, temp; in SiS_SetGroup1_LVDS() local
5783 tempcx = (SiS_Pr->SiS_HT - tempbx) >> 2; in SiS_SetGroup1_LVDS()
5787 if(SiS_Pr->PanelHRS != 999) tempcx = SiS_Pr->PanelHRS; in SiS_SetGroup1_LVDS()
5791 tempcx += tempax; in SiS_SetGroup1_LVDS()
5792 if(tempcx >= SiS_Pr->SiS_HT) tempcx -= SiS_Pr->SiS_HT; in SiS_SetGroup1_LVDS()
5794 temp = (tempcx >> 3) & 0x00FF; in SiS_SetGroup1_LVDS()
5825 temp = tempcx + SiS_Pr->PanelHRE; in SiS_SetGroup1_LVDS()
5835 temp |= ((tempcx & 0x07) << 5); in SiS_SetGroup1_LVDS()
5852 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE; in SiS_SetGroup1_LVDS()
5856 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->PanelYRes; in SiS_SetGroup1_LVDS()
5860 if(islvds) tempcx >>= 1; in SiS_SetGroup1_LVDS()
5861 else tempcx >>= 2; in SiS_SetGroup1_LVDS()
5866 tempcx = SiS_Pr->PanelVRS; in SiS_SetGroup1_LVDS()
5867 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5870 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5885 tempcx >>= 3; in SiS_SetGroup1_LVDS()
5886 tempcx++; in SiS_SetGroup1_LVDS()
5890 if(SiS_Pr->PanelVRE != 999) tempcx = SiS_Pr->PanelVRE; in SiS_SetGroup1_LVDS()
5894 tempcx += tempbx; in SiS_SetGroup1_LVDS()
5895 temp = tempcx & 0x000F; in SiS_SetGroup1_LVDS()
5925 tempcx = SiS_Pr->SiS_LCDVDES; /* BPLVDES */ in SiS_SetGroup1_LVDS()
5931 tempcx = SiS_Pr->SiS_VGAVDE; in SiS_SetGroup1_LVDS()
5935 if(resinfo == SIS_RI_800x600) tempcx++; in SiS_SetGroup1_LVDS()
5940 if(resinfo == SIS_RI_1024x600) tempcx++; in SiS_SetGroup1_LVDS()
5942 if(resinfo == SIS_RI_800x600) tempcx++; in SiS_SetGroup1_LVDS()
5949 if(resinfo == SIS_RI_1024x768) tempcx++; in SiS_SetGroup1_LVDS()
5957 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup1_LVDS()
5960 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1B,tempcx); in SiS_SetGroup1_LVDS()
6232 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; in SiS_SetGroup1() local
6285 tempcx = (SiS_Pr->SiS_VGAHT - SiS_Pr->SiS_VGAHDE) >> 2; in SiS_SetGroup1()
6286 tempbx = pushbx + tempcx; in SiS_SetGroup1()
6287 tempcx <<= 1; in SiS_SetGroup1()
6288 tempcx += tempbx; in SiS_SetGroup1()
6298 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HT 0x08,0x09 */ in SiS_SetGroup1()
6301 tempcx >>= 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()
6310 tempcx--; in SiS_SetGroup1()
6311 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x08,tempcx); /* CRT2 Horizontal Total */ in SiS_SetGroup1()
6312 temp = (tempcx >> 4) & 0xF0; in SiS_SetGroup1()
6315 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HDEE 0x0A,0x0C */ in SiS_SetGroup1()
6317 tempcx -= tempbx; in SiS_SetGroup1()
6318 tempcx >>= 2; in SiS_SetGroup1()
6321 tempcx >>= 1; in SiS_SetGroup1()
6328 tempcx >>= 1; in SiS_SetGroup1()
6329 tempbx += tempcx; in SiS_SetGroup1()
6330 tempcx += tempbx; in SiS_SetGroup1()
6339 tempcx = (tempcx & 0xff00) | 0x30; in SiS_SetGroup1()
6341 tempcx = (tempcx & 0xff00) | 0xff; in SiS_SetGroup1()
6355 tempcx = SiS_Pr->CHSyncEnd + bridgeadd; in SiS_SetGroup1()
6359 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6376 tempcx = (((cr5 & 0x1f) | ((cr15 & 0x04) << (5-2))) - 3) << 3; /* (VGAHRE-3)*8 */ in SiS_SetGroup1()
6377 tempcx &= 0x00FF; in SiS_SetGroup1()
6378 tempcx |= (tempbx & 0xFF00); in SiS_SetGroup1()
6380 tempcx += bridgeadd; in SiS_SetGroup1()
6384 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6389 tempcx = 1044; /* HWCursor bug! */ in SiS_SetGroup1()
6396 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0D,tempcx); /* CRT2 Horizontal Retrace End */ in SiS_SetGroup1()
6403 tempcx = SiS_Pr->SiS_VGAVT - 1; in SiS_SetGroup1()
6404 temp = tempcx & 0x00FF; in SiS_SetGroup1()
6426 temp = ((tempbx >> 5) & 0x38) | ((tempcx >> 8) & 0x07); in SiS_SetGroup1()
6432 tempcx++; in SiS_SetGroup1()
6433 tempcx -= tempax; in SiS_SetGroup1()
6434 tempcx >>= 2; in SiS_SetGroup1()
6435 tempbx += tempcx; in SiS_SetGroup1()
6436 if(tempcx < 4) tempcx = 4; in SiS_SetGroup1()
6437 tempcx >>= 2; in SiS_SetGroup1()
6438 tempcx += tempbx; in SiS_SetGroup1()
6439 tempcx++; in SiS_SetGroup1()
6442tempcx = ((SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 … in SiS_SetGroup1()
6448 tempcx = SiS_Pr->CVSyncEnd; in SiS_SetGroup1()
6456 tempcx = SiS_Pr->CCRT1CRTC[9]; in SiS_SetGroup1()
6461 tempcx = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[9]; in SiS_SetGroup1()
6471 temp = ((tempbx >> 4) & 0x70) | (tempcx & 0x0F); in SiS_SetGroup1()
6704 unsigned short tempcx; in SiS_Group2LCDSpecial() local
6733 tempcx = 0; in SiS_Group2LCDSpecial()
6736 tempcx += 7; in SiS_Group2LCDSpecial()
6739 tempcx += crt2crtc; in SiS_Group2LCDSpecial()
6752 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,atable[tempcx]); in SiS_Group2LCDSpecial()
6907 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; in SiS_SetGroup2() local
7055 tempcx = SiS_Pr->SiS_HT; in SiS_SetGroup2()
7056 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; in SiS_SetGroup2()
7057 tempcx--; in SiS_SetGroup2()
7058 if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) tempcx--; in SiS_SetGroup2()
7059 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1B,tempcx); in SiS_SetGroup2()
7060 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0xF0,((tempcx >> 8) & 0x0f)); in SiS_SetGroup2()
7062 tempcx = SiS_Pr->SiS_HT >> 1; in SiS_SetGroup2()
7063 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; in SiS_SetGroup2()
7064 tempcx += 7; in SiS_SetGroup2()
7065 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4; in SiS_SetGroup2()
7066 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x22,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
7069 tempbx += tempcx; in SiS_SetGroup2()
7076 tempcx = tempbx; in SiS_SetGroup2()
7081 tempcx += (TimingPoint[j] | (TimingPoint[j+1] << 8)); in SiS_SetGroup2()
7082 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x27,tempcx); in SiS_SetGroup2()
7083 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x28,0x0F,((tempcx >> 4) & 0xf0)); in SiS_SetGroup2()
7085 tempcx += 8; in SiS_SetGroup2()
7086 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4; in SiS_SetGroup2()
7087 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2A,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
7089 tempcx = SiS_Pr->SiS_HT >> 1; in SiS_SetGroup2()
7090 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; in SiS_SetGroup2()
7092 tempcx -= (TimingPoint[j] | ((TimingPoint[j+1]) << 8)); in SiS_SetGroup2()
7093 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2D,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
7095 tempcx -= 11; in SiS_SetGroup2()
7097 tempcx = SiS_GetVGAHT2(SiS_Pr) - 1; in SiS_SetGroup2()
7099 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2E,tempcx); in SiS_SetGroup2()
7130 temp = (tempcx >> 8) & 0x0F; in SiS_SetGroup2()
7188 tempcx = tempax >> 13; in SiS_SetGroup2()
7196 tempcx &= 0x07; in SiS_SetGroup2()
7197 if(tempbx & 0x20) tempcx = 0; in SiS_SetGroup2()
7198 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x46,0xF8,tempcx); in SiS_SetGroup2()
7202 tempcx = 0x007e; in SiS_SetGroup2()
7205 tempcx = 0x0061; in SiS_SetGroup2()
7208 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4C,tempcx); in SiS_SetGroup2()
7209 temp = (tempcx & 0x0300) >> 6; in SiS_SetGroup2()
7272 tempcx = SiS_Pr->SiS_VT - 1; in SiS_SetGroup2()
7273 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x19,tempcx); in SiS_SetGroup2()
7274 temp = (tempcx >> 3) & 0xE0; in SiS_SetGroup2()
7325 tempcx = SiS_Pr->SiS_VT - 1; in SiS_SetGroup2()
7328 tempcx = SiS_Pr->SiS_VT - ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2); in SiS_SetGroup2()
7332 tempcx = SiS_Pr->SiS_VT; in SiS_SetGroup2()
7338 tempax = tempcx = 0; in SiS_SetGroup2()
7344 tempcx -= tempax; /* lcdvdes */ in SiS_SetGroup2()
7350 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x05,tempcx); /* lcdvdes */ in SiS_SetGroup2()
7354 temp |= ((tempcx >> 8) & 0x07); 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()
7387 tempcx = 3; in SiS_SetGroup2()
7401 tempbx += (tempcx + 1); in SiS_SetGroup2()
7433 tempcx = SiS_Pr->SiS_HT; in SiS_SetGroup2()
7442 tempcx >>= 1; in SiS_SetGroup2()
7452 tempcx = (tempcx - tempax) >> 2; in SiS_SetGroup2()
7454 tempbx += tempcx; in SiS_SetGroup2()
7477 tempcx <<= 1; in SiS_SetGroup2()
7479 if(SiS_Pr->PanelXRes != SiS_Pr->SiS_HDE) tempcx >>= 2; in SiS_SetGroup2()
7481 tempbx += tempcx; in SiS_SetGroup2()
7722 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo; in SiS_SetGroup4() local
7764 tempcx = SiS_Pr->SiS_VGAHT - 1; in SiS_SetGroup4()
7765 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x16,tempcx); in SiS_SetGroup4()
7767 temp |= ((tempcx >> 5) & 0x78); in SiS_SetGroup4()
7769 tempcx = SiS_Pr->SiS_VGAVT - 1; in SiS_SetGroup4()
7770 if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) tempcx -= 5; in SiS_SetGroup4()
7771 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x17,tempcx); in SiS_SetGroup4()
7773 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup4()
7813 tempcx = SiS_Pr->SiS_RVBHRS; in SiS_SetGroup4()
7814 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x18,tempcx); in SiS_SetGroup4()
7815 tempcx >>= 8; in SiS_SetGroup4()
7816 tempcx |= 0x40; in SiS_SetGroup4()
7819 tempcx ^= 0x40; in SiS_SetGroup4()
7834 temp |= (tempcx & 0x4F); in SiS_SetGroup4()