Searched refs:StartTicks (Results 1 - 1 of 1) sorted by relevance

/device/linaro/bootloader/edk2/ArmPlatformPkg/Library/SP804TimerLib/
H A DSP804TimerLib.c95 UINTN StartTicks; // Timer value snapshot at the start of the delay local
100 StartTicks = MmioRead32 (SP804_TIMER_METRONOME_BASE + SP804_TIMER_CURRENT_REG);
123 if (StartTicks >= DelayTicks) {
125 // CurrentTicks must be less than StartTicks and higher than TargetTicks.
129 TargetTicks = StartTicks - DelayTicks;
133 } while ((CurrentTicks > TargetTicks) && (CurrentTicks <= StartTicks));
136 // In this case TargetTicks is larger than StartTicks.
138 // Before the wrap-around, CurrentTicks must be less than StartTicks and less than TargetTicks.
139 // After the wrap-around, CurrentTicks must be larger than StartTicks and larger than TargetTicks.
144 TargetTicks = ((UINTN)SP804_MAX_TICKS - DelayTicks) + StartTicks;
[all...]

Completed in 36 milliseconds