• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/video/sis/

Lines Matching defs:tempcx

3060   unsigned short temp1=0, modeflag=0, tempcx=0;
3085 tempcx = SiS_Pr->SiS_CRT1Table[index].CR[13] << 8;
3086 tempcx &= 0x0100;
3087 tempcx <<= 2;
3088 tempbx |= tempcx;
5431 unsigned short push2, tempax, tempbx, tempcx, temp;
5540 tempcx = (SiS_Pr->SiS_HT - tempbx) >> 2;
5544 if(SiS_Pr->PanelHRS != 999) tempcx = SiS_Pr->PanelHRS;
5548 tempcx += tempax;
5549 if(tempcx >= SiS_Pr->SiS_HT) tempcx -= SiS_Pr->SiS_HT;
5551 temp = (tempcx >> 3) & 0x00FF;
5582 temp = tempcx + SiS_Pr->PanelHRE;
5592 temp |= ((tempcx & 0x07) << 5);
5609 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE;
5613 tempcx = SiS_Pr->SiS_VGAVT - SiS_Pr->PanelYRes;
5617 if(islvds) tempcx >>= 1;
5618 else tempcx >>= 2;
5623 tempcx = SiS_Pr->PanelVRS;
5624 tempbx += tempcx;
5627 tempbx += tempcx;
5642 tempcx >>= 3;
5643 tempcx++;
5647 if(SiS_Pr->PanelVRE != 999) tempcx = SiS_Pr->PanelVRE;
5651 tempcx += tempbx;
5652 temp = tempcx & 0x000F;
5682 tempcx = SiS_Pr->SiS_LCDVDES; /* BPLVDES */
5688 tempcx = SiS_Pr->SiS_VGAVDE;
5692 if(resinfo == SIS_RI_800x600) tempcx++;
5697 if(resinfo == SIS_RI_1024x600) tempcx++;
5699 if(resinfo == SIS_RI_800x600) tempcx++;
5706 if(resinfo == SIS_RI_1024x768) tempcx++;
5714 temp |= ((tempcx >> 8) & 0x07);
5717 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1B,tempcx);
5989 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0;
6042 tempcx = (SiS_Pr->SiS_VGAHT - SiS_Pr->SiS_VGAHDE) >> 2;
6043 tempbx = pushbx + tempcx;
6044 tempcx <<= 1;
6045 tempcx += tempbx;
6055 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HT 0x08,0x09 */
6058 tempcx >>= 1;
6061 tempcx = SiS_Pr->SiS_HT - SiS_Pr->SiS_HDE + tempax;
6063 tempcx = SiS_Pr->SiS_HT - tempax;
6067 tempcx--;
6068 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x08,tempcx); /* CRT2 Horizontal Total */
6069 temp = (tempcx >> 4) & 0xF0;
6072 tempcx = SiS_Pr->SiS_VGAHT; /* BTVGA2HDEE 0x0A,0x0C */
6074 tempcx -= tempbx;
6075 tempcx >>= 2;
6078 tempcx >>= 1;
6085 tempcx >>= 1;
6086 tempbx += tempcx;
6087 tempcx += tempbx;
6096 tempcx = (tempcx & 0xff00) | 0x30;
6098 tempcx = (tempcx & 0xff00) | 0xff;
6112 tempcx = SiS_Pr->CHSyncEnd + bridgeadd;
6116 if(tempcx > tempax) tempcx = tempax;
6133 tempcx = (((cr5 & 0x1f) | ((cr15 & 0x04) << (5-2))) - 3) << 3; /* (VGAHRE-3)*8 */
6134 tempcx &= 0x00FF;
6135 tempcx |= (tempbx & 0xFF00);
6137 tempcx += bridgeadd;
6141 if(tempcx > tempax) tempcx = tempax;
6146 tempcx = 1044; /* HWCursor bug! */
6153 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0D,tempcx); /* CRT2 Horizontal Retrace End */
6160 tempcx = SiS_Pr->SiS_VGAVT - 1;
6161 temp = tempcx & 0x00FF;
6183 temp = ((tempbx >> 5) & 0x38) | ((tempcx >> 8) & 0x07);
6189 tempcx++;
6190 tempcx -= tempax;
6191 tempcx >>= 2;
6192 tempbx += tempcx;
6193 if(tempcx < 4) tempcx = 4;
6194 tempcx >>= 2;
6195 tempcx += tempbx;
6196 tempcx++;
6199 tempcx = ((SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 */
6205 tempcx = SiS_Pr->CVSyncEnd;
6213 tempcx = SiS_Pr->CCRT1CRTC[9];
6218 tempcx = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[9];
6228 temp = ((tempbx >> 4) & 0x70) | (tempcx & 0x0F);
6461 unsigned short tempcx;
6490 tempcx = 0;
6493 tempcx += 7;
6496 tempcx += crt2crtc;
6509 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,atable[tempcx]);
6642 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp;
6790 tempcx = SiS_Pr->SiS_HT;
6791 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1;
6792 tempcx--;
6793 if(SiS_Pr->SiS_VBType & VB_SIS30xBLV) tempcx--;
6794 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1B,tempcx);
6795 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0xF0,((tempcx >> 8) & 0x0f));
6797 tempcx = SiS_Pr->SiS_HT >> 1;
6798 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1;
6799 tempcx += 7;
6800 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4;
6801 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x22,0x0F,((tempcx << 4) & 0xf0));
6804 tempbx += tempcx;
6811 tempcx = tempbx;
6816 tempcx += (TimingPoint[j] | (TimingPoint[j+1] << 8));
6817 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x27,tempcx);
6818 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x28,0x0F,((tempcx >> 4) & 0xf0));
6820 tempcx += 8;
6821 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempcx -= 4;
6822 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2A,0x0F,((tempcx << 4) & 0xf0));
6824 tempcx = SiS_Pr->SiS_HT >> 1;
6825 if(SiS_IsDualLink(SiS_Pr)) tempcx >>= 1;
6827 tempcx -= (TimingPoint[j] | ((TimingPoint[j+1]) << 8));
6828 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2D,0x0F,((tempcx << 4) & 0xf0));
6830 tempcx -= 11;
6832 tempcx = SiS_GetVGAHT2(SiS_Pr) - 1;
6834 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2E,tempcx);
6865 temp = (tempcx >> 8) & 0x0F;
6925 tempcx = tempax >> 13;
6933 tempcx &= 0x07;
6934 if(tempbx & 0x20) tempcx = 0;
6935 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x46,0xF8,tempcx);
6939 tempcx = 0x007e;
6942 tempcx = 0x0061;
6945 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4C,tempcx);
6946 temp = (tempcx & 0x0300) >> 6;
7009 tempcx = SiS_Pr->SiS_VT - 1;
7010 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x19,tempcx);
7011 temp = (tempcx >> 3) & 0xE0;
7062 tempcx = SiS_Pr->SiS_VT - 1;
7065 tempcx = SiS_Pr->SiS_VT - ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2);
7069 tempcx = SiS_Pr->SiS_VT;
7075 tempax = tempcx = 0;
7081 tempcx -= tempax; /* lcdvdes */
7085 /* Non-expanding: lcdvdes = tempcx = VT-1; lcdvdee = tempbx = VDE-1 */
7089 xf86DrvMsg(0, X_INFO, "lcdvdes 0x%x lcdvdee 0x%x\n", tempcx, tempbx);
7093 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x05,tempcx); /* lcdvdes */
7097 temp |= ((tempcx >> 8) & 0x07);
7104 tempcx = (SiS_Pr->SiS_VT - tempax) >> 4;
7107 tempcx = (SiS_Pr->SiS_VT - tempax) / 10;
7130 tempcx = 3;
7150 tempbx += (tempcx + 1);
7188 tempcx = SiS_Pr->SiS_HT;
7197 tempcx >>= 1;
7213 tempcx = (tempcx - tempax) >> 2;
7215 tempbx += tempcx;
7244 tempcx <<= 1;
7246 if(SiS_Pr->PanelXRes != SiS_Pr->SiS_HDE) tempcx >>= 2;
7248 tempbx += tempcx;
7463 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo;
7505 tempcx = SiS_Pr->SiS_VGAHT - 1;
7506 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x16,tempcx);
7508 temp |= ((tempcx >> 5) & 0x78);
7510 tempcx = SiS_Pr->SiS_VGAVT - 1;
7511 if(!(SiS_Pr->SiS_VBInfo & SetCRT2ToTV)) tempcx -= 5;
7512 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x17,tempcx);
7514 temp |= ((tempcx >> 8) & 0x07);
7554 tempcx = SiS_Pr->SiS_RVBHRS;
7555 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x18,tempcx);
7556 tempcx >>= 8;
7557 tempcx |= 0x40;
7560 tempcx ^= 0x40;
7575 temp |= (tempcx & 0x4F);