Lines Matching defs:tempcx

3128   unsigned short temp1=0, modeflag=0, tempcx=0;
3153 tempcx = SiS_Pr->SiS_CRT1Table[index].CR[13] << 8;
3154 tempcx &= 0x0100;
3155 tempcx <<= 2;
3156 tempbx |= tempcx;
5513 unsigned short push2, tempax, tempbx, tempcx, temp;
5630 tempcx = (SiS_Pr->SiS_HT - tempbx) >> 2;
5634 if(SiS_Pr->PanelHRS != 999) tempcx = SiS_Pr->PanelHRS;
5638 tempcx += tempax;
5639 if(tempcx >= SiS_Pr->SiS_HT) tempcx -= SiS_Pr->SiS_HT;
5641 temp = (tempcx >> 3) & 0x00FF;
5672 temp = tempcx + SiS_Pr->PanelHRE;
5682 temp |= ((tempcx & 0x07) << 5);
5699 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE;
5703 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->PanelYRes;
5707 if(islvds) tempcx >>= 1;
5708 else tempcx >>= 2;
5713 tempcx = SiS_Pr->PanelVRS;
5714 tempbx += tempcx;
5717 tempbx += tempcx;
5732 tempcx >>= 3;
5733 tempcx++;
5737 if(SiS_Pr->PanelVRE != 999) tempcx = SiS_Pr->PanelVRE;
5741 tempcx += tempbx;
5742 temp = tempcx & 0x000F;
5772 tempcx = SiS_Pr->SiS_LCDVDES; /* BPLVDES */
5778 tempcx = SiS_Pr->SiS_VGAVDE;
5782 if(resinfo == SIS_RI_800x600) tempcx++;
5787 if(resinfo == SIS_RI_1024x600) tempcx++;
5789 if(resinfo == SIS_RI_800x600) tempcx++;
5796 if(resinfo == SIS_RI_1024x768) tempcx++;
5804 temp |= ((tempcx >> 8) & 0x07);
5807 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1B,tempcx);
6079 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0;
6140 tempcx = (SiS_Pr->SiS_VGAHT - SiS_Pr->SiS_VGAHDE) >> 2;
6141 tempbx = pushbx + tempcx;
6142 tempcx <<= 1;
6143 tempcx += tempbx;
6153 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HT 0x08,0x09 */
6156 tempcx >>= 1;
6159 tempcx = SiS_Pr->SiS_HT - SiS_Pr->SiS_HDE + tempax;
6161 tempcx = SiS_Pr->SiS_HT - tempax;
6165 tempcx--;
6166 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x08,tempcx); /* CRT2 Horizontal Total */
6167 temp = (tempcx >> 4) & 0xF0;
6170 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HDEE 0x0A,0x0C */
6172 tempcx -= tempbx;
6173 tempcx >>= 2;
6176 tempcx >>= 1;
6183 if(!lvds550) tempcx >>= 1;
6184 tempbx += tempcx;
6185 tempcx += tempbx;
6186 if(lvds550) tempcx += 20;
6195 tempcx = (tempcx & 0xff00) | 0x30;
6197 tempcx = (tempcx & 0xff00) | 0xff;
6211 tempcx = SiS_Pr->CHSyncEnd + bridgeadd;
6215 if(tempcx > tempax) tempcx = tempax;
6232 tempcx = (((cr5 & 0x1f) | ((cr15 & 0x04) << (5-2))) - 3) << 3; /* (VGAHRE-3)*8 */
6233 tempcx &= 0x00FF;
6234 tempcx |= (tempbx & 0xFF00);
6236 tempcx += bridgeadd;
6240 if(tempcx > tempax) tempcx = tempax;
6245 tempcx = 1044; /* HWCursor bug! */
6252 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0D,tempcx); /* CRT2 Horizontal Retrace End */
6259 tempcx = SiS_Pr->SiS_VGAVT - 1;
6260 temp = tempcx & 0x00FF;
6281 temp = ((tempbx >> 5) & 0x38) | ((tempcx >> 8) & 0x07);
6285 tempcx = (SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 2;
6286 tempbx = SiS_Pr->SiS_VGAVDE + tempcx;
6287 if(tempcx < 4) tempcx = 4;
6288 tempcx = (tempcx >> 2) + tempbx + 1;
6291 tempcx = ((SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 */
6297 tempcx = SiS_Pr->CVSyncEnd;
6305 tempcx = SiS_Pr->CCRT1CRTC[9];
6310 tempcx = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[9];
6320 temp = ((tempbx >> 4) & 0x70) | (tempcx & 0x0F);
6488 unsigned short tempcx;
6517 tempcx = 0;
6520 tempcx += 7;
6523 tempcx += crt2crtc;
6536 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,atable[tempcx]);
6714 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp;
6861 tempcx = SiS_Pr->SiS_HT;
6862 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1;
6863 tempcx--;
6864 if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) tempcx--;
6865 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1B,tempcx);
6866 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0xF0,((tempcx >> 8) & 0x0f));
6868 tempcx = SiS_Pr->SiS_HT >> 1;
6869 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1;
6870 tempcx += 7;
6871 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4;
6872 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x22,0x0F,((tempcx << 4) & 0xf0));
6875 tempbx += tempcx;
6882 tempcx = tempbx;
6887 tempcx += (TimingPoint[j] | (TimingPoint[j+1] << 8));
6888 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x27,tempcx);
6889 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x28,0x0F,((tempcx >> 4) & 0xf0));
6891 tempcx += 8;
6892 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4;
6893 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2A,0x0F,((tempcx << 4) & 0xf0));
6895 tempcx = SiS_Pr->SiS_HT >> 1;
6896 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1;
6898 tempcx -= (TimingPoint[j] | ((TimingPoint[j+1]) << 8));
6899 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2D,0x0F,((tempcx << 4) & 0xf0));
6901 tempcx -= 11;
6903 tempcx = SiS_GetVGAHT2(SiS_Pr) - 1;
6905 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2E,tempcx);
6936 temp = (tempcx >> 8) & 0x0F;
6964 tempax = tempbx = tempcx = 0;
6995 tempcx = tempax >> 13;
7003 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x46,0xF8,(tempcx & 0x07));
7007 tempcx = 0x007e;
7010 tempcx = 0x0061;
7013 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4C,tempcx);
7014 temp = (tempcx & 0x0300) >> 6;
7077 tempcx = SiS_Pr->SiS_VT - 1;
7078 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x19,tempcx);
7079 temp = (tempcx >> 3) & 0xE0;
7130 tempcx = SiS_Pr->SiS_VT - 1;
7133 tempcx = SiS_Pr->SiS_VT - ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2);
7137 tempcx = SiS_Pr->SiS_VT;
7143 tempax = tempcx = 0;
7149 tempcx -= tempax; /* lcdvdes */
7153 /* Non-expanding: lcdvdes = tempcx = VT-1; lcdvdee = tempbx = VDE-1 */
7157 xf86DrvMsg(0, X_INFO, "lcdvdes 0x%x lcdvdee 0x%x\n", tempcx, tempbx);
7161 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x05,tempcx); /* lcdvdes */
7165 temp |= ((tempcx >> 8) & 0x07);
7172 tempcx = (SiS_Pr->SiS_VT - tempax) >> 4;
7175 tempcx = (SiS_Pr->SiS_VT - tempax) / 10;
7198 tempcx = 3;
7218 tempbx += (tempcx + 1);
7256 tempcx = SiS_Pr->SiS_HT;
7265 tempcx >>= 1;
7281 tempcx = (tempcx - tempax) >> 2;
7283 tempbx += tempcx;
7312 tempcx <<= 1;
7314 if(SiS_Pr->PanelXRes != SiS_Pr->SiS_HDE) tempcx >>= 2;
7316 tempbx += tempcx;
7565 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo;
7607 tempcx = SiS_Pr->SiS_VGAHT - 1;
7608 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x16,tempcx);
7610 temp |= ((tempcx >> 5) & 0x78);
7612 tempcx = SiS_Pr->SiS_VGAVT - 1;
7613 if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) tempcx -= 5;
7614 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x17,tempcx);
7616 temp |= ((tempcx >> 8) & 0x07);
7656 tempcx = SiS_Pr->SiS_RVBHRS;
7657 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x18,tempcx);
7658 tempcx >>= 8;
7659 tempcx |= 0x40;
7662 tempcx ^= 0x40;
7677 temp |= (tempcx & 0x4F);