Lines Matching refs:SiS_Pr

22 int		sisfb_mode_rate_to_dclock(struct SiS_Private *SiS_Pr,
24 int sisfb_mode_rate_to_ddata(struct SiS_Private *SiS_Pr, unsigned char modeno,
26 bool sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno,
29 extern bool SiSInitPtr(struct SiS_Private *SiS_Pr);
30 extern bool SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo,
32 extern void SiS_Generic_ConvertCRData(struct SiS_Private *SiS_Pr, unsigned char *crdata,
36 sisfb_mode_rate_to_dclock(struct SiS_Private *SiS_Pr, unsigned char modeno, in sisfb_mode_rate_to_dclock() argument
44 if(!SiSInitPtr(SiS_Pr)) return 65000; in sisfb_mode_rate_to_dclock()
55 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) { in sisfb_mode_rate_to_dclock()
60 RRTI = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].REFindex; in sisfb_mode_rate_to_dclock()
62 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & HaveWideTiming) { in sisfb_mode_rate_to_dclock()
63 if(SiS_Pr->SiS_UseWide == 1) { in sisfb_mode_rate_to_dclock()
65 ClockIndex = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRTVCLK_WIDE; in sisfb_mode_rate_to_dclock()
68 ClockIndex = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRTVCLK_NORM; in sisfb_mode_rate_to_dclock()
72 ClockIndex = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRTVCLK; in sisfb_mode_rate_to_dclock()
75 Clock = SiS_Pr->SiS_VCLKData[ClockIndex].CLOCK * 1000; in sisfb_mode_rate_to_dclock()
81 sisfb_mode_rate_to_ddata(struct SiS_Private *SiS_Pr, unsigned char modeno, in sisfb_mode_rate_to_ddata() argument
88 if(!SiSInitPtr(SiS_Pr)) return 0; in sisfb_mode_rate_to_ddata()
99 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return 0; in sisfb_mode_rate_to_ddata()
101 RRTI = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].REFindex; in sisfb_mode_rate_to_ddata()
102 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & HaveWideTiming) { in sisfb_mode_rate_to_ddata()
103 if(SiS_Pr->SiS_UseWide == 1) { in sisfb_mode_rate_to_ddata()
105 index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC_WIDE; in sisfb_mode_rate_to_ddata()
108 index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC_NORM; in sisfb_mode_rate_to_ddata()
112 index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC; in sisfb_mode_rate_to_ddata()
115 SiS_Generic_ConvertCRData(SiS_Pr, in sisfb_mode_rate_to_ddata()
116 (unsigned char *)&SiS_Pr->SiS_CRT1Table[index].CR[0], in sisfb_mode_rate_to_ddata()
117 SiS_Pr->SiS_RefIndex[RRTI].XRes, in sisfb_mode_rate_to_ddata()
118 SiS_Pr->SiS_RefIndex[RRTI].YRes, in sisfb_mode_rate_to_ddata()
121 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & 0x8000) in sisfb_mode_rate_to_ddata()
126 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & 0x4000) in sisfb_mode_rate_to_ddata()
132 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & 0x0080) in sisfb_mode_rate_to_ddata()
136 while(SiS_Pr->SiS_EModeIDTable[j].Ext_ModeID != 0xff) { in sisfb_mode_rate_to_ddata()
137 if(SiS_Pr->SiS_EModeIDTable[j].Ext_ModeID == in sisfb_mode_rate_to_ddata()
138 SiS_Pr->SiS_RefIndex[RRTI].ModeID) { in sisfb_mode_rate_to_ddata()
139 if(SiS_Pr->SiS_EModeIDTable[j].Ext_ModeFlag & DoubleScanMode) { in sisfb_mode_rate_to_ddata()
164 sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *htotal, in sisfb_gettotalfrommode() argument
172 if(!SiSInitPtr(SiS_Pr)) return false; in sisfb_gettotalfrommode()
183 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return false; in sisfb_gettotalfrommode()
185 RRTI = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].REFindex; in sisfb_gettotalfrommode()
186 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & HaveWideTiming) { in sisfb_gettotalfrommode()
187 if(SiS_Pr->SiS_UseWide == 1) { in sisfb_gettotalfrommode()
189 CRT1Index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC_WIDE; in sisfb_gettotalfrommode()
192 CRT1Index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC_NORM; in sisfb_gettotalfrommode()
196 CRT1Index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC; in sisfb_gettotalfrommode()
199 sr_data = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[14]; in sisfb_gettotalfrommode()
200 cr_data = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[0]; in sisfb_gettotalfrommode()
203 sr_data = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[13]; in sisfb_gettotalfrommode()
204 cr_data = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[6]; in sisfb_gettotalfrommode()
205 cr_data2 = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[7]; in sisfb_gettotalfrommode()
211 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & InterlaceMode) in sisfb_gettotalfrommode()