Lines Matching defs:pState
2975 * @param pState The state to update.
2980 DECLINLINE(void) tmR3CpuLoadTimerMakeUpdate(PTMCPULOADSTATE pState,
2986 uint64_t cNsTotalDelta = cNsTotal - pState->cNsPrevTotal;
2987 pState->cNsPrevTotal = cNsTotal;
2989 uint64_t cNsExecutingDelta = cNsExecuting - pState->cNsPrevExecuting;
2990 pState->cNsPrevExecuting = cNsExecuting;
2992 uint64_t cNsHaltedDelta = cNsHalted - pState->cNsPrevHalted;
2993 pState->cNsPrevHalted = cNsHalted;
2998 pState->cPctExecuting = 0;
2999 pState->cPctHalted = 100;
3000 pState->cPctOther = 0;
3004 pState->cPctExecuting = (uint8_t)(cNsExecutingDelta * 100 / cNsTotalDelta);
3005 pState->cPctHalted = (uint8_t)(cNsHaltedDelta * 100 / cNsTotalDelta);
3006 pState->cPctOther = (uint8_t)((cNsTotalDelta - cNsExecutingDelta - cNsHaltedDelta) * 100 / cNsTotalDelta);
3010 pState->cPctExecuting = 0;
3011 pState->cPctHalted = 100;
3012 pState->cPctOther = 0;