PopPepComponentSetLatency
VOID __stdcall PopPepComponentSetLatency(POP_PEP_DEVICE *Device, UINT64 ComponentIndex, UINT64 Latency){
POP_PEP_DEVICE *v4;
POP_PEP_DEVICE LatencyIdleState;
char v7;
char v8;
unsigned int ready;
unsigned int v10;
INT64 v11;
INT64 v12;
UINT8 v13;
v13 = 0;
v4 = &Device[50 * (unsigned int)ComponentIndex + 46];
LatencyIdleState = PopPepComponentGetLatencyIdleState((__int64)v4, Latency);
v7 = PopPepLockActivityLink((__int64)Device, (INT64 *)v4, 6u, 1u, &v13);
*((_QWORD *)v4 + 14) = Latency;
v8 = v7;
if( v4[39] != LatencyIdleState )
{
v4[39] = LatencyIdleState;
ready = PopPepCountReadyActivities((unsigned int *)Device, (__int64)v4, 2);
PopPepUpdateIdleState((__int64)Device, v4, 1);
PopPepPromoteActivities((__int64)Device, (__int64)v4, 2);
v10 = PopPepCountReadyActivities((unsigned int *)Device, (__int64)v4, 2);
PopPepRequestWork(ready, v10, v11, v12);
}
PopPepReleaseActivityLink((__int64)Device, (INT64 *)v4, v8, v13);
}Referenced by:
PoFxSetComponentLatency