| /freebsd-12.1/contrib/unbound/util/ |
| H A D | locks.h | 262 #define lock_rw_init(lock) /* nop */ argument 263 #define lock_rw_destroy(lock) /* nop */ argument 264 #define lock_rw_rdlock(lock) /* nop */ argument 265 #define lock_rw_wrlock(lock) /* nop */ argument 266 #define lock_rw_unlock(lock) /* nop */ argument 270 #define lock_basic_init(lock) /* nop */ argument 272 #define lock_basic_lock(lock) /* nop */ argument 273 #define lock_basic_unlock(lock) /* nop */ argument 277 #define lock_quick_init(lock) /* nop */ argument 279 #define lock_quick_lock(lock) /* nop */ argument [all …]
|
| /freebsd-12.1/contrib/gcclibs/libgomp/config/posix95/ |
| H A D | lock.c | 38 omp_init_lock (omp_lock_t *lock) in omp_init_lock() 44 omp_destroy_lock (omp_lock_t *lock) in omp_destroy_lock() 50 omp_set_lock (omp_lock_t *lock) in omp_set_lock() 56 omp_unset_lock (omp_lock_t *lock) in omp_unset_lock() 62 omp_test_lock (omp_lock_t *lock) in omp_test_lock() 68 omp_init_nest_lock (omp_nest_lock_t *lock) in omp_init_nest_lock() 76 omp_destroy_nest_lock (omp_nest_lock_t *lock) in omp_destroy_nest_lock() 82 omp_set_nest_lock (omp_nest_lock_t *lock) in omp_set_nest_lock() 96 omp_unset_nest_lock (omp_nest_lock_t *lock) in omp_unset_nest_lock() 108 omp_test_nest_lock (omp_nest_lock_t *lock) in omp_test_nest_lock()
|
| /freebsd-12.1/contrib/gcclibs/libgomp/config/posix/ |
| H A D | lock.c | 47 omp_init_lock (omp_lock_t *lock) in omp_init_lock() 53 omp_destroy_lock (omp_lock_t *lock) in omp_destroy_lock() 59 omp_set_lock (omp_lock_t *lock) in omp_set_lock() 65 omp_unset_lock (omp_lock_t *lock) in omp_unset_lock() 71 omp_test_lock (omp_lock_t *lock) in omp_test_lock() 77 omp_init_nest_lock (omp_nest_lock_t *lock) in omp_init_nest_lock() 89 omp_destroy_nest_lock (omp_nest_lock_t *lock) in omp_destroy_nest_lock() 95 omp_set_nest_lock (omp_nest_lock_t *lock) in omp_set_nest_lock() 102 omp_unset_nest_lock (omp_nest_lock_t *lock) in omp_unset_nest_lock() 109 omp_test_nest_lock (omp_nest_lock_t *lock) in omp_test_nest_lock()
|
| /freebsd-12.1/sys/dev/drm2/ttm/ |
| H A D | ttm_lock.c | 50 void ttm_lock_init(struct ttm_lock *lock) in ttm_lock_init() 70 void ttm_read_unlock(struct ttm_lock *lock) in ttm_read_unlock() 78 static bool __ttm_read_lock(struct ttm_lock *lock) in __ttm_read_lock() 167 void ttm_write_unlock(struct ttm_lock *lock) in ttm_write_unlock() 175 static bool __ttm_write_lock(struct ttm_lock *lock) in __ttm_write_lock() 232 static int __ttm_vt_unlock(struct ttm_lock *lock) in __ttm_vt_unlock() 257 static bool __ttm_vt_lock(struct ttm_lock *lock) in __ttm_vt_lock() 271 int ttm_vt_lock(struct ttm_lock *lock, in ttm_vt_lock() 314 int ttm_vt_unlock(struct ttm_lock *lock) in ttm_vt_unlock() 320 void ttm_suspend_unlock(struct ttm_lock *lock) in ttm_suspend_unlock() [all …]
|
| /freebsd-12.1/contrib/gcclibs/libgomp/config/linux/ |
| H A D | lock.c | 43 omp_init_lock (omp_lock_t *lock) in omp_init_lock() 49 omp_destroy_lock (omp_lock_t *lock) in omp_destroy_lock() 55 omp_set_lock (omp_lock_t *lock) in omp_set_lock() 61 omp_unset_lock (omp_lock_t *lock) in omp_unset_lock() 67 omp_test_lock (omp_lock_t *lock) in omp_test_lock() 111 omp_init_nest_lock (omp_nest_lock_t *lock) in omp_init_nest_lock() 117 omp_destroy_nest_lock (omp_nest_lock_t *lock) in omp_destroy_nest_lock() 122 omp_set_nest_lock (omp_nest_lock_t *lock) in omp_set_nest_lock() 145 omp_unset_nest_lock (omp_nest_lock_t *lock) in omp_unset_nest_lock() 157 omp_test_nest_lock (omp_nest_lock_t *lock) in omp_test_nest_lock()
|
| /freebsd-12.1/sys/sys/ |
| H A D | _lockmgr.h | 40 struct lock { struct 41 struct lock_object lock_object; argument 42 volatile uintptr_t lk_lock; argument 43 u_int lk_exslpfail; 44 int lk_timo; 45 int lk_pri; 47 struct stack lk_stack;
|
| H A D | lock.h | 288 #define WITNESS_INIT(lock, type) \ argument 291 #define WITNESS_DESTROY(lock) \ argument 323 #define WITNESS_SAVE(lock, n) \ argument 326 #define WITNESS_RESTORE(lock, n) \ argument 329 #define WITNESS_NORELEASE(lock) \ argument 332 #define WITNESS_RELEASEOK(lock) \ argument 335 #define WITNESS_FILE(lock) \ argument 338 #define WITNESS_LINE(lock) \ argument 343 #define WITNESS_DESTROY(lock) (void)0 argument 357 #define WITNESS_FILE(lock) ("?") argument [all …]
|
| /freebsd-12.1/contrib/openbsm/bin/auditdistd/ |
| H A D | synch.h | 49 mtx_init(pthread_mutex_t *lock) in mtx_init() 57 mtx_destroy(pthread_mutex_t *lock) in mtx_destroy() 65 mtx_lock(pthread_mutex_t *lock) in mtx_lock() 73 mtx_trylock(pthread_mutex_t *lock) in mtx_trylock() 82 mtx_unlock(pthread_mutex_t *lock) in mtx_unlock() 90 mtx_owned(pthread_mutex_t *lock) in mtx_owned() 97 rw_init(pthread_rwlock_t *lock) in rw_init() 105 rw_destroy(pthread_rwlock_t *lock) in rw_destroy() 113 rw_rlock(pthread_rwlock_t *lock) in rw_rlock() 121 rw_wlock(pthread_rwlock_t *lock) in rw_wlock() [all …]
|
| /freebsd-12.1/sbin/hastd/ |
| H A D | synch.h | 51 mtx_init(pthread_mutex_t *lock) __requires_unlocked(*lock) in mtx_init() 59 mtx_destroy(pthread_mutex_t *lock) __requires_unlocked(*lock) in mtx_destroy() 67 mtx_lock(pthread_mutex_t *lock) __locks_exclusive(*lock) in mtx_lock() 75 mtx_trylock(pthread_mutex_t *lock) __trylocks_exclusive(true, *lock) in mtx_trylock() 84 mtx_unlock(pthread_mutex_t *lock) __unlocks(*lock) in mtx_unlock() 92 mtx_owned(pthread_mutex_t *lock) in mtx_owned() 99 rw_init(pthread_rwlock_t *lock) __requires_unlocked(*lock) in rw_init() 107 rw_destroy(pthread_rwlock_t *lock) __requires_unlocked(*lock) in rw_destroy() 115 rw_rlock(pthread_rwlock_t *lock) __locks_shared(*lock) in rw_rlock() 123 rw_wlock(pthread_rwlock_t *lock) __locks_exclusive(*lock) in rw_wlock() [all …]
|
| /freebsd-12.1/sys/cddl/compat/opensolaris/sys/ |
| H A D | rwlock.h | 61 #define rw_init(lock, desc, type, arg) do { \ argument 75 #define rw_destroy(lock) sx_destroy(lock) argument 76 #define rw_enter(lock, how) do { \ argument 82 #define rw_tryenter(lock, how) ((how) == RW_READER ? sx_try_slock(lock) : sx_try_xlock(lock)) argument 83 #define rw_exit(lock) sx_unlock(lock) argument 84 #define rw_downgrade(lock) sx_downgrade(lock) argument 85 #define rw_tryupgrade(lock) sx_try_upgrade(lock) argument 86 #define rw_read_held(lock) ((lock)->sx_lock != SX_LOCK_UNLOCKED && ((lock)->sx_lock & SX_LOCK_SHARE… argument 87 #define rw_write_held(lock) sx_xlocked(lock) argument 88 #define rw_lock_held(lock) (rw_read_held(lock) || rw_write_held(lock)) argument [all …]
|
| H A D | mutex.h | 55 #define mutex_init(lock, desc, type, arg) do { \ argument 68 #define mutex_destroy(lock) sx_destroy(lock) argument 69 #define mutex_enter(lock) sx_xlock(lock) argument 70 #define mutex_tryenter(lock) sx_try_xlock(lock) argument 71 #define mutex_exit(lock) sx_xunlock(lock) argument 72 #define mutex_owned(lock) sx_xlocked(lock) argument 73 #define mutex_owner(lock) sx_xholder(lock) argument
|
| /freebsd-12.1/crypto/heimdal/lib/hx509/ |
| H A D | lock.c | 60 hx509_lock_init(hx509_context context, hx509_lock *lock) in hx509_lock_init() 87 hx509_lock_add_password(hx509_lock lock, const char *password) in hx509_lock_add_password() 110 _hx509_lock_get_passwords(hx509_lock lock) in _hx509_lock_get_passwords() 116 _hx509_lock_unlock_certs(hx509_lock lock) in _hx509_lock_unlock_certs() 122 hx509_lock_reset_passwords(hx509_lock lock) in hx509_lock_reset_passwords() 145 hx509_lock_reset_certs(hx509_context context, hx509_lock lock) in hx509_lock_reset_certs() 162 _hx509_lock_find_cert(hx509_lock lock, const hx509_query *q, hx509_cert *c) in _hx509_lock_find_cert() 177 hx509_lock_reset_promper(hx509_lock lock) in hx509_lock_reset_promper() 207 hx509_lock_prompt(hx509_lock lock, hx509_prompt *prompt) in hx509_lock_prompt() 215 hx509_lock_free(hx509_lock lock) in hx509_lock_free() [all …]
|
| /freebsd-12.1/sys/compat/linuxkpi/common/include/linux/ |
| H A D | rwlock.h | 47 #define read_lock_irq(lock) read_lock((lock)) argument 48 #define read_unlock_irq(lock) read_unlock((lock)) argument 49 #define write_lock_irq(lock) write_lock((lock)) argument 50 #define write_unlock_irq(lock) write_unlock((lock)) argument 51 #define read_lock_irqsave(lock, flags) \ argument 53 #define write_lock_irqsave(lock, flags) \ argument 55 #define read_unlock_irqrestore(lock, flags) \ argument 57 #define write_unlock_irqrestore(lock, flags) \ argument 61 rwlock_init(rwlock_t *lock) in rwlock_init()
|
| /freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteClientBase.cpp | 45 std::lock_guard<std::mutex> lock(m_mutex); in SendContinuePacketAndWaitForResponse() local 58 std::lock_guard<std::mutex> lock(m_mutex); in SendContinuePacketAndWaitForResponse() local 142 Lock lock(*this, true); in SendAsyncSignal() local 153 Lock lock(*this, true); in Interrupt() local 163 Lock lock(*this, send_async); in SendPacketAndWaitForResponse() local 182 Lock lock(*this, send_async); in SendPacketAndReceiveResponseWithOutputSupport() local 237 Lock lock(*this, true); in SendvContPacket() local 259 std::lock_guard<std::mutex> lock(m_mutex); in ShouldStop() local 318 GDBRemoteClientBase::ContinueLock::lock() { in lock() function in GDBRemoteClientBase::ContinueLock 325 std::unique_lock<std::mutex> lock(m_comm.m_mutex); in lock() local [all …]
|
| /freebsd-12.1/contrib/gcclibs/libgomp/ |
| H A D | omp_lib.f90.in | 42 integer (omp_lock_kind), intent (out) :: lock local 49 integer (omp_nest_lock_kind), intent (out) :: lock local 56 integer (omp_lock_kind), intent (inout) :: lock local 63 integer (omp_nest_lock_kind), intent (inout) :: lock local 70 integer (omp_lock_kind), intent (inout) :: lock local 77 integer (omp_nest_lock_kind), intent (inout) :: lock local 84 integer (omp_lock_kind), intent (inout) :: lock local 91 integer (omp_nest_lock_kind), intent (inout) :: lock local 147 integer (omp_lock_kind), intent (inout) :: lock local 183 integer (omp_nest_lock_kind), intent (inout) :: lock local
|
| /freebsd-12.1/sys/contrib/octeon-sdk/ |
| H A D | cvmx-rwlock.h | 77 volatile uint32_t lock; member 88 static inline void cvmx_rwlock_wp_init(cvmx_rwlock_wp_lock_t *lock) in cvmx_rwlock_wp_init() 104 static inline void cvmx_rwlock_wp_read_lock(cvmx_rwlock_wp_lock_t *lock) in cvmx_rwlock_wp_read_lock() 126 static inline void cvmx_rwlock_wp_read_unlock(cvmx_rwlock_wp_lock_t *lock) in cvmx_rwlock_wp_read_unlock() 141 static inline void cvmx_rwlock_wp_write_lock(cvmx_rwlock_wp_lock_t *lock) in cvmx_rwlock_wp_write_lock() 158 static inline void cvmx_rwlock_wp_write_unlock(cvmx_rwlock_wp_lock_t *lock) in cvmx_rwlock_wp_write_unlock()
|
| H A D | cvmx-spinlock.h | 91 static inline void cvmx_spinlock_init(cvmx_spinlock_t *lock) in cvmx_spinlock_init() 103 static inline int cvmx_spinlock_locked(cvmx_spinlock_t *lock) in cvmx_spinlock_locked() 114 static inline void cvmx_spinlock_unlock(cvmx_spinlock_t *lock) in cvmx_spinlock_unlock() 134 static inline unsigned int cvmx_spinlock_trylock(cvmx_spinlock_t *lock) in cvmx_spinlock_trylock() 160 static inline void cvmx_spinlock_lock(cvmx_spinlock_t *lock) in cvmx_spinlock_lock() 286 static inline void cvmx_spinlock_rec_init(cvmx_spinlock_rec_t *lock) in cvmx_spinlock_rec_init() 298 static inline int cvmx_spinlock_rec_locked(cvmx_spinlock_rec_t *lock) in cvmx_spinlock_rec_locked() 314 static inline void _int_cvmx_spinlock_rec_unlock(cvmx_spinlock_rec_t *lock, char *filename, int lin… in _int_cvmx_spinlock_rec_unlock() 383 static inline void _int_cvmx_spinlock_rec_lock(cvmx_spinlock_rec_t *lock, char *filename, int linen… in _int_cvmx_spinlock_rec_lock()
|
| /freebsd-12.1/sys/contrib/ck/include/spinlock/ |
| H A D | cas.h | 49 ck_spinlock_cas_init(struct ck_spinlock_cas *lock) in ck_spinlock_cas_init() 58 ck_spinlock_cas_trylock(struct ck_spinlock_cas *lock) in ck_spinlock_cas_trylock() 68 ck_spinlock_cas_locked(struct ck_spinlock_cas *lock) in ck_spinlock_cas_locked() 77 ck_spinlock_cas_lock(struct ck_spinlock_cas *lock) in ck_spinlock_cas_lock() 90 ck_spinlock_cas_lock_eb(struct ck_spinlock_cas *lock) in ck_spinlock_cas_lock_eb() 102 ck_spinlock_cas_unlock(struct ck_spinlock_cas *lock) in ck_spinlock_cas_unlock()
|
| H A D | fas.h | 47 ck_spinlock_fas_init(struct ck_spinlock_fas *lock) in ck_spinlock_fas_init() 56 ck_spinlock_fas_trylock(struct ck_spinlock_fas *lock) in ck_spinlock_fas_trylock() 67 ck_spinlock_fas_locked(struct ck_spinlock_fas *lock) in ck_spinlock_fas_locked() 77 ck_spinlock_fas_lock(struct ck_spinlock_fas *lock) in ck_spinlock_fas_lock() 90 ck_spinlock_fas_lock_eb(struct ck_spinlock_fas *lock) in ck_spinlock_fas_lock_eb() 102 ck_spinlock_fas_unlock(struct ck_spinlock_fas *lock) in ck_spinlock_fas_unlock()
|
| H A D | dec.h | 51 ck_spinlock_dec_init(struct ck_spinlock_dec *lock) in ck_spinlock_dec_init() 60 ck_spinlock_dec_trylock(struct ck_spinlock_dec *lock) in ck_spinlock_dec_trylock() 70 ck_spinlock_dec_locked(struct ck_spinlock_dec *lock) in ck_spinlock_dec_locked() 80 ck_spinlock_dec_lock(struct ck_spinlock_dec *lock) in ck_spinlock_dec_lock() 104 ck_spinlock_dec_lock_eb(struct ck_spinlock_dec *lock) in ck_spinlock_dec_lock_eb() 123 ck_spinlock_dec_unlock(struct ck_spinlock_dec *lock) in ck_spinlock_dec_unlock()
|
| /freebsd-12.1/contrib/libevent/ |
| H A D | evthread.c | 191 void *lock; member 219 struct debug_lock *lock = lock_; in debug_lock_free() local 252 struct debug_lock *lock = lock_; in debug_lock_lock() local 288 struct debug_lock *lock = lock_; in debug_lock_unlock() local 300 struct debug_lock *lock = lock_; in debug_cond_wait() local 347 struct debug_lock *lock = lock_; in evthread_is_debug_lock_held_() local 361 struct debug_lock *lock = lock_; in evthread_debug_get_real_lock_() local 380 struct debug_lock *lock; in evthread_setup_global_lock_() local 441 evthreadimpl_lock_free_(void *lock, unsigned locktype) in evthreadimpl_lock_free_() 447 evthreadimpl_lock_lock_(unsigned mode, void *lock) in evthreadimpl_lock_lock_() [all …]
|
| /freebsd-12.1/contrib/ntp/sntp/libevent/ |
| H A D | evthread.c | 170 void *lock; member 198 struct debug_lock *lock = lock_; in debug_lock_free() local 231 struct debug_lock *lock = lock_; in debug_lock_lock() local 267 struct debug_lock *lock = lock_; in debug_lock_unlock() local 279 struct debug_lock *lock = lock_; in debug_cond_wait() local 326 struct debug_lock *lock = lock_; in evthread_is_debug_lock_held_() local 340 struct debug_lock *lock = lock_; in evthread_debug_get_real_lock_() local 359 struct debug_lock *lock; in evthread_setup_global_lock_() local 383 struct debug_lock *lock = lock_; in evthread_setup_global_lock_() local 419 evthreadimpl_lock_lock_(unsigned mode, void *lock) in evthreadimpl_lock_lock_() [all …]
|
| /freebsd-12.1/crypto/openssl/include/internal/ |
| H A D | refcount.h | 32 static inline int CRYPTO_UP_REF(_Atomic int *val, int *ret, void *lock) in CRYPTO_UP_REF() 48 static inline int CRYPTO_DOWN_REF(_Atomic int *val, int *ret, void *lock) in CRYPTO_DOWN_REF() 62 static __inline__ int CRYPTO_UP_REF(int *val, int *ret, void *lock) in CRYPTO_UP_REF() 68 static __inline__ int CRYPTO_DOWN_REF(int *val, int *ret, void *lock) in CRYPTO_DOWN_REF() 88 static __inline int CRYPTO_UP_REF(volatile int *val, int *ret, void *lock) in CRYPTO_UP_REF() 94 static __inline int CRYPTO_DOWN_REF(volatile int *val, int *ret, void *lock) in CRYPTO_DOWN_REF() 114 static __inline int CRYPTO_UP_REF(volatile int *val, int *ret, void *lock) in CRYPTO_UP_REF() 120 static __inline int CRYPTO_DOWN_REF(volatile int *val, int *ret, void *lock) in CRYPTO_DOWN_REF() 131 # define CRYPTO_UP_REF(val, ret, lock) CRYPTO_atomic_add(val, 1, ret, lock) argument 132 # define CRYPTO_DOWN_REF(val, ret, lock) CRYPTO_atomic_add(val, -1, ret, lock) argument
|
| /freebsd-12.1/contrib/openmp/runtime/src/ |
| H A D | z_Windows_NT-586_asm.asm | 125 lock xadd DWORD PTR [ecx], eax label 148 lock cmpxchg BYTE PTR [ecx], dl label 173 lock cmpxchg WORD PTR [ecx], dx label 198 lock cmpxchg DWORD PTR [ecx], edx label 231 lock cmpxchg8b QWORD PTR [edi] label 258 lock xchg BYTE PTR [ecx], al label 279 lock xchg WORD PTR [ecx], ax label 334 lock xchg DWORD PTR [esi], eax label 364 lock cmpxchg BYTE PTR [ecx], dl label 387 lock cmpxchg WORD PTR [ecx], dx label [all …]
|
| /freebsd-12.1/sys/kern/ |
| H A D | kern_rangelock.c | 74 rangelock_init(struct rangelock *lock) in rangelock_init() 82 rangelock_destroy(struct rangelock *lock) in rangelock_destroy() 106 rangelock_calc_block(struct rangelock *lock) in rangelock_calc_block() 143 rangelock_unlock_locked(struct rangelock *lock, struct rl_q_entry *entry, in rangelock_unlock_locked() 161 rangelock_unlock(struct rangelock *lock, void *cookie, struct mtx *ilk) in rangelock_unlock() 174 rangelock_unlock_range(struct rangelock *lock, void *cookie, off_t start, in rangelock_unlock_range() 202 rangelock_enqueue(struct rangelock *lock, off_t start, off_t end, int mode, in rangelock_enqueue() 239 rangelock_rlock(struct rangelock *lock, off_t start, off_t end, struct mtx *ilk) in rangelock_rlock() 246 rangelock_wlock(struct rangelock *lock, off_t start, off_t end, struct mtx *ilk) in rangelock_wlock()
|