Lines Matching refs:tempah

2688   unsigned short i, j, modeflag, tempah=0;  in SiS_SetCRT2ModeRegs()  local
2733 tempah = ((0x10 >> tempcl) | 0x80); in SiS_SetCRT2ModeRegs()
2735 } else tempah = 0x80; in SiS_SetCRT2ModeRegs()
2737 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempah ^= 0xA0; in SiS_SetCRT2ModeRegs()
2748 tempah = (0x08 >> tempcl); in SiS_SetCRT2ModeRegs()
2749 if (tempah == 0) tempah = 1; in SiS_SetCRT2ModeRegs()
2750 tempah |= 0x40; in SiS_SetCRT2ModeRegs()
2752 } else tempah = 0x40; in SiS_SetCRT2ModeRegs()
2754 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempah ^= 0x50; in SiS_SetCRT2ModeRegs()
2760 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0; in SiS_SetCRT2ModeRegs()
2763 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,tempah); in SiS_SetCRT2ModeRegs()
2767 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x00,0xa0,tempah); in SiS_SetCRT2ModeRegs()
2770 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,tempah); in SiS_SetCRT2ModeRegs()
2772 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x00,0xa0,tempah); in SiS_SetCRT2ModeRegs()
2780 tempah = 0x01; in SiS_SetCRT2ModeRegs()
2782 tempah |= 0x02; in SiS_SetCRT2ModeRegs()
2785 tempah ^= 0x05; in SiS_SetCRT2ModeRegs()
2787 tempah ^= 0x01; in SiS_SetCRT2ModeRegs()
2793 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0; in SiS_SetCRT2ModeRegs()
2795 tempah = (tempah << 5) & 0xFF; in SiS_SetCRT2ModeRegs()
2796 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,tempah); in SiS_SetCRT2ModeRegs()
2797 tempah = (tempah >> 5) & 0xFF; in SiS_SetCRT2ModeRegs()
2801 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0x08; in SiS_SetCRT2ModeRegs()
2802 else if(!(SiS_IsDualEdge(SiS_Pr))) tempah |= 0x08; in SiS_SetCRT2ModeRegs()
2803 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2E,0xF0,tempah); in SiS_SetCRT2ModeRegs()
2804 tempah &= ~0x08; in SiS_SetCRT2ModeRegs()
2809 tempah |= 0x10; in SiS_SetCRT2ModeRegs()
2812 tempah |= 0x80; in SiS_SetCRT2ModeRegs()
2814 if(SiS_Pr->PanelXRes < 1280 && SiS_Pr->PanelYRes < 960) tempah &= ~0x80; in SiS_SetCRT2ModeRegs()
2820 tempah |= 0x20; in SiS_SetCRT2ModeRegs()
2825 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x0D,0x40,tempah); in SiS_SetCRT2ModeRegs()
2827 tempah = 0x80; in SiS_SetCRT2ModeRegs()
2829 if(SiS_Pr->PanelXRes < 1280 && SiS_Pr->PanelYRes < 960) tempah = 0; in SiS_SetCRT2ModeRegs()
2832 if(SiS_IsDualLink(SiS_Pr)) tempah |= 0x40; in SiS_SetCRT2ModeRegs()
2836 tempah |= 0x40; in SiS_SetCRT2ModeRegs()
2840 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0C,tempah); in SiS_SetCRT2ModeRegs()
2848 tempah = 0x80; in SiS_SetCRT2ModeRegs()
2851 tempah |= 0x02; in SiS_SetCRT2ModeRegs()
2855 if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) tempah |= 0x02; in SiS_SetCRT2ModeRegs()
2857 if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) tempah ^= 0x01; in SiS_SetCRT2ModeRegs()
2859 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 1; in SiS_SetCRT2ModeRegs()
2861 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2e,0xF0,tempah); in SiS_SetCRT2ModeRegs()
2867 tempah = 0; in SiS_SetCRT2ModeRegs()
2869 tempah |= 0x02; in SiS_SetCRT2ModeRegs()
2871 tempah <<= 5; in SiS_SetCRT2ModeRegs()
2873 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0; in SiS_SetCRT2ModeRegs()
2875 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,tempah); in SiS_SetCRT2ModeRegs()
2903 tempah = 0x04; /* For all bridges */ in SiS_SetCRT2ModeRegs()
2906 tempah = 0x00; in SiS_SetCRT2ModeRegs()
2911 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,tempbl,tempah); in SiS_SetCRT2ModeRegs()
2924 tempah = 0x30; in SiS_SetCRT2ModeRegs()
2928 tempah = 0x00; in SiS_SetCRT2ModeRegs()
2931 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,0xcf,tempah); in SiS_SetCRT2ModeRegs()
2941 tempah = 0x30; tempah2 = 0xc0; in SiS_SetCRT2ModeRegs()
2944 tempah = tempah2 = 0x00; in SiS_SetCRT2ModeRegs()
2948 tempah = tempah2 = 0x00; in SiS_SetCRT2ModeRegs()
2951 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,tempbl,tempah); in SiS_SetCRT2ModeRegs()
2954 tempah = 0x30; tempah2 = 0xc0; /* For 30xB, 301C */ in SiS_SetCRT2ModeRegs()
2957 tempah = tempah2 = 0x00; in SiS_SetCRT2ModeRegs()
2962 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,tempbl,tempah); in SiS_SetCRT2ModeRegs()
2967 tempah = 0x80; in SiS_SetCRT2ModeRegs()
2968 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0x00; in SiS_SetCRT2ModeRegs()
2969 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x23,0x7f,tempah); in SiS_SetCRT2ModeRegs()
2971 tempah = 0x00; in SiS_SetCRT2ModeRegs()
2975 if(!(SiS_IsDualEdge(SiS_Pr))) tempah = 0x80; in SiS_SetCRT2ModeRegs()
2977 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x23,tempbl,tempah); in SiS_SetCRT2ModeRegs()
3012 tempah = 0x04; in SiS_SetCRT2ModeRegs()
3015 tempah = 0x00; in SiS_SetCRT2ModeRegs()
3018 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,tempbl,tempah); in SiS_SetCRT2ModeRegs()
4161 unsigned short tempah, pushax=0, modenum; in SiS_DisableBridge() local
4254 tempah = 0xef; in SiS_DisableBridge()
4255 if(SiS_IsVAMode(SiS_Pr)) tempah = 0xf7; in SiS_DisableBridge()
4256 SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x4c,tempah); in SiS_DisableBridge()
4264 tempah = 0x3f; in SiS_DisableBridge()
4266 tempah = 0x7f; in SiS_DisableBridge()
4267 if(!(SiS_IsVAMode(SiS_Pr))) tempah = 0xbf; in SiS_DisableBridge()
4269 SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x1F,tempah); in SiS_DisableBridge()
4559 unsigned short temp=0, tempah; in SiS_EnableBridge() local
4612 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); in SiS_EnableBridge()
4613 if(!(tempah & SetCRT2ToRAMDAC)) temp |= 0x20; in SiS_EnableBridge()
4657 tempah = 0x10; in SiS_EnableBridge()
4659 if(SiS_TVEnabled(SiS_Pr)) tempah = 0x18; in SiS_EnableBridge()
4660 else tempah = 0x08; in SiS_EnableBridge()
4662 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x4c,tempah); in SiS_EnableBridge()
4706 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); in SiS_EnableBridge()
4707 if(!(tempah & SetCRT2ToRAMDAC)) { in SiS_EnableBridge()
4741 tempah = 0xc0; in SiS_EnableBridge()
4743 tempah = 0x80; in SiS_EnableBridge()
4744 if(!(SiS_IsVAMode(SiS_Pr))) tempah = 0x40; in SiS_EnableBridge()
4746 SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x1F,tempah); in SiS_EnableBridge()
4952 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); in SiS_EnableBridge()
4953 if(!(tempah & SetCRT2ToRAMDAC)) temp |= 0x20; in SiS_EnableBridge()
5166 unsigned short tempah=0, tempbl, infoflag; in SiS_SetCRT2Sync() local
5179 tempah = 0; in SiS_SetCRT2Sync()
5181 tempah = SiS_Pr->SiS_LCDInfo; in SiS_SetCRT2Sync()
5182 } else tempah = infoflag >> 8; in SiS_SetCRT2Sync()
5183 tempah &= 0xC0; in SiS_SetCRT2Sync()
5184 tempah |= 0x20; in SiS_SetCRT2Sync()
5185 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
5189 tempah |= 0xf0; in SiS_SetCRT2Sync()
5196 tempah |= 0x30; in SiS_SetCRT2Sync()
5200 tempah &= ~0xc0; in SiS_SetCRT2Sync()
5205 tempah >>= 3; in SiS_SetCRT2Sync()
5206 tempah &= 0x18; in SiS_SetCRT2Sync()
5207 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xE7,tempah); in SiS_SetCRT2Sync()
5213 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
5224 tempah = infoflag >> 8; in SiS_SetCRT2Sync()
5228 tempah = SiS_Pr->SiS_LCDInfo; in SiS_SetCRT2Sync()
5229 tempbl = (tempah >> 6) & 0x03; in SiS_SetCRT2Sync()
5232 tempah &= 0xC0; in SiS_SetCRT2Sync()
5233 tempah |= 0x20; in SiS_SetCRT2Sync()
5234 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
5235 tempah |= 0xc0; in SiS_SetCRT2Sync()
5236 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
5243 tempah = ((infoflag >> 8) & 0xc0) | 0x20; in SiS_SetCRT2Sync()
5244 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
5245 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
5260 tempah = infoflag >> 8; in SiS_SetCRT2Sync()
5266 tempah = infoflag >> 8; in SiS_SetCRT2Sync()
5269 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x37); in SiS_SetCRT2Sync()
5270 tempbl = (tempah >> 6) & 0x03; in SiS_SetCRT2Sync()
5274 tempah &= 0xC0; in SiS_SetCRT2Sync()
5275 tempah |= 0x20; in SiS_SetCRT2Sync()
5276 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
5277 if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) tempah |= 0xc0; in SiS_SetCRT2Sync()
5278 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
5287 tempah = tempbl = infoflag >> 8; in SiS_SetCRT2Sync()
5292 tempah = SiS_GetRegByte((SiS_Pr->SiS_P3ca+0x02)); in SiS_SetCRT2Sync()
5298 tempah = SiS_Pr->SiS_LCDInfo; in SiS_SetCRT2Sync()
5299 tempbl = (tempah >> 6) & 0x03; in SiS_SetCRT2Sync()
5304 tempah &= 0xC0; in SiS_SetCRT2Sync()
5305 tempah |= 0x20; in SiS_SetCRT2Sync()
5306 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
5309 if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) tempah |= 0xc0; in SiS_SetCRT2Sync()
5312 tempah >>= 3; in SiS_SetCRT2Sync()
5313 tempah &= 0x18; in SiS_SetCRT2Sync()
5314 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xe7,tempah); in SiS_SetCRT2Sync()
5316 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
8003 unsigned short tempah, i, modeflag, j, ResIndex, DisplayType; in SiS_ModCRT1CRTC() local
8061 tempah = (LVDSCRT1Ptr + ResIndex)->CR[i]; in SiS_ModCRT1CRTC()
8062 SiS_SetReg(SiS_Pr->SiS_P3d4,CRIdx[i],tempah); in SiS_ModCRT1CRTC()
8066 tempah = (LVDSCRT1Ptr + ResIndex)->CR[j]; in SiS_ModCRT1CRTC()
8067 SiS_SetReg(SiS_Pr->SiS_P3c4,i,tempah); in SiS_ModCRT1CRTC()
8070 tempah = (LVDSCRT1Ptr + ResIndex)->CR[14] & 0xE0; in SiS_ModCRT1CRTC()
8071 SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0E,0x1f,tempah); in SiS_ModCRT1CRTC()
8076 tempah = ((LVDSCRT1Ptr + ResIndex)->CR[14] & 0x01) << 5; in SiS_ModCRT1CRTC()
8077 if(modeflag & DoubleScanMode) tempah |= 0x80; in SiS_ModCRT1CRTC()
8078 SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x09,~0x020,tempah); in SiS_ModCRT1CRTC()
9044 unsigned short tempah,temp; in SiS_SetTrumpBlockLoop() local
9056 tempah = SiS_Pr->SiS_DDC_DeviceAddr; in SiS_SetTrumpBlockLoop()
9057 temp = SiS_WriteDDC2Data(SiS_Pr,tempah); /* Write DAB (S0=0=write) */ in SiS_SetTrumpBlockLoop()
9059 tempah = *mydataptr++; in SiS_SetTrumpBlockLoop()
9060 temp = SiS_WriteDDC2Data(SiS_Pr,tempah); /* Write register number */ in SiS_SetTrumpBlockLoop()
9063 tempah = *mydataptr++; in SiS_SetTrumpBlockLoop()
9064 temp = SiS_WriteDDC2Data(SiS_Pr,tempah);/* Write DAB (S0=0=write) */ in SiS_SetTrumpBlockLoop()
9176 unsigned short tempah, temp, i; in SiS_GetChReg() local
9191 tempah = SiS_ReadDDC2Data(SiS_Pr); /* Read byte */ in SiS_GetChReg()
9194 return tempah; in SiS_GetChReg()
9747 unsigned short tempah; in SiS_CheckACK() local
9755 tempah = SiS_GetReg(SiS_Pr->SiS_DDC_Port,SiS_Pr->SiS_DDC_Index); /* Read SD */ in SiS_CheckACK()
9757 if(tempah & SiS_Pr->SiS_DDC_Data) return 1; /* Ack OK if bit = 0 */ in SiS_CheckACK()