Lines Matching defs:tempcx
204 void XGI_SetLCDCap_A(USHORT tempcx, PVB_DEVICE_INFO pVBInfo);
205 void XGI_SetLCDCap_B(USHORT tempcx, PVB_DEVICE_INFO pVBInfo);
237 static const XGI301C_Tap4TimingStruct *XGI_GetTap4Ptr(USHORT tempcx, PVB_DEVICE_INFO pVBInfo);
2414 USHORT tempax, tempbx, tempcx, temp, modeflag;
2446 tempcx = 8;
2449 /* tempcx = 9 ; */
2451 tempax /= tempcx;
2454 tempcx = tempax;
2459 XGI_SetReg((XGIIOADDRESS) pVBInfo->P3d4, 0x01, (USHORT) (tempcx & 0xff));
2461 (USHORT) ((tempcx & 0x0ff00) >> 10));
3268 ULONG tempbx, tempax, tempcx, tempdx, push1, push2, modeflag;
3321 tempcx = pVBInfo->HDE;
3323 tempcx += tempbx;
3325 if (tempcx >= tempax)
3326 tempcx -= tempax;
3330 tempcx = tempcx >> 3;
3336 (USHORT) (tempcx & 0xff));
3345 tempcx = push2;
3348 tempcx = LCDPtr1->LCDHSync;
3350 tempcx += tempbx;
3352 if (tempcx >= tempax)
3353 tempcx -= tempax;
3358 tempcx = tempcx >> 3;
3361 tempcx &= 0x1f;
3362 tempax |= tempcx;
3373 tempcx = pVBInfo->VDE;
3376 tempcx += tempbx;
3377 if (tempcx >= tempax)
3378 tempcx -= tempax;
3383 (USHORT) (tempcx & 0xff));
3386 tempcx = (tempcx >> 8) & 0x07;
3389 (USHORT) ((tempcx << 3) | tempbx));
3398 tempcx = push1;
3401 tempcx = LCDPtr1->LCDVSync;
3403 tempcx += tempbx;
3404 if (tempcx >= tempax)
3405 tempcx -= tempax;
3410 (USHORT) (tempcx & 0x0f));
3424 tempcx = pVBInfo->VGAVT;
3427 tempcx -= tempax;
3464 tempcx = pVBInfo->VGAVDE;
3465 if (tempcx == pVBInfo->VDE)
3473 tempcx = pVBInfo->VGAHDE;
3476 temp1 = tempcx << 16;
3480 if ((tempbx & 0xffff) == (tempcx & 0xffff))
5211 USHORT tempcx = 0, CRT1Index = 0, resinfo = 0;
5227 for (tempcx = 4; tempcx < 7; tempcx++) {
5228 XGI_SetReg((XGIIOADDRESS) pVBInfo->Part1Port, tempcx, 0x0);
5249 tempcx = 0, pushbx = 0, CRT1Index = 0, modeflag, resinfo = 0;
5273 tempcx = ((pVBInfo->VGAHT - pVBInfo->VGAHDE) / 2) >> 2;
5275 tempcx = tempcx >> 1;
5276 tempbx = pushbx + tempcx; /* bx BTVGA@HRS 0x0B,0x0C */
5277 tempcx += tempbx;
5284 tempcx = pVBInfo->XGINEWUB_CRT1Table[CRT1Index].CR[5];
5285 tempcx &= 0x1F;
5288 tempcx = ((tempcx | temp) - 3) << 3; /* (VGAHRE-3)*8 */
5292 tempcx += 4;
5294 if (tempcx > (pVBInfo->VGAHT / 2))
5295 tempcx = pVBInfo->VGAHT / 2;
5309 tempcx = (pVBInfo->VGAHT - pVBInfo->VGAHDE) >> 2; /* cx */
5311 tempcx = tempcx >> 1;
5312 tempbx = pushbx + tempcx; /* bx BTVGA@HRS 0x0B,0x0C */
5313 tempcx += tempbx;
5320 tempcx = pVBInfo->XGINEWUB_CRT1Table[CRT1Index].CR[4];
5321 tempcx &= 0x1F;
5324 tempcx = ((tempcx | temp) - 3) << 3; /* (VGAHRE-3)*8 */
5326 tempcx += 16;
5329 if (tempcx > pVBInfo->VGAHT)
5330 tempcx = pVBInfo->VGAHT;
5342 temp = tempcx & 0x00FF;
5344 tempcx = (pVBInfo->VGAVT - 1);
5345 temp = tempcx & 0x00FF;
5352 temp |= ((tempcx & 0xFF00) >> 8);
5357 tempcx = pVBInfo->VGAVT;
5359 tempcx = ((pVBInfo->VGAVT - pVBInfo->VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 */
5377 tempcx = (tempcx & 0xFF00) | (temp & 0x00FF);
5383 temp = ((tempcx & 0x000F) | (temp));
5409 push2, tempax, tempbx = 0, tempcx, temp, resinfo, modeflag, CRT1Index;
5428 /* if ( modeflag & Charx8Dot ) tempcx = 0x08 ; */
5430 tempcx = 0x08;
5440 tempax = (tempax / tempcx) - 1;
5484 tempax = (tempax / tempcx) - 5;
5485 tempcx = tempax; /* 20030401 0x07 horizontal Retrace Start */
5498 /* tempcx = tempbx & 0x00FF ; */
5500 tempcx = (tempcx + tempbx) >> 1;
5501 temp = (tempcx & 0x00FF) + 2;
5600 tempcx = 0x121;
5637 tempcx |= 0x0002;
5647 tempcx |= 0x0040;
5654 tempcx |= 0x0600;
5728 tempcx |= 0x0008;
5738 tempcx |= 0x0004;
5742 tempcx |= 0x0080;
5746 tempcx |= 0x0C00;
5755 tempcx |= 0x2000;
5758 temp = tempcx & 0x00FF;
5760 temp = (tempcx & 0x0FF00) >> 8;
5798 tempbx, tempcx, temp, push1, push2, modeflag, resinfo, crt2crtc;
5924 tempcx = pVBInfo->VGAHDE;
5925 if (tempcx >= 1024) {
5944 tempcx = pVBInfo->VGAHDE;
5945 if (tempcx >= 1024) {
5956 tempcx = pVBInfo->HT;
5959 tempcx = tempcx >> 1;
5961 tempcx -= 2;
5962 temp = tempcx & 0x00FF;
5965 temp = (tempcx & 0xFF00) >> 8;
5968 tempcx = pVBInfo->HT >> 1;
5969 push1 = tempcx; /* push cx */
5970 tempcx += 7;
5973 tempcx -= 4;
5976 temp = tempcx & 0x00FF;
5981 tempbx += tempcx;
5993 tempcx = tempbx;
6000 tempcx += (TimingPoint[j] | ((TimingPoint[j + 1]) << 8));
6001 temp = tempcx & 0x00FF;
6003 temp = ((tempcx & 0xFF00) >> 8) << 4;
6006 tempcx += 8;
6008 tempcx -= 4;
6011 temp = tempcx & 0xFF;
6015 tempcx = push1; /* pop cx */
6018 tempcx -= temp;
6019 temp = tempcx & 0x00FF;
6023 tempcx -= 11;
6027 tempcx = tempax - 1;
6029 temp = tempcx & 0x00FF;
6072 temp = (tempcx & 0xFF00) >> 8;
6095 tempcx = tempbx - 2;
6104 if (tempcx & 0x0400)
6122 tempcx = pVBInfo->VGAHDE;
6123 if (tempcx >= pVBInfo->HDE) {
6129 tempcx = 0x0101;
6133 tempcx = 0x1920;
6135 tempcx = 0x1420;
6143 tempcx = (tempcx & 0xFF00) | ((tempcx & 0x00FF) << 1);
6148 tempebx = (tempcx & 0xFF00) >> 8;
6150 tempecx = tempcx & 0x00FF;
6176 tempcx = ((tempax & 0xFF00) >> 5) >> 8;
6193 temp = tempcx & 0x00FF;
6204 tempcx = 0x007e;
6208 tempcx = 0x0061;
6213 temp = tempcx & 0x00FF;
6216 temp = ((tempcx & 0xFF00) >> 8) & 0x03;
6290 tempcx, temp, tempah, tempbh, tempch, resinfo, modeflag, CRT1Index;
6343 tempcx = pVBInfo->VT - 1;
6344 push2 = tempcx + 1;
6345 temp = tempcx & 0x00FF; /* RVTVT=VT-1 */
6347 temp = (tempcx & 0xFF00) >> 8;
6362 tempcx = pVBInfo->VDE;
6365 get_HDE_VDE(pVBInfo, & tempbx, & tempcx);
6375 tempcx += tempbx;
6377 if (tempcx >= tempax)
6378 tempcx -= tempax; /* lcdvdes */
6382 temp = tempcx & 0x00FF;
6384 tempch = ((tempcx & 0xFF00) >> 8) & 0x07;
6400 tempcx = tempbx;
6405 tempcx += tempbx;
6406 if (tempcx >= tempax)
6407 tempcx -= tempax;
6413 temp |= (tempcx & 0x000F);
6415 tempcx = pushbx;
6423 tempcx = tempcx >> 1;
6432 tempcx += tempbx;
6434 if (tempcx >= tempax)
6435 tempcx -= tempax;
6441 temp = tempcx & 0x00FF;
6443 temp = (tempcx & 0xFF00) >> 8;
6455 tempcx = tempax;
6462 tempcx = tempcx >> 1;
6468 tempcx += tempbx;
6470 if (tempcx >= tempax)
6471 tempcx -= tempax;
6479 temp = tempcx & 0x00FF; /* RHSYEXP2S=lcdhre */
6517 XGI_GetTap4Ptr(USHORT tempcx, PVB_DEVICE_INFO pVBInfo)
6523 if (tempcx == 0) {
6576 USHORT tempcx;
6694 USHORT tempax, tempcx, tempbx, modeflag, temp, temp2;
6716 tempcx = pVBInfo->VGAHT - 1;
6717 temp = tempcx & 0x00FF;
6720 temp = ((tempcx & 0xFF00) >> 8) << 3;
6723 tempcx = pVBInfo->VGAVT - 1;
6725 tempcx -= 5;
6728 temp = tempcx & 0x00FF;
6730 temp = temp2 | ((tempcx & 0xFF00) >> 8);
6733 tempcx = pVBInfo->VBInfo;
6743 if (tempcx & SetCRT2ToHiVisionTV) {
6750 else if (tempcx & SetCRT2ToTV) {
6775 if (tempcx & SetCRT2ToHiVisionTV) {
6780 tempcx = pVBInfo->RVBHRS;
6781 temp = tempcx & 0x00FF;
6785 tempcx |= 0x04000;
6789 tempcx = (tempcx & (~0x4000));
6814 temp |= ((tempcx & 0xFF00) >> 8);
6954 USHORT i, tempdx, tempcx, tempbx, tempal, modeflag, table;
7003 tempcx = LCDLenList[tempbx]; /* mov cl,byte ptr cs:LCDLenList[bx] */
7007 tempcx = LCDDesDataLen2;
7009 tempcx = LVDSDesDataLen2;
9136 USHORT tempcx;
9138 tempcx = pVBInfo->LCDCapList[XGI_GetLCDCapPtr(pVBInfo)].LCD_Capability;
9146 (UCHAR) (tempcx & 0x1F));
9151 (USHORT) ((tempcx &
9160 XGI_SetLCDCap_B(tempcx, pVBInfo);
9162 XGI_SetLCDCap_A(tempcx, pVBInfo);
9165 if (tempcx & EnableSpectrum)
9170 XGI_SetLCDCap_A(tempcx, pVBInfo);
9181 XGI_SetLCDCap_A(USHORT tempcx, PVB_DEVICE_INFO pVBInfo)
9188 XGI_SetRegANDOR((XGIIOADDRESS) pVBInfo->Part1Port, 0x19, 0x0F, (USHORT) (0x20 | (tempcx & 0x00C0))); /* Enable Dither */
9193 (USHORT) (0x30 | (tempcx & 0x00C0)));
9198 if ( tempcx & EnableLCD24bpp ) // 24bits
9200 XGI_SetRegANDOR((XGIIOADDRESS)pVBInfo->Part1Port,0x19, 0x0F,(USHORT)(0x30|(tempcx&0x00C0)) );
9205 XGI_SetRegANDOR((XGIIOADDRESS)pVBInfo->Part1Port,0x19, 0x0F,(USHORT)(0x20|(tempcx&0x00C0)) );//Enable Dither
9219 XGI_SetLCDCap_B(USHORT tempcx, PVB_DEVICE_INFO pVBInfo)
9221 if (tempcx & EnableLCD24bpp) /* 24bits */
9223 (USHORT) (((tempcx & 0x00ff) >> 6) | 0x0c));
9225 XGI_SetRegANDOR((XGIIOADDRESS) pVBInfo->Part2Port, 0x1A, 0xE0, (USHORT) (((tempcx & 0x00ff) >> 6) | 0x18)); /* Enable Dither */
9749 USHORT tempax, tempbx, temp1, temp2, modeflag = 0, tempcx, CRT1Index;
9775 tempcx = (USHORT) pVBInfo->XGINEWUB_CRT1Table[CRT1Index].CR[14] << 8;
9776 tempcx &= 0x0100;
9777 tempcx = tempcx << 2;
9778 tempbx |= tempcx;