Searched refs:tempax (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/drivers/staging/xgifb/
H A Dvb_setmode.c175 unsigned short tempax, tempbx, resinfo, modeflag, infoflag; XGI_AjustCRT2Rate() local
180 tempax = 0; XGI_AjustCRT2Rate()
183 tempax |= SupportRAMDAC2; XGI_AjustCRT2Rate()
186 tempax |= SupportCRT2in301C; XGI_AjustCRT2Rate()
191 tempax |= SupportLCD; XGI_AjustCRT2Rate()
201 tempax |= SupportHiVision; XGI_AjustCRT2Rate()
210 tempax |= SupportTV; XGI_AjustCRT2Rate()
214 tempax |= SupportTV1024; XGI_AjustCRT2Rate()
227 if (infoflag & tempax) XGI_AjustCRT2Rate()
242 if (infoflag & tempax) XGI_AjustCRT2Rate()
685 unsigned short resindex, tempax, tempbx, tempcx, temp, modeflag; XGI_SetCRT1DE() local
692 tempax = XGI330_ModeResInfo[resindex].HTotal; XGI_SetCRT1DE()
696 tempax >>= 1; XGI_SetCRT1DE()
699 tempax <<= 1; XGI_SetCRT1DE()
711 tempax /= tempcx; XGI_SetCRT1DE()
712 tempax -= 1; XGI_SetCRT1DE()
714 tempcx = tempax; XGI_SetCRT1DE()
723 tempax = 0; XGI_SetCRT1DE()
727 tempax |= 0x02; XGI_SetCRT1DE()
730 tempax |= 0x40; XGI_SetCRT1DE()
732 xgifb_reg_and_or(pVBInfo->P3d4, 0x07, ~0x42, tempax); XGI_SetCRT1DE()
734 tempax = 0; XGI_SetCRT1DE()
737 tempax |= 0x02; XGI_SetCRT1DE()
739 xgifb_reg_and_or(pVBInfo->P3d4, 0x0a, ~0x02, tempax); XGI_SetCRT1DE()
1405 unsigned short tempbx, tempax, tempcx, tempdx, push1, push2, modeflag; XGI_SetLVDSRegs() local
1412 XGI_GetLCDSync(&tempax, &tempbx, pVBInfo); XGI_SetLVDSRegs()
1414 push2 = tempax; XGI_SetLVDSRegs()
1419 tempax = 1024; XGI_SetLVDSRegs()
1423 tempax = 1280; XGI_SetLVDSRegs()
1426 tempax = 1400; XGI_SetLVDSRegs()
1429 tempax = 1600; XGI_SetLVDSRegs()
1434 pVBInfo->HDE = tempax; XGI_SetLVDSRegs()
1436 pVBInfo->VGAHDE = tempax; XGI_SetLVDSRegs()
1440 tempax = pVBInfo->HT; XGI_SetLVDSRegs()
1448 if (tempcx >= tempax) XGI_SetLVDSRegs()
1449 tempcx -= tempax; XGI_SetLVDSRegs()
1461 tempax = pVBInfo->HT; XGI_SetLVDSRegs()
1472 if (tempcx >= tempax) XGI_SetLVDSRegs()
1473 tempcx -= tempax; XGI_SetLVDSRegs()
1475 tempax = tempbx & 0x07; XGI_SetLVDSRegs()
1476 tempax >>= 5; XGI_SetLVDSRegs()
1481 tempax |= tempcx; XGI_SetLVDSRegs()
1483 xgifb_reg_set(pVBInfo->Part1Port, 0x15, tempax); XGI_SetLVDSRegs()
1487 tempax = pVBInfo->VT; XGI_SetLVDSRegs()
1493 if (tempcx >= tempax) XGI_SetLVDSRegs()
1494 tempcx -= tempax; XGI_SetLVDSRegs()
1508 tempax = pVBInfo->VT; XGI_SetLVDSRegs()
1517 if (tempcx >= tempax) XGI_SetLVDSRegs()
1518 tempcx -= tempax; XGI_SetLVDSRegs()
1525 tempax = ((tempbx >> 8) & 0x07) << 3; XGI_SetLVDSRegs()
1529 tempax |= 0x40; XGI_SetLVDSRegs()
1532 tempax |= 0x40; XGI_SetLVDSRegs()
1535 tempax); XGI_SetLVDSRegs()
1538 tempax = pVBInfo->VGAVDE; XGI_SetLVDSRegs()
1540 temp = tempax; /* 0430 ylshieh */ XGI_SetLVDSRegs()
1557 tempax = tempbx & 0x03; XGI_SetLVDSRegs()
1561 tempax |= 0x04; XGI_SetLVDSRegs()
1563 xgifb_reg_set(pVBInfo->Part1Port, 0x35, tempax); XGI_SetLVDSRegs()
1594 tempax = (unsigned short) (temp1 / tempbx); XGI_SetLVDSRegs()
1597 tempax = 65535; XGI_SetLVDSRegs()
1599 temp3 = tempax; XGI_SetLVDSRegs()
1608 tempax = (unsigned short) (temp3 & 0xff); XGI_SetLVDSRegs()
1609 xgifb_reg_set(pVBInfo->Part1Port, 0x1f, tempax); XGI_SetLVDSRegs()
1618 tempax = ((tempbx >> 8) & 0xff) << 3; XGI_SetLVDSRegs()
1619 tempax |= (unsigned short) ((temp3 >> 8) & 0x07); XGI_SetLVDSRegs()
1621 (unsigned short) (tempax & 0xff)); XGI_SetLVDSRegs()
1770 unsigned short tempcl, tempch, temp, tempbl, tempax; XGI_UpdateModeInfo() local
1792 tempax = xgifb_reg_get(pVBInfo->Part1Port, 0x13); XGI_UpdateModeInfo()
1793 if (tempax & 0x04) XGI_UpdateModeInfo()
1897 unsigned short tempax, push, tempbx, temp, modeflag; XGI_GetVBInfo() local
1913 tempax = temp << 8; XGI_GetVBInfo()
1914 tempbx = tempbx | tempax; XGI_GetVBInfo()
1945 tempax = push; /* restore CR31 */ XGI_GetVBInfo()
1950 tempax |= DisableCRT2Display; XGI_GetVBInfo()
1996 if (tempax & DisableCRT2Display) { /* Set Display Device Info */ XGI_GetVBInfo()
2089 unsigned short temp, tempax, tempbx, resinfo = 0, LCDIdIndex; XGI_GetLCDInfo() local
2106 tempax = xgifb_reg_get(pVBInfo->P3d4, 0x33); XGI_GetLCDInfo()
2108 tempax &= 0x0F; XGI_GetLCDInfo()
2110 tempax >>= 4; XGI_GetLCDInfo()
2113 if (tempax >= 3) XGI_GetLCDInfo()
2116 if (tempax >= 4) XGI_GetLCDInfo()
2139 tempax = pVBInfo->LCDCapList[LCDIdIndex].LCD_Capability; XGI_GetLCDInfo()
2142 (pVBInfo->VBType & VB_XGI301C)) && (tempax & XGI_LCDDualLink)) XGI_GetLCDInfo()
2482 unsigned short tempax, tempbx, temp1, temp2, modeflag = 0, tempcx, XGI_GetRAMDAC2DATA() local
2492 tempax = (temp1 & 0xFF) | ((temp2 & 0x03) << 8); XGI_GetRAMDAC2DATA()
2506 tempax += 5; XGI_GetRAMDAC2DATA()
2509 tempax *= 8; XGI_GetRAMDAC2DATA()
2511 tempax *= 9; XGI_GetRAMDAC2DATA()
2513 pVBInfo->VGAHT = tempax; XGI_GetRAMDAC2DATA()
2514 pVBInfo->HT = tempax; XGI_GetRAMDAC2DATA()
2524 unsigned short tempax = 0, tempbx = 0, modeflag, resinfo; XGI_GetCRT2Data() local
2551 tempax = 1024; XGI_GetCRT2Data()
2565 tempax = 1024; XGI_GetCRT2Data()
2568 tempax = 1280; XGI_GetCRT2Data()
2578 tempax = 1280; XGI_GetCRT2Data()
2581 tempax = 1280; XGI_GetCRT2Data()
2591 tempax = 1400; XGI_GetCRT2Data()
2595 tempax = 1280; XGI_GetCRT2Data()
2599 tempax = 1600; XGI_GetCRT2Data()
2610 tempax = pVBInfo->VGAHDE; XGI_GetCRT2Data()
2614 pVBInfo->HDE = tempax; XGI_GetCRT2Data()
2645 tempax = ExtHiTVHT; XGI_GetCRT2Data()
2650 tempax = StHiTVHT; XGI_GetCRT2Data()
2654 tempax = StHiTextTVHT; XGI_GetCRT2Data()
2661 tempax = YPbPrTV750pHT; /* Ext750pTVHT */ XGI_GetCRT2Data()
2666 tempax = YPbPrTV525pHT; /* Ext525pTVHT */ XGI_GetCRT2Data()
2669 tempax = YPbPrTV525iHT; /* Ext525iTVHT */ XGI_GetCRT2Data()
2672 tempax = NTSC1024x768HT; XGI_GetCRT2Data()
2675 tempax = PALHT; XGI_GetCRT2Data()
2678 tempax = NTSCHT; XGI_GetCRT2Data()
2681 tempax = NTSC1024x768HT; XGI_GetCRT2Data()
2685 pVBInfo->HT = tempax; XGI_GetCRT2Data()
2810 unsigned short temp = 0, tempax = 0, tempbx = 0, tempcx = 0, XGI_SetGroup1() local
2889 tempax = (tempax & 0x00FF) | (tempbx & 0xFF00); XGI_SetGroup1()
2892 tempax |= (tempbx & 0xFF00); XGI_SetGroup1()
2893 temp = (tempax & 0xFF00) >> 8; XGI_SetGroup1()
2937 tempax = 0; XGI_SetGroup1()
2940 tempax |= 0x80; XGI_SetGroup1()
2943 tempax |= 0x40; XGI_SetGroup1()
2945 xgifb_reg_and_or(pVBInfo->Part1Port, 0x2C, ~0x0C0, tempax); XGI_SetGroup1()
2950 unsigned long tempax, tempbx; XGI_GetVGAHT2() local
2954 tempax = (pVBInfo->VT - pVBInfo->VDE) * pVBInfo->RVBHCFACT; XGI_GetVGAHT2()
2955 tempax = (tempax * pVBInfo->HT) / tempbx; XGI_GetVGAHT2()
2957 return (unsigned short) tempax; XGI_GetVGAHT2()
2963 unsigned short push1, push2, tempax, tempbx = 0, tempcx, temp, resinfo, XGI_SetLockRegs() local
2980 tempax = pVBInfo->VGAHDE; /* 0x04 Horizontal Display End */ XGI_SetLockRegs()
2983 tempax >>= 1; XGI_SetLockRegs()
2985 tempax = (tempax / tempcx) - 1; XGI_SetLockRegs()
2986 tempbx |= ((tempax & 0x00FF) << 8); XGI_SetLockRegs()
2987 temp = tempax & 0x00FF; XGI_SetLockRegs()
3009 tempax = pVBInfo->VGAHT; XGI_SetLockRegs()
3011 tempax = XGI_GetVGAHT2(pVBInfo); XGI_SetLockRegs()
3014 if (tempax >= pVBInfo->VGAHT) XGI_SetLockRegs()
3015 tempax = pVBInfo->VGAHT; XGI_SetLockRegs()
3018 tempax >>= 1; XGI_SetLockRegs()
3020 tempax = (tempax / tempcx) - 5; XGI_SetLockRegs()
3021 tempcx = tempax; /* 20030401 0x07 horizontal Retrace Start */ XGI_SetLockRegs()
3126 tempax = 0x000B; XGI_SetLockRegs()
3129 tempax |= 0x08000; XGI_SetLockRegs()
3134 temp = (tempax & 0xFF00) >> 8; XGI_SetLockRegs()
3143 tempax = push1; XGI_SetLockRegs()
3144 tempax -= tempbx; /* 0x0C Vertical Retrace Start */ XGI_SetLockRegs()
3145 tempax >>= 2; XGI_SetLockRegs()
3146 push1 = tempax; /* push ax */ XGI_SetLockRegs()
3149 tempax <<= 1; XGI_SetLockRegs()
3150 tempbx += tempax; XGI_SetLockRegs()
3181 tempax = push1; XGI_SetLockRegs()
3182 tempax >>= 2; XGI_SetLockRegs()
3183 tempax++; XGI_SetLockRegs()
3184 tempax += tempbx; XGI_SetLockRegs()
3185 push1 = tempax; /* push ax */ XGI_SetLockRegs()
3189 if (tempax >= 513) XGI_SetLockRegs()
3230 tempax = modeflag; XGI_SetLockRegs()
3231 temp = (tempax & 0xFF00) >> 8; XGI_SetLockRegs()
3253 unsigned short i, j, tempax, tempbx, tempcx, temp, push1, push2, XGI_SetGroup2() local
3262 tempax = 0; XGI_SetGroup2()
3265 tempax |= 0x0800; XGI_SetGroup2()
3268 tempax |= 0x0400; XGI_SetGroup2()
3271 tempax |= 0x0200; XGI_SetGroup2()
3274 tempax |= 0x1000; XGI_SetGroup2()
3277 tempax |= 0x0100; XGI_SetGroup2()
3280 tempax &= 0xfe00; XGI_SetGroup2()
3282 tempax = (tempax & 0xff00) >> 8; XGI_SetGroup2()
3284 xgifb_reg_set(pVBInfo->Part2Port, 0x0, tempax); XGI_SetGroup2()
3329 tempax = 520; XGI_SetGroup2()
3331 tempax = 440; XGI_SetGroup2()
3333 if (pVBInfo->VDE <= tempax) { XGI_SetGroup2()
3334 tempax -= pVBInfo->VDE; XGI_SetGroup2()
3335 tempax >>= 2; XGI_SetGroup2()
3336 tempax = (tempax & 0x00FF) | ((tempax & 0x00FF) << 8); XGI_SetGroup2()
3337 push1 = tempax; XGI_SetGroup2()
3338 temp = (tempax & 0xFF00) >> 8; XGI_SetGroup2()
3356 tempax = push1; XGI_SetGroup2()
3357 temp = (tempax & 0xFF00) >> 8; XGI_SetGroup2()
3445 tempax = XGI_GetVGAHT2(pVBInfo); XGI_SetGroup2()
3446 tempcx = tempax - 1; XGI_SetGroup2()
3543 tempax &= 0x00FF; XGI_SetGroup2()
3585 tempax = (unsigned short) tempeax; XGI_SetGroup2()
3590 tempcx = ((tempax & 0xFF00) >> 5) >> 8; XGI_SetGroup2()
3597 tempax = (unsigned short) (((tempeax & 0x000000FF) << 8) XGI_SetGroup2()
3598 | (tempax & 0x00FF)); XGI_SetGroup2()
3599 temp = (tempax & 0xFF00) >> 8; XGI_SetGroup2()
3601 temp = (tempax & 0x00FF) >> 8; XGI_SetGroup2()
3666 tempax = xgifb_reg_get(pVBInfo->Part2Port, 0x01); XGI_SetGroup2()
3667 tempax--; XGI_SetGroup2()
3668 xgifb_reg_and(pVBInfo->Part2Port, 0x01, tempax); XGI_SetGroup2()
3682 unsigned short pushbx, tempax, tempbx, tempcx, temp, tempah, XGI_SetLCDRegs() local
3755 tempax = pVBInfo->VT; XGI_SetLCDRegs()
3763 if (tempcx >= tempax) XGI_SetLCDRegs()
3764 tempcx -= tempax; /* lcdvdes */ XGI_SetLCDRegs()
3778 XGI_GetLCDSync(&tempax, &tempbx, pVBInfo); XGI_SetLCDRegs()
3780 tempax = pVBInfo->VT; XGI_SetLCDRegs()
3784 if (tempcx >= tempax) XGI_SetLCDRegs()
3785 tempcx -= tempax; XGI_SetLCDRegs()
3794 tempax = pVBInfo->HT; XGI_SetLCDRegs()
3799 tempax >>= 1; XGI_SetLCDRegs()
3812 if (tempcx >= tempax) XGI_SetLCDRegs()
3813 tempcx -= tempax; XGI_SetLCDRegs()
3824 XGI_GetLCDSync(&tempax, &tempbx, pVBInfo); XGI_SetLCDRegs()
3825 tempcx = tempax; XGI_SetLCDRegs()
3826 tempax = pVBInfo->HT; XGI_SetLCDRegs()
3829 tempax >>= 1; XGI_SetLCDRegs()
3839 if (tempcx >= tempax) XGI_SetLCDRegs()
3840 tempcx -= tempax; XGI_SetLCDRegs()
3885 unsigned short tempax, tempbx, i; XGI_GetTap4Ptr() local
3889 tempax = pVBInfo->VGAHDE; XGI_GetTap4Ptr()
3892 tempax = pVBInfo->VGAVDE; XGI_GetTap4Ptr()
3896 if (tempax <= tempbx) XGI_GetTap4Ptr()
3916 if (Tap4TimingPtr[i].DE == tempax) XGI_GetTap4Ptr()
4014 unsigned short tempax, tempcx, tempbx, modeflag, temp, temp2; XGI_SetGroup4() local
4119 tempax = pVBInfo->VGAHDE; XGI_SetGroup4()
4121 tempax >>= 1; XGI_SetGroup4()
4124 tempax >>= 1; XGI_SetGroup4()
4127 if (tempax > 800) XGI_SetGroup4()
4128 tempax -= 800; XGI_SetGroup4()
4131 tempax = (tempax * 25 / 32) - 1; XGI_SetGroup4()
4133 tempax = (tempax * 20 / 32) - 1; XGI_SetGroup4()
4135 tempax -= 1; XGI_SetGroup4()
4137 temp = (tempax & 0xFF00) >> 8; XGI_SetGroup4()
4140 temp = (tempax & 0x00FF); XGI_SetGroup4()
4435 unsigned short tempax; XGI_IsLCDON() local
4437 tempax = pVBInfo->VBInfo; XGI_IsLCDON()
4438 if (tempax & SetCRT2ToDualEdge) XGI_IsLCDON()
4440 else if (tempax & (DisableCRT2Display | SwitchCRT2 | SetSimuScanMode)) XGI_IsLCDON()
/linux-4.1.27/drivers/video/fbdev/sis/
H A Dinit301.c937 unsigned short tempax, tempbx, temp; SiS_GetVBInfo() local
956 tempax = SiS_GetReg(SiS_Pr->SiS_P3d4,0x31) << 8; SiS_GetVBInfo()
957 tempax &= (DriverMode | LoadDACFlag | SetNotSimuMode | SetPALTV); SiS_GetVBInfo()
958 tempbx |= tempax; SiS_GetVBInfo()
1048 tempax = DisableCRT2Display; SiS_GetVBInfo()
1093 if(tempax & DisableCRT2Display) { SiS_GetVBInfo()
3014 unsigned short tempax=0, tempbx=0, index, dotclock; SiS_GetRAMDAC2DATA() local
3025 tempax = SiS_Pr->SiS_StandTable[index].CRTC[0]; SiS_GetRAMDAC2DATA()
3036 tempax = SiS_Pr->SiS_CRT1Table[index].CR[0]; SiS_GetRAMDAC2DATA()
3037 tempax |= (SiS_Pr->SiS_CRT1Table[index].CR[14] << 8); SiS_GetRAMDAC2DATA()
3038 tempax &= 0x03FF; SiS_GetRAMDAC2DATA()
3053 tempax += 5; SiS_GetRAMDAC2DATA()
3054 tempax *= dotclock; SiS_GetRAMDAC2DATA()
3055 if(modeflag & HalfDCLK) tempax <<= 1; SiS_GetRAMDAC2DATA()
3059 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; SiS_GetRAMDAC2DATA()
3206 unsigned short tempax, tempbx, modeflag, romptr=0; SiS_GetCRT2Data301() local
3258 tempax = SiS_Pr->CHTotal; SiS_GetCRT2Data301()
3259 if(modeflag & HalfDCLK) tempax <<= 1; SiS_GetCRT2Data301()
3260 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; SiS_GetCRT2Data301()
3302 tempax = ((TVPtr+ResIndex)->RVBHRS2 >> 12) & 0x07; SiS_GetCRT2Data301()
3303 if((TVPtr+ResIndex)->RVBHRS2 & 0x8000) SiS_Pr->SiS_RVBHRS2 -= tempax; SiS_GetCRT2Data301()
3304 else SiS_Pr->SiS_RVBHRS2 += tempax; SiS_GetCRT2Data301()
3381 tempax = SiS_Pr->CHTotal; SiS_GetCRT2Data301()
3382 if(modeflag & HalfDCLK) tempax <<= 1; SiS_GetCRT2Data301()
3383 SiS_Pr->SiS_VGAHT = SiS_Pr->SiS_HT = tempax; SiS_GetCRT2Data301()
3410 tempax = (ROMAddr[romptr+9] >> 4) & 0x07; SiS_GetCRT2Data301()
3411 if(ROMAddr[romptr+9] & 0x80) SiS_Pr->SiS_RVBHRS2 -= tempax; SiS_GetCRT2Data301()
3412 else SiS_Pr->SiS_RVBHRS2 += tempax; SiS_GetCRT2Data301()
3476 tempax = SiS_Pr->PanelXRes; SiS_GetCRT2Data301()
3514 tempax = SiS_Pr->SiS_VGAHDE; SiS_GetCRT2Data301()
3518 SiS_Pr->SiS_HDE = tempax; SiS_GetCRT2Data301()
5210 unsigned int tempax,tempbx; SiS_GetVGAHT2() local
5213 tempax = (SiS_Pr->SiS_VT - SiS_Pr->SiS_VDE) * SiS_Pr->SiS_RVBHCFACT; SiS_GetVGAHT2()
5214 tempax = (tempax * SiS_Pr->SiS_HT) / tempbx; SiS_GetVGAHT2()
5215 return (unsigned short)tempax; SiS_GetVGAHT2()
5353 unsigned short push2, tempax, tempbx, tempcx, temp; SiS_SetGroup1_LVDS() local
5425 tempax = SiS_Pr->SiS_LCDHDES; SiS_SetGroup1_LVDS()
5431 tempax -= 8; SiS_SetGroup1_LVDS()
5437 temp = (tempax & 0x0007); SiS_SetGroup1_LVDS()
5439 temp = (tempax >> 3) & 0x00FF; SiS_SetGroup1_LVDS()
5454 tempax += tempbx; SiS_SetGroup1_LVDS()
5455 if(tempax >= SiS_Pr->SiS_HT) tempax -= SiS_Pr->SiS_HT; SiS_SetGroup1_LVDS()
5457 temp = tempax; SiS_SetGroup1_LVDS()
5470 tempcx += tempax; SiS_SetGroup1_LVDS()
5519 tempax = SiS_Pr->SiS_VGAVDE; SiS_SetGroup1_LVDS()
5522 tempax = SiS_Pr->PanelYRes; SiS_SetGroup1_LVDS()
5526 tempbx = SiS_Pr->SiS_LCDVDES + tempax; SiS_SetGroup1_LVDS()
5809 tempax = SiS_Pr->SiS_HDE; /* Blps = lcdhdee(lcdhdes+HDE) + 64 */ SiS_SetGroup1_LVDS()
5812 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; SiS_SetGroup1_LVDS()
5813 tempax += 64; SiS_SetGroup1_LVDS()
5814 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x38,tempax & 0xff); SiS_SetGroup1_LVDS()
5815 temp = (tempax >> 8) << 3; SiS_SetGroup1_LVDS()
5817 tempax += 32; /* Blpe = lBlps+32 */ SiS_SetGroup1_LVDS()
5818 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x39,tempax & 0xff); SiS_SetGroup1_LVDS()
5822 tempax = SiS_Pr->SiS_VDE; SiS_SetGroup1_LVDS()
5825 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; SiS_SetGroup1_LVDS()
5826 tempax >>= 1; SiS_SetGroup1_LVDS()
5827 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x3B,tempax & 0xff); SiS_SetGroup1_LVDS()
5828 temp = (tempax >> 8) << 3; SiS_SetGroup1_LVDS()
5846 tempax = SiS_Pr->SiS_HDE; SiS_SetGroup1_LVDS()
5849 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; SiS_SetGroup1_LVDS()
5850 tempax >>= 4; /* BDxWadroff = HDE*4/8/8 */ SiS_SetGroup1_LVDS()
5851 pushcx = tempax; SiS_SetGroup1_LVDS()
5852 temp = tempax & 0x00FF; SiS_SetGroup1_LVDS()
5854 temp = ((tempax & 0xFF00) >> 8) << 3; SiS_SetGroup1_LVDS()
5857 tempax = SiS_Pr->SiS_VDE; /* BDxWadrst1 = BDxWadrst0 + BDxWadroff * VDE */ SiS_SetGroup1_LVDS()
5860 SiS_Pr->SiS_LCDResInfo == Panel_320x240_3) tempax >>= 1; SiS_SetGroup1_LVDS()
5861 tempeax = tempax * pushcx; SiS_SetGroup1_LVDS()
5911 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; SiS_SetGroup1() local
5982 tempax = SiS_Pr->SiS_VGAHDE >> 1; SiS_SetGroup1()
5983 tempcx = SiS_Pr->SiS_HT - SiS_Pr->SiS_HDE + tempax; SiS_SetGroup1()
5985 tempcx = SiS_Pr->SiS_HT - tempax; SiS_SetGroup1()
6035 tempax = SiS_Pr->SiS_VGAHT; SiS_SetGroup1()
6036 if(modeflag & HalfDCLK) tempax >>= 1; SiS_SetGroup1()
6037 tempax--; SiS_SetGroup1()
6038 if(tempcx > tempax) tempcx = tempax; SiS_SetGroup1()
6060 tempax = SiS_Pr->SiS_VGAHT; SiS_SetGroup1()
6061 if(modeflag & HalfDCLK) tempax >>= 1; SiS_SetGroup1()
6062 tempax--; SiS_SetGroup1()
6063 if(tempcx > tempax) tempcx = tempax; SiS_SetGroup1()
6110 tempax = tempbx; SiS_SetGroup1()
6112 tempcx -= tempax; SiS_SetGroup1()
6245 tempax = 0; SiS_SetGroup1()
6246 if(modeflag & DoubleScanMode) tempax |= 0x80; SiS_SetGroup1()
6247 if(modeflag & HalfDCLK) tempax |= 0x40; SiS_SetGroup1()
6248 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2C,0x3f,tempax); SiS_SetGroup1()
6586 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; SiS_SetGroup2() local
6700 if(SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) tempax = 950; SiS_SetGroup2()
6701 else if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempax = 680; SiS_SetGroup2()
6702 else if(SiS_Pr->SiS_TVMode & TVSetPAL) tempax = 520; SiS_SetGroup2()
6703 else tempax = 440; /* NTSC, YPbPr 525 */ SiS_SetGroup2()
6705 if( ((SiS_Pr->SiS_VBInfo & SetCRT2ToHiVision) && (SiS_Pr->SiS_VDE <= tempax)) || SiS_SetGroup2()
6707 ((SiS_Pr->SiS_VGAHDE == 1024) || (SiS_Pr->SiS_VDE <= tempax)) ) ) { SiS_SetGroup2()
6709 tempax -= SiS_Pr->SiS_VDE; SiS_SetGroup2()
6710 tempax >>= 1; SiS_SetGroup2()
6712 tempax >>= 1; SiS_SetGroup2()
6714 tempax &= 0x00ff; SiS_SetGroup2()
6716 temp = tempax + (unsigned short)TimingPoint[0]; SiS_SetGroup2()
6719 temp = tempax + (unsigned short)TimingPoint[1]; SiS_SetGroup2()
6840 tempax = 0; SiS_SetGroup2()
6866 tempax = longtemp / SiS_Pr->SiS_HDE; SiS_SetGroup2()
6867 if(longtemp % SiS_Pr->SiS_HDE) tempax++; SiS_SetGroup2()
6868 tempbx |= ((tempax >> 8) & 0x1F); SiS_SetGroup2()
6869 tempcx = tempax >> 13; SiS_SetGroup2()
6872 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x44,tempax); SiS_SetGroup2()
7014 tempax = 1; SiS_SetGroup2()
7016 tempax = SiS_Pr->PanelYRes; SiS_SetGroup2()
7017 /* if(SiS_Pr->SiS_VGAVDE == 525) tempax += 0x3c; */ /* 651+301C */ SiS_SetGroup2()
7019 tempax = tempcx = 0; SiS_SetGroup2()
7021 tempax -= SiS_Pr->SiS_VDE; SiS_SetGroup2()
7023 tempax >>= 1; SiS_SetGroup2()
7025 tempcx -= tempax; /* lcdvdes */ SiS_SetGroup2()
7026 tempbx -= tempax; /* lcdvdee */ SiS_SetGroup2()
7038 tempax = SiS_Pr->SiS_VDE; SiS_SetGroup2()
7040 tempax = SiS_Pr->PanelYRes; SiS_SetGroup2()
7042 tempcx = (SiS_Pr->SiS_VT - tempax) >> 4; SiS_SetGroup2()
7045 tempcx = (SiS_Pr->SiS_VT - tempax) / 10; SiS_SetGroup2()
7053 tempax = SiS_Pr->SiS_VT - SiS_Pr->PanelYRes; SiS_SetGroup2()
7054 if(tempax % 4) { tempax >>= 2; tempax++; } SiS_SetGroup2()
7055 else { tempax >>= 2; } SiS_SetGroup2()
7056 tempbx -= (tempax - 1); SiS_SetGroup2()
7115 tempax = tempbx = SiS_Pr->SiS_HDE; SiS_SetGroup2()
7118 tempax = SiS_Pr->PanelXRes; SiS_SetGroup2()
7125 tempax >>= 1; SiS_SetGroup2()
7133 tempcx = (tempcx - tempax) >> 2; SiS_SetGroup2()
7407 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo; SiS_SetGroup4() local
7529 tempax = SiS_Pr->SiS_VGAHDE; SiS_SetGroup4()
7530 if(modeflag & HalfDCLK) tempax >>= 1; SiS_SetGroup4()
7531 if(SiS_IsDualLink(SiS_Pr)) tempax >>= 1; SiS_SetGroup4()
7532 if(tempax > 800) { SiS_SetGroup4()
7534 tempax -= 800; SiS_SetGroup4()
7537 if(tempax == 960) tempax *= 25; /* Correct */ SiS_SetGroup4()
7538 else if(tempax == 1024) tempax *= 25; SiS_SetGroup4()
7539 else tempax *= 20; SiS_SetGroup4()
7540 temp = tempax % 32; SiS_SetGroup4()
7541 tempax /= 32; SiS_SetGroup4()
7542 if(temp) tempax++; SiS_SetGroup4()
7543 tempax++; SiS_SetGroup4()
7550 tempax = (tempax & 0xff00) | 0x20; SiS_SetGroup4()
7555 tempax--; SiS_SetGroup4()
7556 temp = ((tempax >> 4) & 0x30) | tempbx; SiS_SetGroup4()
7557 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x1D,tempax); SiS_SetGroup4()
9356 SiS_WriteDDC2Data(struct SiS_Private *SiS_Pr, unsigned short tempax) SiS_WriteDDC2Data() argument
9363 if(tempax & flag) { SiS_WriteDDC2Data()
10444 unsigned short tempcl,tempch,tempbl,tempbh,tempbx,tempax,temp; SiS_FinalizeLCD() local
10623 tempax = 768 - SiS_Pr->SiS_VGAVDE; SiS_FinalizeLCD()
10624 tempax >>= 4; /* 1.10.7w; 1.10.6s: 3; */ SiS_FinalizeLCD()
10625 if(SiS_Pr->SiS_VGAVDE <= 480) tempax >>= 4; /* 1.10.7w; 1.10.6s: < 480; >>=1; */ SiS_FinalizeLCD()
10626 tempbx -= tempax; SiS_FinalizeLCD()
H A Dinit.c3389 unsigned short modeflag, tempax, tempbx = 0, remaining = 0; SiS_CalcLCDACRT1Timing() local
3419 tempax = SiS_Pr->SiS_VGAHDE; /* not /2 ! */ SiS_CalcLCDACRT1Timing()
3421 tempax = SiS_Pr->PanelXRes; SiS_CalcLCDACRT1Timing()
3423 tempbx += tempax; SiS_CalcLCDACRT1Timing()
3439 tempax = (SiS_Pr->PanelXRes - SiS_Pr->SiS_VGAHDE) >> 1; SiS_CalcLCDACRT1Timing()
3442 tempax >>= 1; SiS_CalcLCDACRT1Timing()
3445 SiS_Pr->CHSyncStart = (VGAHDE + tempax + tempbx + 7) & ~7; SiS_CalcLCDACRT1Timing()
3446 tempax = SiS_Pr->PanelHRE + 7; SiS_CalcLCDACRT1Timing()
3447 if(modeflag & HalfDCLK) tempax >>= 1; SiS_CalcLCDACRT1Timing()
3448 SiS_Pr->CHSyncEnd = (SiS_Pr->CHSyncStart + tempax) & ~7; SiS_CalcLCDACRT1Timing()
3453 tempax = ((SiS_Pr->CHTotal - SiS_Pr->CHSyncStart) / 3) << 1; SiS_CalcLCDACRT1Timing()
3454 SiS_Pr->CHSyncEnd = SiS_Pr->CHSyncStart + tempax; SiS_CalcLCDACRT1Timing()
3463 tempax = VGAHDE; SiS_CalcLCDACRT1Timing()
3467 tempax += ((tempbx - tempax) >> 1); SiS_CalcLCDACRT1Timing()
3469 tempax += SiS_Pr->PanelHRS; SiS_CalcLCDACRT1Timing()
3470 SiS_Pr->CHSyncStart = tempax; SiS_CalcLCDACRT1Timing()
3471 tempax += SiS_Pr->PanelHRE; SiS_CalcLCDACRT1Timing()
3472 SiS_Pr->CHSyncEnd = tempax; SiS_CalcLCDACRT1Timing()
3477 tempax = SiS_Pr->SiS_VGAVDE; SiS_CalcLCDACRT1Timing()
3479 tempax = SiS_Pr->PanelYRes; SiS_CalcLCDACRT1Timing()
3484 if((tempax + tempbx) == 438) tempbx += 16; SiS_CalcLCDACRT1Timing()
3487 tempax = 0; SiS_CalcLCDACRT1Timing()
3492 SiS_Pr->CVTotal = SiS_Pr->CVBlankEnd = tempbx + tempax; SiS_CalcLCDACRT1Timing()
3494 tempax = SiS_Pr->SiS_VGAVDE; SiS_CalcLCDACRT1Timing()
3496 tempax += (SiS_Pr->PanelYRes - tempax) >> 1; SiS_CalcLCDACRT1Timing()
3498 tempax += SiS_Pr->PanelVRS; SiS_CalcLCDACRT1Timing()
3499 SiS_Pr->CVSyncStart = tempax; SiS_CalcLCDACRT1Timing()
3500 tempax += SiS_Pr->PanelVRE; SiS_CalcLCDACRT1Timing()
3501 SiS_Pr->CVSyncEnd = tempax; SiS_CalcLCDACRT1Timing()
3527 tempax = SiS_Pr->CCRT1CRTC[16] & 0xE0; SiS_CalcLCDACRT1Timing()
3528 SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0E,0x1F,tempax); SiS_CalcLCDACRT1Timing()
3530 tempax = (SiS_Pr->CCRT1CRTC[16] & 0x01) << 5; SiS_CalcLCDACRT1Timing()
3531 if(modeflag & DoubleScanMode) tempax |= 0x80; SiS_CalcLCDACRT1Timing()
3532 SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x09,0x5F,tempax); SiS_CalcLCDACRT1Timing()
H A Dinit301.h372 unsigned short SiS_GetCH700x(struct SiS_Private *SiS_Pr, unsigned short tempax);
374 unsigned short SiS_GetCH701x(struct SiS_Private *SiS_Pr, unsigned short tempax);
409 static unsigned short SiS_WriteDDC2Data(struct SiS_Private *SiS_Pr, unsigned short tempax);
H A Dinit.h1523 extern unsigned short SiS_GetCH700x(struct SiS_Private *SiS_Pr, unsigned short tempax);

Completed in 212 milliseconds