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

/linux-4.4.14/drivers/staging/xgifb/
H A Dvb_setmode.c175 unsigned short tempax, tempbx, resinfo, modeflag, infoflag; XGI_AjustCRT2Rate() local
179 tempbx = XGI330_RefIndex[RefreshRateTableIndex + (*i)].ModeID; XGI_AjustCRT2Rate()
224 tempbx; (*i)--) { XGI_AjustCRT2Rate()
238 != tempbx) { XGI_AjustCRT2Rate()
685 unsigned short resindex, tempax, tempbx, tempcx, temp, modeflag; XGI_SetCRT1DE() local
693 tempbx = XGI330_ModeResInfo[resindex].VTotal; XGI_SetCRT1DE()
704 tempbx >>= 1; XGI_SetCRT1DE()
707 tempbx <<= 1; XGI_SetCRT1DE()
713 tempbx -= 1; XGI_SetCRT1DE()
722 xgifb_reg_set(pVBInfo->P3d4, 0x12, (unsigned short) (tempbx & 0xff)); XGI_SetCRT1DE()
724 tempbx >>= 8; XGI_SetCRT1DE()
726 if (tempbx & 0x01) XGI_SetCRT1DE()
729 if (tempbx & 0x02) XGI_SetCRT1DE()
736 if (tempbx & 0x04) XGI_SetCRT1DE()
1199 unsigned short i, tempdx, tempbx, modeflag; XGI_GetLcdPtr() local
1201 tempbx = 0; XGI_GetLcdPtr()
1209 if (tempbx & 0x0080) { /* OEMUtil */ XGI_GetLcdPtr()
1210 tempbx &= (~0x0080); XGI_GetLcdPtr()
1218 tempbx = table[i].MASK; XGI_GetLcdPtr()
1224 tempbx &= tempdx; XGI_GetLcdPtr()
1225 if (tempbx == table[i].CAP) XGI_GetLcdPtr()
1398 unsigned short tempbx, tempax, tempcx, tempdx, push1, push2, modeflag; XGI_SetLVDSRegs() local
1405 XGI_GetLCDSync(&tempax, &tempbx, pVBInfo); XGI_SetLVDSRegs()
1406 push1 = tempbx; XGI_SetLVDSRegs()
1413 tempbx = 768; XGI_SetLVDSRegs()
1417 tempbx = 1024; XGI_SetLVDSRegs()
1420 tempbx = 1050; XGI_SetLVDSRegs()
1423 tempbx = 1200; XGI_SetLVDSRegs()
1428 pVBInfo->VDE = tempbx; XGI_SetLVDSRegs()
1430 pVBInfo->VGAVDE = tempbx; XGI_SetLVDSRegs()
1435 tempbx = LCDPtr1->LCDHDES; XGI_SetLVDSRegs()
1438 tempbx = tempbx & 0x0fff; XGI_SetLVDSRegs()
1439 tempcx += tempbx; XGI_SetLVDSRegs()
1444 xgifb_reg_set(pVBInfo->Part1Port, 0x1A, tempbx & 0x07); XGI_SetLVDSRegs()
1447 tempbx >>= 3; XGI_SetLVDSRegs()
1450 (unsigned short) (tempbx & 0xff)); XGI_SetLVDSRegs()
1456 tempbx = LCDPtr1->LCDHRS; XGI_SetLVDSRegs()
1463 tempcx += tempbx; XGI_SetLVDSRegs()
1468 tempax = tempbx & 0x07; XGI_SetLVDSRegs()
1471 tempbx >>= 3; XGI_SetLVDSRegs()
1478 (unsigned short) (tempbx & 0xff)); XGI_SetLVDSRegs()
1481 tempbx = LCDPtr1->LCDVDES; XGI_SetLVDSRegs()
1484 tempbx = tempbx & 0x0fff; XGI_SetLVDSRegs()
1485 tempcx += tempbx; XGI_SetLVDSRegs()
1490 (unsigned short) (tempbx & 0xff)); XGI_SetLVDSRegs()
1494 tempbx = (tempbx >> 8) & 0x07; XGI_SetLVDSRegs()
1499 | tempbx)); XGI_SetLVDSRegs()
1502 tempbx = LCDPtr1->LCDVRS; XGI_SetLVDSRegs()
1509 tempcx += tempbx; XGI_SetLVDSRegs()
1514 (unsigned short) (tempbx & 0xff)); XGI_SetLVDSRegs()
1518 tempax = ((tempbx >> 8) & 0x07) << 3; XGI_SetLVDSRegs()
1520 tempbx = pVBInfo->VGAVDE; XGI_SetLVDSRegs()
1521 if (tempbx != pVBInfo->VDE) XGI_SetLVDSRegs()
1530 tempbx = pVBInfo->VDE; XGI_SetLVDSRegs()
1534 temp1 = (temp << 18) / tempbx; XGI_SetLVDSRegs()
1536 tempdx = (unsigned short) ((temp << 18) % tempbx); XGI_SetLVDSRegs()
1549 tempbx = (unsigned short) (temp2 >> 16); XGI_SetLVDSRegs()
1550 tempax = tempbx & 0x03; XGI_SetLVDSRegs()
1552 tempbx = pVBInfo->VGAVDE; XGI_SetLVDSRegs()
1553 if (tempbx == pVBInfo->VDE) XGI_SetLVDSRegs()
1567 tempbx = (unsigned short) (temp2 >> 16); XGI_SetLVDSRegs()
1570 (unsigned short) ((tempbx & XGI_SetLVDSRegs()
1583 tempbx = pVBInfo->HDE; XGI_SetLVDSRegs()
1587 tempax = (unsigned short) (temp1 / tempbx); XGI_SetLVDSRegs()
1589 if ((tempbx & 0xffff) == (tempcx & 0xffff)) XGI_SetLVDSRegs()
1606 tempbx = (unsigned short) (temp1 & 0xffff); XGI_SetLVDSRegs()
1609 tempbx -= 1; XGI_SetLVDSRegs()
1611 tempax = ((tempbx >> 8) & 0xff) << 3; XGI_SetLVDSRegs()
1616 (unsigned short) (tempbx & 0xff)); XGI_SetLVDSRegs()
1847 unsigned short flag, tempbx, tempah; XGI_GetVBType() local
1849 tempbx = VB_SIS302B; XGI_GetVBType()
1854 tempbx = VB_SIS301; XGI_GetVBType()
1859 tempbx = VB_SIS301B; XGI_GetVBType()
1863 tempbx = VB_XGI301C; XGI_GetVBType()
1867 tempbx = VB_SIS301LV; XGI_GetVBType()
1871 tempbx = VB_SIS302LV; XGI_GetVBType()
1874 tempbx = VB_XGI301C; XGI_GetVBType()
1877 if (tempbx & (VB_SIS301B | VB_SIS302B)) { XGI_GetVBType()
1880 tempbx = tempbx | VB_NoLCD; XGI_GetVBType()
1884 pVBInfo->VBType = tempbx; XGI_GetVBType()
1890 unsigned short tempax, push, tempbx, temp, modeflag; XGI_GetVBInfo() local
1895 tempbx = 0; XGI_GetVBInfo()
1902 tempbx = tempbx | temp; XGI_GetVBInfo()
1907 tempbx = tempbx | tempax; XGI_GetVBInfo()
1911 tempbx &= temp; XGI_GetVBInfo()
1918 tempbx |= SetCRT2ToDualEdge; XGI_GetVBInfo()
1920 tempbx |= XGI_SetCRT2ToLCDA; XGI_GetVBInfo()
1929 tempbx |= SetCRT2ToHiVision; XGI_GetVBInfo()
1932 tempbx &= (~SetCRT2ToHiVision); XGI_GetVBInfo()
1933 tempbx |= SetCRT2ToYPbPr525750; XGI_GetVBInfo()
1942 if (!(tempbx & temp)) { XGI_GetVBInfo()
1944 tempbx = 0; XGI_GetVBInfo()
1948 if (tempbx & XGI_SetCRT2ToLCDA) { XGI_GetVBInfo()
1949 if (tempbx & SetSimuScanMode) XGI_GetVBInfo()
1950 tempbx &= (~(SetCRT2ToLCD | SetCRT2ToRAMDAC | XGI_GetVBInfo()
1953 tempbx &= (~(SetCRT2ToLCD | SetCRT2ToRAMDAC | XGI_GetVBInfo()
1960 if (!(tempbx & (SwitchCRT2 | SetSimuScanMode))) { XGI_GetVBInfo()
1961 if (tempbx & SetCRT2ToRAMDAC) { XGI_GetVBInfo()
1962 tempbx &= (0xFF00 | SetCRT2ToRAMDAC | XGI_GetVBInfo()
1964 tempbx &= (0x00FF | (~SetCRT2ToYPbPr525750)); XGI_GetVBInfo()
1969 if (tempbx & SetCRT2ToLCD) { XGI_GetVBInfo()
1970 tempbx &= (0xFF00 | SetCRT2ToLCD | SwitchCRT2 | XGI_GetVBInfo()
1972 tempbx &= (0x00FF | (~SetCRT2ToYPbPr525750)); XGI_GetVBInfo()
1976 if (tempbx & SetCRT2ToSCART) { XGI_GetVBInfo()
1977 tempbx &= (0xFF00 | SetCRT2ToSCART | SwitchCRT2 | XGI_GetVBInfo()
1979 tempbx &= (0x00FF | (~SetCRT2ToYPbPr525750)); XGI_GetVBInfo()
1982 if (tempbx & SetCRT2ToYPbPr525750) XGI_GetVBInfo()
1983 tempbx &= (0xFF00 | SwitchCRT2 | SetSimuScanMode); XGI_GetVBInfo()
1985 if (tempbx & SetCRT2ToHiVision) XGI_GetVBInfo()
1986 tempbx &= (0xFF00 | SetCRT2ToHiVision | SwitchCRT2 | XGI_GetVBInfo()
1990 if (!(tempbx & (SwitchCRT2 | SetSimuScanMode))) XGI_GetVBInfo()
1991 tempbx = DisableCRT2Display; XGI_GetVBInfo()
1994 if (!(tempbx & DisableCRT2Display)) { XGI_GetVBInfo()
1995 if ((!(tempbx & DriverMode)) || (!(modeflag & CRT2Mode))) { XGI_GetVBInfo()
1996 if (!(tempbx & XGI_SetCRT2ToLCDA)) XGI_GetVBInfo()
1997 tempbx |= (SetInSlaveMode | SetSimuScanMode); XGI_GetVBInfo()
2002 if ((tempbx & SetInSlaveMode) && (tempbx & XGI_SetCRT2ToLCDA)) { XGI_GetVBInfo()
2003 tempbx ^= (SetCRT2ToLCD | XGI_SetCRT2ToLCDA | XGI_GetVBInfo()
2009 pVBInfo->VBInfo = tempbx; XGI_GetVBInfo()
2015 unsigned short tempbx = 0, resinfo = 0, modeflag, index1; XGI_GetTVInfo() local
2021 tempbx = xgifb_reg_get(pVBInfo->P3d4, 0x35); XGI_GetTVInfo()
2022 if (tempbx & TVSetPAL) { XGI_GetTVInfo()
2023 tempbx &= (SetCHTVOverScan | XGI_GetTVInfo()
2027 if (tempbx & TVSetPALM) XGI_GetTVInfo()
2029 tempbx &= ~TVSetPAL; XGI_GetTVInfo()
2031 tempbx &= (SetCHTVOverScan | XGI_GetTVInfo()
2036 tempbx |= TVSetPAL; XGI_GetTVInfo()
2043 tempbx |= TVSetYPbPr525i; XGI_GetTVInfo()
2046 tempbx = tempbx | TVSetYPbPr525p; XGI_GetTVInfo()
2048 tempbx = tempbx | TVSetYPbPr750p; XGI_GetTVInfo()
2052 tempbx = tempbx | TVSetHiVision | TVSetPAL; XGI_GetTVInfo()
2056 tempbx |= TVSimuMode; XGI_GetTVInfo()
2058 if (!(tempbx & TVSetPAL) && (modeflag > 13) && (resinfo == 8)) XGI_GetTVInfo()
2060 tempbx |= NTSC1024x768; XGI_GetTVInfo()
2062 tempbx |= RPLLDIV2XO; XGI_GetTVInfo()
2066 tempbx &= (~RPLLDIV2XO); XGI_GetTVInfo()
2067 } else if (tempbx & (TVSetYPbPr525p | TVSetYPbPr750p)) { XGI_GetTVInfo()
2068 tempbx &= (~RPLLDIV2XO); XGI_GetTVInfo()
2072 if (tempbx & TVSimuMode) XGI_GetTVInfo()
2073 tempbx &= (~RPLLDIV2XO); XGI_GetTVInfo()
2076 pVBInfo->TVInfo = tempbx; XGI_GetTVInfo()
2082 unsigned short temp, tempax, tempbx, resinfo = 0, LCDIdIndex; XGI_GetLCDInfo() local
2091 tempbx = temp & 0x0F; XGI_GetLCDInfo()
2093 if (tempbx == 0) XGI_GetLCDInfo()
2094 tempbx = Panel_1024x768; /* default */ XGI_GetLCDInfo()
2097 if ((tempbx == Panel_1024x768) || (tempbx == Panel_1280x1024)) { XGI_GetLCDInfo()
2107 tempbx |= PanelRef75Hz; XGI_GetLCDInfo()
2110 tempbx |= PanelRef75Hz; XGI_GetLCDInfo()
2115 pVBInfo->LCDResInfo = tempbx; XGI_GetLCDInfo()
2122 tempbx = 0; XGI_GetLCDInfo()
2128 tempbx |= temp; XGI_GetLCDInfo()
2136 tempbx |= SetLCDDualLink; XGI_GetLCDInfo()
2140 (!(tempbx & EnableScalingLCD))) XGI_GetLCDInfo()
2145 tempbx |= SetLCDtoNonExpanding; XGI_GetLCDInfo()
2149 tempbx |= XGI_LCDVESATiming; XGI_GetLCDInfo()
2151 tempbx |= XGI_LCDVESATiming; XGI_GetLCDInfo()
2154 pVBInfo->LCDInfo = tempbx; XGI_GetLCDInfo()
2475 unsigned short tempax, tempbx, temp1, temp2, modeflag = 0, tempcx, XGI_GetRAMDAC2DATA() local
2486 tempbx = (unsigned short) XGI_CRT1Table[CRT1Index].CR[8]; XGI_GetRAMDAC2DATA()
2491 tempbx |= tempcx; XGI_GetRAMDAC2DATA()
2495 tempbx |= 0x0100; XGI_GetRAMDAC2DATA()
2498 tempbx |= 0x0200; XGI_GetRAMDAC2DATA()
2508 tempbx++; XGI_GetRAMDAC2DATA()
2509 pVBInfo->VGAVT = tempbx; XGI_GetRAMDAC2DATA()
2510 pVBInfo->VT = tempbx; XGI_GetRAMDAC2DATA()
2517 unsigned short tempax = 0, tempbx = 0, modeflag, resinfo; XGI_GetCRT2Data() local
2545 tempbx = 768; XGI_GetCRT2Data()
2549 tempbx = 527; XGI_GetCRT2Data()
2551 tempbx = 620; XGI_GetCRT2Data()
2553 tempbx = 775; XGI_GetCRT2Data()
2555 tempbx = 775; XGI_GetCRT2Data()
2559 tempbx = 768; XGI_GetCRT2Data()
2563 tempbx = 768; XGI_GetCRT2Data()
2565 tempbx = 800; XGI_GetCRT2Data()
2567 tempbx = 864; XGI_GetCRT2Data()
2569 tempbx = 1024; XGI_GetCRT2Data()
2572 tempbx = 1024; XGI_GetCRT2Data()
2576 tempbx = 700; XGI_GetCRT2Data()
2578 tempbx = 800; XGI_GetCRT2Data()
2580 tempbx = 960; XGI_GetCRT2Data()
2582 tempbx = 960; XGI_GetCRT2Data()
2585 tempbx = 1050; XGI_GetCRT2Data()
2589 tempbx = 1024; XGI_GetCRT2Data()
2593 tempbx = 1200; /* alan 10/14/2003 */ XGI_GetCRT2Data()
2596 tempbx = 875; XGI_GetCRT2Data()
2598 tempbx = 1000; XGI_GetCRT2Data()
2604 tempbx = pVBInfo->VGAVDE; XGI_GetCRT2Data()
2608 pVBInfo->VDE = tempbx; XGI_GetCRT2Data()
2639 tempbx = ExtHiTVVT; XGI_GetCRT2Data()
2644 tempbx = StHiTVVT; XGI_GetCRT2Data()
2648 tempbx = StHiTextTVVT; XGI_GetCRT2Data()
2655 tempbx = YPbPrTV750pVT; /* Ext750pTVVT */ XGI_GetCRT2Data()
2660 tempbx = YPbPrTV525pVT; /* Ext525pTVVT */ XGI_GetCRT2Data()
2663 tempbx = YPbPrTV525iVT; /* Ext525iTVVT */ XGI_GetCRT2Data()
2669 tempbx = PALVT; XGI_GetCRT2Data()
2672 tempbx = NTSCVT; XGI_GetCRT2Data()
2679 pVBInfo->VT = tempbx; XGI_GetCRT2Data()
2803 unsigned short temp = 0, tempax = 0, tempbx = 0, tempcx = 0, XGI_SetGroup1() local
2823 tempbx = pushbx + tempcx; /* bx BTVGA@HRS 0x0B,0x0C */ XGI_SetGroup1()
2824 tempcx += tempbx; XGI_SetGroup1()
2827 tempbx = XGI_CRT1Table[CRT1Index].CR[4]; XGI_SetGroup1()
2828 tempbx |= ((XGI_CRT1Table[CRT1Index].CR[14] & XGI_SetGroup1()
2830 tempbx = (tempbx - 3) << 3; /* (VGAHRS-3)*8 */ XGI_SetGroup1()
2838 tempbx += 4; XGI_SetGroup1()
2844 temp = tempbx & 0x00FF; XGI_SetGroup1()
2858 tempbx = pushbx + tempcx; /* bx BTVGA@HRS 0x0B,0x0C */ XGI_SetGroup1()
2859 tempcx += tempbx; XGI_SetGroup1()
2862 tempbx = XGI_CRT1Table[CRT1Index].CR[3]; XGI_SetGroup1()
2863 tempbx |= ((XGI_CRT1Table[CRT1Index].CR[5] & XGI_SetGroup1()
2865 tempbx = (tempbx - 3) << 3; /* (VGAHRS-3)*8 */ XGI_SetGroup1()
2871 tempbx += 16; XGI_SetGroup1()
2878 temp = tempbx & 0x00FF; XGI_SetGroup1()
2882 tempax = (tempax & 0x00FF) | (tempbx & 0xFF00); XGI_SetGroup1()
2883 tempbx = pushbx; XGI_SetGroup1()
2884 tempbx = (tempbx & 0x00FF) | ((tempbx & 0xFF00) << 4); XGI_SetGroup1()
2885 tempax |= (tempbx & 0xFF00); XGI_SetGroup1()
2894 tempbx = pVBInfo->VGAVDE - 1; XGI_SetGroup1()
2895 temp = tempbx & 0x00FF; XGI_SetGroup1()
2897 temp = ((tempbx & 0xFF00) << 3) >> 8; XGI_SetGroup1()
2902 tempbx = (pVBInfo->VGAVT + pVBInfo->VGAVDE) >> 1; XGI_SetGroup1()
2904 tempcx = ((pVBInfo->VGAVT - pVBInfo->VGAVDE) >> 4) + tempbx + 1; XGI_SetGroup1()
2907 tempbx = XGI_CRT1Table[CRT1Index].CR[10]; XGI_SetGroup1()
2911 tempbx |= 0x0100; XGI_SetGroup1()
2914 tempbx |= 0x0200; XGI_SetGroup1()
2919 tempbx |= 0x0400; XGI_SetGroup1()
2925 temp = tempbx & 0x00FF; XGI_SetGroup1()
2927 temp = ((tempbx & 0xFF00) >> 8) << 4; XGI_SetGroup1()
2943 unsigned long tempax, tempbx; XGI_GetVGAHT2() local
2945 tempbx = ((pVBInfo->VGAVT - pVBInfo->VGAVDE) * pVBInfo->RVBHCMAX) XGI_GetVGAHT2()
2948 tempax = (tempax * pVBInfo->HT) / tempbx; XGI_GetVGAHT2()
2956 unsigned short push1, push2, tempax, tempbx = 0, tempcx, temp, resinfo, XGI_SetLockRegs() local
2979 tempbx |= ((tempax & 0x00FF) << 8); XGI_SetLockRegs()
2983 temp = (tempbx & 0xFF00) >> 8; XGI_SetLockRegs()
3016 temp = (tempbx & 0x00FF) - 1; XGI_SetLockRegs()
3025 tempbx = (tempbx & 0xFF00) >> 8; XGI_SetLockRegs()
3026 tempcx = (tempcx + tempbx) >> 1; XGI_SetLockRegs()
3078 tempbx = pVBInfo->VGAVT; XGI_SetLockRegs()
3079 push1 = tempbx; XGI_SetLockRegs()
3081 tempbx = pVBInfo->VGAVDE; /* 0x0E Virtical Display End */ XGI_SetLockRegs()
3083 if (tempbx == 357) XGI_SetLockRegs()
3084 tempbx = 350; XGI_SetLockRegs()
3085 if (tempbx == 360) XGI_SetLockRegs()
3086 tempbx = 350; XGI_SetLockRegs()
3087 if (tempbx == 375) XGI_SetLockRegs()
3088 tempbx = 350; XGI_SetLockRegs()
3089 if (tempbx == 405) XGI_SetLockRegs()
3090 tempbx = 400; XGI_SetLockRegs()
3091 if (tempbx == 525) XGI_SetLockRegs()
3092 tempbx = 480; XGI_SetLockRegs()
3094 push2 = tempbx; XGI_SetLockRegs()
3099 if (tempbx == 350) XGI_SetLockRegs()
3100 tempbx += 5; XGI_SetLockRegs()
3101 if (tempbx == 480) XGI_SetLockRegs()
3102 tempbx += 5; XGI_SetLockRegs()
3106 tempbx--; XGI_SetLockRegs()
3107 tempbx--; XGI_SetLockRegs()
3108 temp = tempbx & 0x00FF; XGI_SetLockRegs()
3111 tempbx = push2; XGI_SetLockRegs()
3112 tempbx--; XGI_SetLockRegs()
3113 temp = tempbx & 0x00FF; XGI_SetLockRegs()
3116 if (tempbx & 0x0100) XGI_SetLockRegs()
3124 if (tempbx & 0x0200) XGI_SetLockRegs()
3130 if (tempbx & 0x0400) XGI_SetLockRegs()
3137 tempax -= tempbx; /* 0x0C Vertical Retrace Start */ XGI_SetLockRegs()
3143 tempbx += tempax; XGI_SetLockRegs()
3156 tempbx += 40; XGI_SetLockRegs()
3159 tempbx -= 10; XGI_SetLockRegs()
3168 tempbx += 40; XGI_SetLockRegs()
3170 tempbx += 40; XGI_SetLockRegs()
3177 tempax += tempbx; XGI_SetLockRegs()
3181 if (tempbx <= 513) { XGI_SetLockRegs()
3183 tempbx = 513; XGI_SetLockRegs()
3187 temp = tempbx & 0x00FF; XGI_SetLockRegs()
3189 tempbx--; XGI_SetLockRegs()
3190 temp = tempbx & 0x00FF; XGI_SetLockRegs()
3193 if (tempbx & 0x0100) XGI_SetLockRegs()
3196 if (tempbx & 0x0200) XGI_SetLockRegs()
3199 tempbx++; XGI_SetLockRegs()
3201 if (tempbx & 0x0100) XGI_SetLockRegs()
3204 if (tempbx & 0x0200) XGI_SetLockRegs()
3207 if (tempbx & 0x0400) XGI_SetLockRegs()
3210 tempbx = push1; /* pop ax */ XGI_SetLockRegs()
3211 temp = tempbx & 0x00FF; XGI_SetLockRegs()
3216 if (tempbx & 0x0010) XGI_SetLockRegs()
3246 unsigned short i, j, tempax, tempbx, tempcx, temp, push1, push2, XGI_SetGroup2() local
3393 tempbx = TimingPoint[j] | ((TimingPoint[j + 1]) << 8); XGI_SetGroup2()
3394 tempbx += tempcx; XGI_SetGroup2()
3395 push2 = tempbx; XGI_SetGroup2()
3396 temp = tempbx & 0x00FF; XGI_SetGroup2()
3398 temp = (tempbx & 0xFF00) >> 8; XGI_SetGroup2()
3402 tempbx = push2; XGI_SetGroup2()
3403 tempbx = tempbx + 8; XGI_SetGroup2()
3405 tempbx = tempbx - 4; XGI_SetGroup2()
3406 tempcx = tempbx; XGI_SetGroup2()
3409 temp = (tempbx & 0x00FF) << 4; XGI_SetGroup2()
3444 tempbx = pVBInfo->VDE; XGI_SetGroup2()
3447 tempbx = 746; XGI_SetGroup2()
3449 tempbx = 746; XGI_SetGroup2()
3451 tempbx = 853; XGI_SetGroup2()
3458 tempbx >>= 1; XGI_SetGroup2()
3460 tempbx >>= 1; XGI_SetGroup2()
3463 tempbx -= 2; XGI_SetGroup2()
3464 temp = tempbx & 0x00FF; XGI_SetGroup2()
3483 temp |= ((tempbx & 0xFF00) >> 8) << 6; XGI_SetGroup2()
3504 tempbx = pVBInfo->VDE; XGI_SetGroup2()
3505 tempcx = tempbx - 2; XGI_SetGroup2()
3510 tempbx >>= 1; XGI_SetGroup2()
3518 if (tempbx & 0x0400) XGI_SetGroup2()
3524 temp = (((tempbx - 3) & 0x0300) >> 8) << 5; XGI_SetGroup2()
3526 temp = (tempbx - 3) & 0x00FF; XGI_SetGroup2()
3530 tempbx = tempbx & 0x00FF; XGI_SetGroup2()
3535 tempbx |= 0x2000; XGI_SetGroup2()
3547 tempbx = tempbx & 0xDFFF; XGI_SetGroup2()
3552 if (!(tempbx & 0x2000)) { XGI_SetGroup2()
3556 push1 = tempbx; XGI_SetGroup2()
3587 tempbx = push1; XGI_SetGroup2()
3588 tempbx = (unsigned short) (((tempeax & 0x0000FF00) & 0x1F00) XGI_SetGroup2()
3589 | (tempbx & 0x00FF)); XGI_SetGroup2()
3598 temp = (tempbx & 0xFF00) >> 8; XGI_SetGroup2()
3602 if (tempbx & 0x2000) XGI_SetGroup2()
3610 tempbx = 0x0382; XGI_SetGroup2()
3613 tempbx = 0x0369; XGI_SetGroup2()
3617 temp = tempbx & 0x00FF; XGI_SetGroup2()
3624 temp |= ((tempbx & 0xFF00) >> 8) & 0x03; XGI_SetGroup2()
3675 unsigned short pushbx, tempax, tempbx, tempcx, temp, tempah, XGI_SetLCDRegs() local
3684 tempbx = pVBInfo->HDE; /* RHACTE=HDE-1 */ XGI_SetLCDRegs()
3687 tempbx >>= 1; XGI_SetLCDRegs()
3689 tempbx -= 1; XGI_SetLCDRegs()
3690 temp = tempbx & 0x00FF; XGI_SetLCDRegs()
3692 temp = (tempbx & 0xFF00) >> 8; XGI_SetLCDRegs()
3698 tempbx = pVBInfo->VDE; /* RTVACTEO=(VDE-1)&0xFF */ XGI_SetLCDRegs()
3699 tempbx--; XGI_SetLCDRegs()
3700 temp = tempbx & 0x00FF; XGI_SetLCDRegs()
3702 temp = ((tempbx & 0xFF00) >> 8) & 0x07; XGI_SetLCDRegs()
3728 tempbx = 1024; XGI_SetLCDRegs()
3732 tempbx = 1280; XGI_SetLCDRegs()
3735 tempbx = 1400; XGI_SetLCDRegs()
3738 tempbx = 1600; XGI_SetLCDRegs()
3743 tempbx = pVBInfo->HDE; XGI_SetLCDRegs()
3747 pushbx = tempbx; XGI_SetLCDRegs()
3753 tempbx = pVBInfo->LCDVDES; XGI_SetLCDRegs()
3754 tempcx += tempbx; XGI_SetLCDRegs()
3759 temp = tempbx & 0x00FF; /* RVEQ1EQ=lcdvdes */ XGI_SetLCDRegs()
3764 tempbh = ((tempbx & 0xFF00) >> 8) & 0x07; XGI_SetLCDRegs()
3771 XGI_GetLCDSync(&tempax, &tempbx, pVBInfo); XGI_SetLCDRegs()
3772 tempcx = tempbx; XGI_SetLCDRegs()
3774 tempbx = pVBInfo->LCDVRS; XGI_SetLCDRegs()
3776 tempcx += tempbx; XGI_SetLCDRegs()
3780 temp = tempbx & 0x00FF; /* RTVACTEE=lcdvrs */ XGI_SetLCDRegs()
3782 temp = (tempbx & 0xFF00) >> 8; XGI_SetLCDRegs()
3788 tempbx = pVBInfo->LCDHDES; XGI_SetLCDRegs()
3789 tempbx &= 0x0FFF; XGI_SetLCDRegs()
3793 tempbx >>= 1; XGI_SetLCDRegs()
3798 tempbx += 1; XGI_SetLCDRegs()
3801 tempbx += 1; XGI_SetLCDRegs()
3803 tempcx += tempbx; XGI_SetLCDRegs()
3808 temp = tempbx & 0x00FF; XGI_SetLCDRegs()
3810 temp = ((tempbx & 0xFF00) >> 8) << 4; XGI_SetLCDRegs()
3817 XGI_GetLCDSync(&tempax, &tempbx, pVBInfo); XGI_SetLCDRegs()
3820 tempbx = pVBInfo->LCDHRS; XGI_SetLCDRegs()
3823 tempbx >>= 1; XGI_SetLCDRegs()
3828 tempbx += 1; XGI_SetLCDRegs()
3830 tempcx += tempbx; XGI_SetLCDRegs()
3835 temp = tempbx & 0x00FF; /* RHBURSTS=lcdhrs */ XGI_SetLCDRegs()
3838 temp = (tempbx & 0xFF00) >> 8; XGI_SetLCDRegs()
3878 unsigned short tempax, tempbx, i; XGI_GetTap4Ptr() local
3883 tempbx = pVBInfo->HDE; XGI_GetTap4Ptr()
3886 tempbx = pVBInfo->VDE; XGI_GetTap4Ptr()
3889 if (tempax <= tempbx) XGI_GetTap4Ptr()
4007 unsigned short tempax, tempcx, tempbx, modeflag, temp, temp2; XGI_SetGroup4() local
4016 tempbx = pVBInfo->RVBHCMAX; XGI_SetGroup4()
4017 temp = tempbx & 0x00FF; XGI_SetGroup4()
4019 temp2 = ((tempbx & 0xFF00) >> 8) << 7; XGI_SetGroup4()
4037 tempbx = pVBInfo->VGAHDE; XGI_SetGroup4()
4040 tempbx >>= 1; XGI_SetGroup4()
4043 tempbx >>= 1; XGI_SetGroup4()
4047 if (tempbx <= 1024) XGI_SetGroup4()
4049 if (tempbx == 1280) XGI_SetGroup4()
4053 if (tempbx <= 800) XGI_SetGroup4()
4059 if (tempbx > 800) XGI_SetGroup4()
4101 tempbx = (unsigned short) (tempebx >> 16); XGI_SetGroup4()
4102 temp = tempbx & 0x00FF; XGI_SetGroup4()
4156 tempbx = pVBInfo->HT; XGI_SetGroup4()
4158 tempbx >>= 1; XGI_SetGroup4()
4159 tempbx = (tempbx >> 1) - 2; XGI_SetGroup4()
4160 temp = ((tempbx & 0x0700) >> 8) << 3; XGI_SetGroup4()
4162 temp = tempbx & 0x00FF; XGI_SetGroup4()
4536 unsigned short tempbx = 0; XGI_GetTVPtrIndex() local
4539 tempbx = 2; XGI_GetTVPtrIndex()
4541 tempbx = 4; XGI_GetTVPtrIndex()
4543 tempbx = 6; XGI_GetTVPtrIndex()
4545 tempbx = 8; XGI_GetTVPtrIndex()
4547 tempbx = 10; XGI_GetTVPtrIndex()
4549 tempbx++; XGI_GetTVPtrIndex()
4551 return tempbx; XGI_GetTVPtrIndex()
4570 static void XGI_GetTVPtrIndex2(unsigned short *tempbx, unsigned char *tempcl, XGI_GetTVPtrIndex2() argument
4573 *tempbx = 0; XGI_GetTVPtrIndex2()
4578 *tempbx = 1; XGI_GetTVPtrIndex2()
4581 *tempbx = 2; XGI_GetTVPtrIndex2()
4584 *tempbx = 3; XGI_GetTVPtrIndex2()
4587 *tempbx = 4; XGI_GetTVPtrIndex2()
4589 *tempbx = 5; XGI_GetTVPtrIndex2()
4596 *tempbx += 8; XGI_GetTVPtrIndex2()
4771 unsigned short tempbx; XGI_SetAntiFlicker() local
4778 tempbx = XGI_GetTVPtrIndex(pVBInfo); XGI_SetAntiFlicker()
4779 tempbx &= 0xFE; XGI_SetAntiFlicker()
4780 tempah = TVAntiFlickList[tempbx]; XGI_SetAntiFlicker()
4788 unsigned short tempbx; XGI_SetEdgeEnhance() local
4792 tempbx = XGI_GetTVPtrIndex(pVBInfo); XGI_SetEdgeEnhance()
4793 tempbx &= 0xFE; XGI_SetEdgeEnhance()
4794 tempah = TVEdgeList[tempbx]; XGI_SetEdgeEnhance()
4802 unsigned short tempbx; XGI_SetPhaseIncr() local
4808 XGI_GetTVPtrIndex2(&tempbx, &tempcl, &tempch, pVBInfo); /* bx, cl, ch */ XGI_SetPhaseIncr()
4809 tempData = TVPhaseList[tempbx]; XGI_SetPhaseIncr()
4824 unsigned short tempbx, index; XGI_SetYFilter() local
4828 XGI_GetTVPtrIndex2(&tempbx, &tempcl, &tempch, pVBInfo); /* bx, cl, ch */ XGI_SetYFilter()
4830 switch (tempbx) { XGI_SetYFilter()
H A Dvb_init.c941 unsigned short tempbx = 0, temp, tempcx, CR3CData; XGINew_ChkSenseStatus() local
946 tempbx |= ActiveCRT1; XGINew_ChkSenseStatus()
948 tempbx |= ActiveLCD; XGINew_ChkSenseStatus()
950 tempbx |= ActiveCRT2; XGINew_ChkSenseStatus()
952 tempbx |= ActiveTV; XGINew_ChkSenseStatus()
954 tempbx |= (ActiveAVideo << 8); XGINew_ChkSenseStatus()
956 tempbx |= (ActiveSVideo << 8); XGINew_ChkSenseStatus()
958 tempbx |= (ActiveSCART << 8); XGINew_ChkSenseStatus()
960 tempbx |= (ActiveHiTV << 8); XGINew_ChkSenseStatus()
962 tempbx |= (ActiveYPbPr << 8); XGINew_ChkSenseStatus()
968 if (tempbx & tempcx) { XGINew_ChkSenseStatus()
976 tempbx &= tempcx; XGINew_ChkSenseStatus()
977 xgifb_reg_set(pVBInfo->P3d4, 0x3d, (tempbx & 0x00FF)); XGINew_ChkSenseStatus()
978 xgifb_reg_set(pVBInfo->P3d4, 0x3e, ((tempbx & 0xFF00) >> 8)); XGINew_ChkSenseStatus()
/linux-4.4.14/drivers/video/fbdev/sis/
H A Dinit301.c937 unsigned short tempax, tempbx, temp; SiS_GetVBInfo() local
950 tempbx = 0; SiS_GetVBInfo()
955 tempbx |= temp; SiS_GetVBInfo()
958 tempbx |= tempax; SiS_GetVBInfo()
982 tempbx |= SetCRT2ToLCDA; SiS_GetVBInfo()
987 tempbx &= ~(SetCRT2ToYPbPr525750 | SetCRT2ToHiVision); SiS_GetVBInfo()
990 if(temp == 0x60) tempbx |= SetCRT2ToHiVision; SiS_GetVBInfo()
992 tempbx |= SetCRT2ToYPbPr525750; SiS_GetVBInfo()
1000 tempbx |= SetCRT2ToLCDA; SiS_GetVBInfo()
1004 tempbx |= SetCRT2ToCHYPbPr; SiS_GetVBInfo()
1013 tempbx &= ~(SetCRT2ToRAMDAC); SiS_GetVBInfo()
1047 if(!(tempbx & temp)) { SiS_GetVBInfo()
1049 tempbx = 0; SiS_GetVBInfo()
1063 if(tempbx & SetCRT2ToLCDA) tempbx &= (clearmask | SetCRT2ToLCDA); SiS_GetVBInfo()
1064 if(tempbx & SetCRT2ToRAMDAC) tempbx &= (clearmask | SetCRT2ToRAMDAC); SiS_GetVBInfo()
1065 if(tempbx & SetCRT2ToLCD) tempbx &= (clearmask | SetCRT2ToLCD); SiS_GetVBInfo()
1066 if(tempbx & SetCRT2ToSCART) tempbx &= (clearmask | SetCRT2ToSCART); SiS_GetVBInfo()
1067 if(tempbx & SetCRT2ToHiVision) tempbx &= (clearmask | SetCRT2ToHiVision); SiS_GetVBInfo()
1068 if(tempbx & SetCRT2ToYPbPr525750) tempbx &= (clearmask | SetCRT2ToYPbPr525750); SiS_GetVBInfo()
1073 if(tempbx & SetCRT2ToLCDA) { SiS_GetVBInfo()
1074 tempbx &= (0xFF00|SwitchCRT2|SetSimuScanMode); SiS_GetVBInfo()
1078 if(tempbx & SetCRT2ToTV) { SiS_GetVBInfo()
1079 tempbx &= (0xFF00|SetCRT2ToTV|SwitchCRT2|SetSimuScanMode); SiS_GetVBInfo()
1082 if(tempbx & SetCRT2ToLCD) { SiS_GetVBInfo()
1083 tempbx &= (0xFF00|SetCRT2ToLCD|SwitchCRT2|SetSimuScanMode); SiS_GetVBInfo()
1086 if(tempbx & SetCRT2ToLCDA) { SiS_GetVBInfo()
1087 tempbx |= SetCRT2ToLCD; SiS_GetVBInfo()
1094 if(!(tempbx & (SwitchCRT2 | SetSimuScanMode))) { SiS_GetVBInfo()
1095 tempbx = SetSimuScanMode | DisableCRT2Display; SiS_GetVBInfo()
1099 if(!(tempbx & DriverMode)) tempbx |= SetSimuScanMode; SiS_GetVBInfo()
1104 ((SiS_Pr->SiS_VBType & VB_NoLCD) && (tempbx & SetCRT2ToLCD)) ) { SiS_GetVBInfo()
1109 if(!(tempbx & SetSimuScanMode)) { SiS_GetVBInfo()
1110 if(tempbx & SwitchCRT2) { SiS_GetVBInfo()
1113 tempbx |= SetSimuScanMode; SiS_GetVBInfo()
1118 if(!(tempbx & DriverMode)) { SiS_GetVBInfo()
1120 tempbx |= SetSimuScanMode; SiS_GetVBInfo()
1127 if(!(tempbx & DisableCRT2Display)) { SiS_GetVBInfo()
1128 if(tempbx & DriverMode) { SiS_GetVBInfo()
1129 if(tempbx & SetSimuScanMode) { SiS_GetVBInfo()
1132 tempbx |= SetInSlaveMode; SiS_GetVBInfo()
1137 tempbx |= SetInSlaveMode; SiS_GetVBInfo()
1143 SiS_Pr->SiS_VBInfo = tempbx; SiS_GetVBInfo()
2154 unsigned short modeflag, resinfo, tempbx; SiS_GetVCLK2Ptr() local
2268 tempbx = 0; SiS_GetVCLK2Ptr()
2269 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; SiS_GetVCLK2Ptr()
2271 tempbx += 2; SiS_GetVCLK2Ptr()
2273 if(SiS_Pr->SiS_CHSOverScan) tempbx = 8; SiS_GetVCLK2Ptr()
2276 tempbx = 4; SiS_GetVCLK2Ptr()
2277 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; SiS_GetVCLK2Ptr()
2279 tempbx = 6; SiS_GetVCLK2Ptr()
2280 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx += 1; SiS_GetVCLK2Ptr()
2283 switch(tempbx) { SiS_GetVCLK2Ptr()
2835 unsigned short tempbx=0, tempal=0, resinfo=0; SiS_GetCRT2Ptr() local
2848 tempbx = SiS_Pr->SiS_LCDResInfo; SiS_GetCRT2Ptr()
2849 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx += 32; SiS_GetCRT2Ptr()
2865 tempbx = 100; SiS_GetCRT2Ptr()
2875 tempbx = 200; SiS_GetCRT2Ptr()
2876 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx++; SiS_GetCRT2Ptr()
2886 tempbx = 2; SiS_GetCRT2Ptr()
2888 tempbx = 13; SiS_GetCRT2Ptr()
2889 if(!(SiS_Pr->SiS_TVMode & TVSetTVSimuMode)) tempbx = 14; SiS_GetCRT2Ptr()
2892 if(SiS_Pr->SiS_TVMode & TVSetYPbPr750p) tempbx = 7; SiS_GetCRT2Ptr()
2893 else if(SiS_Pr->SiS_TVMode & TVSetYPbPr525p) tempbx = 6; SiS_GetCRT2Ptr()
2894 else tempbx = 5; SiS_GetCRT2Ptr()
2895 if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) tempbx += 5; SiS_GetCRT2Ptr()
2897 if(SiS_Pr->SiS_TVMode & TVSetPAL) tempbx = 3; SiS_GetCRT2Ptr()
2898 else tempbx = 4; SiS_GetCRT2Ptr()
2899 if(SiS_Pr->SiS_TVMode & TVSetTVSimuMode) tempbx += 5; SiS_GetCRT2Ptr()
2940 *CRT2Index = tempbx; SiS_GetCRT2Ptr()
2945 tempbx = 0; SiS_GetCRT2Ptr()
2948 tempbx = 90; SiS_GetCRT2Ptr()
2950 tempbx = 92; SiS_GetCRT2Ptr()
2952 if(SiS_Pr->SiS_CHSOverScan) tempbx = 99; SiS_GetCRT2Ptr()
2954 if(SiS_Pr->SiS_TVMode & TVSetPALM) tempbx = 94; SiS_GetCRT2Ptr()
2955 else if(SiS_Pr->SiS_TVMode & TVSetPALN) tempbx = 96; SiS_GetCRT2Ptr()
2957 if(tempbx != 99) { SiS_GetCRT2Ptr()
2958 if(SiS_Pr->SiS_TVMode & TVSetCHOverScan) tempbx++; SiS_GetCRT2Ptr()
2964 case Panel_640x480: tempbx = 12; break; SiS_GetCRT2Ptr()
2965 case Panel_320x240_1: tempbx = 10; break; SiS_GetCRT2Ptr()
2967 case Panel_320x240_3: tempbx = 14; break; SiS_GetCRT2Ptr()
2968 case Panel_800x600: tempbx = 16; break; SiS_GetCRT2Ptr()
2969 case Panel_1024x600: tempbx = 18; break; SiS_GetCRT2Ptr()
2971 case Panel_1024x768: tempbx = 20; break; SiS_GetCRT2Ptr()
2972 case Panel_1280x768: tempbx = 22; break; SiS_GetCRT2Ptr()
2973 case Panel_1280x1024: tempbx = 24; break; SiS_GetCRT2Ptr()
2974 case Panel_1400x1050: tempbx = 26; break; SiS_GetCRT2Ptr()
2975 case Panel_1600x1200: tempbx = 28; break; SiS_GetCRT2Ptr()
2977 case Panel_Barco1366: tempbx = 80; break; SiS_GetCRT2Ptr()
2988 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; SiS_GetCRT2Ptr()
2991 if(SiS_Pr->SiS_LCDInfo & LCDPass11) tempbx = 30; SiS_GetCRT2Ptr()
2995 tempbx = 82; SiS_GetCRT2Ptr()
2996 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; SiS_GetCRT2Ptr()
2998 tempbx = 84; SiS_GetCRT2Ptr()
2999 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; SiS_GetCRT2Ptr()
3005 (*CRT2Index) = tempbx; SiS_GetCRT2Ptr()
3014 unsigned short tempax=0, tempbx=0, index, dotclock; SiS_GetRAMDAC2DATA() local
3026 tempbx = SiS_Pr->SiS_StandTable[index].CRTC[6]; SiS_GetRAMDAC2DATA()
3039 tempbx = SiS_Pr->SiS_CRT1Table[index].CR[6]; SiS_GetRAMDAC2DATA()
3043 tempbx |= tempcx; SiS_GetRAMDAC2DATA()
3050 if(temp1 & 0x01) tempbx |= 0x0100; SiS_GetRAMDAC2DATA()
3051 if(temp1 & 0x20) tempbx |= 0x0200; SiS_GetRAMDAC2DATA()
3057 tempbx++; SiS_GetRAMDAC2DATA()
3060 SiS_Pr->SiS_VGAVT = SiS_Pr->SiS_VT = tempbx; SiS_GetRAMDAC2DATA()
3206 unsigned short tempax, tempbx, modeflag, romptr=0; SiS_GetCRT2Data301() local
3477 tempbx = SiS_Pr->PanelYRes; SiS_GetCRT2Data301()
3483 if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 560; SiS_GetCRT2Data301()
3484 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 640; SiS_GetCRT2Data301()
3487 if (SiS_Pr->SiS_VGAVDE == 357) tempbx = 527; SiS_GetCRT2Data301()
3488 else if(SiS_Pr->SiS_VGAVDE == 420) tempbx = 620; SiS_GetCRT2Data301()
3489 else if(SiS_Pr->SiS_VGAVDE == 525) tempbx = 775; SiS_GetCRT2Data301()
3490 else if(SiS_Pr->SiS_VGAVDE == 600) tempbx = 775; SiS_GetCRT2Data301()
3491 else if(SiS_Pr->SiS_VGAVDE == 350) tempbx = 560; SiS_GetCRT2Data301()
3492 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 640; SiS_GetCRT2Data301()
3496 if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 700; SiS_GetCRT2Data301()
3497 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 800; SiS_GetCRT2Data301()
3498 else if(SiS_Pr->SiS_VGAVDE == 1024) tempbx = 960; SiS_GetCRT2Data301()
3501 if (SiS_Pr->SiS_VGAVDE == 360) tempbx = 768; SiS_GetCRT2Data301()
3502 else if(SiS_Pr->SiS_VGAVDE == 375) tempbx = 800; SiS_GetCRT2Data301()
3503 else if(SiS_Pr->SiS_VGAVDE == 405) tempbx = 864; SiS_GetCRT2Data301()
3507 if (SiS_Pr->SiS_VGAVDE == 350) tempbx = 875; SiS_GetCRT2Data301()
3508 else if(SiS_Pr->SiS_VGAVDE == 400) tempbx = 1000; SiS_GetCRT2Data301()
3515 tempbx = SiS_Pr->SiS_VGAVDE; SiS_GetCRT2Data301()
3519 SiS_Pr->SiS_VDE = tempbx; SiS_GetCRT2Data301()
5016 unsigned short tempbx, tempcl, CRT1ModeNo, CRT2ModeNo, SelectRate_backup; SiS_SetCRT2FIFO_300() local
5076 SiS_GetFIFOThresholdIndex300(SiS_Pr, &tempbx, &tempcl); SiS_SetCRT2FIFO_300()
5077 data = SiS_GetFIFOThresholdB300(tempbx, tempcl); SiS_SetCRT2FIFO_300()
5210 unsigned int tempax,tempbx; SiS_GetVGAHT2() local
5212 tempbx = (SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) * SiS_Pr->SiS_RVBHCMAX; SiS_GetVGAHT2()
5214 tempax = (tempax * SiS_Pr->SiS_HT) / tempbx; SiS_GetVGAHT2()
5353 unsigned short push2, tempax, tempbx, tempcx, temp; SiS_SetGroup1_LVDS() local
5442 tempbx = SiS_Pr->SiS_HDE; SiS_SetGroup1_LVDS()
5445 tempbx = SiS_Pr->PanelXRes; SiS_SetGroup1_LVDS()
5450 tempbx >>= 1; SiS_SetGroup1_LVDS()
5454 tempax += tempbx; SiS_SetGroup1_LVDS()
5462 tempcx = (SiS_Pr->SiS_HT - tempbx) >> 2; SiS_SetGroup1_LVDS()
5526 tempbx = SiS_Pr->SiS_LCDVDES + tempax; SiS_SetGroup1_LVDS()
5527 if(tempbx >= SiS_Pr->SiS_VT) tempbx -= SiS_Pr->SiS_VT; SiS_SetGroup1_LVDS()
5529 push2 = tempbx; SiS_SetGroup1_LVDS()
5546 tempbx += tempcx; SiS_SetGroup1_LVDS()
5547 if(issis) tempbx++; SiS_SetGroup1_LVDS()
5549 tempbx += tempcx; SiS_SetGroup1_LVDS()
5550 if(SiS_Pr->ChipType < SIS_315H) tempbx++; SiS_SetGroup1_LVDS()
5551 else if(issis) tempbx++; SiS_SetGroup1_LVDS()
5554 if(tempbx >= SiS_Pr->SiS_VT) tempbx -= SiS_Pr->SiS_VT; SiS_SetGroup1_LVDS()
5556 temp = tempbx & 0x00FF; SiS_SetGroup1_LVDS()
5573 tempcx += tempbx; SiS_SetGroup1_LVDS()
5577 temp = ((tempbx >> 8) & 0x07) << 3; SiS_SetGroup1_LVDS()
5584 tempbx = 0x87; SiS_SetGroup1_LVDS()
5587 tempbx = 0x07; SiS_SetGroup1_LVDS()
5600 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x1A,tempbx,temp); SiS_SetGroup1_LVDS()
5602 tempbx = push2; /* BPLVDEE */ SiS_SetGroup1_LVDS()
5609 tempbx = SiS_Pr->SiS_VGAVDE - 1; SiS_SetGroup1_LVDS()
5635 temp = ((tempbx >> 8) & 0x07) << 3; SiS_SetGroup1_LVDS()
5638 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x1C,tempbx); SiS_SetGroup1_LVDS()
5718 tempbx = (unsigned short)(tempeax & 0xFFFF); SiS_SetGroup1_LVDS()
5721 tempbx = tempvcfact & 0x3f; SiS_SetGroup1_LVDS()
5722 if(tempbx == 0) tempbx = 64; SiS_SetGroup1_LVDS()
5723 tempeax /= tempbx; SiS_SetGroup1_LVDS()
5724 tempbx = (unsigned short)(tempeax & 0xFFFF); SiS_SetGroup1_LVDS()
5726 if(SiS_Pr->SiS_LCDResInfo == Panel_1024x768) tempbx--; SiS_SetGroup1_LVDS()
5728 if((!SiS_Pr->SiS_IF_DEF_FSTN) && (!SiS_Pr->SiS_IF_DEF_DSTN)) tempbx = 1; SiS_SetGroup1_LVDS()
5729 else if(SiS_Pr->SiS_LCDResInfo != Panel_640x480) tempbx = 1; SiS_SetGroup1_LVDS()
5732 temp = ((tempbx >> 8) & 0x07) << 3; SiS_SetGroup1_LVDS()
5735 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x21,tempbx); SiS_SetGroup1_LVDS()
5911 unsigned short temp=0, tempax=0, tempbx=0, tempcx=0, bridgeadd=0; SiS_SetGroup1() local
5965 tempbx = pushbx + tempcx; SiS_SetGroup1()
5967 tempcx += tempbx; SiS_SetGroup1()
5995 tempbx = SiS_Pr->SiS_VGAHDE; SiS_SetGroup1()
5996 tempcx -= tempbx; SiS_SetGroup1()
5999 tempbx >>= 1; SiS_SetGroup1()
6002 tempbx += 16; SiS_SetGroup1()
6004 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0A,tempbx); /* CRT2 Horizontal Display Enable End */ SiS_SetGroup1()
6006 pushbx = tempbx; SiS_SetGroup1()
6008 tempbx += tempcx; SiS_SetGroup1()
6009 tempcx += tempbx; SiS_SetGroup1()
6033 tempbx = SiS_Pr->CHSyncStart + bridgeadd; SiS_SetGroup1()
6054 tempbx = ((cr4 | ((cr14 & 0xC0) << 2)) - 3) << 3; /* (VGAHRS-3)*8 */ SiS_SetGroup1()
6057 tempcx |= (tempbx & 0xFF00); SiS_SetGroup1()
6058 tempbx += bridgeadd; SiS_SetGroup1()
6067 tempbx = 1040; SiS_SetGroup1()
6073 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0B,tempbx); /* CRT2 Horizontal Retrace Start */ SiS_SetGroup1()
6077 temp = ((tempbx >> 8) & 0x0F) | ((pushbx >> 4) & 0xF0); SiS_SetGroup1()
6102 tempbx = SiS_Pr->SiS_VGAVDE - 1; SiS_SetGroup1()
6103 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x0F,tempbx); /* CRT2 Vertical Display Enable End */ SiS_SetGroup1()
6105 temp = ((tempbx >> 5) & 0x38) | ((tempcx >> 8) & 0x07); SiS_SetGroup1()
6109 tempbx++; SiS_SetGroup1()
6110 tempax = tempbx; SiS_SetGroup1()
6114 tempbx += tempcx; SiS_SetGroup1()
6117 tempcx += tempbx; SiS_SetGroup1()
6120 tempbx = (SiS_Pr->SiS_VGAVT + SiS_Pr->SiS_VGAVDE) >> 1; /* BTVGA2VRS 0x10,0x11 */ SiS_SetGroup1()
6121 tempcx = ((SiS_Pr->SiS_VGAVT - SiS_Pr->SiS_VGAVDE) >> 4) + tempbx + 1; /* BTVGA2VRE 0x11 */ SiS_SetGroup1()
6126 tempbx = SiS_Pr->CVSyncStart; SiS_SetGroup1()
6142 tempbx = cr8; SiS_SetGroup1()
6143 if(cr7 & 0x04) tempbx |= 0x0100; SiS_SetGroup1()
6144 if(cr7 & 0x80) tempbx |= 0x0200; SiS_SetGroup1()
6145 if(cr13 & 0x08) tempbx |= 0x0400; SiS_SetGroup1()
6148 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x10,tempbx); /* CRT2 Vertical Retrace Start */ SiS_SetGroup1()
6150 temp = ((tempbx >> 4) & 0x70) | (tempcx & 0x0F); SiS_SetGroup1()
6586 unsigned short i, j, tempax, tempbx, tempcx, tempch, tempcl, temp; SiS_SetGroup2() local
6747 tempbx = TimingPoint[j] | (TimingPoint[j+1] << 8); SiS_SetGroup2()
6748 tempbx += tempcx; SiS_SetGroup2()
6749 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x24,tempbx); SiS_SetGroup2()
6750 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0x0F,((tempbx >> 4) & 0xf0)); SiS_SetGroup2()
6752 tempbx += 8; SiS_SetGroup2()
6754 tempbx -= 4; SiS_SetGroup2()
6755 tempcx = tempbx; SiS_SetGroup2()
6757 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x29,0x0F,((tempbx << 4) & 0xf0)); SiS_SetGroup2()
6780 tempbx = SiS_Pr->SiS_VDE; SiS_SetGroup2()
6782 if(SiS_Pr->SiS_VGAVDE == 360) tempbx = 746; SiS_SetGroup2()
6783 if(SiS_Pr->SiS_VGAVDE == 375) tempbx = 746; SiS_SetGroup2()
6784 if(SiS_Pr->SiS_VGAVDE == 405) tempbx = 853; SiS_SetGroup2()
6787 tempbx >>= 1; SiS_SetGroup2()
6790 if((ModeNo <= 0x13) && (crt2crtc == 1)) tempbx++; SiS_SetGroup2()
6793 if(crt2crtc == 4) tempbx++; SiS_SetGroup2()
6799 if((ModeNo == 0x2f) || (ModeNo == 0x5d) || (ModeNo == 0x5e)) tempbx++; SiS_SetGroup2()
6802 if(ModeNo == 0x03) tempbx++; /* From 1.10.7w - doesn't make sense */ SiS_SetGroup2()
6806 tempbx -= 2; SiS_SetGroup2()
6807 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2F,tempbx); SiS_SetGroup2()
6810 temp |= ((tempbx >> 2) & 0xC0); SiS_SetGroup2()
6818 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x10,0xdf,((tempbx & 0x0400) >> 5)); SiS_SetGroup2()
6822 tempbx = SiS_Pr->SiS_VDE; SiS_SetGroup2()
6825 tempbx >>= 1; SiS_SetGroup2()
6827 tempbx -= 3; SiS_SetGroup2()
6828 temp = ((tempbx >> 3) & 0x60) | 0x18; SiS_SetGroup2()
6830 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x47,tempbx); SiS_SetGroup2()
6833 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x10,0xbf,((tempbx & 0x0400) >> 4)); SiS_SetGroup2()
6837 tempbx = 0; SiS_SetGroup2()
6841 tempbx |= 0x20; SiS_SetGroup2()
6852 tempbx &= ~0x20; SiS_SetGroup2()
6862 if(!(tempbx & 0x20)) { SiS_SetGroup2()
6868 tempbx |= ((tempax >> 8) & 0x1F); SiS_SetGroup2()
6873 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x45,0xC0,tempbx); SiS_SetGroup2()
6878 if(tempbx & 0x20) tempcx = 0; SiS_SetGroup2()
6882 tempbx = 0x0382; SiS_SetGroup2()
6885 tempbx = 0x0369; SiS_SetGroup2()
6888 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x4B,tempbx); SiS_SetGroup2()
6891 temp |= ((tempbx >> 8) & 0x03); SiS_SetGroup2()
6930 tempbx = SiS_Pr->SiS_HDE; SiS_SetGroup2()
6931 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; SiS_SetGroup2()
6932 tempbx--; /* RHACTE = HDE - 1 */ SiS_SetGroup2()
6933 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x2C,tempbx); SiS_SetGroup2()
6934 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x2B,0x0F,((tempbx >> 4) & 0xf0)); SiS_SetGroup2()
6949 tempbx = SiS_Pr->SiS_VDE - 1; SiS_SetGroup2()
6950 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x03,tempbx); SiS_SetGroup2()
6951 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x0C,0xF8,((tempbx >> 8) & 0x07)); SiS_SetGroup2()
7005 tempbx = SiS_Pr->SiS_VDE - 1; SiS_SetGroup2()
7008 tempbx = SiS_Pr->SiS_VDE + ((SiS_Pr->PanelYRes - SiS_Pr->SiS_VDE) / 2); SiS_SetGroup2()
7012 tempbx = SiS_Pr->PanelYRes; SiS_SetGroup2()
7026 tempbx -= tempax; /* lcdvdee */ SiS_SetGroup2()
7029 /* Non-expanding: lcdvdes = tempcx = VT-1; lcdvdee = tempbx = VDE-1 */ SiS_SetGroup2()
7032 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x06,tempbx); /* lcdvdee */ SiS_SetGroup2()
7034 temp = (tempbx >> 5) & 0x38; SiS_SetGroup2()
7049 tempbx = ((SiS_Pr->SiS_VT + SiS_Pr->SiS_VDE) >> 1) - 1; SiS_SetGroup2()
7056 tempbx -= (tempax - 1); SiS_SetGroup2()
7058 tempbx -= 10; SiS_SetGroup2()
7059 if(tempbx <= SiS_Pr->SiS_VDE) tempbx = SiS_Pr->SiS_VDE + 1; SiS_SetGroup2()
7064 tempbx++; SiS_SetGroup2()
7067 tempbx = 770; SiS_SetGroup2()
7076 tempbx = SiS_Pr->CVSyncStart; SiS_SetGroup2()
7079 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x04,tempbx); /* lcdvrs */ SiS_SetGroup2()
7081 temp = (tempbx >> 4) & 0xF0; SiS_SetGroup2()
7082 tempbx += (tempcx + 1); SiS_SetGroup2()
7083 temp |= (tempbx & 0x0F); SiS_SetGroup2()
7115 tempax = tempbx = SiS_Pr->SiS_HDE; SiS_SetGroup2()
7119 tempbx = SiS_Pr->PanelXRes - ((SiS_Pr->PanelXRes - SiS_Pr->SiS_HDE) / 2); SiS_SetGroup2()
7124 tempbx >>= 1; SiS_SetGroup2()
7128 tempbx += bridgeoffset; SiS_SetGroup2()
7130 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x23,tempbx); /* lcdhdee */ SiS_SetGroup2()
7131 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x25,0xF0,((tempbx >> 8) & 0x0f)); SiS_SetGroup2()
7135 tempbx += tempcx; SiS_SetGroup2()
7136 push2 = tempbx; SiS_SetGroup2()
7141 if(SiS_Pr->SiS_HDE == 1280) tempbx = (tempbx & 0xff00) | 0x47; SiS_SetGroup2()
7147 tempbx = SiS_Pr->CHSyncStart; SiS_SetGroup2()
7148 if(modeflag & HalfDCLK) tempbx <<= 1; SiS_SetGroup2()
7149 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; SiS_SetGroup2()
7150 tempbx += bridgeoffset; SiS_SetGroup2()
7153 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x1C,tempbx); /* lcdhrs */ SiS_SetGroup2()
7154 SiS_SetRegANDOR(SiS_Pr->SiS_Part2Port,0x1D,0x0F,((tempbx >> 4) & 0xf0)); SiS_SetGroup2()
7156 tempbx = push2; SiS_SetGroup2()
7162 tempbx += tempcx; SiS_SetGroup2()
7165 tempbx = SiS_Pr->CHSyncEnd; SiS_SetGroup2()
7166 if(modeflag & HalfDCLK) tempbx <<= 1; SiS_SetGroup2()
7167 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; SiS_SetGroup2()
7168 tempbx += bridgeoffset; SiS_SetGroup2()
7171 SiS_SetReg(SiS_Pr->SiS_Part2Port,0x21,tempbx); /* lcdhre */ SiS_SetGroup2()
7407 unsigned short tempax, tempcx, tempbx, modeflag, temp, resinfo; SiS_SetGroup4() local
7444 tempbx = SiS_Pr->SiS_RVBHCMAX; SiS_SetGroup4()
7445 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x14,tempbx); SiS_SetGroup4()
7447 temp = (tempbx >> 1) & 0x80; SiS_SetGroup4()
7461 tempbx = SiS_Pr->SiS_VGAHDE; SiS_SetGroup4()
7462 if(modeflag & HalfDCLK) tempbx >>= 1; SiS_SetGroup4()
7463 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; SiS_SetGroup4()
7467 if(tempbx > 800) temp = 0x60; SiS_SetGroup4()
7470 if(tempbx > 1024) temp = 0xC0; SiS_SetGroup4()
7471 else if(tempbx >= 960) temp = 0xA0; SiS_SetGroup4()
7474 if(tempbx >= 1280) temp = 0x40; SiS_SetGroup4()
7475 else if(tempbx >= 1024) temp = 0x20; SiS_SetGroup4()
7478 if(tempbx >= 1024) temp = 0xA0; SiS_SetGroup4()
7527 tempbx = 0; SiS_SetGroup4()
7528 if(SiS_Pr->SiS_TVMode & (TVSetHiVision | TVSetYPbPr750p)) tempbx = 0x08; SiS_SetGroup4()
7536 tempbx = 0x08; SiS_SetGroup4()
7556 temp = ((tempax >> 4) & 0x30) | tempbx; SiS_SetGroup4()
7560 temp = 0x0036; tempbx = 0xD0; SiS_SetGroup4()
7562 temp = 0x0026; tempbx = 0xC0; /* See En/DisableBridge() */ SiS_SetGroup4()
7574 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x1F,tempbx,temp); SiS_SetGroup4()
7576 tempbx = SiS_Pr->SiS_HT >> 1; SiS_SetGroup4()
7577 if(SiS_IsDualLink(SiS_Pr)) tempbx >>= 1; SiS_SetGroup4()
7578 tempbx -= 2; SiS_SetGroup4()
7579 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x22,tempbx); SiS_SetGroup4()
7580 temp = (tempbx >> 5) & 0x38; SiS_SetGroup4()
8891 SiS_GetCH700x(struct SiS_Private *SiS_Pr, unsigned short tempbx) SiS_GetCH700x() argument
8906 SiS_Pr->SiS_DDC_ReadAddr = tempbx; SiS_GetCH700x()
8924 SiS_GetCH701x(struct SiS_Private *SiS_Pr, unsigned short tempbx) SiS_GetCH701x() argument
8932 SiS_Pr->SiS_DDC_ReadAddr = tempbx; SiS_GetCH701x()
8941 SiS_GetCH70xx(struct SiS_Private *SiS_Pr, unsigned short tempbx) SiS_GetCH70xx() argument
8944 return SiS_GetCH700x(SiS_Pr, tempbx); SiS_GetCH70xx()
8946 return SiS_GetCH701x(SiS_Pr, tempbx); SiS_GetCH70xx()
10444 unsigned short tempcl,tempch,tempbl,tempbh,tempbx,tempax,temp; SiS_FinalizeLCD() local
10565 tempbx = 806; /* 0x326 */ /* other older BIOSes */ SiS_FinalizeLCD()
10566 tempbx--; SiS_FinalizeLCD()
10567 temp = tempbx & 0xff; SiS_FinalizeLCD()
10569 temp = (tempbx >> 8) & 0x03; SiS_FinalizeLCD()
10615 tempbx = (tempbh << 8) | tempbl; SiS_FinalizeLCD()
10619 tempbx = 770; SiS_FinalizeLCD()
10621 if(tempbx > 770) tempbx = 770; SiS_FinalizeLCD()
10626 tempbx -= tempax; SiS_FinalizeLCD()
10631 temp = tempbx & 0xff; SiS_FinalizeLCD()
10633 temp = ((tempbx & 0xff00) >> 4) | tempcl; SiS_FinalizeLCD()
10693 unsigned short tempbx=0,romptr=0; GetOEMLCDPtr() local
10705 tempbx = SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) & 0x0f; GetOEMLCDPtr()
10706 if(SiS_Pr->SiS_VBType & VB_SIS301) tempbx &= 0x07; GetOEMLCDPtr()
10707 tempbx -= 2; GetOEMLCDPtr()
10708 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx += 4; GetOEMLCDPtr()
10710 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx += 3; GetOEMLCDPtr()
10714 tempbx = SiS_Pr->SiS_LCDTypeInfo; GetOEMLCDPtr()
10717 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; GetOEMLCDPtr()
10718 else tempbx = customtable300[SiS_Pr->SiS_LCDTypeInfo]; GetOEMLCDPtr()
10719 if(tempbx == 0xFF) return 0xFFFF; GetOEMLCDPtr()
10721 tempbx <<= 1; GetOEMLCDPtr()
10722 if(!(SiS_Pr->SiS_SetFlag & LCDVESATiming)) tempbx++; GetOEMLCDPtr()
10731 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; GetOEMLCDPtr()
10732 else tempbx = 0xff; GetOEMLCDPtr()
10734 tempbx = customtable630[SiS_Pr->SiS_LCDTypeInfo]; GetOEMLCDPtr()
10736 if(tempbx == 0xFF) return 0xFFFF; GetOEMLCDPtr()
10737 tempbx <<= 2; GetOEMLCDPtr()
10738 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempbx += 2; GetOEMLCDPtr()
10739 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; GetOEMLCDPtr()
10740 return tempbx; GetOEMLCDPtr()
10742 tempbx = SiS_Pr->SiS_LCDTypeInfo << 2; GetOEMLCDPtr()
10743 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempbx += 2; GetOEMLCDPtr()
10744 if(SiS_Pr->SiS_LCDInfo & DontExpandLCD) tempbx++; GetOEMLCDPtr()
10748 return tempbx; GetOEMLCDPtr()
H A Dinit.c3389 unsigned short modeflag, tempax, tempbx = 0, remaining = 0; SiS_CalcLCDACRT1Timing() local
3408 tempbx = SiS_Pr->SiS_VGAHT; SiS_CalcLCDACRT1Timing()
3410 tempbx = SiS_Pr->PanelHT; SiS_CalcLCDACRT1Timing()
3412 if(modeflag & HalfDCLK) tempbx >>= 1; SiS_CalcLCDACRT1Timing()
3413 remaining = tempbx % 8; SiS_CalcLCDACRT1Timing()
3418 tempbx = SiS_Pr->PanelHT - SiS_Pr->PanelXRes; SiS_CalcLCDACRT1Timing()
3423 tempbx += tempax; SiS_CalcLCDACRT1Timing()
3424 if(modeflag & HalfDCLK) tempbx -= VGAHDE; SiS_CalcLCDACRT1Timing()
3427 SiS_Pr->CHTotal = SiS_Pr->CHBlankEnd = tempbx; SiS_CalcLCDACRT1Timing()
3440 tempbx = (SiS_Pr->PanelHRS + 1) & ~1; SiS_CalcLCDACRT1Timing()
3443 tempbx >>= 1; SiS_CalcLCDACRT1Timing()
3445 SiS_Pr->CHSyncStart = (VGAHDE + tempax + tempbx + 7) & ~7; SiS_CalcLCDACRT1Timing()
3465 tempbx = SiS_Pr->PanelXRes; SiS_CalcLCDACRT1Timing()
3466 if(modeflag & HalfDCLK) tempbx >>= 1; SiS_CalcLCDACRT1Timing()
3467 tempax += ((tempbx - tempax) >> 1); SiS_CalcLCDACRT1Timing()
3476 tempbx = SiS_Pr->PanelVT - SiS_Pr->PanelYRes; SiS_CalcLCDACRT1Timing()
3484 if((tempax + tempbx) == 438) tempbx += 16; SiS_CalcLCDACRT1Timing()
3488 tempbx = SiS_Pr->SiS_VGAVT; SiS_CalcLCDACRT1Timing()
3492 SiS_Pr->CVTotal = SiS_Pr->CVBlankEnd = tempbx + tempax; SiS_CalcLCDACRT1Timing()
H A Dinit301.h448 extern void SiS_GetFIFOThresholdIndex300(struct SiS_Private *SiS_Pr, unsigned short *tempbx,
450 extern unsigned short SiS_GetFIFOThresholdB300(unsigned short tempbx, unsigned short tempcl);

Completed in 224 milliseconds