Lines Matching defs:tempah
2477 unsigned short i, j, modeflag, tempah=0;
2522 tempah = ((0x10 >> tempcl) | 0x80);
2524 } else tempah = 0x80;
2526 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempah ^= 0xA0;
2537 tempah = (0x08 >> tempcl);
2538 if (tempah == 0) tempah = 1;
2539 tempah |= 0x40;
2541 } else tempah = 0x40;
2543 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempah ^= 0x50;
2549 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0;
2552 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,tempah);
2556 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x00,0xa0,tempah);
2559 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,tempah);
2561 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x00,0xa0,tempah);
2569 tempah = 0x01;
2571 tempah |= 0x02;
2574 tempah ^= 0x05;
2576 tempah ^= 0x01;
2582 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0;
2584 tempah = (tempah << 5) & 0xFF;
2585 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,tempah);
2586 tempah = (tempah >> 5) & 0xFF;
2590 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0x08;
2591 else if(!(SiS_IsDualEdge(SiS_Pr))) tempah |= 0x08;
2592 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2E,0xF0,tempah);
2593 tempah &= ~0x08;
2598 tempah |= 0x10;
2601 tempah |= 0x80;
2603 if(SiS_Pr->PanelXRes < 1280 && SiS_Pr->PanelYRes < 960) tempah &= ~0x80;
2609 tempah |= 0x20;
2614 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x0D,0x40,tempah);
2616 tempah = 0x80;
2618 if(SiS_Pr->PanelXRes < 1280 && SiS_Pr->PanelYRes < 960) tempah = 0;
2621 if(SiS_IsDualLink(SiS_Pr)) tempah |= 0x40;
2625 tempah |= 0x40;
2629 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0C,tempah);
2637 tempah = 0x80;
2640 tempah |= 0x02;
2644 if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) tempah |= 0x02;
2646 if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) tempah ^= 0x01;
2648 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 1;
2650 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2e,0xF0,tempah);
2656 tempah = 0;
2658 tempah |= 0x02;
2660 tempah <<= 5;
2662 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0;
2664 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,tempah);
2692 tempah = 0x04; /* For all bridges */
2695 tempah = 0x00;
2700 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,tempbl,tempah);
2713 tempah = 0x30;
2717 tempah = 0x00;
2720 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,0xcf,tempah);
2730 tempah = 0x30; tempah2 = 0xc0;
2733 tempah = tempah2 = 0x00;
2737 tempah = tempah2 = 0x00;
2740 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,tempbl,tempah);
2743 tempah = 0x30; tempah2 = 0xc0; /* For 30xB, 301C */
2746 tempah = tempah2 = 0x00;
2751 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,tempbl,tempah);
2756 tempah = 0x80;
2757 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0x00;
2758 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x23,0x7f,tempah);
2760 tempah = 0x00;
2764 if(!(SiS_IsDualEdge(SiS_Pr))) tempah = 0x80;
2766 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x23,tempbl,tempah);
2801 tempah = 0x04;
2804 tempah = 0x00;
2807 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,tempbl,tempah);
3971 unsigned short tempah, pushax=0, modenum;
4064 tempah = 0xef;
4065 if(SiS_IsVAMode(SiS_Pr)) tempah = 0xf7;
4066 SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x4c,tempah);
4074 tempah = 0x3f;
4076 tempah = 0x7f;
4077 if(!(SiS_IsVAMode(SiS_Pr))) tempah = 0xbf;
4079 SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x1F,tempah);
4371 unsigned short temp=0, tempah;
4424 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30);
4425 if(!(tempah & SetCRT2ToRAMDAC)) temp |= 0x20;
4469 tempah = 0x10;
4471 if(SiS_TVEnabled(SiS_Pr)) tempah = 0x18;
4472 else tempah = 0x08;
4474 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x4c,tempah);
4518 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30);
4519 if(!(tempah & SetCRT2ToRAMDAC)) {
4553 tempah = 0xc0;
4555 tempah = 0x80;
4556 if(!(SiS_IsVAMode(SiS_Pr))) tempah = 0x40;
4558 SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x1F,tempah);
4764 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30);
4765 if(!(tempah & SetCRT2ToRAMDAC)) temp |= 0x20;
4978 unsigned short tempah=0, tempbl, infoflag;
4991 tempah = 0;
4993 tempah = SiS_Pr->SiS_LCDInfo;
4994 } else tempah = infoflag >> 8;
4995 tempah &= 0xC0;
4996 tempah |= 0x20;
4997 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10;
5001 tempah |= 0xf0;
5008 tempah |= 0x30;
5012 tempah &= ~0xc0;
5017 tempah >>= 3;
5018 tempah &= 0x18;
5019 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xE7,tempah);
5025 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah);
5036 tempah = infoflag >> 8;
5040 tempah = SiS_Pr->SiS_LCDInfo;
5041 tempbl = (tempah >> 6) & 0x03;
5044 tempah &= 0xC0;
5045 tempah |= 0x20;
5046 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10;
5047 tempah |= 0xc0;
5048 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah);
5055 tempah = ((infoflag >> 8) & 0xc0) | 0x20;
5056 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10;
5057 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah);
5072 tempah = infoflag >> 8;
5078 tempah = infoflag >> 8;
5081 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x37);
5082 tempbl = (tempah >> 6) & 0x03;
5086 tempah &= 0xC0;
5087 tempah |= 0x20;
5088 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10;
5089 if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) tempah |= 0xc0;
5090 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah);
5099 tempah = tempbl = infoflag >> 8;
5104 tempah = SiS_GetRegByte((SiS_Pr->SiS_P3ca+0x02));
5110 tempah = SiS_Pr->SiS_LCDInfo;
5111 tempbl = (tempah >> 6) & 0x03;
5116 tempah &= 0xC0;
5117 tempah |= 0x20;
5118 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10;
5121 if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) tempah |= 0xc0;
5124 tempah >>= 3;
5125 tempah &= 0x18;
5126 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xe7,tempah);
5128 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah);
7849 unsigned short tempah, i, modeflag, j, ResIndex, DisplayType;
7907 tempah = (LVDSCRT1Ptr + ResIndex)->CR[i];
7908 SiS_SetReg(SiS_Pr->SiS_P3d4,CRIdx[i],tempah);
7912 tempah = (LVDSCRT1Ptr + ResIndex)->CR[j];
7913 SiS_SetReg(SiS_Pr->SiS_P3c4,i,tempah);
7916 tempah = (LVDSCRT1Ptr + ResIndex)->CR[14] & 0xE0;
7917 SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0E,0x1f,tempah);
7922 tempah = ((LVDSCRT1Ptr + ResIndex)->CR[14] & 0x01) << 5;
7923 if(modeflag & DoubleScanMode) tempah |= 0x80;
7924 SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x09,~0x020,tempah);
8914 unsigned short tempah,temp;
8926 tempah = SiS_Pr->SiS_DDC_DeviceAddr;
8927 temp = SiS_WriteDDC2Data(SiS_Pr,tempah); /* Write DAB (S0=0=write) */
8929 tempah = *mydataptr++;
8930 temp = SiS_WriteDDC2Data(SiS_Pr,tempah); /* Write register number */
8933 tempah = *mydataptr++;
8934 temp = SiS_WriteDDC2Data(SiS_Pr,tempah);/* Write DAB (S0=0=write) */
9053 unsigned short tempah, temp, i;
9068 tempah = SiS_ReadDDC2Data(SiS_Pr); /* Read byte */
9071 return tempah;
9658 unsigned short tempah;
9666 tempah = SiS_GetReg(SiS_Pr->SiS_DDC_Port,SiS_Pr->SiS_DDC_Index); /* Read SD */
9668 if(tempah & SiS_Pr->SiS_DDC_Data) return 1; /* Ack OK if bit = 0 */