Lines Matching defs:idx1
2236 SiS_GetFIFOThresholdIndex300(struct SiS_Private *SiS_Pr, unsigned short *idx1,
2246 (*idx1) = (unsigned short)(SiS_GetReg(SiS_Pr->SiS_P3c4,0x16) >> 6) & 0x03;
2247 (*idx1) |= (unsigned short)(((SiS_GetReg(SiS_Pr->SiS_P3c4,0x14) >> 4) & 0x0c));
2248 (*idx1) <<= 1;
2252 SiS_GetFIFOThresholdA300(unsigned short idx1, unsigned short idx2)
2260 return (unsigned short)((ThLowA[idx1 + 1] * idx2) + ThLowA[idx1]);
2264 SiS_GetFIFOThresholdB300(unsigned short idx1, unsigned short idx2)
2272 return (unsigned short)((ThLowB[idx1 + 1] * idx2) + ThLowB[idx1]);
2279 unsigned short idx1, idx2;
2282 SiS_GetFIFOThresholdIndex300(SiS_Pr, &idx1, &idx2);
2285 longtemp *= SiS_GetFIFOThresholdA300(idx1, idx2);
2287 longtemp *= SiS_GetFIFOThresholdB300(idx1, idx2);
2289 idx1 = longtemp % (MCLK * 16);
2291 if(idx1) longtemp++;