Lines Matching refs:tempah

2366   unsigned short i, j, modeflag, tempah=0;  in SiS_SetCRT2ModeRegs()  local
2411 tempah = ((0x10 >> tempcl) | 0x80); in SiS_SetCRT2ModeRegs()
2413 } else tempah = 0x80; in SiS_SetCRT2ModeRegs()
2415 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempah ^= 0xA0; in SiS_SetCRT2ModeRegs()
2426 tempah = (0x08 >> tempcl); in SiS_SetCRT2ModeRegs()
2427 if (tempah == 0) tempah = 1; in SiS_SetCRT2ModeRegs()
2428 tempah |= 0x40; in SiS_SetCRT2ModeRegs()
2430 } else tempah = 0x40; in SiS_SetCRT2ModeRegs()
2432 if(SiS_Pr->SiS_VBInfo & SetInSlaveMode) tempah ^= 0x50; in SiS_SetCRT2ModeRegs()
2438 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0; in SiS_SetCRT2ModeRegs()
2441 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,tempah); in SiS_SetCRT2ModeRegs()
2445 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x00,0xa0,tempah); in SiS_SetCRT2ModeRegs()
2448 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x00,tempah); in SiS_SetCRT2ModeRegs()
2450 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x00,0xa0,tempah); in SiS_SetCRT2ModeRegs()
2458 tempah = 0x01; in SiS_SetCRT2ModeRegs()
2460 tempah |= 0x02; in SiS_SetCRT2ModeRegs()
2463 tempah ^= 0x05; in SiS_SetCRT2ModeRegs()
2465 tempah ^= 0x01; in SiS_SetCRT2ModeRegs()
2471 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0; in SiS_SetCRT2ModeRegs()
2473 tempah = (tempah << 5) & 0xFF; in SiS_SetCRT2ModeRegs()
2474 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,tempah); in SiS_SetCRT2ModeRegs()
2475 tempah = (tempah >> 5) & 0xFF; in SiS_SetCRT2ModeRegs()
2479 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0x08; in SiS_SetCRT2ModeRegs()
2480 else if(!(SiS_IsDualEdge(SiS_Pr))) tempah |= 0x08; in SiS_SetCRT2ModeRegs()
2481 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2E,0xF0,tempah); in SiS_SetCRT2ModeRegs()
2482 tempah &= ~0x08; in SiS_SetCRT2ModeRegs()
2487 tempah |= 0x10; in SiS_SetCRT2ModeRegs()
2490 tempah |= 0x80; in SiS_SetCRT2ModeRegs()
2492 if(SiS_Pr->PanelXRes < 1280 && SiS_Pr->PanelYRes < 960) tempah &= ~0x80; in SiS_SetCRT2ModeRegs()
2498 tempah |= 0x20; in SiS_SetCRT2ModeRegs()
2503 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x0D,0x40,tempah); in SiS_SetCRT2ModeRegs()
2505 tempah = 0x80; in SiS_SetCRT2ModeRegs()
2507 if(SiS_Pr->PanelXRes < 1280 && SiS_Pr->PanelYRes < 960) tempah = 0; in SiS_SetCRT2ModeRegs()
2510 if(SiS_IsDualLink(SiS_Pr)) tempah |= 0x40; in SiS_SetCRT2ModeRegs()
2514 tempah |= 0x40; in SiS_SetCRT2ModeRegs()
2518 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x0C,tempah); in SiS_SetCRT2ModeRegs()
2526 tempah = 0x80; in SiS_SetCRT2ModeRegs()
2529 tempah |= 0x02; in SiS_SetCRT2ModeRegs()
2533 if(!(SiS_Pr->SiS_VBInfo & SetInSlaveMode)) tempah |= 0x02; in SiS_SetCRT2ModeRegs()
2535 if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) tempah ^= 0x01; in SiS_SetCRT2ModeRegs()
2537 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 1; in SiS_SetCRT2ModeRegs()
2539 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2e,0xF0,tempah); in SiS_SetCRT2ModeRegs()
2545 tempah = 0; in SiS_SetCRT2ModeRegs()
2547 tempah |= 0x02; in SiS_SetCRT2ModeRegs()
2549 tempah <<= 5; in SiS_SetCRT2ModeRegs()
2551 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0; in SiS_SetCRT2ModeRegs()
2553 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x01,tempah); in SiS_SetCRT2ModeRegs()
2581 tempah = 0x04; /* For all bridges */ in SiS_SetCRT2ModeRegs()
2584 tempah = 0x00; in SiS_SetCRT2ModeRegs()
2589 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,tempbl,tempah); in SiS_SetCRT2ModeRegs()
2602 tempah = 0x30; in SiS_SetCRT2ModeRegs()
2606 tempah = 0x00; in SiS_SetCRT2ModeRegs()
2609 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,0xcf,tempah); in SiS_SetCRT2ModeRegs()
2619 tempah = 0x30; tempah2 = 0xc0; in SiS_SetCRT2ModeRegs()
2622 tempah = tempah2 = 0x00; in SiS_SetCRT2ModeRegs()
2626 tempah = tempah2 = 0x00; in SiS_SetCRT2ModeRegs()
2629 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,tempbl,tempah); in SiS_SetCRT2ModeRegs()
2632 tempah = 0x30; tempah2 = 0xc0; /* For 30xB, 301C */ in SiS_SetCRT2ModeRegs()
2635 tempah = tempah2 = 0x00; in SiS_SetCRT2ModeRegs()
2640 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x2c,tempbl,tempah); in SiS_SetCRT2ModeRegs()
2645 tempah = 0x80; in SiS_SetCRT2ModeRegs()
2646 if(SiS_Pr->SiS_VBInfo & DisableCRT2Display) tempah = 0x00; in SiS_SetCRT2ModeRegs()
2647 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x23,0x7f,tempah); in SiS_SetCRT2ModeRegs()
2649 tempah = 0x00; in SiS_SetCRT2ModeRegs()
2653 if(!(SiS_IsDualEdge(SiS_Pr))) tempah = 0x80; in SiS_SetCRT2ModeRegs()
2655 SiS_SetRegANDOR(SiS_Pr->SiS_Part4Port,0x23,tempbl,tempah); in SiS_SetCRT2ModeRegs()
2690 tempah = 0x04; in SiS_SetCRT2ModeRegs()
2693 tempah = 0x00; in SiS_SetCRT2ModeRegs()
2696 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,tempbl,tempah); in SiS_SetCRT2ModeRegs()
3839 unsigned short tempah, pushax=0, modenum; in SiS_DisableBridge() local
3932 tempah = 0xef; in SiS_DisableBridge()
3933 if(SiS_IsVAMode(SiS_Pr)) tempah = 0xf7; in SiS_DisableBridge()
3934 SiS_SetRegAND(SiS_Pr->SiS_Part1Port,0x4c,tempah); in SiS_DisableBridge()
3942 tempah = 0x3f; in SiS_DisableBridge()
3944 tempah = 0x7f; in SiS_DisableBridge()
3945 if(!(SiS_IsVAMode(SiS_Pr))) tempah = 0xbf; in SiS_DisableBridge()
3947 SiS_SetRegAND(SiS_Pr->SiS_Part4Port,0x1F,tempah); in SiS_DisableBridge()
4237 unsigned short temp=0, tempah; in SiS_EnableBridge() local
4290 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); in SiS_EnableBridge()
4291 if(!(tempah & SetCRT2ToRAMDAC)) temp |= 0x20; in SiS_EnableBridge()
4335 tempah = 0x10; in SiS_EnableBridge()
4337 if(SiS_TVEnabled(SiS_Pr)) tempah = 0x18; in SiS_EnableBridge()
4338 else tempah = 0x08; in SiS_EnableBridge()
4340 SiS_SetReg(SiS_Pr->SiS_Part1Port,0x4c,tempah); in SiS_EnableBridge()
4384 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); in SiS_EnableBridge()
4385 if(!(tempah & SetCRT2ToRAMDAC)) { in SiS_EnableBridge()
4419 tempah = 0xc0; in SiS_EnableBridge()
4421 tempah = 0x80; in SiS_EnableBridge()
4422 if(!(SiS_IsVAMode(SiS_Pr))) tempah = 0x40; in SiS_EnableBridge()
4424 SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x1F,tempah); in SiS_EnableBridge()
4630 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x30); in SiS_EnableBridge()
4631 if(!(tempah & SetCRT2ToRAMDAC)) temp |= 0x20; in SiS_EnableBridge()
4844 unsigned short tempah=0, tempbl, infoflag; in SiS_SetCRT2Sync() local
4857 tempah = 0; in SiS_SetCRT2Sync()
4859 tempah = SiS_Pr->SiS_LCDInfo; in SiS_SetCRT2Sync()
4860 } else tempah = infoflag >> 8; in SiS_SetCRT2Sync()
4861 tempah &= 0xC0; in SiS_SetCRT2Sync()
4862 tempah |= 0x20; in SiS_SetCRT2Sync()
4863 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
4867 tempah |= 0xf0; in SiS_SetCRT2Sync()
4874 tempah |= 0x30; in SiS_SetCRT2Sync()
4878 tempah &= ~0xc0; in SiS_SetCRT2Sync()
4883 tempah >>= 3; in SiS_SetCRT2Sync()
4884 tempah &= 0x18; in SiS_SetCRT2Sync()
4885 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xE7,tempah); in SiS_SetCRT2Sync()
4891 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
4902 tempah = infoflag >> 8; in SiS_SetCRT2Sync()
4906 tempah = SiS_Pr->SiS_LCDInfo; in SiS_SetCRT2Sync()
4907 tempbl = (tempah >> 6) & 0x03; in SiS_SetCRT2Sync()
4910 tempah &= 0xC0; in SiS_SetCRT2Sync()
4911 tempah |= 0x20; in SiS_SetCRT2Sync()
4912 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
4913 tempah |= 0xc0; in SiS_SetCRT2Sync()
4914 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
4921 tempah = ((infoflag >> 8) & 0xc0) | 0x20; in SiS_SetCRT2Sync()
4922 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
4923 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
4938 tempah = infoflag >> 8; in SiS_SetCRT2Sync()
4944 tempah = infoflag >> 8; in SiS_SetCRT2Sync()
4947 tempah = SiS_GetReg(SiS_Pr->SiS_P3d4,0x37); in SiS_SetCRT2Sync()
4948 tempbl = (tempah >> 6) & 0x03; in SiS_SetCRT2Sync()
4952 tempah &= 0xC0; in SiS_SetCRT2Sync()
4953 tempah |= 0x20; in SiS_SetCRT2Sync()
4954 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
4955 if(SiS_Pr->SiS_VBInfo & SetCRT2ToLCDA) tempah |= 0xc0; in SiS_SetCRT2Sync()
4956 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
4965 tempah = tempbl = infoflag >> 8; in SiS_SetCRT2Sync()
4970 tempah = SiS_GetRegByte((SiS_Pr->SiS_P3ca+0x02)); in SiS_SetCRT2Sync()
4976 tempah = SiS_Pr->SiS_LCDInfo; in SiS_SetCRT2Sync()
4977 tempbl = (tempah >> 6) & 0x03; in SiS_SetCRT2Sync()
4982 tempah &= 0xC0; in SiS_SetCRT2Sync()
4983 tempah |= 0x20; in SiS_SetCRT2Sync()
4984 if(!(SiS_Pr->SiS_LCDInfo & LCDRGB18Bit)) tempah |= 0x10; in SiS_SetCRT2Sync()
4987 if(SiS_Pr->SiS_VBInfo & SetCRT2ToTV) tempah |= 0xc0; in SiS_SetCRT2Sync()
4990 tempah >>= 3; in SiS_SetCRT2Sync()
4991 tempah &= 0x18; in SiS_SetCRT2Sync()
4992 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x13,0xe7,tempah); in SiS_SetCRT2Sync()
4994 SiS_SetRegANDOR(SiS_Pr->SiS_Part1Port,0x19,0x0F,tempah); in SiS_SetCRT2Sync()
7687 unsigned short tempah, i, modeflag, j, ResIndex, DisplayType; in SiS_ModCRT1CRTC() local
7745 tempah = (LVDSCRT1Ptr + ResIndex)->CR[i]; in SiS_ModCRT1CRTC()
7746 SiS_SetReg(SiS_Pr->SiS_P3d4,CRIdx[i],tempah); in SiS_ModCRT1CRTC()
7750 tempah = (LVDSCRT1Ptr + ResIndex)->CR[j]; in SiS_ModCRT1CRTC()
7751 SiS_SetReg(SiS_Pr->SiS_P3c4,i,tempah); in SiS_ModCRT1CRTC()
7754 tempah = (LVDSCRT1Ptr + ResIndex)->CR[14] & 0xE0; in SiS_ModCRT1CRTC()
7755 SiS_SetRegANDOR(SiS_Pr->SiS_P3c4,0x0E,0x1f,tempah); in SiS_ModCRT1CRTC()
7760 tempah = ((LVDSCRT1Ptr + ResIndex)->CR[14] & 0x01) << 5; in SiS_ModCRT1CRTC()
7761 if(modeflag & DoubleScanMode) tempah |= 0x80; in SiS_ModCRT1CRTC()
7762 SiS_SetRegANDOR(SiS_Pr->SiS_P3d4,0x09,~0x020,tempah); in SiS_ModCRT1CRTC()
8733 unsigned short tempah,temp; in SiS_SetTrumpBlockLoop() local
8745 tempah = SiS_Pr->SiS_DDC_DeviceAddr; in SiS_SetTrumpBlockLoop()
8746 temp = SiS_WriteDDC2Data(SiS_Pr,tempah); /* Write DAB (S0=0=write) */ in SiS_SetTrumpBlockLoop()
8748 tempah = *mydataptr++; in SiS_SetTrumpBlockLoop()
8749 temp = SiS_WriteDDC2Data(SiS_Pr,tempah); /* Write register number */ in SiS_SetTrumpBlockLoop()
8752 tempah = *mydataptr++; in SiS_SetTrumpBlockLoop()
8753 temp = SiS_WriteDDC2Data(SiS_Pr,tempah);/* Write DAB (S0=0=write) */ in SiS_SetTrumpBlockLoop()
8865 unsigned short tempah, temp, i; in SiS_GetChReg() local
8880 tempah = SiS_ReadDDC2Data(SiS_Pr); /* Read byte */ in SiS_GetChReg()
8883 return tempah; in SiS_GetChReg()
9436 unsigned short tempah; in SiS_CheckACK() local
9444 tempah = SiS_GetReg(SiS_Pr->SiS_DDC_Port,SiS_Pr->SiS_DDC_Index); /* Read SD */ in SiS_CheckACK()
9446 if(tempah & SiS_Pr->SiS_DDC_Data) return 1; /* Ack OK if bit = 0 */ in SiS_CheckACK()