Lines Matching refs:tempcx

3339   unsigned short temp1=0, modeflag=0, tempcx=0;  in SiS_GetRAMDAC2DATA()  local
3364 tempcx = SiS_Pr->SiS_CRT1Table[index].CR[13] << 8; in SiS_GetRAMDAC2DATA()
3365 tempcx &= 0x0100; in SiS_GetRAMDAC2DATA()
3366 tempcx <<= 2; in SiS_GetRAMDAC2DATA()
3367 tempbx |= tempcx; in SiS_GetRAMDAC2DATA()
5677 unsigned short push2, tempax, tempbx, tempcx, temp; in SiS_SetGroup1_LVDS() local
5786 tempcx = (SiS_Pr->SiS_HT - tempbx) >> 2; in SiS_SetGroup1_LVDS()
5790 if(SiS_Pr->PanelHRS != 999) tempcx = SiS_Pr->PanelHRS; in SiS_SetGroup1_LVDS()
5794 tempcx += tempax; in SiS_SetGroup1_LVDS()
5795 if(tempcx >= SiS_Pr->SiS_HT) tempcx -= SiS_Pr->SiS_HT; in SiS_SetGroup1_LVDS()
5797 temp = (tempcx >> 3) & 0x00FF; in SiS_SetGroup1_LVDS()
5828 temp = tempcx + SiS_Pr->PanelHRE; in SiS_SetGroup1_LVDS()
5838 temp |= ((tempcx & 0x07) << 5); in SiS_SetGroup1_LVDS()
5855 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE; in SiS_SetGroup1_LVDS()
5859 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->PanelYRes; in SiS_SetGroup1_LVDS()
5863 if(islvds) tempcx >>= 1; in SiS_SetGroup1_LVDS()
5864 else tempcx >>= 2; in SiS_SetGroup1_LVDS()
5869 tempcx = SiS_Pr->PanelVRS; in SiS_SetGroup1_LVDS()
5870 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5873 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5888 tempcx >>= 3; in SiS_SetGroup1_LVDS()
5889 tempcx++; in SiS_SetGroup1_LVDS()
5893 if(SiS_Pr->PanelVRE != 999) tempcx = SiS_Pr->PanelVRE; in SiS_SetGroup1_LVDS()
5897 tempcx += tempbx; in SiS_SetGroup1_LVDS()
5898 temp = tempcx & 0x000F; in SiS_SetGroup1_LVDS()
5928 tempcx = SiS_Pr->SiS_LCDVDES; /* BPLVDES */ in SiS_SetGroup1_LVDS()
5934 tempcx = SiS_Pr->SiS_VGAVDE; in SiS_SetGroup1_LVDS()
5938 if(resinfo == SIS_RI_800x600) tempcx++; in SiS_SetGroup1_LVDS()
5943 if(resinfo == SIS_RI_1024x600) tempcx++; in SiS_SetGroup1_LVDS()
5945 if(resinfo == SIS_RI_800x600) tempcx++; in SiS_SetGroup1_LVDS()
5952 if(resinfo == SIS_RI_1024x768) tempcx++; in SiS_SetGroup1_LVDS()
5960 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup1_LVDS()
5963 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1B,tempcx); in SiS_SetGroup1_LVDS()
6235 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; in SiS_SetGroup1() local
6288 tempcx = (SiS_Pr->SiS_VGAHT - SiS_Pr->SiS_VGAHDE) >> 2; in SiS_SetGroup1()
6289 tempbx = pushbx + tempcx; in SiS_SetGroup1()
6290 tempcx <<= 1; in SiS_SetGroup1()
6291 tempcx += tempbx; in SiS_SetGroup1()
6301 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HT 0x08,0x09 */ in SiS_SetGroup1()
6304 tempcx >>= 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()
6313 tempcx--; in SiS_SetGroup1()
6314 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x08,tempcx); /* CRT2 Horizontal Total */ in SiS_SetGroup1()
6315 temp = (tempcx >> 4) & 0xF0; in SiS_SetGroup1()
6318 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HDEE 0x0A,0x0C */ in SiS_SetGroup1()
6320 tempcx -= tempbx; in SiS_SetGroup1()
6321 tempcx >>= 2; in SiS_SetGroup1()
6324 tempcx >>= 1; in SiS_SetGroup1()
6331 tempcx >>= 1; in SiS_SetGroup1()
6332 tempbx += tempcx; in SiS_SetGroup1()
6333 tempcx += tempbx; in SiS_SetGroup1()
6342 tempcx = (tempcx & 0xff00) | 0x30; in SiS_SetGroup1()
6344 tempcx = (tempcx & 0xff00) | 0xff; in SiS_SetGroup1()
6358 tempcx = SiS_Pr->CHSyncEnd + bridgeadd; in SiS_SetGroup1()
6362 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6379 tempcx = (((cr5 & 0x1f) | ((cr15 & 0x04) << (5-2))) - 3) << 3; /* (VGAHRE-3)*8 */ in SiS_SetGroup1()
6380 tempcx &= 0x00FF; in SiS_SetGroup1()
6381 tempcx |= (tempbx & 0xFF00); in SiS_SetGroup1()
6383 tempcx += bridgeadd; in SiS_SetGroup1()
6387 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6392 tempcx = 1044; /* HWCursor bug! */ in SiS_SetGroup1()
6399 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0D,tempcx); /* CRT2 Horizontal Retrace End */ in SiS_SetGroup1()
6406 tempcx = SiS_Pr->SiS_VGAVT - 1; in SiS_SetGroup1()
6407 temp = tempcx & 0x00FF; in SiS_SetGroup1()
6429 temp = ((tempbx >> 5) & 0x38) | ((tempcx >> 8) & 0x07); in SiS_SetGroup1()
6435 tempcx++; in SiS_SetGroup1()
6436 tempcx -= tempax; in SiS_SetGroup1()
6437 tempcx >>= 2; in SiS_SetGroup1()
6438 tempbx += tempcx; in SiS_SetGroup1()
6439 if(tempcx < 4) tempcx = 4; in SiS_SetGroup1()
6440 tempcx >>= 2; in SiS_SetGroup1()
6441 tempcx += tempbx; in SiS_SetGroup1()
6442 tempcx++; in SiS_SetGroup1()
6445tempcx = ((SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 … in SiS_SetGroup1()
6451 tempcx = SiS_Pr->CVSyncEnd; in SiS_SetGroup1()
6459 tempcx = SiS_Pr->CCRT1CRTC[9]; in SiS_SetGroup1()
6464 tempcx = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[9]; in SiS_SetGroup1()
6474 temp = ((tempbx >> 4) & 0x70) | (tempcx & 0x0F); in SiS_SetGroup1()
6707 unsigned short tempcx; in SiS_Group2LCDSpecial() local
6736 tempcx = 0; in SiS_Group2LCDSpecial()
6739 tempcx += 7; in SiS_Group2LCDSpecial()
6742 tempcx += crt2crtc; in SiS_Group2LCDSpecial()
6755 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,atable[tempcx]); in SiS_Group2LCDSpecial()
6910 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; in SiS_SetGroup2() local
7058 tempcx = SiS_Pr->SiS_HT; in SiS_SetGroup2()
7059 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; in SiS_SetGroup2()
7060 tempcx--; in SiS_SetGroup2()
7061 if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) tempcx--; in SiS_SetGroup2()
7062 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1B,tempcx); in SiS_SetGroup2()
7063 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0xF0,((tempcx >> 8) & 0x0f)); in SiS_SetGroup2()
7065 tempcx = SiS_Pr->SiS_HT >> 1; in SiS_SetGroup2()
7066 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; in SiS_SetGroup2()
7067 tempcx += 7; in SiS_SetGroup2()
7068 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4; in SiS_SetGroup2()
7069 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x22,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
7072 tempbx += tempcx; in SiS_SetGroup2()
7079 tempcx = tempbx; in SiS_SetGroup2()
7084 tempcx += (TimingPoint[j] | (TimingPoint[j+1] << 8)); in SiS_SetGroup2()
7085 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x27,tempcx); in SiS_SetGroup2()
7086 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x28,0x0F,((tempcx >> 4) & 0xf0)); in SiS_SetGroup2()
7088 tempcx += 8; in SiS_SetGroup2()
7089 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4; in SiS_SetGroup2()
7090 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2A,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
7092 tempcx = SiS_Pr->SiS_HT >> 1; in SiS_SetGroup2()
7093 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; in SiS_SetGroup2()
7095 tempcx -= (TimingPoint[j] | ((TimingPoint[j+1]) << 8)); in SiS_SetGroup2()
7096 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2D,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
7098 tempcx -= 11; in SiS_SetGroup2()
7100 tempcx = SiS_GetVGAHT2(SiS_Pr) - 1; in SiS_SetGroup2()
7102 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2E,tempcx); in SiS_SetGroup2()
7133 temp = (tempcx >> 8) & 0x0F; in SiS_SetGroup2()
7191 tempcx = tempax >> 13; in SiS_SetGroup2()
7199 tempcx &= 0x07; in SiS_SetGroup2()
7200 if(tempbx & 0x20) tempcx = 0; in SiS_SetGroup2()
7201 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x46,0xF8,tempcx); in SiS_SetGroup2()
7205 tempcx = 0x007e; in SiS_SetGroup2()
7208 tempcx = 0x0061; in SiS_SetGroup2()
7211 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4C,tempcx); in SiS_SetGroup2()
7212 temp = (tempcx & 0x0300) >> 6; in SiS_SetGroup2()
7275 tempcx = SiS_Pr->SiS_VT - 1; in SiS_SetGroup2()
7276 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x19,tempcx); in SiS_SetGroup2()
7277 temp = (tempcx >> 3) & 0xE0; in SiS_SetGroup2()
7328 tempcx = SiS_Pr->SiS_VT - 1; in SiS_SetGroup2()
7331 tempcx = SiS_Pr->SiS_VT - ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2); in SiS_SetGroup2()
7335 tempcx = SiS_Pr->SiS_VT; in SiS_SetGroup2()
7341 tempax = tempcx = 0; in SiS_SetGroup2()
7347 tempcx -= tempax; /* lcdvdes */ in SiS_SetGroup2()
7353 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x05,tempcx); /* lcdvdes */ in SiS_SetGroup2()
7357 temp |= ((tempcx >> 8) & 0x07); 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()
7390 tempcx = 3; in SiS_SetGroup2()
7404 tempbx += (tempcx + 1); in SiS_SetGroup2()
7436 tempcx = SiS_Pr->SiS_HT; in SiS_SetGroup2()
7445 tempcx >>= 1; in SiS_SetGroup2()
7455 tempcx = (tempcx - tempax) >> 2; in SiS_SetGroup2()
7457 tempbx += tempcx; in SiS_SetGroup2()
7480 tempcx <<= 1; in SiS_SetGroup2()
7482 if(SiS_Pr->PanelXRes != SiS_Pr->SiS_HDE) tempcx >>= 2; in SiS_SetGroup2()
7484 tempbx += tempcx; in SiS_SetGroup2()
7725 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo; in SiS_SetGroup4() local
7767 tempcx = SiS_Pr->SiS_VGAHT - 1; in SiS_SetGroup4()
7768 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x16,tempcx); in SiS_SetGroup4()
7770 temp |= ((tempcx >> 5) & 0x78); in SiS_SetGroup4()
7772 tempcx = SiS_Pr->SiS_VGAVT - 1; in SiS_SetGroup4()
7773 if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) tempcx -= 5; in SiS_SetGroup4()
7774 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x17,tempcx); in SiS_SetGroup4()
7776 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup4()
7816 tempcx = SiS_Pr->SiS_RVBHRS; in SiS_SetGroup4()
7817 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x18,tempcx); in SiS_SetGroup4()
7818 tempcx >>= 8; in SiS_SetGroup4()
7819 tempcx |= 0x40; in SiS_SetGroup4()
7822 tempcx ^= 0x40; in SiS_SetGroup4()
7837 temp |= (tempcx & 0x4F); in SiS_SetGroup4()