Home
last modified time | relevance | path

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

123456

/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Library/
DLibrary.c35 IN EFI_LOCK *Lock in CoreAcquireLockOrFail() argument
38 ASSERT (Lock != NULL); in CoreAcquireLockOrFail()
39 ASSERT (Lock->Lock != EfiLockUninitialized); in CoreAcquireLockOrFail()
41 if (Lock->Lock == EfiLockAcquired) { in CoreAcquireLockOrFail()
48 Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl); in CoreAcquireLockOrFail()
50 Lock->Lock = EfiLockAcquired; in CoreAcquireLockOrFail()
67 IN EFI_LOCK *Lock in CoreAcquireLock() argument
70 ASSERT (Lock != NULL); in CoreAcquireLock()
71 ASSERT (Lock->Lock == EfiLockReleased); in CoreAcquireLock()
73 Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl); in CoreAcquireLock()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/
DLock.c27 IN OUT EFI_LOCK *Lock, in EfiInitializeLock() argument
56 Lock->Tpl = Priority; in EfiInitializeLock()
57 Lock->OwnerTpl = 0; in EfiInitializeLock()
58 Lock->Lock = 0; in EfiInitializeLock()
63 IN EFI_LOCK *Lock in EfiAcquireLockOrFail() argument
86 if (Lock->Lock != 0) { in EfiAcquireLockOrFail()
93 Lock->OwnerTpl = gBS->RaiseTPL (Lock->Tpl); in EfiAcquireLockOrFail()
95 Lock->Lock += 1; in EfiAcquireLockOrFail()
101 IN EFI_LOCK *Lock in EfiAcquireLock() argument
122 Status = EfiAcquireLockOrFail (Lock); in EfiAcquireLock()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/X64/
DLock.c33 IN OUT EFI_LOCK *Lock, in EfiInitializeLock() argument
62 Lock->Tpl = Priority; in EfiInitializeLock()
63 Lock->OwnerTpl = 0; in EfiInitializeLock()
64 Lock->Lock = 0; in EfiInitializeLock()
69 IN EFI_LOCK *Lock in EfiAcquireLockOrFail() argument
92 if (Lock->Lock != 0) { in EfiAcquireLockOrFail()
104 Lock->OwnerTpl = gBS->RaiseTPL (Lock->Tpl); in EfiAcquireLockOrFail()
107 Lock->Lock += 1; in EfiAcquireLockOrFail()
113 IN EFI_LOCK *Lock in EfiAcquireLock() argument
134 Status = EfiAcquireLockOrFail (Lock); in EfiAcquireLock()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ia32/
DLock.c33 IN OUT EFI_LOCK *Lock, in EfiInitializeLock() argument
62 Lock->Tpl = Priority; in EfiInitializeLock()
63 Lock->OwnerTpl = 0; in EfiInitializeLock()
64 Lock->Lock = 0; in EfiInitializeLock()
69 IN EFI_LOCK *Lock in EfiAcquireLockOrFail() argument
92 if (Lock->Lock != 0) { in EfiAcquireLockOrFail()
104 Lock->OwnerTpl = gBS->RaiseTPL (Lock->Tpl); in EfiAcquireLockOrFail()
107 Lock->Lock += 1; in EfiAcquireLockOrFail()
113 IN EFI_LOCK *Lock in EfiAcquireLock() argument
134 Status = EfiAcquireLockOrFail (Lock); in EfiAcquireLock()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ipf/
DLock.c36 IN OUT EFI_LOCK *Lock, in EfiInitializeLock() argument
60 Lock->Tpl = Priority; in EfiInitializeLock()
61 Lock->OwnerTpl = 0; in EfiInitializeLock()
62 Lock->Lock = 0; in EfiInitializeLock()
67 IN EFI_LOCK *Lock in EfiAcquireLockOrFail() argument
87 if (Lock->Lock != 0) { in EfiAcquireLockOrFail()
99 Lock->OwnerTpl = gBS->RaiseTPL (Lock->Tpl); in EfiAcquireLockOrFail()
102 Lock->Lock += 1; in EfiAcquireLockOrFail()
108 IN EFI_LOCK *Lock in EfiAcquireLock() argument
128 Status = EfiAcquireLockOrFail (Lock); in EfiAcquireLock()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiLib/
DUefiLib.c266 IN OUT EFI_LOCK *Lock, in GlueEfiInitializeLock() argument
270 ASSERT (Lock != NULL); in GlueEfiInitializeLock()
273 Lock->Tpl = Priority; in GlueEfiInitializeLock()
274 Lock->OwnerTpl = EFI_TPL_APPLICATION; in GlueEfiInitializeLock()
275 Lock->Lock = EfiLockReleased ; in GlueEfiInitializeLock()
276 return Lock; in GlueEfiInitializeLock()
290 IN EFI_LOCK *Lock in GlueEfiAcquireLock() argument
293 ASSERT (Lock != NULL); in GlueEfiAcquireLock()
294 ASSERT (Lock->Lock == EfiLockReleased); in GlueEfiAcquireLock()
296 Lock->OwnerTpl = gBS->RaiseTPL (Lock->Tpl); in GlueEfiAcquireLock()
[all …]
/device/google/cuttlefish_common/common/vsoc/lib/
Dlock_guard.h29 template <typename Lock>
32 explicit LockGuard(Lock* lock) : lock_(lock) { in LockGuard()
33 lock_->Lock(); in LockGuard()
51 Lock* lock_;
56 using Lock = ::vsoc::layout::GuestAndHostLock; variable
59 LockGuard(Lock* lock, RegionView* region) : lock_(lock), region_(region) { in LockGuard()
60 lock_->Lock(region_); in LockGuard()
80 Lock* lock_;
Dcircqueue_impl.h78 lock_.Lock(); in WaitForDataLocked()
106 lock_.Lock(); in WriteReserveLocked()
114 this->lock_.Lock(); in Read()
136 this->lock_.Lock(); in Write()
160 this->lock_.Lock(); in Read()
205 this->lock_.Lock(); in Writev()
/device/linaro/bootloader/edk2/IntelFrameworkPkg/Library/FrameworkUefiLib/
DUefiLib.c374 IN OUT EFI_LOCK *Lock, in EfiInitializeLock() argument
378 ASSERT (Lock != NULL); in EfiInitializeLock()
381 Lock->Tpl = Priority; in EfiInitializeLock()
382 Lock->OwnerTpl = TPL_APPLICATION; in EfiInitializeLock()
383 Lock->Lock = EfiLockReleased ; in EfiInitializeLock()
384 return Lock; in EfiInitializeLock()
403 IN EFI_LOCK *Lock in EfiAcquireLock() argument
406 ASSERT (Lock != NULL); in EfiAcquireLock()
407 ASSERT (Lock->Lock == EfiLockReleased); in EfiAcquireLock()
409 Lock->OwnerTpl = gBS->RaiseTPL (Lock->Tpl); in EfiAcquireLock()
[all …]
/device/google/cuttlefish_common/common/libs/threads/
Dcuttlefish_thread_test.cpp66 mutex_.Lock(); in FastThread()
74 mutex_.Lock(); in FastThread()
86 mutex_.Lock(); in SlowThread()
124 mutex_.Lock(); in SignalThread()
128 mutex_.Lock(); in SignalThread()
133 mutex_.Lock(); in SignalThread()
140 mutex_.Lock(); in WaitThread()
172 mutex_.Lock(); in SignalThread()
176 mutex_.Lock(); in SignalThread()
183 mutex_.Lock(); in WaitThread()
[all …]
/device/linaro/bootloader/edk2/MdePkg/Library/UefiLib/
DUefiLib.c396 IN OUT EFI_LOCK *Lock, in EfiInitializeLock() argument
400 ASSERT (Lock != NULL); in EfiInitializeLock()
403 Lock->Tpl = Priority; in EfiInitializeLock()
404 Lock->OwnerTpl = TPL_APPLICATION; in EfiInitializeLock()
405 Lock->Lock = EfiLockReleased ; in EfiInitializeLock()
406 return Lock; in EfiInitializeLock()
425 IN EFI_LOCK *Lock in EfiAcquireLock() argument
428 ASSERT (Lock != NULL); in EfiAcquireLock()
429 ASSERT (Lock->Lock == EfiLockReleased); in EfiAcquireLock()
431 Lock->OwnerTpl = gBS->RaiseTPL (Lock->Tpl); in EfiAcquireLock()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
DSockInterface.c157 Status = EfiAcquireLockOrFail (&(Sock->Lock)); in SockDestroyChild()
185 EfiReleaseLock (&(Sock->Lock)); in SockDestroyChild()
226 Status = EfiAcquireLockOrFail (&(Sock->Lock)); in SockCreateChild()
240 EfiReleaseLock (&(Sock->Lock)); in SockCreateChild()
273 Status = EfiAcquireLockOrFail (&(Sock->Lock)); in SockConfigure()
292 EfiReleaseLock (&(Sock->Lock)); in SockConfigure()
325 Status = EfiAcquireLockOrFail (&(Sock->Lock)); in SockConnect()
364 EfiReleaseLock (&(Sock->Lock)); in SockConnect()
402 Status = EfiAcquireLockOrFail (&(Sock->Lock)); in SockAccept()
475 EfiReleaseLock (&(Sock->Lock)); in SockAccept()
[all …]
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/
DSockInterface.c155 Status = EfiAcquireLockOrFail (&(Sock->Lock)); in SockDestroyChild()
189 EfiReleaseLock (&(Sock->Lock)); in SockDestroyChild()
231 Status = EfiAcquireLockOrFail (&(Sock->Lock)); in SockCreateChild()
248 EfiReleaseLock (&(Sock->Lock)); in SockCreateChild()
283 Status = EfiAcquireLockOrFail (&(Sock->Lock)); in SockConfigure()
305 EfiReleaseLock (&(Sock->Lock)); in SockConfigure()
337 Status = EfiAcquireLockOrFail (&(Sock->Lock)); in SockConnect()
379 EfiReleaseLock (&(Sock->Lock)); in SockConnect()
416 Status = EfiAcquireLockOrFail (&(Sock->Lock)); in SockAccept()
492 EfiReleaseLock (&(Sock->Lock)); in SockAccept()
[all …]
/device/google/cuttlefish_common/common/vsoc/shm/
Dlock.h65 void Lock() { in Lock() function
167 void Lock();
194 void Lock();
237 void Lock(RegionView*);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
Dcvslock.py110 class Lock: class
187 class ReadLock(Lock):
190 Lock.__init__(self, repository, delay)
204 class WriteLock(Lock):
207 Lock.__init__(self, repository, delay)
/device/linaro/bootloader/OpenPlatformPkg/Drivers/I2c/MvI2cDxe/
DMvI2cDxe.c132 EfiInitializeLock(&I2cMasterContext->Lock, TPL_NOTIFY); in MvI2cInitialiseController()
377 EfiAcquireLock (&I2cMasterContext->Lock); in MvI2cReset()
383 EfiReleaseLock (&I2cMasterContext->Lock); in MvI2cReset()
401 EfiAcquireLock (&I2cMasterContext->Lock); in MvI2cRepeatedStart()
404 EfiReleaseLock (&I2cMasterContext->Lock); in MvI2cRepeatedStart()
425 EfiAcquireLock (&I2cMasterContext->Lock); in MvI2cStart()
427 EfiReleaseLock (&I2cMasterContext->Lock); in MvI2cStart()
441 EfiAcquireLock (&I2cMasterContext->Lock); in MvI2cStop()
445 EfiReleaseLock (&I2cMasterContext->Lock); in MvI2cStop()
465 EfiAcquireLock (&I2cMasterContext->Lock); in MvI2cRead()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/
DEdkIIGlueUefiLib.h169 IN OUT EFI_LOCK *Lock,
215 if ((LockParameter)->Lock != EfiLockAcquired) { \
233 IN EFI_LOCK *Lock
250 IN EFI_LOCK *Lock
264 IN EFI_LOCK *Lock
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Variable/RuntimeDxe/
DVariableDxe.c66 IN OUT EFI_LOCK *Lock, in InitializeLock() argument
70 return EfiInitializeLock (Lock, Priority); in InitializeLock()
88 IN EFI_LOCK *Lock in AcquireLockOnlyAtBootTime() argument
92 EfiAcquireLock (Lock); in AcquireLockOnlyAtBootTime()
111 IN EFI_LOCK *Lock in ReleaseLockOnlyAtBootTime() argument
115 EfiReleaseLock (Lock); in ReleaseLockOnlyAtBootTime()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/FlashDeviceLib/
DFlashDeviceLib.c171 IN BOOLEAN Lock in SpiFlashLock() argument
178 if (Lock) { in SpiFlashLock()
313 IN BOOLEAN Lock in LibFvbFlashDeviceBlockLock() argument
318 Status = SpiFlashLock((UINT8*)PAddress, LbaLength, Lock); in LibFvbFlashDeviceBlockLock()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/
DEfiRuntimeLib.inf37 Ia32/Lock.c
45 X64/Lock.c
52 Ipf/Lock.c
DEfiRuntimeLib_Edk2.inf37 Ia32/Lock.c
47 X64/Lock.c
56 Ipf/Lock.c
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Spi/
DMvSpiDxe.c151 EfiAcquireLock (&SpiMaster->Lock); in SpiSetupTransfer()
181 EfiReleaseLock (&SpiMaster->Lock); in SpiSetupTransfer()
208 EfiAcquireLock (&SpiMaster->Lock); in MvSpiTransfer()
251 EfiReleaseLock (&SpiMaster->Lock); in MvSpiTransfer()
361 EfiInitializeLock (&mSpiMasterInstance->Lock, TPL_NOTIFY); in SpiMasterEntryPoint()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Dxe/Include/
DEfiDriverLib.h567 UINTN Lock; member
572 IN OUT EFI_LOCK *Lock,
609 IN EFI_LOCK *Lock
631 IN EFI_LOCK *Lock
657 IN EFI_LOCK *Lock
/device/linaro/bootloader/edk2/MdePkg/Include/Library/
DUefiLib.h62 EFI_LOCK_STATE Lock; member
281 IN OUT EFI_LOCK *Lock,
321 if ((LockParameter)->Lock != EfiLockAcquired) { \
347 IN EFI_LOCK *Lock
369 IN EFI_LOCK *Lock
388 IN EFI_LOCK *Lock
/device/generic/goldfish-opengl/android-emu/android/base/synchronization/
DAndroidLock.h104 class Lock : public StaticLock {
108 constexpr Lock() = default;
112 ~Lock() { ::pthread_mutex_destroy(&mLock); } in ~Lock()

123456