Searched refs:lock (Results 226 - 250 of 2992) sorted by relevance

1234567891011>>

/freebsd-current/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dsig.h36 #include <sys/lock.h>
/freebsd-current/sys/dev/nvmf/host/
H A Dnvmf_aer.c10 #include <sys/lock.h>
28 struct mtx *lock; member in struct:nvmf_aer
113 mtx_lock(aer->lock);
117 mtx_unlock(aer->lock);
120 mtx_unlock(aer->lock);
129 mtx_lock(aer->lock);
133 mtx_unlock(aer->lock);
136 mtx_unlock(aer->lock);
250 sc->aer[i].lock = mtx_pool_find(mtxpool_sleep, &sc->aer[i]);
H A Dnvmf_ns.c14 #include <sys/lock.h>
35 struct mtx lock; member in struct:nvmf_namespace
91 mtx_lock(&ns->lock);
94 mtx_unlock(&ns->lock);
102 mtx_unlock(&ns->lock);
105 mtx_unlock(&ns->lock);
213 mtx_lock(&ns->lock);
221 mtx_unlock(&ns->lock);
229 mtx_unlock(&ns->lock);
258 mtx_unlock(&ns->lock);
[all...]
/freebsd-current/contrib/unbound/services/
H A Dlocalzone.c78 lock_rw_rdlock(&z->lock);
83 lock_rw_unlock(&z->lock);
89 lock_rw_rdlock(&zones->lock);
94 lock_rw_unlock(&zones->lock);
105 lock_rw_init(&zones->lock);
106 lock_protect(&zones->lock, &zones->ztree, sizeof(zones->ztree));
107 /* also lock protects the rbnode's in struct local_zone */
124 lock_rw_destroy(&zones->lock);
135 lock_rw_destroy(&z->lock);
197 lock_rw_init(&z->lock);
[all...]
H A Drpz.c344 lock_rw_init(&set->lock);
352 lock_rw_destroy(&r->lock);
364 lock_rw_destroy(&set->lock);
389 /* must hold write lock on auth_zone */
422 lock_rw_wrlock(&r->respip_set->lock);
424 lock_rw_unlock(&r->respip_set->lock);
426 lock_rw_wrlock(&r->client_set->lock);
428 lock_rw_unlock(&r->client_set->lock);
430 lock_rw_wrlock(&r->ns_set->lock);
432 lock_rw_unlock(&r->ns_set->lock);
[all...]
/freebsd-current/sys/ofed/drivers/infiniband/core/
H A Dib_mad_rmpp.c57 spinlock_t lock; member in struct:mad_rmpp_recv
96 spin_lock_irqsave(&agent->lock, flags);
102 spin_unlock_irqrestore(&agent->lock, flags);
131 spin_lock_irqsave(&rmpp_recv->lock, flags);
135 spin_unlock_irqrestore(&rmpp_recv->lock, flags);
255 spin_lock_irqsave(&rmpp_recv->agent->lock, flags);
257 spin_unlock_irqrestore(&rmpp_recv->agent->lock, flags);
262 spin_unlock_irqrestore(&rmpp_recv->agent->lock, flags);
276 spin_lock_irqsave(&rmpp_recv->agent->lock, flags);
278 spin_unlock_irqrestore(&rmpp_recv->agent->lock, flag
[all...]
H A Dib_cm.c125 spinlock_t lock; member in struct:ib_cm
269 spinlock_t lock; /* Do not acquire inside cm.lock */ member in struct:cm_id_private
273 * Protected by the cm.lock spinlock. */
332 spin_lock_irqsave(&cm.lock, flags);
341 spin_unlock_irqrestore(&cm.lock, flags);
344 spin_unlock_irqrestore(&cm.lock, flags);
535 spin_lock_irqsave(&cm.lock, flags);
543 spin_unlock_irqrestore(&cm.lock, flags);
554 spin_lock_irqsave(&cm.lock, flag
[all...]
/freebsd-current/contrib/ofed/libcxgb4/
H A Dqp.c323 pthread_spin_lock(&qhp->lock);
325 pthread_spin_unlock(&qhp->lock);
331 pthread_spin_unlock(&qhp->lock);
413 pthread_spin_unlock(&qhp->lock);
428 pthread_spin_lock(&qhp->lock);
430 pthread_spin_unlock(&qhp->lock);
437 pthread_spin_unlock(&qhp->lock);
481 pthread_spin_unlock(&qhp->lock);
500 * Assumes qhp lock is held.
517 pthread_spin_unlock(&qhp->lock);
[all...]
H A Dverbs.c136 pthread_spin_lock(&dev->lock);
138 pthread_spin_unlock(&dev->lock);
159 pthread_spin_lock(&dev->lock);
161 pthread_spin_unlock(&dev->lock);
193 ret = pthread_spin_init(&chp->lock, PTHREAD_PROCESS_PRIVATE);
228 pthread_spin_lock(&dev->lock);
230 pthread_spin_unlock(&dev->lock);
238 pthread_spin_destroy(&chp->lock);
276 pthread_spin_lock(&dev->lock);
278 pthread_spin_unlock(&dev->lock);
[all...]
/freebsd-current/sys/dev/cxgb/
H A Dcxgb_adapter.h35 #include <sys/lock.h>
66 #define MTX_INIT(lock, lockname, class, flags) \
69 mtx_init((lock), lockname, class, flags); \
72 #define MTX_DESTROY(lock) \
74 printf("destroying %s at %s:%d\n", (lock)->lock_object.lo_name, __FILE__, __LINE__); \
75 mtx_destroy((lock)); \
100 struct mtx lock; member in struct:port_info
192 struct mtx lock; member in struct:sge_rspq
288 struct mtx lock; member in struct:sge_qset
355 /* Register lock fo
383 struct mtx lock; member in struct:adapter
[all...]
/freebsd-current/sys/dev/hptmv/
H A Dhptproc.c66 mtx_lock(&pAdapter->lock);
82 mtx_unlock(&pAdapter->lock);
94 mtx_unlock(&pAdapter->lock);
106 mtx_unlock(&pAdapter->lock);
114 mtx_unlock(&pAdapter->lock);
120 mtx_unlock(&pAdapter->lock);
132 mtx_unlock(&pAdapter->lock);
146 mtx_unlock(&pAdapter->lock);
163 mtx_unlock(&pAdapter->lock);
166 mtx_unlock(&pAdapter->lock);
[all...]
/freebsd-current/contrib/unbound/contrib/
H A Dunbound_munin_104 lock=$state.lock
123 # holding the lock, after the state file is updated.
136 # obtain lock for fetching the state
139 # see if the lock is stale, if so, take it
140 if test -f $lock ; then
141 pid="`cat $lock 2>&1`"
144 echo $$ >$lock
149 while test ! -f $lock || test "`cat $lock
[all...]
/freebsd-current/sys/dev/vmware/vmci/
H A Dvmci_kernel_if.c32 * Initializes the lock. Must be called before use.
44 vmci_init_lock(vmci_lock *lock, char *name) argument
47 mtx_init(lock, name, NULL, MTX_DEF | MTX_NOWITNESS);
56 * Cleanup the lock. Must be called before deallocating lock.
62 * Deletes kernel lock state
68 vmci_cleanup_lock(vmci_lock *lock) argument
71 if (mtx_initialized(lock))
72 mtx_destroy(lock);
80 * Grabs the given lock
92 vmci_grab_lock(vmci_lock *lock) argument
115 vmci_release_lock(vmci_lock *lock) argument
138 vmci_grab_lock_bh(vmci_lock *lock) argument
161 vmci_release_lock_bh(vmci_lock *lock) argument
184 vmci_initialized_lock(vmci_lock *lock) argument
[all...]
/freebsd-current/sys/dev/drm2/ttm/
H A Dttm_memory.c65 mtx_lock(&zone->glob->lock);
76 mtx_unlock(&zone->glob->lock);
103 mtx_lock(&zone->glob->lock);
116 mtx_unlock(&zone->glob->lock);
166 mtx_lock(&glob->lock);
172 mtx_unlock(&glob->lock);
174 mtx_lock(&glob->lock);
179 mtx_unlock(&glob->lock);
254 mtx_init(&glob->lock, "ttmgz", NULL, MTX_DEF);
310 mtx_lock(&glob->lock);
[all...]
/freebsd-current/contrib/libevent/test/
H A Dregress_iocp.c115 void *lock; member in struct:dummy_overlapped
127 EVLOCK_LOCK(d_o->lock, 0);
133 EVLOCK_UNLOCK(d_o->lock, 0);
143 EVLOCK_LOCK(o->lock, 0);
150 EVLOCK_UNLOCK(o->lock, 0);
164 EVTHREAD_ALLOC_LOCK(o1.lock, EVTHREAD_LOCKTYPE_RECURSIVE);
165 EVTHREAD_ALLOC_LOCK(o2.lock, EVTHREAD_LOCKTYPE_RECURSIVE);
167 tt_assert(o1.lock);
168 tt_assert(o2.lock);
206 EVTHREAD_FREE_LOCK(o1.lock, EVTHREAD_LOCKTYPE_RECURSIV
[all...]
/freebsd-current/contrib/ofed/opensm/opensm/
H A Dosm_vl15intf.c154 cl_spinlock_acquire(&p_vl->lock);
163 cl_spinlock_release(&p_vl->lock);
215 cl_spinlock_construct(&p_vl->lock);
245 cl_spinlock_acquire(&p_vl->lock);
256 cl_spinlock_release(&p_vl->lock);
260 cl_spinlock_destroy(&p_vl->lock);
291 status = cl_spinlock_init(&p_vl->lock);
342 cl_spinlock_acquire(&p_vl->lock);
348 cl_spinlock_release(&p_vl->lock);
369 /* grab a lock o
[all...]
/freebsd-current/contrib/ntp/sntp/libevent/test/
H A Dregress_iocp.c115 void *lock; member in struct:dummy_overlapped
127 EVLOCK_LOCK(d_o->lock, 0);
133 EVLOCK_UNLOCK(d_o->lock, 0);
143 EVLOCK_LOCK(o->lock, 0);
150 EVLOCK_UNLOCK(o->lock, 0);
164 EVTHREAD_ALLOC_LOCK(o1.lock, EVTHREAD_LOCKTYPE_RECURSIVE);
165 EVTHREAD_ALLOC_LOCK(o2.lock, EVTHREAD_LOCKTYPE_RECURSIVE);
167 tt_assert(o1.lock);
168 tt_assert(o2.lock);
206 EVTHREAD_FREE_LOCK(o1.lock, EVTHREAD_LOCKTYPE_RECURSIV
[all...]
/freebsd-current/sys/dev/qat/qat_common/
H A Dadf_ctl_drv.c17 #include <sys/lock.h>
273 mutex_lock(&bundle->lock);
278 mutex_unlock(&bundle->lock);
294 mutex_unlock(&bundle->lock);
300 mutex_unlock(&bundle->lock);
344 mutex_lock(&bundle->lock);
346 mutex_unlock(&bundle->lock);
364 mutex_lock(&bundle->lock);
367 mutex_unlock(&bundle->lock);
385 mutex_lock(&bundle->lock);
[all...]
/freebsd-current/contrib/ofed/libmlx4/
H A Dsrq.c53 pthread_spin_lock(&srq->lock);
59 pthread_spin_unlock(&srq->lock);
73 pthread_spin_lock(&srq->lock);
120 pthread_spin_unlock(&srq->lock);
257 if (pthread_spin_init(&srq->lock, PTHREAD_PROCESS_PRIVATE))
300 pthread_spin_destroy(&srq->lock);
315 pthread_spin_lock(&mcq->lock);
317 pthread_spin_unlock(&mcq->lock);
321 pthread_spin_lock(&mcq->lock);
323 pthread_spin_unlock(&mcq->lock);
[all...]
/freebsd-current/contrib/ofed/libmlx5/
H A Dmlx5.h203 pthread_spinlock_t lock; member in struct:mlx5_spinlock
325 struct mlx5_spinlock lock; member in struct:mlx5_cq
348 struct mlx5_spinlock lock; member in struct:mlx5_srq
369 struct mlx5_spinlock lock; member in struct:mlx5_wq
385 struct mlx5_spinlock lock; member in struct:mlx5_bf
691 static inline int mlx5_spin_lock(struct mlx5_spinlock *lock) argument
694 return pthread_spin_lock(&lock->lock);
696 if (unlikely(lock->in_use)) {
702 lock
713 mlx5_spin_unlock(struct mlx5_spinlock *lock) argument
723 mlx5_spinlock_init(struct mlx5_spinlock *lock) argument
729 mlx5_spinlock_destroy(struct mlx5_spinlock *lock) argument
[all...]
/freebsd-current/contrib/jemalloc/include/jemalloc/internal/
H A Dprof_structs.h58 /* Profiling counters, protected by tdata->lock. */
88 /* Current dump-related state, protected by gctx->lock. */
101 malloc_mutex_t *lock; member in struct:prof_gctx_s
136 malloc_mutex_t *lock; member in struct:prof_tdata_s
/freebsd-current/sys/contrib/ck/include/spinlock/
H A Dclh.h46 ck_spinlock_clh_init(struct ck_spinlock_clh **lock, struct ck_spinlock_clh *unowned) argument
51 *lock = unowned;
84 /* Wait until previous thread is done with lock. */
102 * may be updated by a successor's lock operation. In order to avoid
/freebsd-current/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DHistoryThread.cpp65 // FIXME do not throw away the lock after we acquire it..
66 std::unique_lock<std::mutex> lock(m_framelist_mutex);
67 lock.unlock();
/freebsd-current/crypto/openssl/crypto/asn1/
H A Dtasn_utl.c62 * If |op| is 0, lock is initialised and count is set to 1.
72 CRYPTO_RWLOCK **lock; local
82 lock = offset2ptr(*pval, aux->ref_lock);
87 *lock = CRYPTO_THREAD_lock_new();
88 if (*lock == NULL) {
94 if (!CRYPTO_UP_REF(lck, &ret, *lock))
98 if (!CRYPTO_DOWN_REF(lck, &ret, *lock))
103 CRYPTO_THREAD_lock_free(*lock);
104 *lock = NULL;
/freebsd-current/sys/amd64/linux/
H A Dlinux_support.S78 lock
95 lock
115 lock
136 lock
157 lock
178 lock
199 lock
220 lock

Completed in 317 milliseconds

1234567891011>>