Lines Matching defs:index

880 SiS_SetReg(SISIOADDRESS port, u8 index, u8 data)
882 outb(index, port);
905 SiS_GetReg(SISIOADDRESS port, u8 index)
907 outb(index, port);
1546 unsigned short index;
1548 index = SiS_Get310DRAMType(SiS_Pr);
1551 return((unsigned short)(SISGETROMW((0x90 + (index * 5) + 3))));
1553 return(SiS_Pr->SiS_MCLKData_0[index].CLOCK);
1554 } else if(index >= 4) {
1555 return(SiS_Pr->SiS_MCLKData_1[index - 4].CLOCK);
1557 return(SiS_Pr->SiS_MCLKData_0[index].CLOCK);
1639 unsigned short index;
1642 index = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_StTableIndex;
1644 if(SiS_Pr->SiS_ModeType <= ModeEGA) index = 0x1B;
1645 else index = 0x0F;
1647 return index;
1783 short index;
1794 index = (modeflag & ModeTypeMask) - ModeEGA;
1795 if(index < 0) index = 0;
1796 return ColorDepth[index];
1963 SiS_SetRegByte(SiS_Pr->SiS_P3c0,i); /* set index */
1968 SiS_SetRegByte(SiS_Pr->SiS_P3c0,0x14); /* set index */
2180 unsigned short index = 0, clka, clkb;
2186 index = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RRTI);
2190 if((index == 0x21) && (SiS_Pr->Alternate1600x1200)) index = 0x72;
2191 clka = SiS_Pr->SiS_VBVCLKData[index].Part4_A;
2192 clkb = SiS_Pr->SiS_VBVCLKData[index].Part4_B;
2194 clka = SiS_Pr->SiS_VCLKData[index].SR2B;
2195 clkb = SiS_Pr->SiS_VCLKData[index].SR2C;
2306 unsigned short temp, index, VCLK, MCLK, colorth;
2315 index = SiS_GetRefCRTVCLK(SiS_Pr, RefreshRateTableIndex, SiS_Pr->SiS_UseWide);
2316 VCLK = SiS_Pr->SiS_VCLKData[index].CLOCK;
2323 index = SiS_GetReg(SiS_Pr->SiS_P3c4,0x3A) & 0x07;
2324 MCLK = SiS_Pr->SiS_MCLKData_0[index].CLOCK;
2359 SiS_GetLatencyFactor630(struct SiS_Private *SiS_Pr, unsigned short index)
2380 return (unsigned short)LatencyFactor730[index];
2382 return (unsigned short)LatencyFactor[index];
2389 unsigned short index;
2392 index = ((key & 0x0f) * 3) + ((key & 0xc0) >> 6);
2394 index = (key & 0xe0) >> 5;
2395 if(key & 0x10) index += 6;
2396 if(!(key & 0x01)) index += 24;
2397 if(SiS_GetReg(SiS_Pr->SiS_P3c4,0x14) & 0x80) index += 12;
2399 return SiS_GetLatencyFactor630(SiS_Pr, index);
2576 unsigned short data = 0, VCLK = 0, index = 0;
2582 index = SiS_GetVCLK2Ptr(SiS_Pr, ModeNo, ModeIdIndex, RefreshRateTableIndex);
2583 VCLK = SiS_Pr->SiS_VCLKData[index].CLOCK;