Lines Matching defs:tempah

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