Home
last modified time | relevance | path

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

12345678910>>...28

/freebsd-12-stable/contrib/unbound/util/
Dlocks.h86 #define lock_protect(lock, area, size) /* nop */ argument
87 #define lock_unprotect(lock, area) /* nop */ argument
88 #define lock_get_mem(lock) (0) /* nothing */ argument
100 #define lock_basic_init(lock) LOCKRET(pthread_mutex_init(lock, NULL)) argument
101 #define lock_basic_destroy(lock) LOCKRET(pthread_mutex_destroy(lock)) argument
102 #define lock_basic_lock(lock) LOCKRET(pthread_mutex_lock(lock)) argument
103 #define lock_basic_unlock(lock) LOCKRET(pthread_mutex_unlock(lock)) argument
108 #define lock_rw_init(lock) LOCKRET(pthread_mutex_init(lock, NULL)) argument
109 #define lock_rw_destroy(lock) LOCKRET(pthread_mutex_destroy(lock)) argument
110 #define lock_rw_rdlock(lock) LOCKRET(pthread_mutex_lock(lock)) argument
[all …]
/freebsd-12-stable/contrib/gcclibs/libgomp/config/posix/
Dlock.c47 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-stable/contrib/gcclibs/libgomp/config/posix95/
Dlock.c38 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-stable/sys/dev/drm2/ttm/
Dttm_lock.c50 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()
94 ttm_read_lock(struct ttm_lock *lock, bool interruptible) in ttm_read_lock()
118 static bool __ttm_read_trylock(struct ttm_lock *lock, bool *locked) in __ttm_read_trylock()
139 int ttm_read_trylock(struct ttm_lock *lock, bool interruptible) in ttm_read_trylock()
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()
194 ttm_write_lock(struct ttm_lock *lock, bool interruptible) in ttm_write_lock()
224 void ttm_write_lock_downgrade(struct ttm_lock *lock) in ttm_write_lock_downgrade()
[all …]
/freebsd-12-stable/contrib/gcclibs/libgomp/config/linux/
Dlock.c43 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-stable/sys/sys/
D_lockmgr.h40 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;
Dlock.h97 #define LO_CLASSINDEX(lock) ((((lock)->lo_flags) & LO_CLASSMASK) >> LO_CLASSSHIFT) argument
98 #define LOCK_CLASS(lock) (lock_classes[LO_CLASSINDEX((lock))]) argument
288 #define WITNESS_INIT(lock, type) \ argument
291 #define WITNESS_DESTROY(lock) \ argument
294 #define WITNESS_CHECKORDER(lock, flags, file, line, interlock) \ argument
301 #define WITNESS_LOCK(lock, flags, file, line) \ argument
304 #define WITNESS_UPGRADE(lock, flags, file, line) \ argument
307 #define WITNESS_DOWNGRADE(lock, flags, file, line) \ argument
310 #define WITNESS_UNLOCK(lock, flags, file, line) \ argument
313 #define WITNESS_CHECK(flags, lock, fmt, ...) \ argument
[all …]
/freebsd-12-stable/contrib/openbsm/bin/auditdistd/
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-12-stable/sbin/hastd/
Dsynch.h51 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-stable/sys/cddl/compat/opensolaris/sys/
Drwlock.h61 #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 …]
Dmutex.h55 #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-stable/crypto/heimdal/lib/hx509/
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()
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-12-stable/sys/compat/linuxkpi/common/include/linux/
Drwlock.h47 #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-stable/contrib/gcclibs/libgomp/
Domp_lib.f90.in42 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
Dfortran.c75 omp_init_nest_lock_ (omp_nest_lock_arg_t lock) in omp_init_nest_lock_()
84 omp_destroy_lock_ (omp_lock_arg_t lock) in omp_destroy_lock_()
94 omp_destroy_nest_lock_ (omp_nest_lock_arg_t lock) in omp_destroy_nest_lock_()
104 omp_set_lock_ (omp_lock_arg_t lock) in omp_set_lock_()
110 omp_set_nest_lock_ (omp_nest_lock_arg_t lock) in omp_set_nest_lock_()
116 omp_unset_lock_ (omp_lock_arg_t lock) in omp_unset_lock_()
122 omp_unset_nest_lock_ (omp_nest_lock_arg_t lock) in omp_unset_nest_lock_()
182 omp_test_lock_ (omp_lock_arg_t lock) in omp_test_lock_()
212 omp_test_nest_lock_ (omp_nest_lock_arg_t lock) in omp_test_nest_lock_()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
DGDBRemoteClientBase.cpp47 std::lock_guard<std::mutex> lock(m_mutex); in SendContinuePacketAndWaitForResponse() local
69 std::lock_guard<std::mutex> lock(m_mutex); in SendContinuePacketAndWaitForResponse() local
163 Lock lock(*this, interrupt_timeout); in SendAsyncSignal() local
174 Lock lock(*this, interrupt_timeout); in Interrupt() local
185 Lock lock(*this, interrupt_timeout); in SendPacketAndWaitForResponse() local
204 Lock lock(*this, interrupt_timeout); in SendPacketAndReceiveResponseWithOutputSupport() local
259 Lock lock(*this, interrupt_timeout); in SendvContPacket() local
280 std::lock_guard<std::mutex> lock(m_mutex); in ShouldStop() local
331 std::unique_lock<std::mutex> lock(m_comm.m_mutex); in unlock() local
339 GDBRemoteClientBase::ContinueLock::lock() { in lock() function in GDBRemoteClientBase::ContinueLock
[all …]
/freebsd-12-stable/sys/contrib/octeon-sdk/
Dcvmx-rwlock.h77 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()
Dcvmx-spinlock.h91 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-stable/sys/contrib/ck/include/spinlock/
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()
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()
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()
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-12-stable/contrib/libevent/
Devthread.c191 void *lock; member
219 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-12-stable/contrib/ntp/sntp/libevent/
Devthread.c191 void *lock; member
219 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-12-stable/crypto/openssl/include/internal/
Drefcount.h32 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-stable/contrib/llvm-project/openmp/runtime/src/
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
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 …]

12345678910>>...28