Lines Matching refs:tempah

2687   unsigned short i, j, modeflag, tempah=0;  in SiS_SetCRT2ModeRegs()  local
2732 tempah = ((0x10 >> tempcl) | 0x80); in SiS_SetCRT2ModeRegs()
2734 } else tempah = 0x80; in SiS_SetCRT2ModeRegs()
2736 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempah ^= 0xA0; in SiS_SetCRT2ModeRegs()
2747 tempah = (0x08 >> tempcl); in SiS_SetCRT2ModeRegs()
2748 if (tempah == 0) tempah = 1; in SiS_SetCRT2ModeRegs()
2749 tempah |= 0x40; in SiS_SetCRT2ModeRegs()
2751 } else tempah = 0x40; in SiS_SetCRT2ModeRegs()
2753 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempah ^= 0x50; in SiS_SetCRT2ModeRegs()
2759 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0; in SiS_SetCRT2ModeRegs()
2762 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,tempah); in SiS_SetCRT2ModeRegs()
2766 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x00,0xa0,tempah); in SiS_SetCRT2ModeRegs()
2769 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,tempah); in SiS_SetCRT2ModeRegs()
2771 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x00,0xa0,tempah); in SiS_SetCRT2ModeRegs()
2779 tempah = 0x01; in SiS_SetCRT2ModeRegs()
2781 tempah |= 0x02; in SiS_SetCRT2ModeRegs()
2784 tempah ^= 0x05; in SiS_SetCRT2ModeRegs()
2786 tempah ^= 0x01; in SiS_SetCRT2ModeRegs()
2792 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0; in SiS_SetCRT2ModeRegs()
2794 tempah = (tempah << 5) & 0xFF; in SiS_SetCRT2ModeRegs()
2795 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,tempah); in SiS_SetCRT2ModeRegs()
2796 tempah = (tempah >> 5) & 0xFF; in SiS_SetCRT2ModeRegs()
2800 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0x08; in SiS_SetCRT2ModeRegs()
2801 else if(!(SiS_IsDualEdge(SiS_Pr))) tempah |= 0x08; in SiS_SetCRT2ModeRegs()
2802 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2E,0xF0,tempah); in SiS_SetCRT2ModeRegs()
2803 tempah &= ~0x08; in SiS_SetCRT2ModeRegs()
2808 tempah |= 0x10; in SiS_SetCRT2ModeRegs()
2811 tempah |= 0x80; in SiS_SetCRT2ModeRegs()
2813 if(SiS_Pr->PanelXRes < 1280 && SiS_Pr->PanelYRes < 960) tempah &= ~0x80; in SiS_SetCRT2ModeRegs()
2819 tempah |= 0x20; in SiS_SetCRT2ModeRegs()
2824 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x0D,0x40,tempah); in SiS_SetCRT2ModeRegs()
2826 tempah = 0x80; in SiS_SetCRT2ModeRegs()
2828 if(SiS_Pr->PanelXRes < 1280 && SiS_Pr->PanelYRes < 960) tempah = 0; in SiS_SetCRT2ModeRegs()
2831 if(SiS_IsDualLink(SiS_Pr)) tempah |= 0x40; in SiS_SetCRT2ModeRegs()
2835 tempah |= 0x40; in SiS_SetCRT2ModeRegs()
2839 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0C,tempah); in SiS_SetCRT2ModeRegs()
2847 tempah = 0x80; in SiS_SetCRT2ModeRegs()
2850 tempah |= 0x02; in SiS_SetCRT2ModeRegs()
2854 if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) tempah |= 0x02; in SiS_SetCRT2ModeRegs()
2856 if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) tempah ^= 0x01; in SiS_SetCRT2ModeRegs()
2858 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 1; in SiS_SetCRT2ModeRegs()
2860 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2e,0xF0,tempah); in SiS_SetCRT2ModeRegs()
2866 tempah = 0; in SiS_SetCRT2ModeRegs()
2868 tempah |= 0x02; in SiS_SetCRT2ModeRegs()
2870 tempah <<= 5; in SiS_SetCRT2ModeRegs()
2872 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0; in SiS_SetCRT2ModeRegs()
2874 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,tempah); in SiS_SetCRT2ModeRegs()
2902 tempah = 0x04; /* For all bridges */ in SiS_SetCRT2ModeRegs()
2905 tempah = 0x00; in SiS_SetCRT2ModeRegs()
2910 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,tempbl,tempah); in SiS_SetCRT2ModeRegs()
2923 tempah = 0x30; in SiS_SetCRT2ModeRegs()
2927 tempah = 0x00; in SiS_SetCRT2ModeRegs()
2930 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,0xcf,tempah); in SiS_SetCRT2ModeRegs()
2940 tempah = 0x30; tempah2 = 0xc0; in SiS_SetCRT2ModeRegs()
2943 tempah = tempah2 = 0x00; in SiS_SetCRT2ModeRegs()
2947 tempah = tempah2 = 0x00; in SiS_SetCRT2ModeRegs()
2950 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,tempbl,tempah); in SiS_SetCRT2ModeRegs()
2953 tempah = 0x30; tempah2 = 0xc0; /* For 30xB, 301C */ in SiS_SetCRT2ModeRegs()
2956 tempah = tempah2 = 0x00; in SiS_SetCRT2ModeRegs()
2961 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,tempbl,tempah); in SiS_SetCRT2ModeRegs()
2966 tempah = 0x80; in SiS_SetCRT2ModeRegs()
2967 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0x00; in SiS_SetCRT2ModeRegs()
2968 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x23,0x7f,tempah); in SiS_SetCRT2ModeRegs()
2970 tempah = 0x00; in SiS_SetCRT2ModeRegs()
2974 if(!(SiS_IsDualEdge(SiS_Pr))) tempah = 0x80; in SiS_SetCRT2ModeRegs()
2976 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x23,tempbl,tempah); in SiS_SetCRT2ModeRegs()
3011 tempah = 0x04; in SiS_SetCRT2ModeRegs()
3014 tempah = 0x00; in SiS_SetCRT2ModeRegs()
3017 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,tempbl,tempah); in SiS_SetCRT2ModeRegs()
4160 unsigned short tempah, pushax=0, modenum; in SiS_DisableBridge() local
4253 tempah = 0xef; in SiS_DisableBridge()
4254 if(SiS_IsVAMode(SiS_Pr)) tempah = 0xf7; in SiS_DisableBridge()
4255 SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x4c,tempah); in SiS_DisableBridge()
4263 tempah = 0x3f; in SiS_DisableBridge()
4265 tempah = 0x7f; in SiS_DisableBridge()
4266 if(!(SiS_IsVAMode(SiS_Pr))) tempah = 0xbf; in SiS_DisableBridge()
4268 SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x1F,tempah); in SiS_DisableBridge()
4558 unsigned short temp=0, tempah; in SiS_EnableBridge() local
4611 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); in SiS_EnableBridge()
4612 if(!(tempah & SetCRT2ToRAMDAC)) temp |= 0x20; in SiS_EnableBridge()
4656 tempah = 0x10; in SiS_EnableBridge()
4658 if(SiS_TVEnabled(SiS_Pr)) tempah = 0x18; in SiS_EnableBridge()
4659 else tempah = 0x08; in SiS_EnableBridge()
4661 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x4c,tempah); in SiS_EnableBridge()
4705 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); in SiS_EnableBridge()
4706 if(!(tempah & SetCRT2ToRAMDAC)) { in SiS_EnableBridge()
4740 tempah = 0xc0; in SiS_EnableBridge()
4742 tempah = 0x80; in SiS_EnableBridge()
4743 if(!(SiS_IsVAMode(SiS_Pr))) tempah = 0x40; in SiS_EnableBridge()
4745 SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x1F,tempah); in SiS_EnableBridge()
4951 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); in SiS_EnableBridge()
4952 if(!(tempah & SetCRT2ToRAMDAC)) temp |= 0x20; in SiS_EnableBridge()
5165 unsigned short tempah=0, tempbl, infoflag; in SiS_SetCRT2Sync() local
5178 tempah = 0; in SiS_SetCRT2Sync()
5180 tempah = SiS_Pr->SiS_LCDInfo; in SiS_SetCRT2Sync()
5181 } else tempah = infoflag >> 8; in SiS_SetCRT2Sync()
5182 tempah &= 0xC0; in SiS_SetCRT2Sync()
5183 tempah |= 0x20; in SiS_SetCRT2Sync()
5184 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
5188 tempah |= 0xf0; in SiS_SetCRT2Sync()
5195 tempah |= 0x30; in SiS_SetCRT2Sync()
5199 tempah &= ~0xc0; in SiS_SetCRT2Sync()
5204 tempah >>= 3; in SiS_SetCRT2Sync()
5205 tempah &= 0x18; in SiS_SetCRT2Sync()
5206 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xE7,tempah); in SiS_SetCRT2Sync()
5212 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
5223 tempah = infoflag >> 8; in SiS_SetCRT2Sync()
5227 tempah = SiS_Pr->SiS_LCDInfo; in SiS_SetCRT2Sync()
5228 tempbl = (tempah >> 6) & 0x03; in SiS_SetCRT2Sync()
5231 tempah &= 0xC0; in SiS_SetCRT2Sync()
5232 tempah |= 0x20; in SiS_SetCRT2Sync()
5233 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
5234 tempah |= 0xc0; in SiS_SetCRT2Sync()
5235 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
5242 tempah = ((infoflag >> 8) & 0xc0) | 0x20; in SiS_SetCRT2Sync()
5243 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
5244 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
5259 tempah = infoflag >> 8; in SiS_SetCRT2Sync()
5265 tempah = infoflag >> 8; in SiS_SetCRT2Sync()
5268 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x37); in SiS_SetCRT2Sync()
5269 tempbl = (tempah >> 6) & 0x03; in SiS_SetCRT2Sync()
5273 tempah &= 0xC0; in SiS_SetCRT2Sync()
5274 tempah |= 0x20; in SiS_SetCRT2Sync()
5275 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
5276 if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) tempah |= 0xc0; in SiS_SetCRT2Sync()
5277 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
5286 tempah = tempbl = infoflag >> 8; in SiS_SetCRT2Sync()
5291 tempah = SiS_GetRegByte((SiS_Pr->SiS_P3ca+0x02)); in SiS_SetCRT2Sync()
5297 tempah = SiS_Pr->SiS_LCDInfo; in SiS_SetCRT2Sync()
5298 tempbl = (tempah >> 6) & 0x03; in SiS_SetCRT2Sync()
5303 tempah &= 0xC0; in SiS_SetCRT2Sync()
5304 tempah |= 0x20; in SiS_SetCRT2Sync()
5305 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
5308 if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) tempah |= 0xc0; in SiS_SetCRT2Sync()
5311 tempah >>= 3; in SiS_SetCRT2Sync()
5312 tempah &= 0x18; in SiS_SetCRT2Sync()
5313 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xe7,tempah); in SiS_SetCRT2Sync()
5315 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
8002 unsigned short tempah, i, modeflag, j, ResIndex, DisplayType; in SiS_ModCRT1CRTC() local
8060 tempah = (LVDSCRT1Ptr + ResIndex)->CR[i]; in SiS_ModCRT1CRTC()
8061 SiS_SetReg(SiS_Pr->SiS_P3d4,CRIdx[i],tempah); in SiS_ModCRT1CRTC()
8065 tempah = (LVDSCRT1Ptr + ResIndex)->CR[j]; in SiS_ModCRT1CRTC()
8066 SiS_SetReg(SiS_Pr->SiS_P3c4,i,tempah); in SiS_ModCRT1CRTC()
8069 tempah = (LVDSCRT1Ptr + ResIndex)->CR[14] & 0xE0; in SiS_ModCRT1CRTC()
8070 SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0E,0x1f,tempah); in SiS_ModCRT1CRTC()
8075 tempah = ((LVDSCRT1Ptr + ResIndex)->CR[14] & 0x01) << 5; in SiS_ModCRT1CRTC()
8076 if(modeflag & DoubleScanMode) tempah |= 0x80; in SiS_ModCRT1CRTC()
8077 SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x09,~0x020,tempah); in SiS_ModCRT1CRTC()
9043 unsigned short tempah,temp; in SiS_SetTrumpBlockLoop() local
9055 tempah = SiS_Pr->SiS_DDC_DeviceAddr; in SiS_SetTrumpBlockLoop()
9056 temp = SiS_WriteDDC2Data(SiS_Pr,tempah); /* Write DAB (S0=0=write) */ in SiS_SetTrumpBlockLoop()
9058 tempah = *mydataptr++; in SiS_SetTrumpBlockLoop()
9059 temp = SiS_WriteDDC2Data(SiS_Pr,tempah); /* Write register number */ in SiS_SetTrumpBlockLoop()
9062 tempah = *mydataptr++; in SiS_SetTrumpBlockLoop()
9063 temp = SiS_WriteDDC2Data(SiS_Pr,tempah);/* Write DAB (S0=0=write) */ in SiS_SetTrumpBlockLoop()
9175 unsigned short tempah, temp, i; in SiS_GetChReg() local
9190 tempah = SiS_ReadDDC2Data(SiS_Pr); /* Read byte */ in SiS_GetChReg()
9193 return tempah; in SiS_GetChReg()
9746 unsigned short tempah; in SiS_CheckACK() local
9754 tempah = SiS_GetReg(SiS_Pr->SiS_DDC_Port,SiS_Pr->SiS_DDC_Index); /* Read SD */ in SiS_CheckACK()
9756 if(tempah & SiS_Pr->SiS_DDC_Data) return 1; /* Ack OK if bit = 0 */ in SiS_CheckACK()