| /freebsd/contrib/unbound/util/ | 
| H A D | locks.h | 86 #define lock_protect(lock, area, size) /* nop */  argument87 #define lock_unprotect(lock, area) /* nop */  argument
 88 #define lock_get_mem(lock) (0) /* nothing */  argument
 101 #define lock_basic_init(lock) LOCKRET(pthread_mutex_init(lock, NULL))  argument
 102 #define lock_basic_destroy(lock) LOCKRET(pthread_mutex_destroy(lock))  argument
 103 #define lock_basic_lock(lock) LOCKRET(pthread_mutex_lock(lock))  argument
 104 #define lock_basic_unlock(lock) LOCKRET(pthread_mutex_unlock(lock))  argument
 109 #define lock_rw_init(lock) LOCKRET(pthread_mutex_init(lock, NULL))  argument
 110 #define lock_rw_destroy(lock) LOCKRET(pthread_mutex_destroy(lock))  argument
 111 #define lock_rw_rdlock(lock) LOCKRET(pthread_mutex_lock(lock))  argument
 [all …]
 
 | 
| /freebsd/sys/dev/drm2/ttm/ | 
| H A D | ttm_lock.c | 48 void ttm_lock_init(struct ttm_lock *lock)  in ttm_lock_init()68 void ttm_read_unlock(struct ttm_lock *lock)  in ttm_read_unlock()
 76 static bool __ttm_read_lock(struct ttm_lock *lock)  in __ttm_read_lock()
 92 ttm_read_lock(struct ttm_lock *lock, bool interruptible)  in ttm_read_lock()
 116 static bool __ttm_read_trylock(struct ttm_lock *lock, bool *locked)  in __ttm_read_trylock()
 137 int ttm_read_trylock(struct ttm_lock *lock, bool interruptible)  in ttm_read_trylock()
 165 void ttm_write_unlock(struct ttm_lock *lock)  in ttm_write_unlock()
 173 static bool __ttm_write_lock(struct ttm_lock *lock)  in __ttm_write_lock()
 192 ttm_write_lock(struct ttm_lock *lock, bool interruptible)  in ttm_write_lock()
 222 void ttm_write_lock_downgrade(struct ttm_lock *lock)  in ttm_write_lock_downgrade()
 [all …]
 
 | 
