Lines Matching defs:lock
1220 * Section 5.2.10.1: global lock acquire/release functions */
1225 * Acquire the global lock. If busy, set the pending bit. The caller
1226 * will wait for notification from the BIOS that the lock is available
1230 AcpiOsAcquireGlobalLock(volatile uint32_t *lock)
1236 oldValue = *lock;
1240 } while (atomic_test_and_set((int32*)lock, newValue, oldValue) != (int32)oldValue);
1249 * Release the global lock, returning whether there is a waiter pending.
1251 * releases the lock.
1254 AcpiOsReleaseGlobalLock(volatile uint32_t *lock)
1260 oldValue = *lock;
1262 } while (atomic_test_and_set((int32*)lock, newValue, oldValue) != (int32)oldValue);