/freebsd-11-stable/sys/ofed/include/rdma/ |
H A D | rdmavt_cq.h | 86 spinlock_t lock; /* protect changes in this struct */ member in struct:rvt_cq
|
/freebsd-11-stable/sys/tests/callout_test/ |
H A D | callout_test.c | 54 struct mtx lock; member in struct:callout_run 99 mtx_lock(&rn->lock); 101 mtx_unlock(&rn->lock); 115 mtx_lock(&rn->lock); 120 mtx_unlock(&rn->lock); 125 mtx_unlock(&rn->lock); 135 mtx_lock(&rn->lock); 158 /* OK everyone is waiting and we have the lock */ 168 mtx_unlock(&rn->lock); 196 mtx_init(&rn->lock, "callouttes [all...] |
/freebsd-11-stable/sys/amd64/linux32/ |
H A D | linux32_support.s | 62 lock 81 lock 101 lock 121 lock
|
/freebsd-11-stable/sys/amd64/linux/ |
H A D | linux_support.s | 62 lock 81 lock 101 lock 121 lock
|
/freebsd-11-stable/sys/i386/linux/ |
H A D | linux_support.s | 66 lock 85 lock 107 lock 123 lock
|
/freebsd-11-stable/contrib/unbound/util/ |
H A D | tcp_conn_limit.h | 70 /** lock on structure data */ 71 lock_quick_type lock; member in struct:tcl_addr
|
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Host/ |
H A D | OptionParser.h | 37 static void Prepare(std::unique_lock<std::mutex> &lock);
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/ |
H A D | scudo_tsd.h | 43 INLINE void lock() { function
|
/freebsd-11-stable/contrib/subversion/subversion/libsvn_client/ |
H A D | info.c | 57 if (new_info->lock) 58 new_info->lock = svn_lock_dup(info->lock, pool); 142 svn_lock_t *lock, 156 tmpinfo->lock = lock; 205 svn_lock_t *lock; local 220 lock = svn_hash_gets(locks, fs_path); 222 SVN_ERR(build_info_from_dirent(&info, the_ent, lock, child_pathrev, 319 client_info.lock 140 build_info_from_dirent(svn_client_info2_t **info, const svn_dirent_t *dirent, svn_lock_t *lock, const svn_client__pathrev_t *pathrev, apr_pool_t *pool) argument 343 svn_lock_t *lock; local [all...] |
/freebsd-11-stable/contrib/unbound/services/cache/ |
H A D | rrset.c | 101 * holding any other rrset lock. 109 lock_quick_lock(&table->lock); 113 * so, we must acquire a lock on the item to verify the id != 0. 116 lock_rw_rdlock(&key->entry.lock); 120 lock_rw_unlock(&key->entry.lock); 121 lock_quick_unlock(&table->lock); 173 /* this may clear the cache and invalidate lock below */ 176 lock_rw_wrlock(&ref->key->entry.lock); 182 lock_rw_unlock(&ref->key->entry.lock); 212 lock_rw_unlock(&e->lock); [all...] |
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/ |
H A D | ib_mad_rmpp.c | 59 spinlock_t lock; member in struct:mad_rmpp_recv 98 spin_lock_irqsave(&agent->lock, flags); 104 spin_unlock_irqrestore(&agent->lock, flags); 133 spin_lock_irqsave(&rmpp_recv->lock, flags); 137 spin_unlock_irqrestore(&rmpp_recv->lock, flags); 257 spin_lock_irqsave(&rmpp_recv->agent->lock, flags); 259 spin_unlock_irqrestore(&rmpp_recv->agent->lock, flags); 264 spin_unlock_irqrestore(&rmpp_recv->agent->lock, flags); 278 spin_lock_irqsave(&rmpp_recv->agent->lock, flags); 280 spin_unlock_irqrestore(&rmpp_recv->agent->lock, flag [all...] |
H A D | ib_cm.c | 77 spinlock_t lock; member in struct:ib_cm 222 spinlock_t lock; /* Do not acquire inside cm.lock */ member in struct:cm_id_private 226 * Protected by the cm.lock spinlock. */ 285 spin_lock_irqsave(&cm.lock, flags); 294 spin_unlock_irqrestore(&cm.lock, flags); 297 spin_unlock_irqrestore(&cm.lock, flags); 462 spin_lock_irqsave(&cm.lock, flags); 470 spin_unlock_irqrestore(&cm.lock, flags); 481 spin_lock_irqsave(&cm.lock, flag [all...] |
/freebsd-11-stable/contrib/unbound/services/ |
H A D | localzone.c | 67 lock_rw_init(&zones->lock); 68 lock_protect(&zones->lock, &zones->ztree, sizeof(zones->ztree)); 69 /* also lock protects the rbnode's in struct local_zone */ 86 lock_rw_destroy(&zones->lock); 97 lock_rw_destroy(&z->lock); 159 lock_rw_init(&z->lock); 166 lock_protect(&z->lock, &z->parent, sizeof(*z)-sizeof(rbnode_type)); 167 /* also the zones->lock protects node, parent, name*, class */ 184 lock_rw_wrlock(&zones->lock); 185 lock_rw_wrlock(&z->lock); [all...] |
/freebsd-11-stable/sys/dev/cxgb/ |
H A D | cxgb_adapter.h | 36 #include <sys/lock.h> 68 #define MTX_INIT(lock, lockname, class, flags) \ 71 mtx_init((lock), lockname, class, flags); \ 74 #define MTX_DESTROY(lock) \ 76 printf("destroying %s at %s:%d\n", (lock)->lock_object.lo_name, __FILE__, __LINE__); \ 77 mtx_destroy((lock)); \ 102 struct mtx lock; member in struct:port_info 194 struct mtx lock; member in struct:sge_rspq 290 struct mtx lock; member in struct:sge_qset 357 /* Register lock fo 384 struct mtx lock; member in struct:adapter [all...] |
/freebsd-11-stable/contrib/ofed/libcxgb4/ |
H A D | qp.c | 323 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...] |
/freebsd-11-stable/sys/dev/hptmv/ |
H A D | hptproc.c | 66 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-11-stable/contrib/ntp/lib/isc/ |
H A D | timer.c | 81 isc_mutex_t lock; member in struct:isc__timer 82 /*! Locked by timer lock. */ 85 /*! Locked by manager lock. */ 104 isc_mutex_t lock; member in struct:isc__timermgr 105 /* Locked by manager lock. */ 374 LOCK(&manager->lock); 384 UNLOCK(&manager->lock); 387 DESTROYLOCK(&timer->lock); 474 result = isc_mutex_init(&timer->lock); 485 LOCK(&manager->lock); [all...] |
H A D | stats.c | 61 isc_mutex_t lock; member in struct:isc_stats 62 unsigned int references; /* locked by lock */ 74 * We don't want to lock the counters while we are dumping, so we first 98 result = isc_mutex_init(&stats->lock); 141 DESTROYLOCK(&stats->lock); 154 LOCK(&stats->lock); 156 UNLOCK(&stats->lock); 170 LOCK(&stats->lock); 172 UNLOCK(&stats->lock); 179 DESTROYLOCK(&stats->lock); [all...] |
/freebsd-11-stable/contrib/apr-util/misc/ |
H A D | apr_thread_pool.c | 74 apr_thread_mutex_t *lock; member in struct:apr_thread_pool 92 rv = apr_thread_mutex_create(&me->lock, APR_THREAD_MUTEX_NESTED, 99 apr_thread_mutex_destroy(me->lock); 142 apr_thread_mutex_destroy(me->lock); 149 * NOTE: This function is not thread safe by itself. Caller should hold the lock 205 * NOTE: This function is not thread safe by itself. Caller should hold the lock 245 apr_thread_mutex_lock(me->lock); 248 apr_thread_mutex_unlock(me->lock); 264 apr_thread_mutex_unlock(me->lock); 267 apr_thread_mutex_lock(me->lock); [all...] |
/freebsd-11-stable/sys/dev/drm2/ttm/ |
H A D | ttm_memory.c | 67 mtx_lock(&zone->glob->lock); 78 mtx_unlock(&zone->glob->lock); 105 mtx_lock(&zone->glob->lock); 118 mtx_unlock(&zone->glob->lock); 168 mtx_lock(&glob->lock); 174 mtx_unlock(&glob->lock); 176 mtx_lock(&glob->lock); 181 mtx_unlock(&glob->lock); 256 mtx_init(&glob->lock, "ttmgz", NULL, MTX_DEF); 312 mtx_lock(&glob->lock); [all...] |
/freebsd-11-stable/contrib/unbound/contrib/ |
H A D | unbound_munin_ | 106 lock=$state.lock 126 # obtain lock for fetching the state 129 # see if the lock is stale, if so, take it 130 if test -f $lock ; then 131 pid="`cat $lock 2>&1`" 134 echo $$ >$lock 139 while test ! -f $lock || test "`cat $lock 2>&1`" != $$; do 140 while test -f $lock; d [all...] |
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/ |
H A D | regress_iocp.c | 115 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-11-stable/contrib/ofed/opensm/opensm/ |
H A D | osm_vl15intf.c | 154 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-11-stable/sys/kern/ |
H A D | kern_lock.c | 39 #include <sys/lock.h> 59 PMC_SOFT_DECLARE( , , lock, failed); 137 static void assert_lockmgr(const struct lock_object *lock, int how); 139 static void db_show_lockmgr(const struct lock_object *lock); 141 static void lock_lockmgr(struct lock_object *lock, uintptr_t how); 143 static int owner_lockmgr(const struct lock_object *lock, 146 static uintptr_t unlock_lockmgr(struct lock_object *lock); 171 static bool __always_inline lockmgr_slock_try(struct lock *lk, uintptr_t *xp, 173 static bool __always_inline lockmgr_sunlock_try(struct lock *lk, uintptr_t x); 176 lockmgr_note_shared_acquire(struct lock *l 382 assert_lockmgr(const struct lock_object *lock, int what) argument 389 lock_lockmgr(struct lock_object *lock, uintptr_t how) argument 396 unlock_lockmgr(struct lock_object *lock) argument 404 owner_lockmgr(const struct lock_object *lock, struct thread **owner) argument 1693 db_show_lockmgr(const struct lock_object *lock) argument [all...] |
/freebsd-11-stable/contrib/ofed/libmlx5/ |
H A D | mlx5.h | 203 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...] |