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

Lines Matching refs:tempcx

146 void     XGI_SetLCDCap_A(unsigned short tempcx, struct vb_device_info *pVBInfo);
147 void XGI_SetLCDCap_B(unsigned short tempcx, struct vb_device_info *pVBInfo);
176 struct XGI301C_Tap4TimingStruct *XGI_GetTap4Ptr(unsigned short tempcx, struct vb_device_info *pVBInfo);
1948 unsigned short resindex, tempax, tempbx, tempcx, temp, modeflag;
1984 tempcx = 8 ;
1987 /* tempcx = 9 ; */
1989 tempax /= tempcx ;
1992 tempcx = tempax ;
1997 XGINew_SetReg1(pVBInfo->P3d4, 0x01, (unsigned short)(tempcx & 0xff));
1998 XGINew_SetRegANDOR(pVBInfo->P3d4, 0x0b, ~0x0c, (unsigned short)((tempcx & 0x0ff00) >> 10));
2930 unsigned short tempbx , tempax , tempcx , tempdx , push1 , push2 , modeflag ;
3006 tempcx = pVBInfo->HDE ;
3008 tempcx += tempbx ;
3010 if ( tempcx >= tempax )
3011 tempcx -= tempax ;
3015 tempcx = tempcx >> 3 ;
3019 XGINew_SetReg1(pVBInfo->Part1Port, 0x17, (unsigned short)(tempcx & 0xff));
3028 tempcx = push2 ;
3031 tempcx = LCDPtr1->LCDHSync ;
3033 tempcx += tempbx ;
3035 if ( tempcx >= tempax )
3036 tempcx -= tempax ;
3040 tempcx = tempcx >> 3 ;
3043 tempcx &= 0x1f ;
3044 tempax |= tempcx ;
3054 tempcx = pVBInfo->VDE ;
3057 tempcx += tempbx ;
3058 if ( tempcx >= tempax )
3059 tempcx -= tempax ;
3062 XGINew_SetReg1(pVBInfo->Part1Port, 0x1c, (unsigned short)(tempcx & 0xff));
3065 tempcx = ( tempcx >> 8 ) & 0x07 ;
3067 XGINew_SetReg1(pVBInfo->Part1Port, 0x1d, (unsigned short)((tempcx << 3) | tempbx));
3076 tempcx = push1 ;
3079 tempcx = LCDPtr1->LCDVSync ;
3081 tempcx += tempbx ;
3082 if ( tempcx >= tempax )
3083 tempcx -= tempax ;
3086 XGINew_SetRegANDOR(pVBInfo->Part1Port, 0x19, ~0x0f, (unsigned short)(tempcx & 0x0f));
3099 tempcx = pVBInfo->VGAVT ;
3102 tempcx -= tempax ;
3135 tempcx = pVBInfo->VGAVDE ;
3136 if ( tempcx == pVBInfo->VDE )
3142 tempcx = pVBInfo->VGAHDE ;
3145 temp1 = tempcx << 16 ;
3149 if ( ( tempbx & 0xffff ) == ( tempcx & 0xffff ) )
5236 unsigned short tempcx = 0 ,
5251 for( tempcx = 4 ; tempcx < 7 ; tempcx++ )
5253 XGINew_SetReg1( pVBInfo->Part1Port , tempcx , 0x0 ) ;
5275 tempcx = 0 ,
5306 tempcx = ( ( pVBInfo->VGAHT - pVBInfo->VGAHDE ) / 2 ) >> 2 ;
5308 tempcx = tempcx >> 1 ;
5309 tempbx = pushbx + tempcx ; /* bx BTVGA@HRS 0x0B,0x0C */
5310 tempcx += tempbx ;
5317 tempcx = pVBInfo->XGINEWUB_CRT1Table[CRT1Index].CR[ 5 ] ;
5318 tempcx &= 0x1F ;
5321 tempcx = ( ( tempcx | temp ) - 3 ) << 3 ; /* (VGAHRE-3)*8 */
5325 tempcx += 4 ;
5327 if ( tempcx > ( pVBInfo->VGAHT / 2 ) )
5328 tempcx = pVBInfo->VGAHT / 2 ;
5342 tempcx = ( pVBInfo->VGAHT - pVBInfo->VGAHDE ) >> 2 ; /* cx */
5344 tempcx = tempcx >> 1 ;
5345 tempbx = pushbx + tempcx ; /* bx BTVGA@HRS 0x0B,0x0C */
5346 tempcx += tempbx ;
5353 tempcx = pVBInfo->XGINEWUB_CRT1Table[ CRT1Index ].CR[ 4 ] ;
5354 tempcx &= 0x1F ;
5357 tempcx = ( ( tempcx | temp ) - 3 ) << 3 ; /* (VGAHRE-3)*8 */
5359 tempcx += 16 ;
5362 if ( tempcx > pVBInfo->VGAHT )
5363 tempcx = pVBInfo->VGAHT ;
5375 temp = tempcx & 0x00FF ;
5377 tempcx = ( pVBInfo->VGAVT - 1 ) ;
5378 temp = tempcx & 0x00FF ;
5393 temp |= ( ( tempcx & 0xFF00 ) >> 8 ) ;
5398 tempcx = pVBInfo->VGAVT ;
5400 tempcx = ( ( pVBInfo->VGAVT - pVBInfo->VGAVDE ) >> 4 ) + tempbx + 1 ; /* BTVGA2VRE 0x11 */
5419 tempcx = ( tempcx & 0xFF00 ) | ( temp & 0x00FF ) ;
5425 temp = ( ( tempcx & 0x000F ) | ( temp ) ) ;
5454 tempcx ,
5480 /* if ( modeflag & Charx8Dot ) tempcx = 0x08 ; */
5482 tempcx=0x08;
5492 tempax = ( tempax / tempcx ) - 1 ;
5541 tempax = ( tempax / tempcx ) - 5 ;
5542 tempcx = tempax ; /* 20030401 0x07 horizontal Retrace Start */
5559 /* tempcx = tempbx & 0x00FF ; */
5561 tempcx = ( tempcx + tempbx ) >> 1 ;
5562 temp = ( tempcx & 0x00FF ) + 2 ;
5682 tempcx = 0x121 ;
5723 tempcx |= 0x0002 ;
5735 tempcx |= 0x0040 ;
5743 tempcx |= 0x0600 ;
5826 tempcx |= 0x0008 ;
5838 tempcx |= 0x0004 ;
5843 tempcx |= 0x0080 ;
5848 tempcx |= 0x0C00 ;
5858 tempcx |= 0x2000 ;
5861 temp = tempcx & 0x00FF ;
5863 temp = ( tempcx & 0x0FF00 ) >> 8 ;
5901 tempcx ,
6025 tempcx=pVBInfo->VGAHDE;
6026 if ( tempcx >= 1024 )
6044 tempcx = pVBInfo->VGAHDE ;
6045 if ( tempcx >= 1024 )
6057 tempcx = pVBInfo->HT ;
6060 tempcx = tempcx >> 1 ;
6062 tempcx -= 2 ;
6063 temp = tempcx & 0x00FF ;
6066 temp = ( tempcx & 0xFF00 ) >> 8 ;
6069 tempcx = pVBInfo->HT >> 1 ;
6070 push1 = tempcx ; /* push cx */
6071 tempcx += 7 ;
6075 tempcx -= 4 ;
6078 temp = tempcx & 0x00FF ;
6083 tempbx += tempcx ;
6096 tempcx=tempbx;
6103 tempcx += ( TimingPoint[ j ] | ( ( TimingPoint[ j + 1 ] ) << 8 ) ) ;
6104 temp = tempcx & 0x00FF ;
6106 temp = ( ( tempcx & 0xFF00 ) >> 8 ) << 4 ;
6109 tempcx += 8 ;
6112 tempcx -= 4 ;
6115 temp = tempcx & 0xFF ;
6119 tempcx = push1 ; /* pop cx */
6122 tempcx -= temp ;
6123 temp = tempcx & 0x00FF ;
6127 tempcx -= 11 ;
6132 tempcx = tempax - 1 ;
6134 temp = tempcx & 0x00FF ;
6185 temp = ( tempcx & 0xFF00 ) >> 8 ;
6213 tempcx = tempbx - 2 ;
6224 if( tempcx & 0x0400 )
6243 tempcx = pVBInfo->VGAHDE ;
6244 if ( tempcx >= pVBInfo->HDE )
6251 tempcx = 0x0101 ;
6256 tempcx=0x1920;
6259 tempcx=0x1420;
6269 tempcx = ( tempcx & 0xFF00 ) | ( ( tempcx & 0x00FF ) << 1 ) ;
6274 tempebx = ( tempcx & 0xFF00 ) >> 8 ;
6276 tempecx = tempcx & 0x00FF ;
6301 tempcx = ( ( tempax & 0xFF00 ) >> 5 ) >> 8 ;
6318 temp = tempcx & 0x00FF ;
6330 tempcx = 0x007e ;
6335 tempcx = 0x0061 ;
6340 temp = tempcx & 0x00FF ;
6343 temp = ( ( tempcx & 0xFF00 ) >> 8 ) & 0x03 ;
6420 tempcx ,
6485 tempcx = pVBInfo->VT - 1 ;
6486 push2 = tempcx + 1 ;
6487 temp = tempcx & 0x00FF ; /* RVTVT=VT-1 */
6489 temp = ( tempcx & 0xFF00 ) >> 8 ;
6506 tempcx = 768 ;
6511 tempcx = 1024 ;
6516 tempcx = 1050 ;
6521 tempcx = 1200 ;
6527 tempcx = pVBInfo->VDE ;
6537 tempcx += tempbx ;
6539 if ( tempcx >= tempax )
6540 tempcx -= tempax ; /* lcdvdes */
6544 temp = tempcx & 0x00FF ;
6546 tempch = ( ( tempcx & 0xFF00 ) >> 8 ) & 0x07 ;
6555 tempcx = tempbx ;
6560 tempcx += tempbx ;
6561 if ( tempcx >= tempax )
6562 tempcx -= tempax ;
6568 temp |= ( tempcx & 0x000F ) ;
6570 tempcx = pushbx ;
6579 tempcx = tempcx >> 1 ;
6588 tempcx += tempbx ;
6590 if ( tempcx >= tempax )
6591 tempcx -= tempax ;
6597 temp = tempcx & 0x00FF ;
6599 temp = ( tempcx & 0xFF00 ) >> 8 ;
6604 tempcx = tempax ;
6612 tempcx = tempcx >> 1 ;
6618 tempcx += tempbx ;
6620 if ( tempcx >= tempax )
6621 tempcx -= tempax ;
6629 temp = tempcx & 0x00FF ; /* RHSYEXP2S=lcdhre */
6667 struct XGI301C_Tap4TimingStruct *XGI_GetTap4Ptr(unsigned short tempcx,
6676 if ( tempcx == 0 )
6856 tempcx ,
6883 tempcx = pVBInfo->VGAHT - 1 ;
6884 temp = tempcx & 0x00FF ;
6887 temp =( ( tempcx & 0xFF00 ) >> 8 ) << 3 ;
6890 tempcx = pVBInfo->VGAVT - 1 ;
6893 tempcx -= 5 ;
6896 temp = tempcx & 0x00FF ;
6898 temp = temp2 | ( ( tempcx & 0xFF00 ) >> 8 ) ;
6901 tempcx = pVBInfo->VBInfo ;
6912 if(tempcx&SetCRT2ToHiVisionTV)
6920 else if(tempcx&SetCRT2ToTV)
6949 if ( tempcx & SetCRT2ToHiVisionTV )
6955 tempcx = pVBInfo->RVBHRS ;
6956 temp = tempcx & 0x00FF ;
6960 tempcx |= 0x04000 ;
6965 tempcx=(tempcx&(~0x4000));
6992 temp |= ( ( tempcx & 0xFF00 ) >> 8 ) ;
7137 tempcx ,
7186 tempcx = LCDLenList[ tempbx ] ; /* mov cl,byte ptr cs:LCDLenList[bx] */
7191 tempcx = LCDDesDataLen2 ;
7193 tempcx = LVDSDesDataLen2 ;
9282 unsigned short tempcx ;
9284 tempcx = pVBInfo->LCDCapList[ XGI_GetLCDCapPtr(pVBInfo) ].LCD_Capability ;
9291 XGINew_SetReg1(pVBInfo->Part4Port, 0x24, (unsigned char)(tempcx & 0x1F));
9296 (unsigned short)((tempcx & (EnableVBCLKDRVLOW | EnablePLLSPLOW)) >> 8));
9302 XGI_SetLCDCap_B( tempcx,pVBInfo ) ;
9304 XGI_SetLCDCap_A( tempcx,pVBInfo ) ;
9308 if ( tempcx & EnableSpectrum )
9313 XGI_SetLCDCap_A( tempcx, pVBInfo ) ;
9323 void XGI_SetLCDCap_A(unsigned short tempcx, struct vb_device_info *pVBInfo)
9332 (unsigned short)(0x20 | (tempcx & 0x00C0))); /* Enable Dither */
9338 (unsigned short)(0x30 | (tempcx & 0x00C0)));
9343 if ( tempcx & EnableLCD24bpp ) // 24bits
9345 XGINew_SetRegANDOR(pVBInfo->Part1Port,0x19, 0x0F,(unsigned short)(0x30|(tempcx&0x00C0)) );
9350 XGINew_SetRegANDOR(pVBInfo->Part1Port,0x19, 0x0F,(unsigned short)(0x20|(tempcx&0x00C0)) ); // Enable Dither
9363 void XGI_SetLCDCap_B(unsigned short tempcx, struct vb_device_info *pVBInfo)
9365 if ( tempcx & EnableLCD24bpp ) /* 24bits */
9367 (unsigned short)(((tempcx & 0x00ff) >> 6) | 0x0c));
9370 (unsigned short)(((tempcx & 0x00ff) >> 6) | 0x18)); /* Enable Dither */
9927 tempcx ,
9951 tempcx = (unsigned short)pVBInfo->XGINEWUB_CRT1Table[CRT1Index].CR[14] << 8;
9952 tempcx &= 0x0100 ;
9953 tempcx = tempcx << 2 ;
9954 tempbx |= tempcx;