Lines Matching refs:lock
57 * Separated the lock macros out into machine dependent and independent files;
82 /* Get the simple lock type. */
86 * Lock function prototypes. This needs to be before any lock definitions
90 /* Initializes lock. Always a macro (so that kernel code can use it without
92 void flipc_simple_lock_init(flipc_simple_lock *lock);
94 /* Returns 1 if lock gained, 0 otherwise. */
95 int flipc_simple_lock_try(flipc_simple_lock *lock);
97 /* Returns 1 if lock is locked, 0 otherwise. */
98 int flipc_simple_lock_locked(flipc_simple_lock *lock);
100 /* Releases the lock. */
101 void flipc_simple_lock_release(flipc_simple_lock *lock);
103 /* Take the lock. */
104 void flipc_simple_lock_acquire(flipc_simple_lock *lock);
136 /* Take the lock. Assumes an external define saying how long to
138 #define flipc_simple_lock_acquire(lock) \
142 while (flipc_simple_lock_locked(lock) \
143 || !flipc_simple_lock_try(lock)) \