Lines Matching refs:tempcx

3337   unsigned short temp1=0, modeflag=0, tempcx=0;  in SiS_GetRAMDAC2DATA()  local
3362 tempcx = SiS_Pr->SiS_CRT1Table[index].CR[13] << 8; in SiS_GetRAMDAC2DATA()
3363 tempcx &= 0x0100; in SiS_GetRAMDAC2DATA()
3364 tempcx <<= 2; in SiS_GetRAMDAC2DATA()
3365 tempbx |= tempcx; in SiS_GetRAMDAC2DATA()
5675 unsigned short push2, tempax, tempbx, tempcx, temp; in SiS_SetGroup1_LVDS() local
5784 tempcx = (SiS_Pr->SiS_HT - tempbx) >> 2; in SiS_SetGroup1_LVDS()
5788 if(SiS_Pr->PanelHRS != 999) tempcx = SiS_Pr->PanelHRS; in SiS_SetGroup1_LVDS()
5792 tempcx += tempax; in SiS_SetGroup1_LVDS()
5793 if(tempcx >= SiS_Pr->SiS_HT) tempcx -= SiS_Pr->SiS_HT; in SiS_SetGroup1_LVDS()
5795 temp = (tempcx >> 3) & 0x00FF; in SiS_SetGroup1_LVDS()
5826 temp = tempcx + SiS_Pr->PanelHRE; in SiS_SetGroup1_LVDS()
5836 temp |= ((tempcx & 0x07) << 5); in SiS_SetGroup1_LVDS()
5853 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE; in SiS_SetGroup1_LVDS()
5857 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->PanelYRes; in SiS_SetGroup1_LVDS()
5861 if(islvds) tempcx >>= 1; in SiS_SetGroup1_LVDS()
5862 else tempcx >>= 2; in SiS_SetGroup1_LVDS()
5867 tempcx = SiS_Pr->PanelVRS; in SiS_SetGroup1_LVDS()
5868 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5871 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5886 tempcx >>= 3; in SiS_SetGroup1_LVDS()
5887 tempcx++; in SiS_SetGroup1_LVDS()
5891 if(SiS_Pr->PanelVRE != 999) tempcx = SiS_Pr->PanelVRE; in SiS_SetGroup1_LVDS()
5895 tempcx += tempbx; in SiS_SetGroup1_LVDS()
5896 temp = tempcx & 0x000F; in SiS_SetGroup1_LVDS()
5926 tempcx = SiS_Pr->SiS_LCDVDES; /* BPLVDES */ in SiS_SetGroup1_LVDS()
5932 tempcx = SiS_Pr->SiS_VGAVDE; in SiS_SetGroup1_LVDS()
5936 if(resinfo == SIS_RI_800x600) tempcx++; in SiS_SetGroup1_LVDS()
5941 if(resinfo == SIS_RI_1024x600) tempcx++; in SiS_SetGroup1_LVDS()
5943 if(resinfo == SIS_RI_800x600) tempcx++; in SiS_SetGroup1_LVDS()
5950 if(resinfo == SIS_RI_1024x768) tempcx++; in SiS_SetGroup1_LVDS()
5958 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup1_LVDS()
5961 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1B,tempcx); in SiS_SetGroup1_LVDS()
6233 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; in SiS_SetGroup1() local
6286 tempcx = (SiS_Pr->SiS_VGAHT - SiS_Pr->SiS_VGAHDE) >> 2; in SiS_SetGroup1()
6287 tempbx = pushbx + tempcx; in SiS_SetGroup1()
6288 tempcx <<= 1; in SiS_SetGroup1()
6289 tempcx += tempbx; in SiS_SetGroup1()
6299 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HT 0x08,0x09 */ in SiS_SetGroup1()
6302 tempcx >>= 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()
6311 tempcx--; in SiS_SetGroup1()
6312 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x08,tempcx); /* CRT2 Horizontal Total */ in SiS_SetGroup1()
6313 temp = (tempcx >> 4) & 0xF0; in SiS_SetGroup1()
6316 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HDEE 0x0A,0x0C */ in SiS_SetGroup1()
6318 tempcx -= tempbx; in SiS_SetGroup1()
6319 tempcx >>= 2; in SiS_SetGroup1()
6322 tempcx >>= 1; in SiS_SetGroup1()
6329 tempcx >>= 1; in SiS_SetGroup1()
6330 tempbx += tempcx; in SiS_SetGroup1()
6331 tempcx += tempbx; in SiS_SetGroup1()
6340 tempcx = (tempcx & 0xff00) | 0x30; in SiS_SetGroup1()
6342 tempcx = (tempcx & 0xff00) | 0xff; in SiS_SetGroup1()
6356 tempcx = SiS_Pr->CHSyncEnd + bridgeadd; in SiS_SetGroup1()
6360 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6377 tempcx = (((cr5 & 0x1f) | ((cr15 & 0x04) << (5-2))) - 3) << 3; /* (VGAHRE-3)*8 */ in SiS_SetGroup1()
6378 tempcx &= 0x00FF; in SiS_SetGroup1()
6379 tempcx |= (tempbx & 0xFF00); in SiS_SetGroup1()
6381 tempcx += bridgeadd; in SiS_SetGroup1()
6385 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6390 tempcx = 1044; /* HWCursor bug! */ in SiS_SetGroup1()
6397 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0D,tempcx); /* CRT2 Horizontal Retrace End */ in SiS_SetGroup1()
6404 tempcx = SiS_Pr->SiS_VGAVT - 1; in SiS_SetGroup1()
6405 temp = tempcx & 0x00FF; in SiS_SetGroup1()
6427 temp = ((tempbx >> 5) & 0x38) | ((tempcx >> 8) & 0x07); in SiS_SetGroup1()
6433 tempcx++; in SiS_SetGroup1()
6434 tempcx -= tempax; in SiS_SetGroup1()
6435 tempcx >>= 2; in SiS_SetGroup1()
6436 tempbx += tempcx; in SiS_SetGroup1()
6437 if(tempcx < 4) tempcx = 4; in SiS_SetGroup1()
6438 tempcx >>= 2; in SiS_SetGroup1()
6439 tempcx += tempbx; in SiS_SetGroup1()
6440 tempcx++; in SiS_SetGroup1()
6443tempcx = ((SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 … in SiS_SetGroup1()
6449 tempcx = SiS_Pr->CVSyncEnd; in SiS_SetGroup1()
6457 tempcx = SiS_Pr->CCRT1CRTC[9]; in SiS_SetGroup1()
6462 tempcx = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[9]; in SiS_SetGroup1()
6472 temp = ((tempbx >> 4) & 0x70) | (tempcx & 0x0F); in SiS_SetGroup1()
6705 unsigned short tempcx; in SiS_Group2LCDSpecial() local
6734 tempcx = 0; in SiS_Group2LCDSpecial()
6737 tempcx += 7; in SiS_Group2LCDSpecial()
6740 tempcx += crt2crtc; in SiS_Group2LCDSpecial()
6753 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,atable[tempcx]); in SiS_Group2LCDSpecial()
6908 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; in SiS_SetGroup2() local
7056 tempcx = SiS_Pr->SiS_HT; in SiS_SetGroup2()
7057 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; in SiS_SetGroup2()
7058 tempcx--; in SiS_SetGroup2()
7059 if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) tempcx--; in SiS_SetGroup2()
7060 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1B,tempcx); in SiS_SetGroup2()
7061 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0xF0,((tempcx >> 8) & 0x0f)); in SiS_SetGroup2()
7063 tempcx = SiS_Pr->SiS_HT >> 1; in SiS_SetGroup2()
7064 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; in SiS_SetGroup2()
7065 tempcx += 7; in SiS_SetGroup2()
7066 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4; in SiS_SetGroup2()
7067 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x22,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
7070 tempbx += tempcx; in SiS_SetGroup2()
7077 tempcx = tempbx; in SiS_SetGroup2()
7082 tempcx += (TimingPoint[j] | (TimingPoint[j+1] << 8)); in SiS_SetGroup2()
7083 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x27,tempcx); in SiS_SetGroup2()
7084 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x28,0x0F,((tempcx >> 4) & 0xf0)); in SiS_SetGroup2()
7086 tempcx += 8; in SiS_SetGroup2()
7087 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4; in SiS_SetGroup2()
7088 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2A,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
7090 tempcx = SiS_Pr->SiS_HT >> 1; in SiS_SetGroup2()
7091 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; in SiS_SetGroup2()
7093 tempcx -= (TimingPoint[j] | ((TimingPoint[j+1]) << 8)); in SiS_SetGroup2()
7094 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2D,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
7096 tempcx -= 11; in SiS_SetGroup2()
7098 tempcx = SiS_GetVGAHT2(SiS_Pr) - 1; in SiS_SetGroup2()
7100 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2E,tempcx); in SiS_SetGroup2()
7131 temp = (tempcx >> 8) & 0x0F; in SiS_SetGroup2()
7189 tempcx = tempax >> 13; in SiS_SetGroup2()
7197 tempcx &= 0x07; in SiS_SetGroup2()
7198 if(tempbx & 0x20) tempcx = 0; in SiS_SetGroup2()
7199 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x46,0xF8,tempcx); in SiS_SetGroup2()
7203 tempcx = 0x007e; in SiS_SetGroup2()
7206 tempcx = 0x0061; in SiS_SetGroup2()
7209 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4C,tempcx); in SiS_SetGroup2()
7210 temp = (tempcx & 0x0300) >> 6; in SiS_SetGroup2()
7273 tempcx = SiS_Pr->SiS_VT - 1; in SiS_SetGroup2()
7274 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x19,tempcx); in SiS_SetGroup2()
7275 temp = (tempcx >> 3) & 0xE0; in SiS_SetGroup2()
7326 tempcx = SiS_Pr->SiS_VT - 1; in SiS_SetGroup2()
7329 tempcx = SiS_Pr->SiS_VT - ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2); in SiS_SetGroup2()
7333 tempcx = SiS_Pr->SiS_VT; in SiS_SetGroup2()
7339 tempax = tempcx = 0; in SiS_SetGroup2()
7345 tempcx -= tempax; /* lcdvdes */ in SiS_SetGroup2()
7351 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x05,tempcx); /* lcdvdes */ in SiS_SetGroup2()
7355 temp |= ((tempcx >> 8) & 0x07); 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()
7388 tempcx = 3; in SiS_SetGroup2()
7402 tempbx += (tempcx + 1); in SiS_SetGroup2()
7434 tempcx = SiS_Pr->SiS_HT; in SiS_SetGroup2()
7443 tempcx >>= 1; in SiS_SetGroup2()
7453 tempcx = (tempcx - tempax) >> 2; in SiS_SetGroup2()
7455 tempbx += tempcx; in SiS_SetGroup2()
7478 tempcx <<= 1; in SiS_SetGroup2()
7480 if(SiS_Pr->PanelXRes != SiS_Pr->SiS_HDE) tempcx >>= 2; in SiS_SetGroup2()
7482 tempbx += tempcx; in SiS_SetGroup2()
7723 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo; in SiS_SetGroup4() local
7765 tempcx = SiS_Pr->SiS_VGAHT - 1; in SiS_SetGroup4()
7766 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x16,tempcx); in SiS_SetGroup4()
7768 temp |= ((tempcx >> 5) & 0x78); in SiS_SetGroup4()
7770 tempcx = SiS_Pr->SiS_VGAVT - 1; in SiS_SetGroup4()
7771 if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) tempcx -= 5; in SiS_SetGroup4()
7772 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x17,tempcx); in SiS_SetGroup4()
7774 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup4()
7814 tempcx = SiS_Pr->SiS_RVBHRS; in SiS_SetGroup4()
7815 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x18,tempcx); in SiS_SetGroup4()
7816 tempcx >>= 8; in SiS_SetGroup4()
7817 tempcx |= 0x40; in SiS_SetGroup4()
7820 tempcx ^= 0x40; in SiS_SetGroup4()
7835 temp |= (tempcx & 0x4F); in SiS_SetGroup4()