| /freebsd/sys/sys/ | 
| H A D | _lockmgr.h | 38 struct lock {  struct39 	struct lock_object	lock_object;  argument
 40 	volatile uintptr_t	lk_lock;  argument
 41 	u_short			lk_exslpfail;
 42 	u_short			lk_pri;
 43 	int			lk_timo;
 45 	struct stack		lk_stack;
 
 | 
| H A D | lock.h | 97 #define	LO_CLASSINDEX(lock)	((((lock)->lo_flags) & LO_CLASSMASK) >> LO_CLASSSHIFT)  argument98 #define	LOCK_CLASS(lock)	(lock_classes[LO_CLASSINDEX((lock))])  argument
 258 #define	WITNESS_INIT(lock, type)					\  argument
 261 #define WITNESS_DESTROY(lock)						\  argument
 264 #define	WITNESS_CHECKORDER(lock, flags, file, line, interlock)		\  argument
 271 #define	WITNESS_LOCK(lock, flags, file, line)				\  argument
 274 #define	WITNESS_UPGRADE(lock, flags, file, line)			\  argument
 277 #define	WITNESS_DOWNGRADE(lock, flags, file, line)			\  argument
 280 #define	WITNESS_UNLOCK(lock, flags, file, line)				\  argument
 283 #define	WITNESS_CHECK(flags, lock, fmt, ...)				\  argument
 [all …]
 
 | 
| H A D | condvar.h | 62 #define	cv_wait(cvp, lock)						\  argument64 #define	cv_wait_unlock(cvp, lock)					\  argument
 66 #define	cv_wait_sig(cvp, lock)						\  argument
 68 #define	cv_timedwait(cvp, lock, timo)					\  argument
 71 #define	cv_timedwait_sbt(cvp, lock, sbt, pr, flags)			\  argument
 73 #define	cv_timedwait_sig(cvp, lock, timo)				\  argument
 76 #define	cv_timedwait_sig_sbt(cvp, lock, sbt, pr, flags)			\  argument
 
 | 
| /freebsd/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/sys/cddl/compat/opensolaris/sys/ | 
| H A D | rwlock.h | 59 #define	rw_init(lock, desc, type, arg)	do {				\  argument73 #define	rw_destroy(lock)	sx_destroy(lock)  argument
 74 #define	rw_enter(lock, how)	do {					\  argument
 80 #define	rw_tryenter(lock, how)	((how) == RW_READER ? sx_try_slock(lock) : sx_try_xlock(lock))  argument
 81 #define	rw_exit(lock)		sx_unlock(lock)  argument
 82 #define	rw_downgrade(lock)	sx_downgrade(lock)  argument
 83 #define	rw_tryupgrade(lock)	sx_try_upgrade(lock)  argument
 84 #define	rw_read_held(lock)	((lock)->sx_lock != SX_LOCK_UNLOCKED && ((lock)->sx_lock & SX_LOCK_SHARE…  argument
 85 #define	rw_write_held(lock)	sx_xlocked(lock)  argument
 86 #define	rw_lock_held(lock)	(rw_read_held(lock) || rw_write_held(lock))  argument
 [all …]
 
 | 
| /freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ | 
| H A D | rwlock.h | 61 #define	rw_init(lock, desc, type, arg)	do {				\  argument72 #define	rw_destroy(lock)	sx_destroy(lock)  argument
 73 #define	rw_enter(lock, how)	do {					\  argument
 80 #define	rw_tryenter(lock, how)			   \  argument
 82 #define	rw_exit(lock)		sx_unlock(lock)  argument
 83 #define	rw_downgrade(lock)	sx_downgrade(lock)  argument
 84 #define	rw_tryupgrade(lock)	sx_try_upgrade(lock)  argument
 85 #define	rw_read_held(lock)					  \  argument
 88 #define	rw_write_held(lock)	sx_xlocked(lock)  argument
 89 #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 {			\  argument66 #define	mutex_destroy(lock)	sx_destroy(lock)  argument
 67 #define	mutex_enter(lock)	sx_xlock(lock)  argument
 68 #define	mutex_enter_interruptible(lock)	sx_xlock_sig(lock)  argument
 69 #define	mutex_enter_nested(lock, type)	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/crypto/openssl/crypto/ | 
| H A D | threads_none.c | 29     struct rcu_lock_st *lock;  in ossl_rcu_lock_new()  local35 void ossl_rcu_lock_free(CRYPTO_RCU_LOCK *lock)  in ossl_rcu_lock_free()
 40 void ossl_rcu_read_lock(CRYPTO_RCU_LOCK *lock)  in ossl_rcu_read_lock()
 45 void ossl_rcu_write_lock(CRYPTO_RCU_LOCK *lock)  in ossl_rcu_write_lock()
 50 void ossl_rcu_write_unlock(CRYPTO_RCU_LOCK *lock)  in ossl_rcu_write_unlock()
 55 void ossl_rcu_read_unlock(CRYPTO_RCU_LOCK *lock)  in ossl_rcu_read_unlock()
 60 void ossl_synchronize_rcu(CRYPTO_RCU_LOCK *lock)  in ossl_synchronize_rcu()
 75 int ossl_rcu_call(CRYPTO_RCU_LOCK *lock, rcu_cb_fn cb, void *data)  in ossl_rcu_call()
 101     CRYPTO_RWLOCK *lock;  in CRYPTO_THREAD_lock_new()  local
 112 __owur int CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock)  in CRYPTO_THREAD_read_lock()
 [all …]
 
 | 
