/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/StallSmmLib/ |
StallSmm.c | 58 UINTN Ticks;
77 Ticks = Microseconds * 358 / 100 + OriginalTick + 1;
82 Counts = Ticks / V_PCH_ACPI_PM1_TMR_MAX_VAL;
87 RemainingTick = Ticks % V_PCH_ACPI_PM1_TMR_MAX_VAL;
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformInitPei/ |
Stall.c | 58 UINTN Ticks;
75 Ticks = Microseconds * 358 / 100 + OriginalTick + 1;
80 Counts = (UINTN)RShiftU64((UINT64)Ticks, 24);
85 RemainingTick = Ticks & 0xFFFFFF;
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformPei/ |
Stall.c | 57 UINTN Ticks;
74 Ticks = Microseconds * 358 / 100 + OriginalTick + 1;
79 Counts = (UINTN)RShiftU64((UINT64)Ticks, 24);
84 RemainingTick = Ticks & 0xFFFFFF;
|
/device/linaro/bootloader/edk2/PerformancePkg/Library/TscTimerLib/ |
TscTimerLibShare.c | 55 UINT32 Ticks;
72 Ticks = IoRead32 (TimerAddr) + (3579); // Set Ticks to 1ms in the future
77 // When the current ACPI timer value is greater than 'Ticks', the while loop will exit.
79 while (((Ticks - IoRead32 (TimerAddr)) & BIT23) == 0) {
92 /** Stalls the CPU for at least the given number of ticks.
94 Stalls the CPU for at least the given number of ticks. It's invoked by
97 @param[in] Delay A period of time to delay in ticks.
105 UINT64 Ticks;
110 Ticks = AsmReadTsc() + Delay; [all...] |
/device/linaro/bootloader/edk2/OvmfPkg/Library/AcpiTimerLib/ |
AcpiTimerLib.c | 29 Stalls the CPU for at least the given number of ticks.
31 Stalls the CPU for at least the given number of ticks. It's invoked by
34 @param Delay A period of time to delay in ticks.
42 UINT32 Ticks;
51 Ticks = InternalAcpiGetTimerTick () + Delay;
58 while (((Ticks - InternalAcpiGetTimerTick ()) & BIT23) == 0) {
183 Converts elapsed ticks of performance counter to time in nanoseconds.
185 This function converts the elapsed ticks of running performance counter to
188 @param Ticks The number of elapsed ticks of running performance counter. [all...] |
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/IntelPchAcpiTimerLib/ |
IntelPchAcpiTimerLib.c | 79 Stalls the CPU for at least the given number of ticks.
81 Stalls the CPU for at least the given number of ticks. It's invoked by
84 @param Delay A period of time to delay in ticks.
93 UINT32 Ticks;
102 Ticks = InternalAcpiGetTimerTick () + Delay;
109 while (((Ticks - InternalAcpiGetTimerTick ()) & BIT23) == 0) {
234 Converts elapsed ticks of performance counter to time in nanoseconds.
236 This function converts the elapsed ticks of running performance counter to
239 @param Ticks The number of elapsed ticks of running performance counter. [all...] |
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/SecPeiDxeTimerLibUefiCpu/ |
X86TimerLib.c | 43 Stalls the CPU for at least the given number of ticks.
45 Stalls the CPU for at least the given number of ticks. It's invoked by
51 @param Delay A period of time to delay in ticks.
60 INT32 Ticks;
88 // Get Ticks from Start to Current.
90 Ticks = StartTick - GetApicTimerCurrentCount ();
92 // Ticks < 0 means Timer wrap-arounds happens.
94 if (Ticks < 0) {
95 Ticks += InitCount;
97 } while ((UINT32)Ticks < Delay); [all...] |
IpfTimerLib.c | 22 Performs a delay measured as number of ticks.
24 An internal function to perform a delay measured as number of ticks. It's
27 @param Delay The number of ticks to delay.
36 INT64 Ticks;
41 Ticks = (INT64)AsmReadItc () + Delay;
48 while (Ticks - (INT64)AsmReadItc() >= 0);
175 Converts elapsed ticks of performance counter to time in nanoseconds.
177 This function converts the elapsed ticks of running performance counter to
180 @param Ticks The number of elapsed ticks of running performance counter. [all...] |
/device/linaro/bootloader/edk2/MdePkg/Library/SecPeiDxeTimerLibCpu/ |
IpfTimerLib.c | 22 Performs a delay measured as number of ticks.
24 An internal function to perform a delay measured as number of ticks. It's
27 @param Delay The number of ticks to delay.
36 INT64 Ticks;
41 Ticks = (INT64)AsmReadItc () + Delay;
48 while (Ticks - (INT64)AsmReadItc() >= 0);
175 Converts elapsed ticks of performance counter to time in nanoseconds.
177 This function converts the elapsed ticks of running performance counter to
180 @param Ticks The number of elapsed ticks of running performance counter. [all...] |
X86TimerLib.c | 138 Stalls the CPU for at least the given number of ticks.
140 Stalls the CPU for at least the given number of ticks. It's invoked by
147 @param Delay A period of time to delay in ticks.
157 INT32 Ticks;
185 // Get Ticks from Start to Current.
187 Ticks = StartTick - InternalX86GetTimerTick (ApicBase);
189 // Ticks < 0 means Timer wrap-arounds happens.
191 if (Ticks < 0) {
192 Ticks += InitCount;
194 } while ((UINT32)Ticks < Delay); [all...] |
/device/linaro/bootloader/edk2/PcAtChipsetPkg/Library/AcpiTimerLib/ |
AcpiTimerLib.c | 141 Stalls the CPU for at least the given number of ticks.
143 Stalls the CPU for at least the given number of ticks. It's invoked by
146 @param Delay A period of time to delay in ticks.
155 UINT32 Ticks;
165 Ticks = IoBitFieldRead32 (Port, 0, 23) + Delay;
172 while (((Ticks - IoBitFieldRead32 (Port, 0, 23)) & BIT23) == 0) {
296 Converts elapsed ticks of performance counter to time in nanoseconds.
298 This function converts the elapsed ticks of running performance counter to
301 @param Ticks The number of elapsed ticks of running performance counter. [all...] |
/device/linaro/bootloader/edk2/MdePkg/Include/Library/ |
TimerLib.h | 98 Converts elapsed ticks of performance counter to time in nanoseconds.
100 This function converts the elapsed ticks of running performance counter to
103 @param Ticks The number of elapsed ticks of running performance counter.
111 IN UINT64 Ticks
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseTimerLibLocalApic/Ipf/ |
IpfTimerLib.c | 31 Performs a delay measured as number of ticks.
33 An internal function to perform a delay measured as number of ticks. It's
36 @param Delay Number of ticks to delay.
45 INT64 Ticks;
50 Ticks = (INT64)AsmReadItc () + Delay;
57 while (Ticks - (INT64)AsmReadItc() >= 0);
|
/device/linaro/bootloader/edk2/CorebootPayloadPkg/Library/AcpiTimerLib/ |
AcpiTimerLib.c | 80 Stalls the CPU for at least the given number of ticks.
82 Stalls the CPU for at least the given number of ticks. It's invoked by
85 @param Delay A period of time to delay in ticks.
93 UINT32 Ticks;
102 Ticks = InternalAcpiGetTimerTick () + Delay;
109 while (((Ticks - InternalAcpiGetTimerTick ()) & BIT23) == 0) {
234 Converts elapsed ticks of performance counter to time in nanoseconds.
236 This function converts the elapsed ticks of running performance counter to
239 @param Ticks The number of elapsed ticks of running performance counter. [all...] |
/device/linaro/bootloader/edk2/DuetPkg/Library/DuetTimerLib/ |
X86TimerLib.c | 75 Stalls the CPU for at least the given number of ticks.
77 Stalls the CPU for at least the given number of ticks. It's invoked by
80 @param Delay A period of time to delay in ticks.
89 UINT32 Ticks;
98 Ticks = InternalAcpiGetTimerTick () + Delay;
106 while (((Ticks - InternalAcpiGetTimerTick ()) & (1 << (gAcpiDesc->PM_TMR_BLK.RegisterBitWidth - 1))) == 0) {
248 Converts elapsed ticks of performance counter to time in nanoseconds.
250 This function converts the elapsed ticks of running performance counter to
253 @param Ticks The number of elapsed ticks of running performance counter. [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseTimerLibLocalApic/ |
X86TimerLib.c | 118 Stalls the CPU for at least the given number of ticks.
120 Stalls the CPU for at least the given number of ticks. It's invoked by
124 @param Delay A period of time to delay in ticks.
134 INT32 Ticks;
139 Ticks = InternalX86GetTimerTick (ApicBase) - Delay;
146 while (InternalX86GetTimerTick (ApicBase) - Ticks >= 0);
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseTimerLibNullTemplate/ |
TimerLibNull.c | 116 Converts elapsed ticks of performance counter to time in nanoseconds.
118 This function converts the elapsed ticks of running performance counter to
121 @param Ticks The number of elapsed ticks of running performance counter.
129 IN UINT64 Ticks
|
/device/linaro/bootloader/edk2/ArmPkg/Library/ArmArchTimerLib/ |
ArmArchTimerLib.c | 52 // Check if ticks/uS is not 0. The Architectural timer runs at constant
126 // Calculate counter ticks that represent requested delay:
246 Converts elapsed ticks of performance counter to time in nanoseconds.
248 This function converts the elapsed ticks of running performance counter to
251 @param Ticks The number of elapsed ticks of running performance counter.
259 IN UINT64 Ticks
268 // Ticks
274 Ticks,
|
/device/linaro/bootloader/edk2/MdePkg/Library/DxeTimerLibEsal/ |
DxeTimerLibEsal.c | 182 Converts elapsed ticks of performance counter to time in nanoseconds.
184 This function converts the elapsed ticks of running performance counter to
187 @param Ticks The number of elapsed ticks of running performance counter.
195 IN UINT64 Ticks
206 // Ticks
210 NanoSeconds = MultU64x32 (DivU64x64Remainder (Ticks, Frequency, &Remainder), 1000000000u);
|
/external/webrtc/webrtc/system_wrappers/source/ |
tick_util.cc | 18 return TicksToMilliseconds(TickTime::Now().Ticks()); 22 return TicksToMicroseconds(TickTime::Now().Ticks()); 44 int64_t TickTime::TicksToMilliseconds(const int64_t ticks) { 46 return ticks; 48 return ticks / 1000000LL; 57 return ticks * timebase_microsecond_fract; 59 return ticks; 63 int64_t TickTime::TicksToMicroseconds(const int64_t ticks) { 65 return ticks * 1000LL; 67 return ticks / 1000LL [all...] |
/external/webrtc/webrtc/modules/video_capture/ |
video_capture_impl.cc | 105 if (_lastProcessFrameCount.Ticks() == _incomingFrameTimes[0].Ticks() && 114 else if (_lastProcessFrameCount.Ticks() != _incomingFrameTimes[0].Ticks() && 377 if (_incomingFrameTimes[num].Ticks() <= 0
|
/external/webrtc/talk/app/webrtc/java/jni/ |
androidmediacodeccommon.h | 83 return webrtc::TickTime::Now().Ticks() / 1000000LL;
|
/external/webrtc/webrtc/system_wrappers/include/ |
tick_util.h | 41 explicit TickTime(int64_t ticks); 52 // Returns the number of ticks in the tick domain. 53 int64_t Ticks() const; 57 static int64_t TicksToMilliseconds(const int64_t ticks); 59 static int64_t TicksToMicroseconds(const int64_t ticks); 61 // Returns a TickTime that is ticks later than the passed TickTime. 62 friend TickTime operator+(const TickTime lhs, const int64_t ticks); 63 TickTime& operator+=(const int64_t& ticks); 65 // Returns a TickInterval that is the difference in ticks beween rhs and lhs. 74 // Represents a time delta in ticks [all...] |
/device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/ |
Ip6Nd.c | 480 ArpQue->Ticks = (UINT32) IP6_GET_TICKS (IP6_DELAY_FIRST_PROBE_TIME);
[all...] |
/external/swiftshader/src/Device/ |
QuadRasterizer.cpp | 47 Long pixelTime = Ticks(); 82 cycles[PERF_PIXEL] = Ticks() - pixelTime;
|