Lines Matching refs:pState

197     PTSTRTR0TIMERS1 pState = (PTSTRTR0TIMERS1)pvUser;
198 uint32_t iShot = ASMAtomicIncU32(&pState->cShots);
201 if (iShot <= RT_ELEMENTS(pState->aShotNsTSes))
202 pState->aShotNsTSes[iShot - 1] = RTTimeSystemNanoTS();
205 if (pState->u.Specific.idCpu != idCpu)
206 pState->u.Specific.fFailed = true;
207 RTR0TESTR0_CHECK_MSG(pState->u.Specific.idCpu == idCpu, ("idCpu=%u, expected %u\n", idCpu, pState->u.Specific.idCpu));
209 if (pState->fPeriodic)
228 PTSTRTR0TIMERS1 pState = (PTSTRTR0TIMERS1)pvUser;
229 uint32_t iShot = ASMAtomicIncU32(&pState->cShots) - 1;
231 if (iShot < RT_ELEMENTS(pState->aShotNsTSes))
232 pState->aShotNsTSes[iShot] = RTTimeSystemNanoTS();
233 if (pState->fPeriodic)
238 if (!(iShot % pState->u.ChgInt.cStepsBetween))
240 if (pState->u.ChgInt.fDirection)
242 pState->u.ChgInt.cNsCurInterval += pState->u.ChgInt.cNsChangeStep;
243 if ( pState->u.ChgInt.cNsCurInterval > pState->u.ChgInt.cNsMaxInterval
244 || pState->u.ChgInt.cNsCurInterval < pState->u.ChgInt.cNsMinInterval
245 || !pState->u.ChgInt.cNsCurInterval)
247 pState->u.ChgInt.cNsCurInterval = pState->u.ChgInt.cNsMaxInterval;
248 pState->u.ChgInt.fDirection = false;
253 pState->u.ChgInt.cNsCurInterval -= pState->u.ChgInt.cNsChangeStep;
254 if ( pState->u.ChgInt.cNsCurInterval < pState->u.ChgInt.cNsMinInterval
255 || pState->u.ChgInt.cNsCurInterval > pState->u.ChgInt.cNsMaxInterval
256 || pState->u.ChgInt.cNsCurInterval)
258 pState->u.ChgInt.cNsCurInterval = pState->u.ChgInt.cNsMinInterval;
259 pState->u.ChgInt.fDirection = true;
263 RTR0TESTR0_CHECK_RC(RTTimerChangeInterval(pTimer, pState->u.ChgInt.cNsCurInterval), VINF_SUCCESS);
266 if (iShot == pState->iActionShot)
267 RTR0TESTR0_CHECK_RC(pState->rc = RTTimerStop(pTimer), VINF_SUCCESS);
280 PTSTRTR0TIMERS1 pState = (PTSTRTR0TIMERS1)pvUser;
281 uint32_t iShot = ASMAtomicIncU32(&pState->cShots);
283 if (iShot <= RT_ELEMENTS(pState->aShotNsTSes))
284 pState->aShotNsTSes[iShot - 1] = RTTimeSystemNanoTS();
285 if (pState->fPeriodic)
290 if (iShot == pState->iActionShot + 1)
291 RTR0TESTR0_CHECK_RC(pState->rc = RTTimerDestroy(pTimer), VINF_SUCCESS);
304 PTSTRTR0TIMERS1 pState = (PTSTRTR0TIMERS1)pvUser;
305 uint32_t iShot = ASMAtomicIncU32(&pState->cShots);
307 if (iShot <= RT_ELEMENTS(pState->aShotNsTSes))
308 pState->aShotNsTSes[iShot - 1] = RTTimeSystemNanoTS();
309 if (pState->fPeriodic)
314 if (iShot == pState->iActionShot + 1)
315 RTR0TESTR0_CHECK_RC(pState->rc = RTTimerStart(pTimer, 10000000 /* 10ms */), VINF_SUCCESS);
328 PTSTRTR0TIMERS1 pState = (PTSTRTR0TIMERS1)pvUser;
329 uint32_t iShot = ASMAtomicIncU32(&pState->cShots);
332 if (iShot <= RT_ELEMENTS(pState->aShotNsTSes))
333 pState->aShotNsTSes[iShot - 1] = RTTimeSystemNanoTS();
334 if (pState->fPeriodic)
367 * @param pState The state.
372 static int tstRTR0TimerCheckShotIntervals(PTSTRTR0TIMERS1 pState, uint64_t uStartNsTS, uint32_t uMin, uint32_t uMax)
377 uint32_t cShots = pState->cShots;
381 uint64_t uThisTS = pState->aShotNsTSes[iShot];