Lines Matching refs:tempcx
2967 USHORT temp1=0,modeflag=0,tempcx=0; in SiS_GetRAMDAC2DATA() local
2991 tempcx = SiS_Pr->SiS_CRT1Table[index].CR[13] << 8; in SiS_GetRAMDAC2DATA()
2992 tempcx &= 0x0100; in SiS_GetRAMDAC2DATA()
2993 tempcx <<= 2; in SiS_GetRAMDAC2DATA()
2994 tempbx |= tempcx; in SiS_GetRAMDAC2DATA()
5147 USHORT tempax,tempbx,tempcx,temp; in SiS_SetGroup1_301() local
5176 if(modeflag & Charx8Dot) tempcx = 0x08; in SiS_SetGroup1_301()
5177 else tempcx = 0x09; in SiS_SetGroup1_301()
5181 tempax = ((tempax / tempcx) - 1) & 0xff; in SiS_SetGroup1_301()
5203 tempax = (tempax / tempcx) - 5; in SiS_SetGroup1_301()
5204 tempcx = tempax; in SiS_SetGroup1_301()
5207 temp = tempcx - 1; in SiS_SetGroup1_301()
5216 tempcx = (tempcx + tempbx) >> 1; in SiS_SetGroup1_301()
5217 temp = (tempcx & 0x00FF) + 2; in SiS_SetGroup1_301()
5325 tempcx = 0x121; in SiS_SetGroup1_301()
5362 if(tempbx & 0x0100) tempcx |= 0x000a; in SiS_SetGroup1_301()
5363 if(tempbx & 0x0400) tempcx |= 0x1200; in SiS_SetGroup1_301()
5366 if(tempbx & 0x0100) tempcx |= 0x0002; in SiS_SetGroup1_301()
5367 if(tempbx & 0x0400) tempcx |= 0x0600; in SiS_SetGroup1_301()
5370 if(tempbx & 0x0200) tempcx |= 0x0040; in SiS_SetGroup1_301()
5414 if(tempbx & 0x0100) tempcx |= 0x0008; in SiS_SetGroup1_301()
5421 if(tempbx & 0x0100) tempcx |= 0x0004; in SiS_SetGroup1_301()
5422 if(tempbx & 0x0200) tempcx |= 0x0080; in SiS_SetGroup1_301()
5424 if(HwInfo->jChipType >= SIS_661) tempcx |= 0x0800; in SiS_SetGroup1_301()
5425 else if(SiS_Pr->SiS_VBType & VB_SIS301) tempcx |= 0x0800; in SiS_SetGroup1_301()
5426 else tempcx |= 0x0C00; in SiS_SetGroup1_301()
5433 if(tempbx & 0x0010) tempcx |= 0x2000; in SiS_SetGroup1_301()
5435 temp = tempcx & 0x00FF; in SiS_SetGroup1_301()
5438 temp = (tempcx & 0xFF00) >> 8; in SiS_SetGroup1_301()
5472 USHORT push2,tempax,tempbx,tempcx,temp; in SiS_SetGroup1_LVDS() local
5585 tempcx = (SiS_Pr->SiS_HT - tempbx) >> 2; in SiS_SetGroup1_LVDS()
5589 if(SiS_Pr->PanelHRS != 999) tempcx = SiS_Pr->PanelHRS; in SiS_SetGroup1_LVDS()
5593 tempcx += tempax; in SiS_SetGroup1_LVDS()
5594 if(tempcx >= SiS_Pr->SiS_HT) tempcx -= SiS_Pr->SiS_HT; in SiS_SetGroup1_LVDS()
5596 temp = (tempcx >> 3) & 0x00FF; in SiS_SetGroup1_LVDS()
5627 temp = tempcx + SiS_Pr->PanelHRE; in SiS_SetGroup1_LVDS()
5637 temp |= ((tempcx & 0x07) << 5); in SiS_SetGroup1_LVDS()
5657 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE; in SiS_SetGroup1_LVDS()
5661 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->PanelYRes; in SiS_SetGroup1_LVDS()
5665 if(islvds) tempcx >>= 1; in SiS_SetGroup1_LVDS()
5666 else tempcx >>= 2; in SiS_SetGroup1_LVDS()
5671 tempcx = SiS_Pr->PanelVRS; in SiS_SetGroup1_LVDS()
5672 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5675 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5690 tempcx >>= 3; in SiS_SetGroup1_LVDS()
5691 tempcx++; in SiS_SetGroup1_LVDS()
5695 if(SiS_Pr->PanelVRE != 999) tempcx = SiS_Pr->PanelVRE; in SiS_SetGroup1_LVDS()
5699 tempcx += tempbx; in SiS_SetGroup1_LVDS()
5700 temp = tempcx & 0x000F; in SiS_SetGroup1_LVDS()
5730 tempcx = SiS_Pr->SiS_LCDVDES; /* BPLVDES */ in SiS_SetGroup1_LVDS()
5736 tempcx = SiS_Pr->SiS_VGAVDE; in SiS_SetGroup1_LVDS()
5740 if(resinfo == SIS_RI_800x600) tempcx++; in SiS_SetGroup1_LVDS()
5745 if(resinfo == SIS_RI_1024x600) tempcx++; in SiS_SetGroup1_LVDS()
5747 if(resinfo == SIS_RI_800x600) tempcx++; in SiS_SetGroup1_LVDS()
5754 if(resinfo == SIS_RI_1024x768) tempcx++; in SiS_SetGroup1_LVDS()
5762 temp = temp | ((tempcx >> 8) & 0x07); in SiS_SetGroup1_LVDS()
5766 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1B,tempcx); in SiS_SetGroup1_LVDS()
6028 USHORT temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; in SiS_SetGroup1() local
6081 tempcx = (SiS_Pr->SiS_VGAHT - SiS_Pr->SiS_VGAHDE) >> 2; in SiS_SetGroup1()
6082 tempbx = pushbx + tempcx; in SiS_SetGroup1()
6083 tempcx <<= 1; in SiS_SetGroup1()
6084 tempcx += tempbx; in SiS_SetGroup1()
6094 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HT 0x08,0x09 */ in SiS_SetGroup1()
6097 tempcx >>= 1; in SiS_SetGroup1()
6100 tempcx = SiS_Pr->SiS_HT - SiS_Pr->SiS_HDE + tempax; in SiS_SetGroup1()
6102 tempcx = SiS_Pr->SiS_HT - tempax; in SiS_SetGroup1()
6106 tempcx--; in SiS_SetGroup1()
6107 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x08,tempcx); /* CRT2 Horizontal Total */ in SiS_SetGroup1()
6108 temp = (tempcx >> 4) & 0xF0; in SiS_SetGroup1()
6111 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HDEE 0x0A,0x0C */ in SiS_SetGroup1()
6113 tempcx -= tempbx; in SiS_SetGroup1()
6114 tempcx >>= 2; in SiS_SetGroup1()
6117 tempcx >>= 1; in SiS_SetGroup1()
6124 tempcx >>= 1; in SiS_SetGroup1()
6125 tempbx += tempcx; in SiS_SetGroup1()
6126 tempcx += tempbx; in SiS_SetGroup1()
6135 tempcx = (tempcx & 0xff00) | 0x30; in SiS_SetGroup1()
6137 tempcx = (tempcx & 0xff00) | 0xff; in SiS_SetGroup1()
6151 tempcx = SiS_Pr->CHSyncEnd + bridgeadd; in SiS_SetGroup1()
6155 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6172 tempcx = (((cr5 & 0x1f) | ((cr15 & 0x04) << (5-2))) - 3) << 3; /* (VGAHRE-3)*8 */ in SiS_SetGroup1()
6173 tempcx &= 0x00FF; in SiS_SetGroup1()
6174 tempcx |= (tempbx & 0xFF00); in SiS_SetGroup1()
6176 tempcx += bridgeadd; in SiS_SetGroup1()
6180 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6185 tempcx = 1044; /* HWCursor bug! */ in SiS_SetGroup1()
6192 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0D,tempcx); /* CRT2 Horizontal Retrace End */ in SiS_SetGroup1()
6199 tempcx = SiS_Pr->SiS_VGAVT - 1; in SiS_SetGroup1()
6200 temp = tempcx & 0x00FF; in SiS_SetGroup1()
6222 temp = ((tempbx >> 5) & 0x38) | ((tempcx >> 8) & 0x07); in SiS_SetGroup1()
6228 tempcx++; in SiS_SetGroup1()
6229 tempcx -= tempax; in SiS_SetGroup1()
6230 tempcx >>= 2; in SiS_SetGroup1()
6231 tempbx += tempcx; in SiS_SetGroup1()
6232 if(tempcx < 4) tempcx = 4; in SiS_SetGroup1()
6233 tempcx >>= 2; in SiS_SetGroup1()
6234 tempcx += tempbx; in SiS_SetGroup1()
6235 tempcx++; in SiS_SetGroup1()
6238 …tempcx = ((SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 … in SiS_SetGroup1()
6244 tempcx = SiS_Pr->CVSyncEnd; in SiS_SetGroup1()
6252 tempcx = SiS_Pr->CCRT1CRTC[9]; in SiS_SetGroup1()
6257 tempcx = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[9]; in SiS_SetGroup1()
6267 temp = ((tempbx >> 4) & 0x70) | (tempcx & 0x0F); in SiS_SetGroup1()
6499 USHORT tempcx; in SiS_Group2LCDSpecial() local
6530 tempcx = 0; in SiS_Group2LCDSpecial()
6533 tempcx += 7; in SiS_Group2LCDSpecial()
6536 tempcx += crt2crtc; in SiS_Group2LCDSpecial()
6549 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,atable[tempcx]); in SiS_Group2LCDSpecial()
6705 USHORT i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; in SiS_SetGroup2() local
6870 tempcx = SiS_Pr->SiS_HT; in SiS_SetGroup2()
6871 if(SiS_IsDualLink(SiS_Pr, HwInfo)) tempcx >>= 1; in SiS_SetGroup2()
6872 tempcx--; in SiS_SetGroup2()
6873 if(SiS_Pr->SiS_VBType & VB_SIS301BLV302BLV) tempcx--; in SiS_SetGroup2()
6874 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1B,tempcx); in SiS_SetGroup2()
6875 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0xF0,((tempcx >> 8) & 0x0f)); in SiS_SetGroup2()
6877 tempcx = SiS_Pr->SiS_HT >> 1; in SiS_SetGroup2()
6878 if(SiS_IsDualLink(SiS_Pr, HwInfo)) tempcx >>= 1; in SiS_SetGroup2()
6879 tempcx += 7; in SiS_SetGroup2()
6880 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4; in SiS_SetGroup2()
6881 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x22,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
6884 tempbx += tempcx; in SiS_SetGroup2()
6891 tempcx = tempbx; in SiS_SetGroup2()
6896 tempcx += (TimingPoint[j] | (TimingPoint[j+1] << 8)); in SiS_SetGroup2()
6897 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x27,tempcx); in SiS_SetGroup2()
6898 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x28,0x0F,((tempcx >> 4) & 0xf0)); in SiS_SetGroup2()
6900 tempcx += 8; in SiS_SetGroup2()
6901 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4; in SiS_SetGroup2()
6902 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2A,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
6904 tempcx = SiS_Pr->SiS_HT >> 1; in SiS_SetGroup2()
6905 if(SiS_IsDualLink(SiS_Pr, HwInfo)) tempcx >>= 1; in SiS_SetGroup2()
6907 tempcx -= (TimingPoint[j] | ((TimingPoint[j+1]) << 8)); in SiS_SetGroup2()
6908 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2D,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
6910 tempcx -= 11; in SiS_SetGroup2()
6912 tempcx = SiS_GetVGAHT2(SiS_Pr) - 1; in SiS_SetGroup2()
6914 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2E,tempcx); in SiS_SetGroup2()
6945 temp = (tempcx >> 8) & 0x0F; in SiS_SetGroup2()
7014 tempcx = tempax >> 13; in SiS_SetGroup2()
7022 tempcx &= 0x07; in SiS_SetGroup2()
7023 if(tempbx & 0x20) tempcx = 0; in SiS_SetGroup2()
7024 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x46,0xF8,tempcx); in SiS_SetGroup2()
7028 tempcx = 0x007e; in SiS_SetGroup2()
7031 tempcx = 0x0061; in SiS_SetGroup2()
7034 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4C,tempcx); in SiS_SetGroup2()
7035 temp = (tempcx & 0x0300) >> 6; in SiS_SetGroup2()
7100 tempcx = SiS_Pr->SiS_VT - 1; in SiS_SetGroup2()
7101 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x19,tempcx); in SiS_SetGroup2()
7102 temp = (tempcx >> 3) & 0xE0; in SiS_SetGroup2()
7154 tempcx = SiS_Pr->SiS_VT - 1; in SiS_SetGroup2()
7157 tempcx = SiS_Pr->SiS_VT - ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2); in SiS_SetGroup2()
7161 tempcx = SiS_Pr->SiS_VT; in SiS_SetGroup2()
7167 tempax = tempcx = 0; in SiS_SetGroup2()
7173 tempcx -= tempax; /* lcdvdes */ in SiS_SetGroup2()
7180 xf86DrvMsg(0, X_INFO, "lcdvdes 0x%x lcdvdee 0x%x\n", tempcx, tempbx); in SiS_SetGroup2()
7183 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x05,tempcx); /* lcdvdes */ in SiS_SetGroup2()
7187 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup2()
7194 tempcx = (SiS_Pr->SiS_VT - tempax) >> 4; in SiS_SetGroup2()
7197 tempcx = (SiS_Pr->SiS_VT - tempax) / 10; in SiS_SetGroup2()
7220 tempcx = 3; in SiS_SetGroup2()
7238 tempbx += (tempcx + 1); in SiS_SetGroup2()
7272 tempcx = SiS_Pr->SiS_HT; in SiS_SetGroup2()
7281 tempcx >>= 1; in SiS_SetGroup2()
7295 tempcx = (tempcx - tempax) >> 2; in SiS_SetGroup2()
7297 tempbx += tempcx; in SiS_SetGroup2()
7323 tempcx <<= 1; in SiS_SetGroup2()
7325 if(SiS_Pr->PanelXRes != SiS_Pr->SiS_HDE) tempcx >>= 2; in SiS_SetGroup2()
7327 tempbx += tempcx; in SiS_SetGroup2()
7535 USHORT tempax,tempcx,tempbx,modeflag,temp,resinfo; in SiS_SetGroup4() local
7588 tempcx = SiS_Pr->SiS_VGAHT - 1; in SiS_SetGroup4()
7589 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x16,tempcx); in SiS_SetGroup4()
7591 temp |= ((tempcx >> 5) & 0x78); in SiS_SetGroup4()
7593 tempcx = SiS_Pr->SiS_VGAVT - 1; in SiS_SetGroup4()
7594 if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) tempcx -= 5; in SiS_SetGroup4()
7595 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x17,tempcx); in SiS_SetGroup4()
7597 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup4()
7632 tempcx = SiS_Pr->SiS_RVBHRS; in SiS_SetGroup4()
7633 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x18,tempcx); in SiS_SetGroup4()
7634 tempcx >>= 8; in SiS_SetGroup4()
7635 tempcx |= 0x40; in SiS_SetGroup4()
7638 tempcx ^= 0x40; in SiS_SetGroup4()
7653 temp |= (tempcx & 0x4F); in SiS_SetGroup4()