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