/freebsd-11-stable/contrib/ofed/opensm/complib/ |
H A D | cl_dispatcher.c | 80 cl_spinlock_acquire(&p_disp->lock); 95 * and cause the lock to be reaquired. 97 cl_spinlock_release(&p_disp->lock); 111 /* Grab the lock for the next iteration through the list. */ 112 cl_spinlock_acquire(&p_disp->lock); 118 cl_spinlock_release(&p_disp->lock); 128 cl_spinlock_construct(&p_disp->lock); 151 cl_spinlock_destroy(&p_disp->lock); 168 status = cl_spinlock_init(&p_disp->lock); 210 cl_spinlock_acquire(&p_disp->lock); [all...] |
/freebsd-11-stable/sys/dev/drm2/ |
H A D | drm_gem_names.c | 53 mtx_init(&names->lock, "drmnames", NULL, MTX_DEF); 62 mtx_lock(&names->lock); 66 mtx_lock(&names->lock); 69 mtx_unlock(&names->lock); 70 mtx_destroy(&names->lock); 88 mtx_lock(&names->lock); 93 mtx_unlock(&names->lock); 97 mtx_unlock(&names->lock); 136 mtx_lock(&names->lock); 140 mtx_unlock(&names->lock); [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_interceptors_mac.cpp | 28 #if defined(__has_include) && __has_include(<os/lock.h>) 29 #include <os/lock.h> 189 TSAN_INTERCEPTOR(void, OSSpinLockLock, volatile OSSpinLock *lock) { argument 192 return REAL(OSSpinLockLock)(lock); 194 SCOPED_TSAN_INTERCEPTOR(OSSpinLockLock, lock); 195 REAL(OSSpinLockLock)(lock); 196 Acquire(thr, pc, (uptr)lock); 199 TSAN_INTERCEPTOR(bool, OSSpinLockTry, volatile OSSpinLock *lock) { argument 202 return REAL(OSSpinLockTry)(lock); 204 SCOPED_TSAN_INTERCEPTOR(OSSpinLockTry, lock); 211 TSAN_INTERCEPTOR(void, OSSpinLockUnlock, volatile OSSpinLock *lock) argument 221 TSAN_INTERCEPTOR(void, os_lock_lock, void *lock) argument 231 TSAN_INTERCEPTOR(bool, os_lock_trylock, void *lock) argument 243 TSAN_INTERCEPTOR(void, os_lock_unlock, void *lock) argument 255 TSAN_INTERCEPTOR(void, os_unfair_lock_lock, os_unfair_lock_t lock) argument 264 TSAN_INTERCEPTOR(void, os_unfair_lock_lock_with_options, os_unfair_lock_t lock, u32 options) argument 274 TSAN_INTERCEPTOR(bool, os_unfair_lock_trylock, os_unfair_lock_t lock) argument 285 TSAN_INTERCEPTOR(void, os_unfair_lock_unlock, os_unfair_lock_t lock) argument [all...] |
/freebsd-11-stable/etc/rc.d/ |
H A D | serial | 55 stty < /dev/tty${dc}${i}.lock -clocal -crtscts -hupcl 0 57 stty < /dev/cua${dc}${i}.lock -clocal -crtscts -hupcl 0 72 stty < /dev/tty${dc}${i}.lock clocal 74 # Any legal speed works to lock the initial speed. 75 stty < /dev/tty${dc}${i}.lock 300 76 stty < /dev/cua${dc}${i}.lock 300 92 stty < /dev/tty${dc}${i}.lock crtscts 94 stty < /dev/cua${dc}${i}.lock crtscts 108 stty < /dev/tty${dc}${i}.lock clocal hupcl 110 stty < /dev/cua${dc}${i}.lock cloca [all...] |
H A D | cleanvar | 27 rm -f /var/run/clean_var /var/spool/lock/clean_var 37 if [ -d /var/spool/lock -a ! -f /var/spool/lock/clean_var ]; then 38 find /var/spool/lock -type f -delete 39 >/var/spool/lock/clean_var
|
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | mutex.h | 36 #include <sys/lock.h> 71 * lock handles both signals and interrupts: 99 mutex_trylock_recursive(struct mutex *lock) argument 101 if (unlikely(sx_xholder(&lock->sx) == curthread)) 104 return (mutex_trylock(lock)); 139 #define DEFINE_MUTEX(lock) \ 140 mutex_t lock; \ 141 SX_SYSINIT_FLAGS(lock, &(lock).sx, mutex_name(#lock), SX_DUPO [all...] |
H A D | lockdep.h | 38 #define lockdep_set_class(lock, key) 39 #define lockdep_set_subclass(lock, sub) 40 #define lockdep_set_class_and_name(lock, key, name)
|
/freebsd-11-stable/sys/dev/isci/scil/ |
H A D | scif_sas_high_priority_request_queue.c | 93 sci_base_object_construct((SCI_BASE_OBJECT_T*) &fw_hprq->lock, logger); 94 fw_hprq->lock.level = SCI_LOCK_LEVEL_NONE; 122 sci_base_object_get_logger(&fw_hprq->lock), 130 scif_cb_lock_acquire(fw_domain->controller, &fw_hprq->lock); 159 scif_cb_lock_release(fw_domain->controller, &fw_hprq->lock);
|
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_spinlock.c | 48 struct umutex lock; member in struct:spinlock_extra 69 THR_UMUTEX_UNLOCK(_get_curthread(), &_extra->lock); 84 THR_UMUTEX_LOCK(_get_curthread(), &_extra->lock); 95 _thr_umutex_init(&extra[spinlock_count].lock); 120 _thr_umutex_init(&extra[i].lock);
|
/freebsd-11-stable/sys/contrib/vchiq/interface/compat/ |
H A D | vchi_bsd.h | 35 #include <sys/lock.h> 139 #define spin_lock_init(lock) mtx_init(lock, "VCHI spinlock " # lock, NULL, MTX_DEF) 140 #define spin_lock_destroy(lock) mtx_destroy(lock) 141 #define spin_lock(lock) mtx_lock(lock) 142 #define spin_unlock(lock) mtx_unlock(lock) 215 struct mtx lock; member in struct:completion [all...] |
/freebsd-11-stable/sys/dev/ocs_fc/ |
H A D | ocs_os.h | 56 #include <sys/lock.h> 537 struct mtx lock; member in struct:ocs_lock_s 543 * @brief Initialize a lock 545 * @param lock lock to initialize 546 * @param name string identifier for the lock 548 extern void ocs_lock_init(void *os, ocs_lock_t *lock, const char *name, ...); 552 * @brief Free a previously allocated lock 554 * @param lock lock t 557 ocs_lock_free(ocs_lock_t *lock) argument 575 ocs_lock(ocs_lock_t *lock) argument 593 ocs_unlock(ocs_lock_t *lock) argument 620 ocs_rlock_init(ocs_t *ocs, ocs_rlock_t *lock, const char *name) argument 633 ocs_rlock_free(ocs_rlock_t *lock) argument 652 ocs_rlock_try(ocs_rlock_t *lock) argument 666 ocs_rlock_acquire(ocs_rlock_t *lock) argument 682 ocs_rlock_release(ocs_rlock_t *lock) argument 856 struct mtx lock; member in struct:__anon7639 [all...] |
/freebsd-11-stable/contrib/subversion/subversion/libsvn_fs_x/ |
H A D | lock.c | 0 /* lock.c : functions for manipulating filesystem locks. 36 #include "lock.h" 48 /* Names of hash keys used to store a lock for writing to disk. */ 131 /* Return the path of the lock/entries file for which DIGEST is the 144 /* Set *DIGEST_PATH to the path to the lock/entries digest file associate 145 with PATH, where PATH is the path to the lock file or lock entries file 166 lock itself locked). Set the permissions of DIGEST_PATH to those of 171 svn_lock_t *lock, 190 if (lock) 168 write_digest_file(apr_hash_t *children, svn_lock_t *lock, const char *fs_path, const char *digest_path, const char *perms_reference, apr_pool_t *scratch_pool) argument 265 svn_lock_t *lock; local 358 set_lock(const char *fs_path, svn_lock_t *lock, const char *perms_reference, apr_pool_t *scratch_pool) argument 403 svn_lock_t *lock; local 441 svn_lock_t *lock; local 475 lock_expired(const svn_lock_t *lock) argument 494 svn_lock_t *lock = NULL; local 534 svn_lock_t *lock; local 571 svn_lock_t *lock; local 625 verify_lock(svn_fs_t *fs, svn_lock_t *lock) argument 653 get_locks_callback(void *baton, svn_lock_t *lock, apr_pool_t *pool) argument 682 svn_lock_t *lock; local 842 svn_lock_t *lock; member in struct:lock_info_t 977 svn_lock_t *lock; local 1089 unlock_single(svn_fs_t *fs, svn_lock_t *lock, apr_pool_t *scratch_pool) argument 1332 get_locks_filter_func(void *baton, svn_lock_t *lock, apr_pool_t *pool) argument [all...] |
/freebsd-11-stable/contrib/subversion/subversion/libsvn_fs_fs/ |
H A D | lock.c | 0 /* lock.c : functions for manipulating filesystem locks. 36 #include "lock.h" 47 /* Names of hash keys used to store a lock for writing to disk. */ 129 /* Return the path of the lock/entries file for which DIGEST is the 142 /* Set *DIGEST_PATH to the path to the lock/entries digest file associate 143 with PATH, where PATH is the path to the lock file or lock entries file 164 lock itself locked). Set the permissions of DIGEST_PATH to those of 169 svn_lock_t *lock, 186 if (lock) 166 write_digest_file(apr_hash_t *children, svn_lock_t *lock, const char *fs_path, const char *digest_path, const char *perms_reference, apr_pool_t *pool) argument 251 svn_lock_t *lock; local 344 set_lock(const char *fs_path, svn_lock_t *lock, const char *perms_reference, apr_pool_t *pool) argument 387 svn_lock_t *lock; local 423 svn_lock_t *lock; local 455 lock_expired(const svn_lock_t *lock) argument 474 svn_lock_t *lock = NULL; local 514 svn_lock_t *lock; local 551 svn_lock_t *lock; local 606 verify_lock(svn_fs_t *fs, svn_lock_t *lock, apr_pool_t *pool) argument 635 get_locks_callback(void *baton, svn_lock_t *lock, apr_pool_t *pool) argument 663 svn_lock_t *lock; local 822 svn_lock_t *lock; member in struct:lock_info_t 956 svn_lock_t *lock; local 1067 unlock_single(svn_fs_t *fs, svn_lock_t *lock, apr_pool_t *pool) argument 1311 get_locks_filter_func(void *baton, svn_lock_t *lock, apr_pool_t *pool) argument [all...] |
/freebsd-11-stable/sys/dev/netmap/ |
H A D | netmap_mbq.h | 36 * These function implement an mbuf tailq with an optional lock. 38 * variants (mbq_safe_*) also handle the lock. 50 /* A FIFO queue of mbufs with an optional lock. */ 55 SPINLOCK_T lock; member in struct:mbq 59 * holding a lock, and whether mbq_safe_destroy() is a NOP. 76 mtx_lock_spin(&q->lock); 82 mtx_unlock_spin(&q->lock);
|
/freebsd-11-stable/contrib/ntp/lib/isc/include/isc/ |
H A D | refcount.h | 142 isc_mutex_t lock; 149 DESTROYLOCK(&(rp)->lock); \ 158 LOCK(&(rp)->lock); \ 162 UNLOCK(&(rp)->lock); \ 168 LOCK(&(rp)->lock); \ 173 UNLOCK(&(rp)->lock); \ 180 LOCK(&(rp)->lock); \ 185 UNLOCK(&(rp)->lock); \
|
/freebsd-11-stable/contrib/gcc/ |
H A D | gthr-gnat.c | 60 __gnat_install_locks (void (*lock) (void), void (*unlock) (void)) 62 __gnat_task_lock = lock;
|
/freebsd-11-stable/sys/dev/twa/ |
H A D | tw_osl_inline.h | 55 * Description: Initializes a lock. 58 * lock_name -- string indicating name of the lock 59 * Output: lock -- ptr to handle to the initialized lock 62 #define tw_osl_init_lock(ctlr_handle, lock_name, lock) \ 63 mtx_init(lock, lock_name, NULL, MTX_SPIN) 69 * Description: Destroys a previously initialized lock. 72 * lock -- ptr to handle to the lock to be 77 #define tw_osl_destroy_lock(ctlr_handle, lock) \ [all...] |
/freebsd-11-stable/usr.sbin/rpc.lockd/ |
H A D | lockd_lock.h | 6 struct nlm4_holder * testlock(struct nlm4_lock *lock, bool_t exclusive, 10 enum nlm_stats unlock(nlm4_lock *lock, const int flags); 19 #define LOCK_MON 0x04 /* monitored lock (getlock only) */
|
/freebsd-11-stable/sys/compat/cloudabi/ |
H A D | cloudabi_thread.c | 44 .lock = uap->lock,
|
/freebsd-11-stable/sys/compat/linux/ |
H A D | stats_timing.d | 66 self->lock[arg0] = vtimestamp; 70 /self->lock[arg0] != 0/ 72 this->timediff = self->lock[arg0] - vtimestamp; 77 self->lock[arg0] = 0;
|
/freebsd-11-stable/sys/dev/mlx5/mlx5_fpga_tools/ |
H A D | tools.h | 38 #include <sys/lock.h> 52 struct sx lock; member in struct:mlx5_fpga_tools_dev
|
/freebsd-11-stable/sys/dev/sfxge/ |
H A D | sfxge_tx.h | 44 * for better cache locality and reduced time under TX lock 155 mtx_init(&(__txq)->lock, (__txq)->lock_name, \ 159 mtx_destroy(&(_txq)->lock) 161 mtx_lock(&(_txq)->lock) 163 mtx_trylock(&(_txq)->lock) 165 mtx_unlock(&(_txq)->lock) 167 mtx_assert(&(_txq)->lock, MA_OWNED) 169 mtx_assert(&(_txq)->lock, MA_NOTOWNED) 203 struct mtx lock __aligned(CACHE_LINE_SIZE);
|
/freebsd-11-stable/contrib/unbound/services/ |
H A D | view.h | 57 /** lock on the view tree */ 58 lock_rw_type lock; member in struct:views 71 * view_create's lock protect */ 80 /** lock on the data in the structure 81 * For the node and name you need to also hold the views_tree lock to 83 lock_rw_type lock; member in struct:view 132 * @param write: 1 for obtaining write lock on found view, 0 for read lock
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/gwp_asan/ |
H A D | mutex.h | 26 void lock(); 27 // Nonblocking trylock of the mutex. Returns true if the lock was acquired. 40 explicit ScopedLock(Mutex &Mx) : Mu(Mx) { Mu.lock(); }
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Mutex.h | 33 bool lock() { function in class:llvm::sys::SmartMutex 35 impl.lock();
|