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