Home
last modified time | relevance | path

Searched defs:lock (Results 1 – 25 of 654) sorted by relevance

12345678910>>...27

/freebsd/contrib/unbound/util/
H A Dlocks.h262 #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/sys/dev/drm2/ttm/
H A Dttm_lock.c48 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()
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()
230 static int __ttm_vt_unlock(struct ttm_lock *lock) in __ttm_vt_unlock()
255 static bool __ttm_vt_lock(struct ttm_lock *lock) in __ttm_vt_lock()
269 int ttm_vt_lock(struct ttm_lock *lock, in ttm_vt_lock()
312 int ttm_vt_unlock(struct ttm_lock *lock) in ttm_vt_unlock()
318 void ttm_suspend_unlock(struct ttm_lock *lock) in ttm_suspend_unlock()
[all …]
/freebsd/sys/sys/
H A D_lockmgr.h38 struct lock { struct
39 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 Dlock.h257 #define WITNESS_INIT(lock, type) \ argument
260 #define WITNESS_DESTROY(lock) \ argument
292 #define WITNESS_SAVE(lock, n) \ argument
295 #define WITNESS_RESTORE(lock, n) \ argument
298 #define WITNESS_NORELEASE(lock) \ argument
301 #define WITNESS_RELEASEOK(lock) \ argument
304 #define WITNESS_FILE(lock) \ argument
307 #define WITNESS_LINE(lock) \ argument
312 #define WITNESS_DESTROY(lock) (void)0 argument
326 #define WITNESS_FILE(lock) ("?") argument
[all …]
H A Dcondvar.h62 #define cv_wait(cvp, lock) \ argument
64 #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 Dsynch.h49 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/sbin/hastd/
H A Dsynch.h49 mtx_init(pthread_mutex_t *lock) __requires_unlocked(*lock) in mtx_init()
57 mtx_destroy(pthread_mutex_t *lock) __requires_unlocked(*lock) in mtx_destroy()
65 mtx_lock(pthread_mutex_t *lock) __locks_exclusive(*lock) in mtx_lock()
73 mtx_trylock(pthread_mutex_t *lock) __trylocks_exclusive(true, *lock) in mtx_trylock()
82 mtx_unlock(pthread_mutex_t *lock) __unlocks(*lock) in mtx_unlock()
90 mtx_owned(pthread_mutex_t *lock) in mtx_owned()
97 rw_init(pthread_rwlock_t *lock) __requires_unlocked(*lock) in rw_init()
105 rw_destroy(pthread_rwlock_t *lock) __requires_unlocked(*lock) in rw_destroy()
113 rw_rlock(pthread_rwlock_t *lock) __locks_shared(*lock) in rw_rlock()
121 rw_wlock(pthread_rwlock_t *lock) __locks_exclusive(*lock) in rw_wlock()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Interpreter/
H A DOptionValue.cpp19 std::lock_guard<std::mutex> lock(other.m_mutex); in OptionValue() local
274 std::lock_guard<std::mutex> lock(m_mutex); in GetBooleanValue() local
281 std::lock_guard<std::mutex> lock(m_mutex); in SetBooleanValue() local
290 std::lock_guard<std::mutex> lock(m_mutex); in GetCharValue() local
297 std::lock_guard<std::mutex> lock(m_mutex); in SetCharValue() local
306 std::lock_guard<std::mutex> lock(m_mutex); in GetEnumerationValue() local
313 std::lock_guard<std::mutex> lock(m_mutex); in SetEnumerationValue() local
322 std::lock_guard<std::mutex> lock(m_mutex); in GetFileSpecValue() local
329 std::lock_guard<std::mutex> lock(m_mutex); in SetFileSpecValue() local
338 std::lock_guard<std::mutex> lock(m_mutex); in AppendFileSpecValue() local
[all …]
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Drwlock.h60 #define rw_init(lock, desc, type, arg) do { \ argument
71 #define rw_destroy(lock) sx_destroy(lock) argument
72 #define rw_enter(lock, how) do { \ argument
79 #define rw_tryenter(lock, how) \ 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) \ argument
87 #define rw_write_held(lock) sx_xlocked(lock) argument
89 #define rw_iswriter(lock) sx_xlocked(lock) argument
[all …]
H A Dmutex.h54 #define mutex_init(lock, desc, type, arg) do { \ argument
65 #define mutex_destroy(lock) sx_destroy(lock) argument
66 #define mutex_enter(lock) sx_xlock(lock) argument
67 #define mutex_enter_interruptible(lock) sx_xlock_sig(lock) argument
68 #define mutex_enter_nested(lock, type) sx_xlock(lock) argument
69 #define mutex_tryenter(lock) sx_try_xlock(lock) argument
70 #define mutex_exit(lock) sx_xunlock(lock) argument
71 #define mutex_owned(lock) sx_xlocked(lock) argument
72 #define mutex_owner(lock) sx_xholder(lock) argument
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Drwlock.h59 #define rw_init(lock, desc, type, arg) do { \ argument
73 #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
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
87 #define rw_iswriter(lock) sx_xlocked(lock) argument
[all …]
/freebsd/crypto/heimdal/lib/hx509/
H A Dlock.c60 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/sys/compat/linuxkpi/common/include/linux/
H A Drwlock.h45 #define read_lock_irq(lock) read_lock((lock)) argument
46 #define read_unlock_irq(lock) read_unlock((lock)) argument
47 #define write_lock_irq(lock) write_lock((lock)) argument
48 #define write_unlock_irq(lock) write_unlock((lock)) argument
49 #define read_lock_irqsave(lock, flags) \ argument
51 #define write_lock_irqsave(lock, flags) \ argument
53 #define read_unlock_irqrestore(lock, flags) \ argument
55 #define write_unlock_irqrestore(lock, flags) \ argument
59 rwlock_init(rwlock_t *lock) in rwlock_init()
/freebsd/crypto/openssl/include/internal/
H A Drefcount.h31 ossl_unused void *lock) in CRYPTO_UP_REF()
48 ossl_unused void *lock) in CRYPTO_DOWN_REF()
62 static __inline__ int CRYPTO_UP_REF(int *val, int *ret, ossl_unused void *lock) in CRYPTO_UP_REF()
69 ossl_unused void *lock) in CRYPTO_DOWN_REF()
81 ossl_unused void *lock) in CRYPTO_UP_REF()
88 ossl_unused void *lock) in CRYPTO_DOWN_REF()
107 ossl_unused void *lock) in CRYPTO_UP_REF()
114 ossl_unused void *lock) in CRYPTO_DOWN_REF()
135 ossl_unused void *lock) in CRYPTO_UP_REF()
142 ossl_unused void *lock) in CRYPTO_DOWN_REF()
[all …]
/freebsd/sys/contrib/ck/include/spinlock/
H A Dcas.h49 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 Dfas.h47 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 Ddec.h51 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 Devthread.c191 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/contrib/libevent/
H A Devthread.c191 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/contrib/llvm-project/openmp/runtime/src/
H A Dz_Windows_NT-586_asm.asm124 lock xadd DWORD PTR [ecx], eax label
147 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
333 lock xchg DWORD PTR [esi], eax label
363 lock cmpxchg BYTE PTR [ecx], dl label
386 lock cmpxchg WORD PTR [ecx], dx label
[all …]
/freebsd/crypto/openssl/crypto/
H A Dthreads_win.c35 SRWLOCK lock; member
42 CRYPTO_RWLOCK *lock; in CRYPTO_THREAD_lock_new() local
71 __owur int CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_read_lock()
83 __owur int CRYPTO_THREAD_write_lock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_write_lock()
96 int CRYPTO_THREAD_unlock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_unlock()
113 void CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_lock_free()
136 LONG volatile *lock = (LONG *)once; in CRYPTO_THREAD_run_once() local
213 int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) in CRYPTO_atomic_add()
220 CRYPTO_RWLOCK *lock) in CRYPTO_atomic_or()
238 int CRYPTO_atomic_load(uint64_t *val, uint64_t *ret, CRYPTO_RWLOCK *lock) in CRYPTO_atomic_load()
H A Dthreads_none.c22 CRYPTO_RWLOCK *lock; in CRYPTO_THREAD_lock_new() local
34 __owur int CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_read_lock()
41 __owur int CRYPTO_THREAD_write_lock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_write_lock()
48 int CRYPTO_THREAD_unlock(CRYPTO_RWLOCK *lock) in CRYPTO_THREAD_unlock()
55 void CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock) { in CRYPTO_THREAD_lock_free()
128 int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) in CRYPTO_atomic_add()
137 CRYPTO_RWLOCK *lock) in CRYPTO_atomic_or()
145 int CRYPTO_atomic_load(uint64_t *val, uint64_t *ret, CRYPTO_RWLOCK *lock) in CRYPTO_atomic_load()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteClientBase.cpp46 std::lock_guard<std::mutex> lock(m_mutex); in SendContinuePacketAndWaitForResponse() local
68 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/sys/kern/
H A Dkern_rangelock.c71 rangelock_init(struct rangelock *lock) in rangelock_init()
79 rangelock_destroy(struct rangelock *lock) in rangelock_destroy()
103 rangelock_calc_block(struct rangelock *lock) in rangelock_calc_block()
140 rangelock_unlock_locked(struct rangelock *lock, struct rl_q_entry *entry, in rangelock_unlock_locked()
176 rangelock_unlock(struct rangelock *lock, void *cookie, struct mtx *ilk) in rangelock_unlock()
189 rangelock_unlock_range(struct rangelock *lock, void *cookie, off_t start, in rangelock_unlock_range()
217 rangelock_enqueue(struct rangelock *lock, off_t start, off_t end, int mode, in rangelock_enqueue()
271 rangelock_rlock(struct rangelock *lock, off_t start, off_t end, struct mtx *ilk) in rangelock_rlock()
278 rangelock_tryrlock(struct rangelock *lock, off_t start, off_t end, in rangelock_tryrlock()
286 rangelock_wlock(struct rangelock *lock, off_t start, off_t end, struct mtx *ilk) in rangelock_wlock()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DPathMappingList.cpp64 std::lock_guard<std::recursive_mutex> lock(m_mutex); in Append() local
87 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 …]

12345678910>>...27