Lines Matching refs:idx1
2227 SiS_GetFIFOThresholdIndex300(struct SiS_Private *SiS_Pr, unsigned short *idx1, in SiS_GetFIFOThresholdIndex300() argument
2237 (*idx1) = (unsigned short)(SiS_GetReg(SiS_Pr->SiS_P3c4,0x16) >> 6) & 0x03; in SiS_GetFIFOThresholdIndex300()
2238 (*idx1) |= (unsigned short)(((SiS_GetReg(SiS_Pr->SiS_P3c4,0x14) >> 4) & 0x0c)); in SiS_GetFIFOThresholdIndex300()
2239 (*idx1) <<= 1; in SiS_GetFIFOThresholdIndex300()
2243 SiS_GetFIFOThresholdA300(unsigned short idx1, unsigned short idx2) in SiS_GetFIFOThresholdA300() argument
2251 return (unsigned short)((ThLowA[idx1 + 1] * idx2) + ThLowA[idx1]); in SiS_GetFIFOThresholdA300()
2255 SiS_GetFIFOThresholdB300(unsigned short idx1, unsigned short idx2) in SiS_GetFIFOThresholdB300() argument
2263 return (unsigned short)((ThLowB[idx1 + 1] * idx2) + ThLowB[idx1]); in SiS_GetFIFOThresholdB300()
2270 unsigned short idx1, idx2; in SiS_DoCalcDelay() local
2273 SiS_GetFIFOThresholdIndex300(SiS_Pr, &idx1, &idx2); in SiS_DoCalcDelay()
2276 longtemp *= SiS_GetFIFOThresholdA300(idx1, idx2); in SiS_DoCalcDelay()
2278 longtemp *= SiS_GetFIFOThresholdB300(idx1, idx2); in SiS_DoCalcDelay()
2280 idx1 = longtemp % (MCLK * 16); in SiS_DoCalcDelay()
2282 if(idx1) longtemp++; in SiS_DoCalcDelay()