| H A D | threads_win.c | 41     SRWLOCK lock;  member59     CRYPTO_RCU_LOCK *lock;  member
 126 static struct rcu_qp *allocate_new_qp_group(struct rcu_lock_st *lock,  in allocate_new_qp_group()
 185 void ossl_rcu_lock_free(CRYPTO_RCU_LOCK *lock)  in ossl_rcu_lock_free()
 198 static ossl_inline struct rcu_qp *get_hold_current_qp(CRYPTO_RCU_LOCK *lock)  in get_hold_current_qp()
 230 void ossl_rcu_read_lock(CRYPTO_RCU_LOCK *lock)  in ossl_rcu_read_lock()
 268 void ossl_rcu_write_lock(CRYPTO_RCU_LOCK *lock)  in ossl_rcu_write_lock()
 273 void ossl_rcu_write_unlock(CRYPTO_RCU_LOCK *lock)  in ossl_rcu_write_unlock()
 278 void ossl_rcu_read_unlock(CRYPTO_RCU_LOCK *lock)  in ossl_rcu_read_unlock()
 307 static struct rcu_qp *update_qp(CRYPTO_RCU_LOCK *lock, uint32_t *curr_id)  in update_qp()
 [all …]
 
 | 
| /freebsd/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()
 133 hx509_lock_add_cert(hx509_context context, hx509_lock lock, hx509_cert cert)  in hx509_lock_add_cert()
 139 hx509_lock_add_certs(hx509_context context, hx509_lock lock, hx509_certs certs)  in hx509_lock_add_certs()
 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()
 169 hx509_lock_set_prompter(hx509_lock lock, hx509_prompter_fct prompt, void *data)  in hx509_lock_set_prompter()
 [all …]
 
 | 
| /freebsd/sys/compat/linuxkpi/common/include/linux/ | 
| H A D | rwlock.h | 45 #define	write_lock_irq(lock)	write_lock((lock))  argument 46 #define	write_unlock_irq(lock)	write_unlock((lock))  argument
 47 #define	read_lock_irqsave(lock, flag  argument
 48 write_unlock_irq(lock) global()  argument
 49 read_lock_irqsave(lock,flags) global()  argument
 51 write_lock_irqsave(lock,flags) global()  argument
 53 read_unlock_irqrestore(lock,flags) global()  argument
 55 write_unlock_irqrestore(lock,flags) global()  argument
 59 rwlock_init(rwlock_t * lock) rwlock_init()  argument
 [all...]
 | 
| /freebsd/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()
 91 ck_spinlock_fas_lock_eb(struct ck_spinlock_fas *lock)  in ck_spinlock_fas_lock_eb()
 103 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/contrib/ntp/sntp/libevent/ | 
| H A D | evthread.c | 191 	void *lock;  member219 	struct debug_lock *lock = lock_;  in debug_lock_free()  local
 234 evthread_debug_lock_mark_locked(unsigned mode, struct debug_lock *lock)  in evthread_debug_lock_mark_locked()
 252 	struct debug_lock *lock = lock_;  in debug_lock_lock()  local
 267 evthread_debug_lock_mark_unlocked(unsigned mode, struct debug_lock *lock)  in evthread_debug_lock_mark_unlocked()
 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
 [all …]
 
 | 
| /freebsd/contrib/libevent/ | 
| H A D | evthread.c | 191 	void *lock;  member219 	struct debug_lock *lock = lock_;  in debug_lock_free()  local
 234 evthread_debug_lock_mark_locked(unsigned mode, struct debug_lock *lock)  in evthread_debug_lock_mark_locked()
 252 	struct debug_lock *lock = lock_;  in debug_lock_lock()  local
 267 evthread_debug_lock_mark_unlocked(unsigned mode, struct debug_lock *lock)  in evthread_debug_lock_mark_unlocked()
 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
 [all …]
 
 | 
| /freebsd/contrib/llvm-project/openmp/runtime/src/ | 
| H A D | z_Windows_NT-586_asm.asm | 124 lock    xadd    DWORD PTR [ecx], eax  label147 lock    cmpxchg   BYTE PTR [ecx], dl  label
 172 lock    cmpxchg   WORD PTR [ecx], dx  label
 197 lock    cmpxchg   DWORD PTR [ecx], edx  label
 230 lock    cmpxchg8b QWORD PTR [edi]  label
 257 lock    xchg      BYTE PTR [ecx], al  label
 278 lock    xchg      WORD PTR [ecx], ax  label
 299 lock    xchg      DWORD PTR [ecx], eax  label
 333 lock    xchg    DWORD PTR [esi], eax  label
 363 lock    cmpxchg   BYTE PTR [ecx], dl  label
 [all …]
 
 | 
| /freebsd/sys/kern/ | 
| H A D | kern_rangelock.c | 86 rangelock_cheat_drain(struct rangelock *lock)  in rangelock_cheat_drain()104 rangelock_cheat_lock(struct rangelock *lock, int locktype, bool trylock,  in rangelock_cheat_lock()
 189 rangelock_cheat_unlock(struct rangelock *lock, void *cookie)  in rangelock_cheat_unlock()
 258 rangelock_cheat_destroy(struct rangelock *lock)  in rangelock_cheat_destroy()
 330 rangelock_init(struct rangelock *lock)  in rangelock_init()
 337 rangelock_destroy(struct rangelock *lock)  in rangelock_destroy()
 401 rangelock_unlock_int(struct rangelock *lock, struct rl_q_entry *e)  in rangelock_unlock_int()
 417 rangelock_unlock(struct rangelock *lock, void *cookie)  in rangelock_unlock()
 454 rl_insert_sleep(struct rangelock *lock)  in rl_insert_sleep()
 479 rangelock_noncheating_destroy(struct rangelock *lock)  in rangelock_noncheating_destroy()
 [all …]
 
 | 
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ | 
| H A D | GDBRemoteClientBase.cpp | 46     std::lock_guard<std::mutex> lock(m_mutex);  in SendContinuePacketAndWaitForResponse()  local68       std::lock_guard<std::mutex> lock(m_mutex);  in SendContinuePacketAndWaitForResponse()  local
 162   Lock lock(*this, interrupt_timeout);  in SendAsyncSignal()  local
 173   Lock lock(*this, interrupt_timeout);  in Interrupt()  local
 184   Lock lock(*this, interrupt_timeout);  in SendPacketAndWaitForResponse()  local
 219   Lock lock(*this, interrupt_timeout);  in SendPacketAndReceiveResponseWithOutputSupport()  local
 268   std::lock_guard<std::mutex> lock(m_mutex);  in ShouldStop()  local
 319     std::unique_lock<std::mutex> lock(m_comm.m_mutex);  in unlock()  local
 327 GDBRemoteClientBase::ContinueLock::lock() {  in lock()  function in GDBRemoteClientBase::ContinueLock
 333   std::unique_lock<std::mutex> lock(m_comm.m_mutex);  in lock()  local
 [all …]
 
 | 
| /freebsd/contrib/llvm-project/lldb/source/Target/ | 
| H A D | PathMappingList.cpp | 64   std::lock_guard<std::recursive_mutex> lock(m_mutex);  in Append()  local87   std::lock_guard<std::recursive_mutex> lock(m_mutex);  in AppendUnique()  local
 99   std::lock_guard<std::recursive_mutex> lock(m_mutex);  in Insert()  local
 114   std::lock_guard<std::recursive_mutex> lock(m_mutex);  in Replace()  local
 125   std::lock_guard<std::recursive_mutex> lock(m_mutex);  in Remove()  local
 140   std::lock_guard<std::recursive_mutex> lock(m_mutex);  in Dump()  local
 158   std::lock_guard<std::recursive_mutex> lock(m_mutex);  in ToJSON()  local
 168   std::lock_guard<std::recursive_mutex> lock(m_mutex);  in Clear()  local
 199   std::lock_guard<std::recursive_mutex> lock(m_mutex);  in RemapPath()  local
 238   std::lock_guard<std::recursive_mutex> lock(m_mutex);  in ReverseRemapPath()  local
 [all …]
 
 | 
| /freebsd/contrib/llvm-project/lldb/source/API/ | 
| H A D | SBThread.cpp | 93   std::unique_lock<std::recursive_mutex> lock;  in GetQueue()  local116   std::unique_lock<std::recursive_mutex> lock;  in operator bool()  local
 140   std::unique_lock<std::recursive_mutex> lock;  in GetStopReason()  local
 156   std::unique_lock<std::recursive_mutex> lock;  in GetStopReasonDataCount()  local
 213   std::unique_lock<std::recursive_mutex> lock;  in GetStopReasonDataAtIndex()  local
 284   std::unique_lock<std::recursive_mutex> lock;  in GetStopReasonExtendedInfoAsJSON()  local
 306   std::unique_lock<std::recursive_mutex> lock;  in GetStopReasonExtendedBacktraces()  local
 327   std::unique_lock<std::recursive_mutex> lock;  in GetStopDescription()  local
 356   std::unique_lock<std::recursive_mutex> lock;  in GetStopReturnValue()  local
 397   std::unique_lock<std::recursive_mutex> lock;  in GetName()  local
 [all …]
 
 | 
| H A D | SBFrame.cpp | 100   std::unique_lock<std::recursive_mutex> lock;  in operator bool()  local119   std::unique_lock<std::recursive_mutex> lock;  in GetSymbolContext()  local
 140   std::unique_lock<std::recursive_mutex> lock;  in GetModule()  local
 164   std::unique_lock<std::recursive_mutex> lock;  in GetCompileUnit()  local
 188   std::unique_lock<std::recursive_mutex> lock;  in GetFunction()  local
 212   std::unique_lock<std::recursive_mutex> lock;  in GetSymbol()  local
 235   std::unique_lock<std::recursive_mutex> lock;  in GetBlock()  local
 256   std::unique_lock<std::recursive_mutex> lock;  in GetFrameBlock()  local
 277   std::unique_lock<std::recursive_mutex> lock;  in GetLineEntry()  local
 301   std::unique_lock<std::recursive_mutex> lock;  in GetFrameID()  local
 [all …]
 
 | 
| /freebsd/lib/libthr/thread/ | 
| H A D | thr_pspinlock.c | 53 _pthread_spin_init(pthread_spinlock_t *lock, int pshared)  in _pthread_spin_init()78 _pthread_spin_destroy(pthread_spinlock_t *lock)  in _pthread_spin_destroy()
 99 _pthread_spin_trylock(pthread_spinlock_t *lock)  in _pthread_spin_trylock()
 112 _pthread_spin_lock(pthread_spinlock_t *lock)  in _pthread_spin_lock()
 143 _pthread_spin_unlock(pthread_spinlock_t *lock)  in _pthread_spin_unlock()
 
 |