Lines Matching defs:lock
41 #include <sys/lock.h>
480 snprintf(al->al_name, sizeof(al->al_name), "ACPI lock (GPE)");
482 snprintf(al->al_name, sizeof(al->al_name), "ACPI lock (HW)");
485 snprintf(al->al_name, sizeof(al->al_name), "ACPI lock (%p)", al);
568 /* Section 5.2.10.1: global lock acquire/release functions */
573 * Acquire the global lock. If busy, set the pending bit. The caller
574 * will wait for notification from the BIOS that the lock is available
578 acpi_acquire_global_lock(uint32_t *lock)
583 old = *lock;
587 } while (atomic_cmpset_acq_int(lock, old, new) == 0);
593 * Release the global lock, returning whether there is a waiter pending.
595 * releases the lock.
598 acpi_release_global_lock(uint32_t *lock)
603 old = *lock;
605 } while (atomic_cmpset_rel_int(lock, old, new) == 0);