• Home
  • Raw
  • Download

Lines Matching refs:SiS_Pr

35 int		sisfb_mode_rate_to_dclock(struct SiS_Private *SiS_Pr,
37 int sisfb_mode_rate_to_ddata(struct SiS_Private *SiS_Pr, unsigned char modeno,
39 bool sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno,
42 extern bool SiSInitPtr(struct SiS_Private *SiS_Pr);
43 extern bool SiS_SearchModeID(struct SiS_Private *SiS_Pr, unsigned short *ModeNo,
45 extern void SiS_Generic_ConvertCRData(struct SiS_Private *SiS_Pr, unsigned char *crdata,
49 sisfb_mode_rate_to_dclock(struct SiS_Private *SiS_Pr, unsigned char modeno, in sisfb_mode_rate_to_dclock() argument
57 if(!SiSInitPtr(SiS_Pr)) return 65000; in sisfb_mode_rate_to_dclock()
68 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) { in sisfb_mode_rate_to_dclock()
73 RRTI = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].REFindex; in sisfb_mode_rate_to_dclock()
75 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & HaveWideTiming) { in sisfb_mode_rate_to_dclock()
76 if(SiS_Pr->SiS_UseWide == 1) { in sisfb_mode_rate_to_dclock()
78 ClockIndex = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRTVCLK_WIDE; in sisfb_mode_rate_to_dclock()
81 ClockIndex = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRTVCLK_NORM; in sisfb_mode_rate_to_dclock()
85 ClockIndex = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRTVCLK; in sisfb_mode_rate_to_dclock()
88 Clock = SiS_Pr->SiS_VCLKData[ClockIndex].CLOCK * 1000; in sisfb_mode_rate_to_dclock()
94 sisfb_mode_rate_to_ddata(struct SiS_Private *SiS_Pr, unsigned char modeno, in sisfb_mode_rate_to_ddata() argument
101 if(!SiSInitPtr(SiS_Pr)) return 0; in sisfb_mode_rate_to_ddata()
112 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return 0; in sisfb_mode_rate_to_ddata()
114 RRTI = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].REFindex; in sisfb_mode_rate_to_ddata()
115 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & HaveWideTiming) { in sisfb_mode_rate_to_ddata()
116 if(SiS_Pr->SiS_UseWide == 1) { in sisfb_mode_rate_to_ddata()
118 index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC_WIDE; in sisfb_mode_rate_to_ddata()
121 index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC_NORM; in sisfb_mode_rate_to_ddata()
125 index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC; in sisfb_mode_rate_to_ddata()
128 SiS_Generic_ConvertCRData(SiS_Pr, in sisfb_mode_rate_to_ddata()
129 (unsigned char *)&SiS_Pr->SiS_CRT1Table[index].CR[0], in sisfb_mode_rate_to_ddata()
130 SiS_Pr->SiS_RefIndex[RRTI].XRes, in sisfb_mode_rate_to_ddata()
131 SiS_Pr->SiS_RefIndex[RRTI].YRes, in sisfb_mode_rate_to_ddata()
134 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & 0x8000) in sisfb_mode_rate_to_ddata()
139 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & 0x4000) in sisfb_mode_rate_to_ddata()
145 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & 0x0080) in sisfb_mode_rate_to_ddata()
149 while(SiS_Pr->SiS_EModeIDTable[j].Ext_ModeID != 0xff) { in sisfb_mode_rate_to_ddata()
150 if(SiS_Pr->SiS_EModeIDTable[j].Ext_ModeID == in sisfb_mode_rate_to_ddata()
151 SiS_Pr->SiS_RefIndex[RRTI].ModeID) { in sisfb_mode_rate_to_ddata()
152 if(SiS_Pr->SiS_EModeIDTable[j].Ext_ModeFlag & DoubleScanMode) { in sisfb_mode_rate_to_ddata()
177 sisfb_gettotalfrommode(struct SiS_Private *SiS_Pr, unsigned char modeno, int *htotal, in sisfb_gettotalfrommode() argument
185 if(!SiSInitPtr(SiS_Pr)) return false; in sisfb_gettotalfrommode()
196 if(!(SiS_SearchModeID(SiS_Pr, &ModeNo, &ModeIdIndex))) return false; in sisfb_gettotalfrommode()
198 RRTI = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].REFindex; in sisfb_gettotalfrommode()
199 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & HaveWideTiming) { in sisfb_gettotalfrommode()
200 if(SiS_Pr->SiS_UseWide == 1) { in sisfb_gettotalfrommode()
202 CRT1Index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC_WIDE; in sisfb_gettotalfrommode()
205 CRT1Index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC_NORM; in sisfb_gettotalfrommode()
209 CRT1Index = SiS_Pr->SiS_RefIndex[RRTI].Ext_CRT1CRTC; in sisfb_gettotalfrommode()
212 sr_data = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[14]; in sisfb_gettotalfrommode()
213 cr_data = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[0]; in sisfb_gettotalfrommode()
216 sr_data = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[13]; in sisfb_gettotalfrommode()
217 cr_data = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[6]; in sisfb_gettotalfrommode()
218 cr_data2 = SiS_Pr->SiS_CRT1Table[CRT1Index].CR[7]; in sisfb_gettotalfrommode()
224 if(SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag & InterlaceMode) in sisfb_gettotalfrommode()