Home
last modified time | relevance | path

Searched refs:locked (Results 1 – 25 of 191) sorted by relevance

12345678

/freebsd/sys/dev/drm2/ttm/
H A Dttm_lock.c78 bool locked = false; in __ttm_read_lock() local
86 locked = true; in __ttm_read_lock()
88 return locked; in __ttm_read_lock()
116 static bool __ttm_read_trylock(struct ttm_lock *lock, bool *locked) in __ttm_read_trylock() argument
120 *locked = false; in __ttm_read_trylock()
129 *locked = true; in __ttm_read_trylock()
141 bool locked; in ttm_read_trylock() local
152 while (!__ttm_read_trylock(lock, &locked)) { in ttm_read_trylock()
159 MPASS(!locked || ret == 0); in ttm_read_trylock()
162 return (locked) ? 0 : -EBUSY; in ttm_read_trylock()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_mutex.cpp148 LockDesc locked[kMutexTypeMax]; member
159 if (locked[i].seq == 0) in Lock()
161 CHECK_NE(locked[i].seq, max_seq); in Lock()
162 if (max_seq < locked[i].seq) { in Lock()
163 max_seq = locked[i].seq; in Lock()
169 CHECK_EQ(locked[type].seq, max_seq); in Lock()
170 CHECK(locked[type].pc); in Lock()
171 locked[type].recursion++; in Lock()
177 PrintMutexPC(locked[max_idx].pc); in Lock()
180 locked[type].seq = ++sequence; in Lock()
[all …]
H A Dsanitizer_deadlock_detector2.cpp72 ThreadMutex locked[kMaxNesting]; member
206 ThreadMutex *tm = &lt->locked[lt->nlocked++]; in MutexBeforeLock()
219 u32 id1 = lt->locked[i].id; in MutexBeforeLock()
220 u32 stk1 = lt->locked[i].stk; in MutexBeforeLock()
293 ThreadMutex *tm = &lt->locked[lt->nlocked++]; in MutexAfterLock()
315 if (cb->lt->locked[i].id == m->id) { in MutexBeforeUnlock()
316 lt->locked[i] = lt->locked[last]; in MutexBeforeUnlock()
334 if (lt->locked[i].id == m->id) { in MutexDestroy()
335 lt->locked[i] = lt->locked[last]; in MutexDestroy()
H A Dsanitizer_mutex.h172 bool locked = (state & (kWriterLock | kReaderLockMask)) != 0; in Lock() local
173 if (LIKELY(!locked)) { in Lock()
192 if (LIKELY(!locked)) in Lock()
258 bool locked = (state & kWriterLock) != 0; in ReadLock() local
260 if (LIKELY(!locked)) { in ReadLock()
276 if (LIKELY(!locked)) in ReadLock()
/freebsd/contrib/sendmail/libsmutil/
H A Dt-lockfile.c148 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)
252 bool locked; local
259 long locked; local
261 locked = chklck(fd);
262 if (locked > 0)
264 (int) pid, (long) time(NULL), filename, locked);
[all …]
/freebsd/sys/security/mac/
H A Dmac_net.c303 int locked; in mac_ifnet_create() local
308 MAC_IFNET_LOCK(ifp, locked); in mac_ifnet_create()
310 MAC_IFNET_UNLOCK(ifp, locked); in mac_ifnet_create()
341 int locked; in mac_ifnet_create_mbuf_impl() local
345 MAC_IFNET_LOCK(ifp, locked); in mac_ifnet_create_mbuf_impl()
348 MAC_IFNET_UNLOCK(ifp, locked); in mac_ifnet_create_mbuf_impl()
357 int error, locked; in mac_bpfdesc_check_receive() local
365 MAC_IFNET_LOCK(ifp, locked); in mac_bpfdesc_check_receive()
369 MAC_IFNET_UNLOCK(ifp, locked); in mac_bpfdesc_check_receive()
381 int error, locked; in mac_ifnet_check_transmit_impl() local
[all …]
H A Dmac_inet.c278 int locked; in mac_netinet_arp_send() local
285 MAC_IFNET_LOCK(ifp, locked); in mac_netinet_arp_send()
288 MAC_IFNET_UNLOCK(ifp, locked); in mac_netinet_arp_send()
323 int locked; in mac_netinet_igmp_send() local
330 MAC_IFNET_LOCK(ifp, locked); in mac_netinet_igmp_send()
333 MAC_IFNET_UNLOCK(ifp, locked); in mac_netinet_igmp_send()
/freebsd/sys/contrib/libsodium/src/libsodium/sodium/
H A Dcore.c40 static volatile int locked; variable
103 assert(locked == 0); in sodium_crit_enter()
104 locked = 1; in sodium_crit_enter()
112 if (locked == 0) { in sodium_crit_leave()
118 locked = 0; in sodium_crit_leave()
134 assert(locked == 0); in sodium_crit_enter()
135 locked = 1; in sodium_crit_enter()
145 if (locked == 0) { in sodium_crit_leave()
151 locked = 0; in sodium_crit_leave()
/freebsd/sys/contrib/ck/include/spinlock/
H A Danderson.h42 unsigned int locked; member
64 slots[0].locked = false; in ck_spinlock_anderson_init()
67 slots[i].locked = true; in ck_spinlock_anderson_init()
97 r = ck_pr_load_uint(&lock->slots[position].locked); in ck_spinlock_anderson_locked()
138 while (ck_pr_load_uint(&lock->slots[position].locked) == true) in ck_spinlock_anderson_lock()
142 ck_pr_store_uint(&lock->slots[position].locked, true); in ck_spinlock_anderson_lock()
163 ck_pr_store_uint(&lock->slots[position].locked, false); in ck_spinlock_anderson_unlock()
H A Dmcs.h39 unsigned int locked; member
62 node->locked = true; in ck_spinlock_mcs_trylock()
91 node->locked = true; in ck_spinlock_mcs_lock()
107 while (ck_pr_load_uint(&node->locked) == true) in ck_spinlock_mcs_lock()
151 ck_pr_store_uint(&next->locked, false); in ck_spinlock_mcs_unlock()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp94 std::lock_guard<sys::Mutex> locked(lock); in ~MCJIT() local
106 std::lock_guard<sys::Mutex> locked(lock); in addModule() local
115 std::lock_guard<sys::Mutex> locked(lock); in removeModule() local
142 std::lock_guard<sys::Mutex> locked(lock); in setObjectCache() local
149 std::lock_guard<sys::Mutex> locked(lock); in emitObject() local
191 std::lock_guard<sys::Mutex> locked(lock); in generateCodeForModule() local
239 std::lock_guard<sys::Mutex> locked(lock); in finalizeLoadedModules() local
259 std::lock_guard<sys::Mutex> locked(lock); in finalizeObject() local
274 std::lock_guard<sys::Mutex> locked(lock); in finalizeModule() local
301 std::lock_guard<sys::Mutex> locked(lock); in findModuleForSymbol() local
[all …]
/freebsd/crypto/openssh/
H A Dplatform.c206 int locked = 0; in platform_locked_account() local
232 locked = 1; in platform_locked_account()
237 locked = 1; in platform_locked_account()
241 locked = 1; in platform_locked_account()
249 return locked; in platform_locked_account()
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_vfs.c52 int locked; in vfs_setmntopt() local
54 if (!(locked = mtx_owned(MNT_MTX(vfsp)))) in vfs_setmntopt()
90 if (!locked) in vfs_setmntopt()
97 int locked; in vfs_clearmntopt() local
99 if (!(locked = mtx_owned(MNT_MTX(vfsp)))) in vfs_clearmntopt()
102 if (!locked) in vfs_clearmntopt()
/freebsd/sys/contrib/device-tree/Bindings/i2c/
H A Di2c-mux-gpmux.txt31 - mux-locked: If present, explicitly allow unrelated I2C transactions on the
41 If mux-locked is not present, the multiplexer is assumed to be parent-locked.
44 The properties of mux-locked and parent-locked multiplexers are discussed
65 mux-locked;
/freebsd/contrib/libcxxrt/
H A Dguard.cc115 static constexpr GuardWord locked = static_cast<GuardWord>(1) member
156 if (val.compare_exchange(old, locked)) in try_lock()
191 static constexpr uint32_t locked = static_cast<uint32_t>(1) member in __anone6a749c70111::DoubleWordGuard
223 if (lock_word.compare_exchange(old, locked)) in try_lock()
/freebsd/sys/dev/usb/net/
H A Dif_smsc.c379 int locked; in smsc_eeprom_read() local
383 locked = mtx_owned(&sc->sc_mtx); in smsc_eeprom_read()
384 if (!locked) in smsc_eeprom_read()
422 if (!locked) in smsc_eeprom_read()
447 int locked; in smsc_miibus_readreg() local
451 locked = mtx_owned(&sc->sc_mtx); in smsc_miibus_readreg()
452 if (!locked) in smsc_miibus_readreg()
470 if (!locked) in smsc_miibus_readreg()
495 int locked; in smsc_miibus_writereg() local
501 locked = mtx_owned(&sc->sc_mtx); in smsc_miibus_writereg()
[all …]
H A Dif_rue.c316 int locked; in rue_miibus_readreg() local
321 locked = mtx_owned(&sc->sc_mtx); in rue_miibus_readreg()
322 if (!locked) in rue_miibus_readreg()
357 if (!locked) in rue_miibus_readreg()
367 int locked; in rue_miibus_writereg() local
372 locked = mtx_owned(&sc->sc_mtx); in rue_miibus_writereg()
373 if (!locked) in rue_miibus_writereg()
405 if (!locked) in rue_miibus_writereg()
427 int locked; in rue_miibus_statchg()
429 locked = mtx_owned(&sc->sc_mtx); in rue_miibus_statchg()
[all …]
H A Dif_mos.c425 int i, res, locked; in mos_miibus_readreg() local
427 locked = mtx_owned(&sc->sc_mtx); in mos_miibus_readreg()
428 if (!locked) in mos_miibus_readreg()
446 if (!locked) in mos_miibus_readreg()
455 int i, locked; in mos_miibus_writereg() local
457 locked = mtx_owned(&sc->sc_mtx); in mos_miibus_writereg()
458 if (!locked) in mos_miibus_writereg()
474 if (!locked) in mos_miibus_writereg()
484 int val, err, locked; in mos_miibus_statchg() local
486 locked = mtx_owned(&sc->sc_mtx); in mos_miibus_statchg()
[all …]
H A Dif_muge.c390 bool locked; in lan78xx_eeprom_read_raw() local
392 locked = mtx_owned(&sc->sc_mtx); /* XXX */ in lan78xx_eeprom_read_raw()
393 if (!locked) in lan78xx_eeprom_read_raw()
443 if (!locked) in lan78xx_eeprom_read_raw()
485 bool locked; in lan78xx_otp_read_raw() local
486 locked = mtx_owned(&sc->sc_mtx); in lan78xx_otp_read_raw()
487 if (!locked) in lan78xx_otp_read_raw()
524 if (!locked) in lan78xx_otp_read_raw()
659 bool locked; in lan78xx_miibus_readreg() local
662 locked in lan78xx_miibus_readreg()
712 bool locked; lan78xx_miibus_writereg() local
762 bool locked; lan78xx_miibus_statchg() local
[all...]
H A Dif_aue.c423 int i, locked; in aue_miibus_readreg() local
426 locked = mtx_owned(&sc->sc_mtx); in aue_miibus_readreg()
427 if (!locked) in aue_miibus_readreg()
461 if (!locked) in aue_miibus_readreg()
471 int locked; in aue_miibus_writereg() local
476 locked = mtx_owned(&sc->sc_mtx); in aue_miibus_writereg()
477 if (!locked) in aue_miibus_writereg()
494 if (!locked) in aue_miibus_writereg()
504 int locked; in aue_miibus_statchg() local
506 locked = mtx_owned(&sc->sc_mtx); in aue_miibus_statchg()
[all …]
H A Dif_axge.c293 int locked; in axge_miibus_readreg() local
296 locked = mtx_owned(&sc->sc_mtx); in axge_miibus_readreg()
297 if (!locked) in axge_miibus_readreg()
302 if (!locked) in axge_miibus_readreg()
312 int locked; in axge_miibus_writereg() local
315 locked = mtx_owned(&sc->sc_mtx); in axge_miibus_writereg()
316 if (!locked) in axge_miibus_writereg()
321 if (!locked) in axge_miibus_writereg()
335 int locked; in axge_miibus_statchg() local
339 locked = mtx_owned(&sc->sc_mtx); in axge_miibus_statchg()
[all …]
/freebsd/sys/dev/random/
H A Dfortuna.c553 union randomdev_key *p_key, bool locked) in random_fortuna_genbytes() argument
558 if (locked) in random_fortuna_genbytes()
567 if (!locked && random_chachamode) { in random_fortuna_genbytes()
572 if (locked) { in random_fortuna_genbytes()
609 if (locked || chunk_size == RANDOM_FORTUNA_MAX_READ) { in random_fortuna_genbytes()
619 if (locked) { in random_fortuna_genbytes()
656 if (locked) { in random_fortuna_genbytes()
/freebsd/lib/libthr/thread/
H A Dthr_create.c62 int i, cpusetsize, create_suspended, locked, old_stack_prot, ret; in _pthread_create() local
152 locked = 1; in _pthread_create()
154 locked = 0; in _pthread_create()
199 if (!locked) in _pthread_create()
211 } else if (locked) { in _pthread_create()
/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Dmutex.h50 atomic_b_t locked; member
154 atomic_store_b(&mutex->locked, true, ATOMIC_RELAXED); in malloc_mutex_lock_final()
180 atomic_store_b(&mutex->locked, true, ATOMIC_RELAXED); in malloc_mutex_trylock()
220 atomic_store_b(&mutex->locked, true, ATOMIC_RELAXED); in malloc_mutex_lock()
229 atomic_store_b(&mutex->locked, false, ATOMIC_RELAXED); in malloc_mutex_unlock()
/freebsd/sys/dev/sound/macio/
H A Donyx.c272 int locked; in onyx_set() local
277 locked = mtx_owned(mixer_lock); in onyx_set()
294 if (locked) in onyx_set()
300 if (locked) in onyx_set()

12345678