Home
last modified time | relevance | path

Searched refs:Ticks (Results 1 – 25 of 26) sorted by relevance

12

/device/linaro/bootloader/edk2/PerformancePkg/Library/TscTimerLib/
DTscTimerLibShare.c55 UINT32 Ticks; in InternalCalculateTscFrequency() local
72 Ticks = IoRead32 (TimerAddr) + (3579); // Set Ticks to 1ms in the future in InternalCalculateTscFrequency()
79 while (((Ticks - IoRead32 (TimerAddr)) & BIT23) == 0) { in InternalCalculateTscFrequency()
105 UINT64 Ticks; in InternalX86Delay() local
110 Ticks = AsmReadTsc() + Delay; in InternalX86Delay()
118 while (AsmReadTsc() <= Ticks) CpuPause(); in InternalX86Delay()
247 IN UINT64 Ticks in GetTimeInNanoSecond() argument
262 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/
DX86TimerLib.c60 INT32 Ticks; in InternalX86Delay() local
90 Ticks = StartTick - GetApicTimerCurrentCount (); in InternalX86Delay()
94 if (Ticks < 0) { in InternalX86Delay()
95 Ticks += InitCount; in InternalX86Delay()
97 } while ((UINT32)Ticks < Delay); in InternalX86Delay()
238 IN UINT64 Ticks in GetTimeInNanoSecond() argument
253 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
DIpfTimerLib.c36 INT64 Ticks; in InternalIpfDelay() local
41 Ticks = (INT64)AsmReadItc () + Delay; in InternalIpfDelay()
48 while (Ticks - (INT64)AsmReadItc() >= 0); in InternalIpfDelay()
188 IN UINT64 Ticks in GetTimeInNanoSecond() argument
203 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/StallSmmLib/
DStallSmm.c58 UINTN Ticks; in SmmStall()
77 Ticks = Microseconds * 358 / 100 + OriginalTick + 1; in SmmStall()
82 Counts = Ticks / V_PCH_ACPI_PM1_TMR_MAX_VAL; in SmmStall()
87 RemainingTick = Ticks % V_PCH_ACPI_PM1_TMR_MAX_VAL; in SmmStall()
/device/linaro/bootloader/edk2/OvmfPkg/Library/AcpiTimerLib/
DAcpiTimerLib.c42 UINT32 Ticks; in InternalAcpiDelay() local
51 Ticks = InternalAcpiGetTimerTick () + Delay; in InternalAcpiDelay()
58 while (((Ticks - InternalAcpiGetTimerTick ()) & BIT23) == 0) { in InternalAcpiDelay()
196 IN UINT64 Ticks in GetTimeInNanoSecond() argument
207 …NanoSeconds = MultU64x32 (DivU64x32Remainder (Ticks, ACPI_TIMER_FREQUENCY, &Remainder), 1000000000… in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/PcAtChipsetPkg/Library/AcpiTimerLib/
DAcpiTimerLib.c155 UINT32 Ticks; in InternalAcpiDelay() local
165 Ticks = IoBitFieldRead32 (Port, 0, 23) + Delay; in InternalAcpiDelay()
172 while (((Ticks - IoBitFieldRead32 (Port, 0, 23)) & BIT23) == 0) { in InternalAcpiDelay()
309 IN UINT64 Ticks in GetTimeInNanoSecond() argument
324 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
362 UINT32 Ticks; in InternalCalculateTscFrequency() local
374 Ticks = IoBitFieldRead32 (TimerAddr, 0, 23) + 363; in InternalCalculateTscFrequency()
383 while (((Ticks - IoBitFieldRead32 (TimerAddr, 0, 23)) & BIT23) == 0) { in InternalCalculateTscFrequency()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformInitPei/
DStall.c58 UINTN Ticks; in Stall()
75 Ticks = Microseconds * 358 / 100 + OriginalTick + 1; in Stall()
80 Counts = (UINTN)RShiftU64((UINT64)Ticks, 24); in Stall()
85 RemainingTick = Ticks & 0xFFFFFF; in Stall()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformPei/
DStall.c57 UINTN Ticks; in Stall()
74 Ticks = Microseconds * 358 / 100 + OriginalTick + 1; in Stall()
79 Counts = (UINTN)RShiftU64((UINT64)Ticks, 24); in Stall()
84 RemainingTick = Ticks & 0xFFFFFF; in Stall()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/IntelPchAcpiTimerLib/
DIntelPchAcpiTimerLib.c93 UINT32 Ticks; in InternalAcpiDelay()
102 Ticks = InternalAcpiGetTimerTick () + Delay; in InternalAcpiDelay()
109 while (((Ticks - InternalAcpiGetTimerTick ()) & BIT23) == 0) { in InternalAcpiDelay()
247 IN UINT64 Ticks in GetTimeInNanoSecond()
258 …NanoSeconds = MultU64x32 (DivU64x32Remainder (Ticks, V_PCH_ACPI_PM1_TMR_FREQUENCY, &Remainder), 10… in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/MdePkg/Library/SecPeiDxeTimerLibCpu/
DX86TimerLib.c157 INT32 Ticks; in InternalX86Delay() local
187 Ticks = StartTick - InternalX86GetTimerTick (ApicBase); in InternalX86Delay()
191 if (Ticks < 0) { in InternalX86Delay()
192 Ticks += InitCount; in InternalX86Delay()
194 } while ((UINT32)Ticks < Delay); in InternalX86Delay()
347 IN UINT64 Ticks in GetTimeInNanoSecond() argument
362 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
DIpfTimerLib.c36 INT64 Ticks; in InternalIpfDelay() local
41 Ticks = (INT64)AsmReadItc () + Delay; in InternalIpfDelay()
48 while (Ticks - (INT64)AsmReadItc() >= 0); in InternalIpfDelay()
188 IN UINT64 Ticks in GetTimeInNanoSecond() argument
203 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/DuetPkg/Library/DuetTimerLib/
DX86TimerLib.c89 UINT32 Ticks; in InternalAcpiDelay() local
98 Ticks = InternalAcpiGetTimerTick () + Delay; in InternalAcpiDelay()
106 …while (((Ticks - InternalAcpiGetTimerTick ()) & (1 << (gAcpiDesc->PM_TMR_BLK.RegisterBitWidth - 1)… in InternalAcpiDelay()
261 IN UINT64 Ticks in GetTimeInNanoSecond() argument
272 NanoSeconds = MultU64x32 (DivU64x32Remainder (Ticks, 3579545, &Remainder), 1000000000u); in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/CorebootPayloadPkg/Library/AcpiTimerLib/
DAcpiTimerLib.c93 UINT32 Ticks; in InternalAcpiDelay() local
102 Ticks = InternalAcpiGetTimerTick () + Delay; in InternalAcpiDelay()
109 while (((Ticks - InternalAcpiGetTimerTick ()) & BIT23) == 0) { in InternalAcpiDelay()
247 IN UINT64 Ticks in GetTimeInNanoSecond() argument
262 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseTimerLibLocalApic/Ipf/
DIpfTimerLib.c45 INT64 Ticks; in InternalIpfDelay() local
50 Ticks = (INT64)AsmReadItc () + Delay; in InternalIpfDelay()
57 while (Ticks - (INT64)AsmReadItc() >= 0); in InternalIpfDelay()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseTimerLibLocalApic/
DX86TimerLib.c134 INT32 Ticks; in InternalX86Delay() local
139 Ticks = InternalX86GetTimerTick (ApicBase) - Delay; in InternalX86Delay()
146 while (InternalX86GetTimerTick (ApicBase) - Ticks >= 0); in InternalX86Delay()
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/
DIp6Nd.c480 ArpQue->Ticks = (UINT32) IP6_GET_TICKS (IP6_DELAY_FIRST_PROBE_TIME); in Ip6OnArpResolved()
1642 Neighbor->Ticks = (UINT32) IP6_INFINIT_LIFETIME; in Ip6ProcessNeighborSolicit()
1843 Neighbor->Ticks = IP6_GET_TICKS (IpSb->ReachableTime); in Ip6ProcessNeighborAdvertise()
1846 Neighbor->Ticks = (UINT32) IP6_INFINIT_LIFETIME; in Ip6ProcessNeighborAdvertise()
1865 Neighbor->Ticks = (UINT32) IP6_INFINIT_LIFETIME; in Ip6ProcessNeighborAdvertise()
1876 Neighbor->Ticks = IP6_GET_TICKS (IpSb->ReachableTime); in Ip6ProcessNeighborAdvertise()
1880 Neighbor->Ticks = (UINT32) IP6_INFINIT_LIFETIME; in Ip6ProcessNeighborAdvertise()
2134 NeighborCache->Ticks = (UINT32) IP6_INFINIT_LIFETIME; in Ip6ProcessRouterAdvertise()
2146 NeighborCache->Ticks = (UINT32) IP6_INFINIT_LIFETIME; in Ip6ProcessRouterAdvertise()
2599 NeighborCache->Ticks = (UINT32) IP6_INFINIT_LIFETIME; in Ip6ProcessRedirect()
[all …]
DIp6Impl.h218 UINT32 Ticks; member
DIp6Nd.h130 UINT32 Ticks; member
DIp6If.c717 NeighborCache->Ticks = (UINT32) IP6_GET_TICKS (IP6_DELAY_FIRST_PROBE_TIME); in Ip6SendFrame()
DIp6Output.c749 NeighborCache->Ticks = IP6_GET_TICKS (IpSb->RetransTimer) + 1; in Ip6Output()
DIp6Driver.c336 IpSb->Ticks = 0; in Ip6CreateService()
/device/linaro/bootloader/edk2/MdePkg/Library/DxeTimerLibEsal/
DDxeTimerLibEsal.c195 IN UINT64 Ticks in GetTimeInNanoSecond() argument
210 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/ArmPkg/Library/ArmArchTimerLib/
DArmArchTimerLib.c259 IN UINT64 Ticks in GetTimeInNanoSecond() argument
274 Ticks, in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/MdePkg/Include/Library/
DTimerLib.h111 IN UINT64 Ticks
/device/linaro/bootloader/edk2/MdePkg/Library/BaseTimerLibNullTemplate/
DTimerLibNull.c129 IN UINT64 Ticks in GetTimeInNanoSecond() argument

12