Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/Omap35xxPkg/Library/Omap35xxTimerLib/
DTimerLib.c63 UINT64 NanoSeconds; in MicroSecondDelay() local
65 NanoSeconds = MultU64x32(MicroSeconds, 1000); in MicroSecondDelay()
67 while (NanoSeconds > (UINTN)-1) { in MicroSecondDelay()
69 NanoSeconds -= (UINTN)-1; in MicroSecondDelay()
72 NanoSecondDelay(NanoSeconds); in MicroSecondDelay()
80 IN UINTN NanoSeconds in NanoSecondDelay() argument
89 Delay = (NanoSeconds / PcdGet32(PcdEmbeddedPerformanceCounterPeriodInNanoseconds)) + 1; in NanoSecondDelay()
101 NanoSeconds = ElapsedTime * PcdGet32(PcdEmbeddedPerformanceCounterPeriodInNanoseconds); in NanoSecondDelay()
103 return NanoSeconds; in NanoSecondDelay()
/device/linaro/bootloader/OpenPlatformPkg/Chips/TexasInstruments/Omap35xx/Library/Omap35xxTimerLib/
DTimerLib.c63 UINT64 NanoSeconds; in MicroSecondDelay() local
65 NanoSeconds = MultU64x32(MicroSeconds, 1000); in MicroSecondDelay()
67 while (NanoSeconds > (UINTN)-1) { in MicroSecondDelay()
69 NanoSeconds -= (UINTN)-1; in MicroSecondDelay()
72 NanoSecondDelay(NanoSeconds); in MicroSecondDelay()
80 IN UINTN NanoSeconds in NanoSecondDelay() argument
89 Delay = (NanoSeconds / PcdGet32(PcdEmbeddedPerformanceCounterPeriodInNanoseconds)) + 1; in NanoSecondDelay()
101 NanoSeconds = ElapsedTime * PcdGet32(PcdEmbeddedPerformanceCounterPeriodInNanoseconds); in NanoSecondDelay()
103 return NanoSeconds; in NanoSecondDelay()
/device/linaro/bootloader/edk2/OvmfPkg/Library/AcpiTimerLib/
DAcpiTimerLib.c105 IN UINTN NanoSeconds in NanoSecondDelay() argument
111 NanoSeconds, in NanoSecondDelay()
117 return NanoSeconds; in NanoSecondDelay()
199 UINT64 NanoSeconds; in GetTimeInNanoSecond() local
207NanoSeconds = MultU64x32 (DivU64x32Remainder (Ticks, ACPI_TIMER_FREQUENCY, &Remainder), 1000000000… in GetTimeInNanoSecond()
213 NanoSeconds += DivU64x32 (MultU64x32 ((UINT64) Remainder, 1000000000u), ACPI_TIMER_FREQUENCY); in GetTimeInNanoSecond()
215 return NanoSeconds; in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/DuetPkg/Library/DuetTimerLib/
DX86TimerLib.c158 IN UINTN NanoSeconds in NanoSecondDelay() argument
162 return NanoSeconds; in NanoSecondDelay()
168 NanoSeconds, in NanoSecondDelay()
174 return NanoSeconds; in NanoSecondDelay()
264 UINT64 NanoSeconds; in GetTimeInNanoSecond() local
272 NanoSeconds = MultU64x32 (DivU64x32Remainder (Ticks, 3579545, &Remainder), 1000000000u); in GetTimeInNanoSecond()
278 NanoSeconds += DivU64x32 (MultU64x32 ((UINT64) Remainder, 1000000000u), 3579545); in GetTimeInNanoSecond()
280 return NanoSeconds; in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/IntelPchAcpiTimerLib/
DIntelPchAcpiTimerLib.c156 IN UINTN NanoSeconds in NanoSecondDelay()
162 NanoSeconds, in NanoSecondDelay()
168 return NanoSeconds; in NanoSecondDelay()
250 UINT64 NanoSeconds; in GetTimeInNanoSecond()
258NanoSeconds = MultU64x32 (DivU64x32Remainder (Ticks, V_PCH_ACPI_PM1_TMR_FREQUENCY, &Remainder), 10… in GetTimeInNanoSecond()
264NanoSeconds += DivU64x32 (MultU64x32 ((UINT64) Remainder, 1000000000u), V_PCH_ACPI_PM1_TMR_FREQUEN… in GetTimeInNanoSecond()
266 return NanoSeconds; in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/MdePkg/Library/DxeTimerLibEsal/
DDxeTimerLibEsal.c71 IN UINTN NanoSeconds in NanoSecondDelay() argument
81 MicroSeconds = DivU64x32 (NanoSeconds + 999, 1000); in NanoSecondDelay()
94 return NanoSeconds; in NanoSecondDelay()
199 UINT64 NanoSeconds; in GetTimeInNanoSecond() local
210 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
220 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
222 return NanoSeconds; in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/
DIpfTimerLib.c88 IN UINTN NanoSeconds in NanoSecondDelay() argument
93 NanoSeconds / in NanoSecondDelay()
96 return NanoSeconds; in NanoSecondDelay()
192 UINT64 NanoSeconds; in GetTimeInNanoSecond() local
203 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
213 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
215 return NanoSeconds; in GetTimeInNanoSecond()
DX86TimerLib.c148 IN UINTN NanoSeconds in NanoSecondDelay() argument
155 NanoSeconds in NanoSecondDelay()
160 return NanoSeconds; in NanoSecondDelay()
242 UINT64 NanoSeconds; in GetTimeInNanoSecond() local
253 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
263 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
265 return NanoSeconds; in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/MdePkg/Library/SecPeiDxeTimerLibCpu/
DIpfTimerLib.c88 IN UINTN NanoSeconds in NanoSecondDelay() argument
93 NanoSeconds / in NanoSecondDelay()
96 return NanoSeconds; in NanoSecondDelay()
192 UINT64 NanoSeconds; in GetTimeInNanoSecond() local
203 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
213 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
215 return NanoSeconds; in GetTimeInNanoSecond()
DX86TimerLib.c249 IN UINTN NanoSeconds in NanoSecondDelay() argument
260 NanoSeconds in NanoSecondDelay()
265 return NanoSeconds; in NanoSecondDelay()
351 UINT64 NanoSeconds; in GetTimeInNanoSecond() local
362 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
372 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
374 return NanoSeconds; in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/PerformancePkg/Library/TscTimerLib/
DTscTimerLibShare.c156 IN UINTN NanoSeconds in NanoSecondDelay() argument
163 (UINT32)NanoSeconds in NanoSecondDelay()
168 return NanoSeconds; in NanoSecondDelay()
251 UINT64 NanoSeconds; in GetTimeInNanoSecond() local
262 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
272 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
274 return NanoSeconds; in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/CorebootPayloadPkg/Library/AcpiTimerLib/
DAcpiTimerLib.c156 IN UINTN NanoSeconds in NanoSecondDelay() argument
162 NanoSeconds, in NanoSecondDelay()
168 return NanoSeconds; in NanoSecondDelay()
251 UINT64 NanoSeconds; in GetTimeInNanoSecond() local
262 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
272 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
274 return NanoSeconds; in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/PcAtChipsetPkg/Library/AcpiTimerLib/
DAcpiTimerLib.c219 IN UINTN NanoSeconds in NanoSecondDelay() argument
225 NanoSeconds, in NanoSecondDelay()
231 return NanoSeconds; in NanoSecondDelay()
313 UINT64 NanoSeconds; in GetTimeInNanoSecond() local
324 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u); in GetTimeInNanoSecond()
334 NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL); in GetTimeInNanoSecond()
336 return NanoSeconds; in GetTimeInNanoSecond()
/device/linaro/bootloader/edk2/EmulatorPkg/Library/DxeTimerLib/
DDxeTimerLib.c90 IN UINTN NanoSeconds in NanoSecondDelay() argument
98 ((UINT64)NanoSeconds > gTimerPeriod) && in NanoSecondDelay()
104 HundredNanoseconds = DivU64x32 (NanoSeconds, 100); in NanoSecondDelay()
112 gEmuThunk->Sleep (NanoSeconds); in NanoSecondDelay()
114 return NanoSeconds; in NanoSecondDelay()
/device/linaro/bootloader/edk2/EmulatorPkg/Library/DxeCoreTimerLib/
DDxeCoreTimerLib.c59 IN UINTN NanoSeconds in NanoSecondDelay() argument
62 gEmuThunk->Sleep (NanoSeconds); in NanoSecondDelay()
63 return NanoSeconds; in NanoSecondDelay()
/device/linaro/bootloader/edk2/ArmPkg/Library/ArmArchTimerLib/
DArmArchTimerLib.c155 IN UINTN NanoSeconds in NanoSecondDelay() argument
161 MicroSeconds = NanoSeconds / 1000; in NanoSecondDelay()
162 MicroSeconds += ((NanoSeconds % 1000) == 0) ? 0 : 1; in NanoSecondDelay()
166 return NanoSeconds; in NanoSecondDelay()
/device/linaro/bootloader/edk2/ArmPlatformPkg/Library/SP804TimerLib/
DSP804TimerLib.c176 IN UINTN NanoSeconds in NanoSecondDelay() argument
182 MicroSeconds = NanoSeconds / 1000; in NanoSecondDelay()
183 MicroSeconds += ((NanoSeconds % 1000) == 0) ? 0 : 1; in NanoSecondDelay()
187 return NanoSeconds; in NanoSecondDelay()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseTimerLibLocalApic/Ipf/
DIpfTimerLib.c97 IN UINTN NanoSeconds in NanoSecondDelay() argument
102 NanoSeconds / in NanoSecondDelay()
105 return NanoSeconds; in NanoSecondDelay()
/device/linaro/bootloader/edk2/EmulatorPkg/Library/PeiTimerLib/
DPeiTimerLib.c55 IN UINTN NanoSeconds in NanoSecondDelay() argument
73 Thunk->Sleep (NanoSeconds * 100); in NanoSecondDelay()
74 return NanoSeconds; in NanoSecondDelay()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseTimerLibLocalApic/
DX86TimerLib.c194 IN UINTN NanoSeconds in NanoSecondDelay() argument
205 NanoSeconds in NanoSecondDelay()
210 return NanoSeconds; in NanoSecondDelay()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseTimerLibLocalApic/Ebc/
DEbcTimerLib.c65 IN UINTN NanoSeconds in NanoSecondDelay() argument
72 return NanoSeconds; in NanoSecondDelay()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/
DEdkIIGlueTimerLib.h55 IN UINTN NanoSeconds
/device/linaro/bootloader/edk2/MdePkg/Include/Library/
DTimerLib.h47 IN UINTN NanoSeconds
/device/linaro/bootloader/edk2/MdePkg/Library/BaseTimerLibNullTemplate/
DTimerLibNull.c52 IN UINTN NanoSeconds in NanoSecondDelay() argument
/device/linaro/bootloader/edk2/AppPkg/Applications/Sockets/TftpServer/
DTftpServer.c1085 UINT64 NanoSeconds; in TftpAck() local
1098 NanoSeconds = GetTimeInNanoSecond ( DeltaTime ); in TftpAck()
1103 DivU64x32 ( NanoSeconds, 1000 * 1000 * 1000 ), in TftpAck()
1104 ((UINT32)DivU64x32 ( NanoSeconds, 1000 * 1000 )) % 1000 )); in TftpAck()
1110 Bandwidth /= NanoSeconds; in TftpAck()
1992 UINT64 NanoSeconds; in WindowAck() local
2009 NanoSeconds = GetTimeInNanoSecond ( DeltaTime ); in WindowAck()
2011 pContext->Rtt2x += NanoSeconds + NanoSeconds - DeltaTime; in WindowAck()