Lines Matching refs:tempcx

3015   unsigned short temp1=0, modeflag=0, tempcx=0;  in SiS_GetRAMDAC2DATA()  local
3040 tempcx = SiS_Pr->SiS_CRT1Table[index].CR[13] << 8; in SiS_GetRAMDAC2DATA()
3041 tempcx &= 0x0100; in SiS_GetRAMDAC2DATA()
3042 tempcx <<= 2; in SiS_GetRAMDAC2DATA()
3043 tempbx |= tempcx; in SiS_GetRAMDAC2DATA()
5353 unsigned short push2, tempax, tempbx, tempcx, temp; in SiS_SetGroup1_LVDS() local
5462 tempcx = (SiS_Pr->SiS_HT - tempbx) >> 2; in SiS_SetGroup1_LVDS()
5466 if(SiS_Pr->PanelHRS != 999) tempcx = SiS_Pr->PanelHRS; in SiS_SetGroup1_LVDS()
5470 tempcx += tempax; in SiS_SetGroup1_LVDS()
5471 if(tempcx >= SiS_Pr->SiS_HT) tempcx -= SiS_Pr->SiS_HT; in SiS_SetGroup1_LVDS()
5473 temp = (tempcx >> 3) & 0x00FF; in SiS_SetGroup1_LVDS()
5504 temp = tempcx + SiS_Pr->PanelHRE; in SiS_SetGroup1_LVDS()
5514 temp |= ((tempcx & 0x07) << 5); in SiS_SetGroup1_LVDS()
5531 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE; in SiS_SetGroup1_LVDS()
5535 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->PanelYRes; in SiS_SetGroup1_LVDS()
5539 if(islvds) tempcx >>= 1; in SiS_SetGroup1_LVDS()
5540 else tempcx >>= 2; in SiS_SetGroup1_LVDS()
5545 tempcx = SiS_Pr->PanelVRS; in SiS_SetGroup1_LVDS()
5546 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5549 tempbx += tempcx; in SiS_SetGroup1_LVDS()
5564 tempcx >>= 3; in SiS_SetGroup1_LVDS()
5565 tempcx++; in SiS_SetGroup1_LVDS()
5569 if(SiS_Pr->PanelVRE != 999) tempcx = SiS_Pr->PanelVRE; in SiS_SetGroup1_LVDS()
5573 tempcx += tempbx; in SiS_SetGroup1_LVDS()
5574 temp = tempcx & 0x000F; in SiS_SetGroup1_LVDS()
5604 tempcx = SiS_Pr->SiS_LCDVDES; /* BPLVDES */ in SiS_SetGroup1_LVDS()
5610 tempcx = SiS_Pr->SiS_VGAVDE; in SiS_SetGroup1_LVDS()
5614 if(resinfo == SIS_RI_800x600) tempcx++; in SiS_SetGroup1_LVDS()
5619 if(resinfo == SIS_RI_1024x600) tempcx++; in SiS_SetGroup1_LVDS()
5621 if(resinfo == SIS_RI_800x600) tempcx++; in SiS_SetGroup1_LVDS()
5628 if(resinfo == SIS_RI_1024x768) tempcx++; in SiS_SetGroup1_LVDS()
5636 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup1_LVDS()
5639 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1B,tempcx); in SiS_SetGroup1_LVDS()
5911 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; in SiS_SetGroup1() local
5964 tempcx = (SiS_Pr->SiS_VGAHT - SiS_Pr->SiS_VGAHDE) >> 2; in SiS_SetGroup1()
5965 tempbx = pushbx + tempcx; in SiS_SetGroup1()
5966 tempcx <<= 1; in SiS_SetGroup1()
5967 tempcx += tempbx; in SiS_SetGroup1()
5977 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HT 0x08,0x09 */ in SiS_SetGroup1()
5980 tempcx >>= 1; in SiS_SetGroup1()
5983 tempcx = SiS_Pr->SiS_HT - SiS_Pr->SiS_HDE + tempax; in SiS_SetGroup1()
5985 tempcx = SiS_Pr->SiS_HT - tempax; in SiS_SetGroup1()
5989 tempcx--; in SiS_SetGroup1()
5990 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x08,tempcx); /* CRT2 Horizontal Total */ in SiS_SetGroup1()
5991 temp = (tempcx >> 4) & 0xF0; in SiS_SetGroup1()
5994 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HDEE 0x0A,0x0C */ in SiS_SetGroup1()
5996 tempcx -= tempbx; in SiS_SetGroup1()
5997 tempcx >>= 2; in SiS_SetGroup1()
6000 tempcx >>= 1; in SiS_SetGroup1()
6007 tempcx >>= 1; in SiS_SetGroup1()
6008 tempbx += tempcx; in SiS_SetGroup1()
6009 tempcx += tempbx; in SiS_SetGroup1()
6018 tempcx = (tempcx & 0xff00) | 0x30; in SiS_SetGroup1()
6020 tempcx = (tempcx & 0xff00) | 0xff; in SiS_SetGroup1()
6034 tempcx = SiS_Pr->CHSyncEnd + bridgeadd; in SiS_SetGroup1()
6038 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6055 tempcx = (((cr5 & 0x1f) | ((cr15 & 0x04) << (5-2))) - 3) << 3; /* (VGAHRE-3)*8 */ in SiS_SetGroup1()
6056 tempcx &= 0x00FF; in SiS_SetGroup1()
6057 tempcx |= (tempbx & 0xFF00); in SiS_SetGroup1()
6059 tempcx += bridgeadd; in SiS_SetGroup1()
6063 if(tempcx > tempax) tempcx = tempax; in SiS_SetGroup1()
6068 tempcx = 1044; /* HWCursor bug! */ in SiS_SetGroup1()
6075 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0D,tempcx); /* CRT2 Horizontal Retrace End */ in SiS_SetGroup1()
6082 tempcx = SiS_Pr->SiS_VGAVT - 1; in SiS_SetGroup1()
6083 temp = tempcx & 0x00FF; in SiS_SetGroup1()
6105 temp = ((tempbx >> 5) & 0x38) | ((tempcx >> 8) & 0x07); in SiS_SetGroup1()
6111 tempcx++; in SiS_SetGroup1()
6112 tempcx -= tempax; in SiS_SetGroup1()
6113 tempcx >>= 2; in SiS_SetGroup1()
6114 tempbx += tempcx; in SiS_SetGroup1()
6115 if(tempcx < 4) tempcx = 4; in SiS_SetGroup1()
6116 tempcx >>= 2; in SiS_SetGroup1()
6117 tempcx += tempbx; in SiS_SetGroup1()
6118 tempcx++; in SiS_SetGroup1()
6121tempcx = ((SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 … in SiS_SetGroup1()
6127 tempcx = SiS_Pr->CVSyncEnd; in SiS_SetGroup1()
6135 tempcx = SiS_Pr->CCRT1CRTC[9]; in SiS_SetGroup1()
6140 tempcx = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[9]; in SiS_SetGroup1()
6150 temp = ((tempbx >> 4) & 0x70) | (tempcx & 0x0F); in SiS_SetGroup1()
6383 unsigned short tempcx; in SiS_Group2LCDSpecial() local
6412 tempcx = 0; in SiS_Group2LCDSpecial()
6415 tempcx += 7; in SiS_Group2LCDSpecial()
6418 tempcx += crt2crtc; in SiS_Group2LCDSpecial()
6431 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,atable[tempcx]); in SiS_Group2LCDSpecial()
6586 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; in SiS_SetGroup2() local
6734 tempcx = SiS_Pr->SiS_HT; in SiS_SetGroup2()
6735 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; in SiS_SetGroup2()
6736 tempcx--; in SiS_SetGroup2()
6737 if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) tempcx--; in SiS_SetGroup2()
6738 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1B,tempcx); in SiS_SetGroup2()
6739 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0xF0,((tempcx >> 8) & 0x0f)); in SiS_SetGroup2()
6741 tempcx = SiS_Pr->SiS_HT >> 1; in SiS_SetGroup2()
6742 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; in SiS_SetGroup2()
6743 tempcx += 7; in SiS_SetGroup2()
6744 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4; in SiS_SetGroup2()
6745 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x22,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
6748 tempbx += tempcx; in SiS_SetGroup2()
6755 tempcx = tempbx; in SiS_SetGroup2()
6760 tempcx += (TimingPoint[j] | (TimingPoint[j+1] << 8)); in SiS_SetGroup2()
6761 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x27,tempcx); in SiS_SetGroup2()
6762 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x28,0x0F,((tempcx >> 4) & 0xf0)); in SiS_SetGroup2()
6764 tempcx += 8; in SiS_SetGroup2()
6765 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4; in SiS_SetGroup2()
6766 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2A,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
6768 tempcx = SiS_Pr->SiS_HT >> 1; in SiS_SetGroup2()
6769 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1; in SiS_SetGroup2()
6771 tempcx -= (TimingPoint[j] | ((TimingPoint[j+1]) << 8)); in SiS_SetGroup2()
6772 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2D,0x0F,((tempcx << 4) & 0xf0)); in SiS_SetGroup2()
6774 tempcx -= 11; in SiS_SetGroup2()
6776 tempcx = SiS_GetVGAHT2(SiS_Pr) - 1; in SiS_SetGroup2()
6778 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2E,tempcx); in SiS_SetGroup2()
6809 temp = (tempcx >> 8) & 0x0F; in SiS_SetGroup2()
6869 tempcx = tempax >> 13; in SiS_SetGroup2()
6877 tempcx &= 0x07; in SiS_SetGroup2()
6878 if(tempbx & 0x20) tempcx = 0; in SiS_SetGroup2()
6879 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x46,0xF8,tempcx); in SiS_SetGroup2()
6883 tempcx = 0x007e; in SiS_SetGroup2()
6886 tempcx = 0x0061; in SiS_SetGroup2()
6889 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4C,tempcx); in SiS_SetGroup2()
6890 temp = (tempcx & 0x0300) >> 6; in SiS_SetGroup2()
6953 tempcx = SiS_Pr->SiS_VT - 1; in SiS_SetGroup2()
6954 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x19,tempcx); in SiS_SetGroup2()
6955 temp = (tempcx >> 3) & 0xE0; in SiS_SetGroup2()
7006 tempcx = SiS_Pr->SiS_VT - 1; in SiS_SetGroup2()
7009 tempcx = SiS_Pr->SiS_VT - ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2); in SiS_SetGroup2()
7013 tempcx = SiS_Pr->SiS_VT; in SiS_SetGroup2()
7019 tempax = tempcx = 0; in SiS_SetGroup2()
7025 tempcx -= tempax; /* lcdvdes */ in SiS_SetGroup2()
7031 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x05,tempcx); /* lcdvdes */ in SiS_SetGroup2()
7035 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup2()
7042 tempcx = (SiS_Pr->SiS_VT - tempax) >> 4; in SiS_SetGroup2()
7045 tempcx = (SiS_Pr->SiS_VT - tempax) / 10; in SiS_SetGroup2()
7068 tempcx = 3; in SiS_SetGroup2()
7082 tempbx += (tempcx + 1); in SiS_SetGroup2()
7114 tempcx = SiS_Pr->SiS_HT; in SiS_SetGroup2()
7123 tempcx >>= 1; in SiS_SetGroup2()
7133 tempcx = (tempcx - tempax) >> 2; in SiS_SetGroup2()
7135 tempbx += tempcx; in SiS_SetGroup2()
7158 tempcx <<= 1; in SiS_SetGroup2()
7160 if(SiS_Pr->PanelXRes != SiS_Pr->SiS_HDE) tempcx >>= 2; in SiS_SetGroup2()
7162 tempbx += tempcx; in SiS_SetGroup2()
7407 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo; in SiS_SetGroup4() local
7449 tempcx = SiS_Pr->SiS_VGAHT - 1; in SiS_SetGroup4()
7450 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x16,tempcx); in SiS_SetGroup4()
7452 temp |= ((tempcx >> 5) & 0x78); in SiS_SetGroup4()
7454 tempcx = SiS_Pr->SiS_VGAVT - 1; in SiS_SetGroup4()
7455 if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) tempcx -= 5; in SiS_SetGroup4()
7456 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x17,tempcx); in SiS_SetGroup4()
7458 temp |= ((tempcx >> 8) & 0x07); in SiS_SetGroup4()
7498 tempcx = SiS_Pr->SiS_RVBHRS; in SiS_SetGroup4()
7499 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x18,tempcx); in SiS_SetGroup4()
7500 tempcx >>= 8; in SiS_SetGroup4()
7501 tempcx |= 0x40; in SiS_SetGroup4()
7504 tempcx ^= 0x40; in SiS_SetGroup4()
7519 temp |= (tempcx & 0x4F); in SiS_SetGroup4()