Searched refs:locked (Results 1 - 25 of 123) sorted by relevance

12345

/freebsd-current/sys/contrib/libsodium/src/libsodium/sodium/
H A Dcore.c40 static volatile int locked; variable
103 assert(locked == 0);
104 locked = 1;
112 if (locked == 0) {
118 locked = 0;
134 assert(locked == 0);
135 locked = 1;
145 if (locked == 0) {
151 locked = 0;
/freebsd-current/sys/contrib/ck/include/spinlock/
H A Dmcs.h39 unsigned int locked; member in struct:ck_spinlock_mcs
62 node->locked = true;
91 node->locked = true;
107 while (ck_pr_load_uint(&node->locked) == true)
151 ck_pr_store_uint(&next->locked, false);
H A Danderson.h42 unsigned int locked; member in struct:ck_spinlock_anderson_thread
64 slots[0].locked = false;
67 slots[i].locked = true;
97 r = ck_pr_load_uint(&lock->slots[position].locked);
138 while (ck_pr_load_uint(&lock->slots[position].locked) == true)
142 ck_pr_store_uint(&lock->slots[position].locked, true);
163 ck_pr_store_uint(&lock->slots[position].locked, false);
/freebsd-current/sys/dev/drm2/ttm/
H A Dttm_lock.c78 bool locked = false; local
86 locked = true;
88 return locked;
116 static bool __ttm_read_trylock(struct ttm_lock *lock, bool *locked) argument
120 *locked = false;
129 *locked = true;
141 bool locked; local
152 while (!__ttm_read_trylock(lock, &locked)) {
159 MPASS(!locked || ret == 0);
162 return (locked)
175 bool locked = false; local
257 bool locked = false; local
328 bool locked = false; local
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_mutex.cpp55 // The table defines a static mutex type hierarchy (what mutex types can be locked
67 // Adjacency matrix of what mutexes can be locked under what mutexes.
148 LockDesc locked[kMutexTypeMax]; member in struct:__sanitizer::InternalDeadlockDetector
154 // Find the last locked mutex type.
159 if (locked[i].seq == 0)
161 CHECK_NE(locked[i].seq, max_seq);
162 if (max_seq < locked[i].seq) {
163 max_seq = locked[i].seq;
169 CHECK_EQ(locked[type].seq, max_seq);
170 CHECK(locked[typ
[all...]
H A Dsanitizer_mutex.h91 // The leaf mutexes can be locked under any other non-leaf mutex,
92 // but no other mutex can be locked while under a leaf mutex.
94 // Multiple mutexes of this type can be locked at the same time.
110 // The table fixes what mutexes can be locked under what mutexes.
112 // then Bar mutex can be locked while under Foo mutex.
172 bool locked = (state & (kWriterLock | kReaderLockMask)) != 0; local
173 if (LIKELY(!locked)) {
174 // The mutex is not read-/write-locked, try to lock.
192 if (LIKELY(!locked))
193 return; // We've locked th
258 bool locked = (state & kWriterLock) != 0; local
[all...]
H A Dsanitizer_deadlock_detector2.cpp72 ThreadMutex locked[kMaxNesting]; member in struct:__sanitizer::DDLogicalThread
206 ThreadMutex *tm = &lt->locked[lt->nlocked++];
219 u32 id1 = lt->locked[i].id;
220 u32 stk1 = lt->locked[i].stk;
293 ThreadMutex *tm = &lt->locked[lt->nlocked++];
315 if (cb->lt->locked[i].id == m->id) {
316 lt->locked[i] = lt->locked[last];
331 // Remove the mutex from lt->locked if there.
334 if (lt->locked[
[all...]
/freebsd-current/contrib/sendmail/libsmutil/
H A Dt-lockfile.c126 ** delay -- how long to keep file locked?
148 bool locked; local
153 locked = lockfile(fd, filename, "[owner]", LOCK_EX);
154 if (!locked)
172 locked = lockfile(fd, filename, "[owner]", LOCK_UN);
173 if (!locked)
190 ** CHKLCK -- check whether fd is locked (only for fcntl())
196 ** delay -- how long to keep file locked?
199 ** 0 if not locked
235 ** delay -- how long is file locked b
252 bool locked; local
259 long locked; local
[all...]
/freebsd-current/sys/security/mac/
H A Dmac_net.c303 int locked; local
308 MAC_IFNET_LOCK(ifp, locked);
310 MAC_IFNET_UNLOCK(ifp, locked);
341 int locked; local
345 MAC_IFNET_LOCK(ifp, locked);
348 MAC_IFNET_UNLOCK(ifp, locked);
357 int error, locked; local
365 MAC_IFNET_LOCK(ifp, locked);
369 MAC_IFNET_UNLOCK(ifp, locked);
381 int error, locked; local
403 int error, locked; local
446 int error, locked; local
[all...]
H A Dmac_inet.c278 int locked; local
285 MAC_IFNET_LOCK(ifp, locked);
288 MAC_IFNET_UNLOCK(ifp, locked);
323 int locked; local
330 MAC_IFNET_LOCK(ifp, locked);
333 MAC_IFNET_UNLOCK(ifp, locked);
/freebsd-current/sys/compat/linux/
H A Dcheck_internal_locks.d34 * Print stacktrace if a lock is longer locked than about 10sec or more.
45 linuxulator*:locks:futex_mtx:locked
53 linuxulator*:locks:futex_mtx:locked
H A Dstats_timing.d62 linuxulator*:::locked
/freebsd-current/crypto/openssh/
H A Dplatform.c202 /* returns 1 if account is locked */
206 int locked = 0; local
228 /* check for locked account */
232 locked = 1;
237 locked = 1;
241 locked = 1;
249 return locked;
/freebsd-current/contrib/libcxxrt/
H A Dguard.cc68 * another bit to indicate that it's currently locked (initialisation in
74 * lock word is in the locked state. This means that we can do double-checked
76 * transition the lock word from the unlocked to locked state, and then
106 * used to indicate the locked state is `1<<LockedBit`, the bit used to
115 static constexpr GuardWord locked = static_cast<GuardWord>(1) member in struct:__anon6::SingleWordGuard
156 if (val.compare_exchange(old, locked))
191 static constexpr uint32_t locked = static_cast<uint32_t>(1) member in class:__anon6::DoubleWordGuard
223 if (lock_word.compare_exchange(old, locked))
/freebsd-current/sys/dev/ixgbe/
H A Dixgbe_82599.h63 s32 prot_autoc_read_82599(struct ixgbe_hw *hw, bool *locked, u32 *reg_val);
64 s32 prot_autoc_write_82599(struct ixgbe_hw *hw, u32 reg_val, bool locked);
/freebsd-current/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp94 std::lock_guard<sys::Mutex> locked(lock);
106 std::lock_guard<sys::Mutex> locked(lock);
115 std::lock_guard<sys::Mutex> locked(lock);
142 std::lock_guard<sys::Mutex> locked(lock);
149 std::lock_guard<sys::Mutex> locked(lock);
191 std::lock_guard<sys::Mutex> locked(lock);
239 std::lock_guard<sys::Mutex> locked(lock);
259 std::lock_guard<sys::Mutex> locked(lock);
274 std::lock_guard<sys::Mutex> locked(lock);
301 std::lock_guard<sys::Mutex> locked(loc
[all...]
/freebsd-current/sys/dev/iommu/
H A Dbusdma_iommu.h53 bool locked; member in struct:bus_dmamap_iommu
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_vfs.c52 int locked; local
54 if (!(locked = mtx_owned(MNT_MTX(vfsp))))
90 if (!locked)
97 int locked; local
99 if (!(locked = mtx_owned(MNT_MTX(vfsp))))
102 if (!locked)
/freebsd-current/contrib/jemalloc/include/jemalloc/internal/
H A Dmutex.h50 atomic_b_t locked; member in struct:malloc_mutex_s::__anon827::__anon828
154 atomic_store_b(&mutex->locked, true, ATOMIC_RELAXED);
180 atomic_store_b(&mutex->locked, true, ATOMIC_RELAXED);
220 atomic_store_b(&mutex->locked, true, ATOMIC_RELAXED);
229 atomic_store_b(&mutex->locked, false, ATOMIC_RELAXED);
/freebsd-current/lib/libthr/thread/
H A Dthr_create.c62 int i, cpusetsize, create_suspended, locked, old_stack_prot, ret; local
152 locked = 1;
154 locked = 0;
199 if (!locked)
211 } else if (locked) {
/freebsd-current/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DGDBRegistrationListener.cpp154 std::lock_guard<llvm::sys::Mutex> locked(JITDebugLock);
178 std::lock_guard<llvm::sys::Mutex> locked(JITDebugLock);
197 std::lock_guard<llvm::sys::Mutex> locked(JITDebugLock);
/freebsd-current/sys/dev/usb/net/
H A Dif_smsc.c379 int locked; local
383 locked = mtx_owned(&sc->sc_mtx);
384 if (!locked)
422 if (!locked)
447 int locked; local
451 locked = mtx_owned(&sc->sc_mtx);
452 if (!locked)
470 if (!locked)
495 int locked; local
501 locked
541 int locked; local
1337 int locked; local
[all...]
/freebsd-current/stand/efi/include/
H A Defidebug.h88 #define ASSERT_LOCKED(l) if(!(l)->Lock) DBGASSERT(l not locked)
/freebsd-current/sys/dev/sound/macio/
H A Donyx.c273 int locked; local
278 locked = mtx_owned(mixer_lock);
295 if (locked)
301 if (locked)
/freebsd-current/sys/dev/random/
H A Dfortuna.c354 * We must be locked against pool state modification which can happen
541 * 3. In conventional ("locked") mode, we produce a maximum of PAGE_SIZE output
555 union randomdev_key *p_key, bool locked)
560 if (locked)
569 if (!locked && random_chachamode) {
574 if (locked) {
603 * locked: we need to rekey before we unlock and release the
611 if (locked || chunk_size == RANDOM_FORTUNA_MAX_READ) {
621 if (locked) {
655 * In locked mod
553 random_fortuna_genbytes(uint8_t *buf, size_t bytecount, uint8_t newkey[static RANDOM_KEYSIZE], uint128_t *p_counter, union randomdev_key *p_key, bool locked) argument
[all...]

Completed in 379 milliseconds

12345