Lines Matching refs:M_DIMINFO
129 #define M_DIMINFO pAC->DynIrqModInfo in SkDimModerate() macro
132 if (M_DIMINFO.IntModTypeSelect == C_INT_MOD_DYNAMIC) { in SkDimModerate()
140 } else if (CurrSysLoad > M_DIMINFO.PrevSysLoad) { in SkDimModerate()
141 LoadIncrease = (CurrSysLoad - M_DIMINFO.PrevSysLoad); in SkDimModerate()
142 if (LoadIncrease > ((M_DIMINFO.PrevSysLoad * in SkDimModerate()
160 M_DIMINFO.PrevSysLoad = CurrSysLoad; in SkDimModerate()
163 if (M_DIMINFO.IntModTypeSelect == C_INT_MOD_DYNAMIC) { in SkDimModerate()
164 ThresholdInts = ((M_DIMINFO.MaxModIntsPerSec * in SkDimModerate()
174 M_DIMINFO.MaxModIntsPerSec = in SkDimModerate()
175 (M_DIMINFO.MaxModIntsPerSecUpperLimit + in SkDimModerate()
176 M_DIMINFO.MaxModIntsPerSecLowerLimit) / 2; in SkDimModerate()
183 if (M_DIMINFO.AutoSizing) { in SkDimModerate()
193 if (M_DIMINFO.DisplayStats) { in SkDimModerate()
199 M_DIMINFO.NbrProcessedDescr = 0; in SkDimModerate()
237 if (M_DIMINFO.IntModTypeSelect == C_INT_MOD_STATIC) { in SkDimEnableModerationIfNeeded()
239 } else if (M_DIMINFO.IntModTypeSelect == C_INT_MOD_DYNAMIC) { in SkDimEnableModerationIfNeeded()
241 if (M_DIMINFO.DisplayStats) { in SkDimEnableModerationIfNeeded()
245 if (M_DIMINFO.DisplayStats) { in SkDimEnableModerationIfNeeded()
329 SystemLoad = ( 100 * (UsedTime - M_DIMINFO.PrevUsedTime) ) / in GetCurrentSystemLoad()
330 (TotalTime - M_DIMINFO.PrevTotalTime); in GetCurrentSystemLoad()
332 if (M_DIMINFO.DisplayStats) { in GetCurrentSystemLoad()
336 M_DIMINFO.PrevTotalTime = TotalTime; in GetCurrentSystemLoad()
337 M_DIMINFO.PrevUsedTime = UsedTime; in GetCurrentSystemLoad()
489 if (M_DIMINFO.DisplayStats) { in EnableIntMod()
491 M_DIMINFO.MaxModIntsPerSec); in EnableIntMod()
509 if (M_DIMINFO.DisplayStats) { in DisableIntMod()
541 if (M_DIMINFO.IntModTypeSelect != C_INT_MOD_DYNAMIC) { in ResizeDimTimerDuration()
544 if (M_DIMINFO.ModJustEnabled) { in ResizeDimTimerDuration()
545 M_DIMINFO.ModJustEnabled = SK_FALSE; in ResizeDimTimerDuration()
556 UsedDescrRatio = (M_DIMINFO.NbrProcessedDescr * 100) / TotalMaxNbrDescr; in ResizeDimTimerDuration()
558 if (UsedDescrRatio > M_DIMINFO.PrevUsedDescrRatio) { in ResizeDimTimerDuration()
559 RatioDiffAbs = (UsedDescrRatio - M_DIMINFO.PrevUsedDescrRatio); in ResizeDimTimerDuration()
561 M_DIMINFO.PrevUsedDescrRatio = UsedDescrRatio; in ResizeDimTimerDuration()
563 } else if (UsedDescrRatio < M_DIMINFO.PrevUsedDescrRatio) { in ResizeDimTimerDuration()
564 RatioDiffAbs = (M_DIMINFO.PrevUsedDescrRatio - UsedDescrRatio); in ResizeDimTimerDuration()
565 RatioDiffRel = (RatioDiffAbs * 100) / M_DIMINFO.PrevUsedDescrRatio; in ResizeDimTimerDuration()
566 M_DIMINFO.PrevUsedDescrRatio = UsedDescrRatio; in ResizeDimTimerDuration()
569 RatioDiffAbs = (M_DIMINFO.PrevUsedDescrRatio - UsedDescrRatio); in ResizeDimTimerDuration()
570 RatioDiffRel = (RatioDiffAbs * 100) / M_DIMINFO.PrevUsedDescrRatio; in ResizeDimTimerDuration()
571 M_DIMINFO.PrevUsedDescrRatio = UsedDescrRatio; in ResizeDimTimerDuration()
589 NewMaxModIntsPerSec = M_DIMINFO.MaxModIntsPerSec + in ResizeDimTimerDuration()
590 (M_DIMINFO.MaxModIntsPerSec * ModAdjValue) / 100; in ResizeDimTimerDuration()
592 NewMaxModIntsPerSec = M_DIMINFO.MaxModIntsPerSec - in ResizeDimTimerDuration()
593 (M_DIMINFO.MaxModIntsPerSec * ModAdjValue) / 100; in ResizeDimTimerDuration()
599 if ( (NewMaxModIntsPerSec > M_DIMINFO.MaxModIntsPerSecUpperLimit) || in ResizeDimTimerDuration()
600 (NewMaxModIntsPerSec < M_DIMINFO.MaxModIntsPerSecLowerLimit)) { in ResizeDimTimerDuration()
601 if (M_DIMINFO.DisplayStats) { in ResizeDimTimerDuration()
603 M_DIMINFO.MaxModIntsPerSec, NewMaxModIntsPerSec); in ResizeDimTimerDuration()
607 if (M_DIMINFO.DisplayStats) { in ResizeDimTimerDuration()
609 M_DIMINFO.MaxModIntsPerSec, NewMaxModIntsPerSec); in ResizeDimTimerDuration()
613 M_DIMINFO.MaxModIntsPerSec = NewMaxModIntsPerSec; in ResizeDimTimerDuration()
718 M_DIMINFO.NbrProcessedDescr, TotalMaxNbrDescr); in DisplayDescrRatio()