Lines Matching refs:romptr
497 unsigned short romptr = 0; in GetLCDStructPtr661_2() local
508 romptr = SISGETROMW(0x102); in GetLCDStructPtr661_2()
509 romptr += ((SiS_GetReg(SiS_Pr->SiS_P3d4,0x36) >> 4) * SiS_Pr->SiS661LCD2TableSize); in GetLCDStructPtr661_2()
512 return romptr; in GetLCDStructPtr661_2()
3527 unsigned short tempax, tempbx, modeflag, romptr=0; in SiS_GetCRT2Data301() local
3551 if((romptr = (SISGETROMW(21)))) { in SiS_GetCRT2Data301()
3552 romptr += (resinfo661 * 10); in SiS_GetCRT2Data301()
3719 } else if( (!(SiS_Pr->SiS_LCDInfo & DontExpandLCD)) && (romptr) && (ROMAddr) ) { in SiS_GetCRT2Data301()
3722 SiS_Pr->SiS_RVBHCMAX = ROMAddr[romptr]; in SiS_GetCRT2Data301()
3723 SiS_Pr->SiS_RVBHCFACT = ROMAddr[romptr+1]; in SiS_GetCRT2Data301()
3724 SiS_Pr->SiS_VGAHT = ROMAddr[romptr+2] | ((ROMAddr[romptr+3] & 0x0f) << 8); in SiS_GetCRT2Data301()
3725 SiS_Pr->SiS_VGAVT = (ROMAddr[romptr+4] << 4) | ((ROMAddr[romptr+3] & 0xf0) >> 4); in SiS_GetCRT2Data301()
3726 SiS_Pr->SiS_HT = ROMAddr[romptr+5] | ((ROMAddr[romptr+6] & 0x0f) << 8); in SiS_GetCRT2Data301()
3727 SiS_Pr->SiS_VT = (ROMAddr[romptr+7] << 4) | ((ROMAddr[romptr+6] & 0xf0) >> 4); in SiS_GetCRT2Data301()
3728 SiS_Pr->SiS_RVBHRS2 = ROMAddr[romptr+8] | ((ROMAddr[romptr+9] & 0x0f) << 8); in SiS_GetCRT2Data301()
3731 tempax = (ROMAddr[romptr+9] >> 4) & 0x07; in SiS_GetCRT2Data301()
3732 if(ROMAddr[romptr+9] & 0x80) SiS_Pr->SiS_RVBHRS2 -= tempax; in SiS_GetCRT2Data301()
4128 unsigned short romptr = GetLCDStructPtr661_2(SiS_Pr); in SiS_HandlePWD() local
4133 (romptr) && in SiS_HandlePWD()
4135 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2b,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 0]); in SiS_HandlePWD()
4136 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2c,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 1]); in SiS_HandlePWD()
4137 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2d,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 2]); in SiS_HandlePWD()
4138 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2e,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 3]); in SiS_HandlePWD()
4139 SiS_SetReg(SiS_Pr->SiS_Part4Port,0x2f,ROMAddr[romptr + SiS_Pr->SiS_PWDOffset + 4]); in SiS_HandlePWD()
4141 if((ROMAddr[romptr + 2] & (0x06 << 1)) && !drivermode) { in SiS_HandlePWD()
4769 unsigned short romptr = GetLCDStructPtr661_2(SiS_Pr); in SiS_EnableBridge() local
4770 if(romptr) { in SiS_EnableBridge()
4773 SiS_Pr->EMI_31 = ROMAddr[romptr + SiS_Pr->SiS_EMIOffset + 0]; in SiS_EnableBridge()
4774 SiS_Pr->EMI_32 = ROMAddr[romptr + SiS_Pr->SiS_EMIOffset + 1]; in SiS_EnableBridge()
4775 SiS_Pr->EMI_33 = ROMAddr[romptr + SiS_Pr->SiS_EMIOffset + 2]; in SiS_EnableBridge()
4776 if(ROMAddr[romptr + 1] & 0x10) SiS_Pr->EMI_30 = 0x40; in SiS_EnableBridge()
9771 unsigned short romptr; in GetRAMDACromptr() local
9774 romptr = SISGETROMW(0x128); in GetRAMDACromptr()
9776 romptr = SISGETROMW(0x12a); in GetRAMDACromptr()
9778 romptr = SISGETROMW(0x1a8); in GetRAMDACromptr()
9780 romptr = SISGETROMW(0x1aa); in GetRAMDACromptr()
9782 return romptr; in GetRAMDACromptr()
9789 unsigned short romptr; in GetLCDromptr() local
9792 romptr = SISGETROMW(0x120); in GetLCDromptr()
9794 romptr = SISGETROMW(0x122); in GetLCDromptr()
9796 romptr = SISGETROMW(0x1a0); in GetLCDromptr()
9798 romptr = SISGETROMW(0x1a2); in GetLCDromptr()
9800 return romptr; in GetLCDromptr()
9807 unsigned short romptr; in GetTVromptr() local
9810 romptr = SISGETROMW(0x114); in GetTVromptr()
9812 romptr = SISGETROMW(0x11a); in GetTVromptr()
9814 romptr = SISGETROMW(0x194); in GetTVromptr()
9816 romptr = SISGETROMW(0x19a); in GetTVromptr()
9818 return romptr; in GetTVromptr()
9952 unsigned short delay=0,index,myindex,temp,romptr=0; in SetDelayComp() local
9966 romptr = GetRAMDACromptr(SiS_Pr); in SetDelayComp()
9968 if(romptr) delay = ROMAddr[romptr]; in SetDelayComp()
10077 romptr = SISGETROMW(0x122); in SetDelayComp()
10078 if(!romptr) return; in SetDelayComp()
10079 delay = ROMAddr[(romptr + index)]; in SetDelayComp()
10098 ((romptr = GetLCDromptr(SiS_Pr)))) { in SetDelayComp()
10102 delay = ROMAddr[(romptr + index)]; in SetDelayComp()
10147 romptr = SISGETROMW(0x11a); in SetDelayComp()
10148 if(!romptr) return; in SetDelayComp()
10149 delay = ROMAddr[romptr + index]; in SetDelayComp()
10182 romptr = GetTVromptr(SiS_Pr); in SetDelayComp()
10183 if(!romptr) return; in SetDelayComp()
10184 delay = ROMAddr[romptr + index]; in SetDelayComp()
10257 unsigned short index,temp,temp1,romptr=0; in SetAntiFlicker() local
10274 romptr = SISGETROMW(0x260); in SetAntiFlicker()
10276 romptr = SISGETROMW(0x360); in SetAntiFlicker()
10279 romptr = SISGETROMW(0x192); in SetAntiFlicker()
10281 romptr = SISGETROMW(0x112); in SetAntiFlicker()
10285 if(romptr) { in SetAntiFlicker()
10287 temp = ROMAddr[romptr + temp1 + index]; in SetAntiFlicker()
10300 unsigned short index,temp,temp1,romptr=0; in SetEdgeEnhance() local
10311 romptr = SISGETROMW(0x26c); in SetEdgeEnhance()
10313 romptr = SISGETROMW(0x36c); in SetEdgeEnhance()
10318 romptr = SISGETROMW(0x1a4); in SetEdgeEnhance()
10320 romptr = SISGETROMW(0x124); in SetEdgeEnhance()
10324 if(romptr) { in SetEdgeEnhance()
10326 temp = ROMAddr[romptr + temp1 + index]; in SetEdgeEnhance()
10370 unsigned short index,temp,i,j,resinfo,romptr=0; in SetPhaseIncr() local
10401 romptr = SISGETROMW(0x116); in SetPhaseIncr()
10403 romptr = SISGETROMW(0x196); in SetPhaseIncr()
10406 romptr = SISGETROMW(0x11c); in SetPhaseIncr()
10408 romptr = SISGETROMW(0x19c); in SetPhaseIncr()
10411 romptr = SISGETROMW(0x116); in SetPhaseIncr()
10413 romptr = SISGETROMW(0x196); in SetPhaseIncr()
10418 if(romptr) { in SetPhaseIncr()
10419 romptr += (temp << 2); in SetPhaseIncr()
10421 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); in SetPhaseIncr()
10458 unsigned short delay = 0, romptr = 0, index, lcdpdcindex; in SetDelayComp661() local
10483 romptr = SISGETROMW(0x104); in SetDelayComp661()
10484 delay = ROMAddr[romptr + index]; in SetDelayComp661()
10511 if((romptr = SISGETROMW(0x35e))) { in SetDelayComp661()
10512 delay = (ROMAddr[romptr + index] & 0x0f) << 1; in SetDelayComp661()
10538 romptr = SISGETROMW(0x106); in SetDelayComp661()
10539 if(SiS_Pr->SiS_VBType & VB_UMC) romptr += 12; in SetDelayComp661()
10540 delay = ROMAddr[romptr + index]; in SetDelayComp661()
10551 ((romptr = GetLCDStructPtr661_2(SiS_Pr))) ) { in SetDelayComp661()
10556 delay = ROMAddr[romptr + lcdpdcindex + 1]; /* LCD */ in SetDelayComp661()
10557 delay |= (ROMAddr[romptr + lcdpdcindex] << 8); /* LCDA */ in SetDelayComp661()
10662 unsigned short romptr, temp1, temp2; in SetPanelParms661() local
10676 if((romptr = GetLCDStructPtr661_2(SiS_Pr))) { in SetPanelParms661()
10678 temp1 = (ROMAddr[romptr] & 0x03) | 0x0c; in SetPanelParms661()
10687 temp1 = (ROMAddr[romptr + 1] & 0x80) >> 1; in SetPanelParms661()
11001 unsigned short tempbx=0,romptr=0; in GetOEMLCDPtr() local
11024 romptr = SISGETROMW(0x255); in GetOEMLCDPtr()
11025 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
11038 romptr = SISGETROMW(0x255); in GetOEMLCDPtr()
11039 if(romptr) tempbx = ROMAddr[romptr + SiS_Pr->SiS_LCDTypeInfo]; in GetOEMLCDPtr()
11063 unsigned short index,temp,romptr=0; in SetOEMLCDDelay() local
11070 romptr = SISGETROMW(0x24b); in SetOEMLCDDelay()
11090 if(romptr) { in SetOEMLCDDelay()
11091 romptr += (temp * 2); in SetOEMLCDDelay()
11092 romptr = SISGETROMW(romptr); in SetOEMLCDDelay()
11093 romptr += index; in SetOEMLCDDelay()
11094 temp = ROMAddr[romptr]; in SetOEMLCDDelay()
11104 if(romptr) { in SetOEMLCDDelay()
11105 romptr += (temp * 2); in SetOEMLCDDelay()
11106 romptr = SISGETROMW(romptr); in SetOEMLCDDelay()
11107 romptr += index; in SetOEMLCDDelay()
11108 temp = ROMAddr[romptr]; in SetOEMLCDDelay()
11114 romptr = ROMAddr[0x249] | (ROMAddr[0x24a] << 8); in SetOEMLCDDelay()
11115 if(romptr) { in SetOEMLCDDelay()
11116 romptr += (temp * 2); in SetOEMLCDDelay()
11117 romptr = SISGETROMW(romptr); in SetOEMLCDDelay()
11118 romptr += index; in SetOEMLCDDelay()
11119 temp = ROMAddr[romptr]; in SetOEMLCDDelay()
11186 unsigned short index,temp,romptr=0; in SetOEMTVDelay() local
11191 romptr = SISGETROMW(0x241); in SetOEMTVDelay()
11198 if(romptr) { in SetOEMTVDelay()
11199 romptr += (temp * 2); in SetOEMTVDelay()
11200 romptr = SISGETROMW(romptr); in SetOEMTVDelay()
11201 romptr += index; in SetOEMTVDelay()
11202 temp = ROMAddr[romptr]; in SetOEMTVDelay()
11218 unsigned short index,temp,romptr=0; in SetOEMAntiFlicker() local
11223 romptr = SISGETROMW(0x243); in SetOEMAntiFlicker()
11230 if(romptr) { in SetOEMAntiFlicker()
11231 romptr += (temp * 2); in SetOEMAntiFlicker()
11232 romptr = SISGETROMW(romptr); in SetOEMAntiFlicker()
11233 romptr += index; in SetOEMAntiFlicker()
11234 temp = ROMAddr[romptr]; in SetOEMAntiFlicker()
11246 unsigned short index,i,j,temp,romptr=0; in SetOEMPhaseIncr() local
11255 romptr = SISGETROMW(0x245); in SetOEMPhaseIncr()
11267 if(romptr) { in SetOEMPhaseIncr()
11268 romptr += (temp * 2); in SetOEMPhaseIncr()
11269 romptr = SISGETROMW(romptr); in SetOEMPhaseIncr()
11270 romptr += (index * 4); in SetOEMPhaseIncr()
11272 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); in SetOEMPhaseIncr()
11286 unsigned short index,temp,i,j,romptr=0; in SetOEMYFilter() local
11293 romptr = SISGETROMW(0x247); in SetOEMYFilter()
11312 if((romptr) && (!(SiS_Pr->SiS_TVMode & (TVSetPALM|TVSetPALN)))) { in SetOEMYFilter()
11313 romptr += (temp * 2); in SetOEMYFilter()
11314 romptr = SISGETROMW(romptr); in SetOEMYFilter()
11315 romptr += (index * 4); in SetOEMYFilter()
11317 SiS_SetReg(SiS_Pr->SiS_Part2Port,i,ROMAddr[romptr + j]); in SetOEMYFilter()