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

123456

/netbsd-current/sys/external/bsd/drm2/dist/drm/vmwgfx/
H A Dttm_lock.c68 bool locked = false; local
72 locked = true;
74 return locked;
93 static bool __ttm_read_trylock(struct ttm_lock *lock, bool *locked) argument
97 *locked = false;
103 *locked = true;
115 bool locked; local
120 __ttm_read_trylock(lock, &locked));
123 __ttm_read_trylock(lock, &locked));
127 BUG_ON(locked);
144 bool locked = false; local
188 bool locked = false; local
[all...]
/netbsd-current/external/ibm-public/postfix/dist/src/global/
H A Dmbox_open.c114 int locked = 0; local
144 locked |= MBOX_DOT_LOCK;
168 if (locked & MBOX_DOT_LOCK)
186 locked |= lock_style;
189 if (locked & MBOX_DOT_LOCK)
212 if (locked & MBOX_DOT_LOCK)
220 mp->locked = locked;
237 if (mp->locked & MBOX_DOT_LOCK)
H A Dmbox_open.h34 int locked; /* what locks were set */ member in struct:__anon6444
/netbsd-current/sys/external/isc/libsodium/dist/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;
/netbsd-current/external/gpl3/gcc/dist/libsanitizer/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.h89 // The leaf mutexes can be locked under any other non-leaf mutex,
90 // but no other mutex can be locked while under a leaf mutex.
92 // Multiple mutexes of this type can be locked at the same time.
108 // The table fixes what mutexes can be locked under what mutexes.
110 // then Bar mutex can be locked while under Foo mutex.
170 bool locked = (state & (kWriterLock | kReaderLockMask)) != 0; local
171 if (LIKELY(!locked)) {
172 // The mutex is not read-/write-locked, try to lock.
190 if (LIKELY(!locked))
191 return; // We've locked th
242 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...]
/netbsd-current/lib/libpthread/
H A Dpthread_lock.c80 int locked; local
83 locked = __SIMPLELOCK_LOCKED_P(alp);
87 return !locked;
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/
H A Dschedlock.exp210 # we expect threads other than the selected thread remained locked.
212 proc check_result { cmd before_thread before_args locked } {
228 if { $locked } {
229 set test "$test - locked"
254 if { $locked } {
255 gdb_assert {$num_other_threads == 0} "other threads didn't run - locked"
295 set locked 1
297 set locked 0
300 check_result $cmd $curthread $before_args $locked
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/
H A Dschedlock.exp210 # we expect threads other than the selected thread remained locked.
212 proc check_result { cmd before_thread before_args locked } {
228 if { $locked } {
229 set test "$test - locked"
254 if { $locked } {
255 gdb_assert {$num_other_threads == 0} "other threads didn't run - locked"
295 set locked 1
297 set locked 0
300 check_result $cmd $curthread $before_args $locked
/netbsd-current/sys/dev/pci/ixgbe/
H A Dixgbe_82599.h66 s32 prot_autoc_read_82599(struct ixgbe_hw *hw, bool *locked, u32 *reg_val);
67 s32 prot_autoc_write_82599(struct ixgbe_hw *hw, u32 reg_val, bool locked);
/netbsd-current/external/gpl3/gcc.old/dist/libbacktrace/
H A Dmmap.c115 int locked; local
129 locked = 1;
131 locked = __sync_lock_test_and_set (&state->lock_alloc, 1) == 0;
133 if (locked)
195 int locked; local
223 locked = 1;
225 locked = __sync_lock_test_and_set (&state->lock_alloc, 1) == 0;
227 if (locked)
/netbsd-current/external/bsd/tmux/dist/
H A Dcmd-wait-for.c51 int locked; member in struct:wait_channel
91 wc->locked = 0;
107 if (wc->locked)
209 if (wc->locked) {
215 wc->locked = 1;
226 if (wc == NULL || !wc->locked) {
227 cmdq_error(item, "channel %s not locked", name);
236 wc->locked = 0;
261 wc->locked = 0;
/netbsd-current/external/gpl3/gcc/dist/libbacktrace/
H A Dmmap.c119 int locked; local
133 locked = 1;
135 locked = __sync_lock_test_and_set (&state->lock_alloc, 1) == 0;
137 if (locked)
199 int locked; local
227 locked = 1;
229 locked = __sync_lock_test_and_set (&state->lock_alloc, 1) == 0;
231 if (locked)
/netbsd-current/external/gpl3/gdb/dist/libbacktrace/
H A Dmmap.c119 int locked; local
133 locked = 1;
135 locked = __sync_lock_test_and_set (&state->lock_alloc, 1) == 0;
137 if (locked)
199 int locked; local
227 locked = 1;
229 locked = __sync_lock_test_and_set (&state->lock_alloc, 1) == 0;
231 if (locked)
/netbsd-current/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp93 std::lock_guard<sys::Mutex> locked(lock);
105 std::lock_guard<sys::Mutex> locked(lock);
114 std::lock_guard<sys::Mutex> locked(lock);
141 std::lock_guard<sys::Mutex> locked(lock);
148 std::lock_guard<sys::Mutex> locked(lock);
190 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...]
/netbsd-current/external/cddl/dtracetoolkit/dist/Bin/
H A Dswapinfo.d16 * RAM Kernel Kernel resident in RAM (and usually locked)
76 this->locked = `pages_locked;
108 this->locked *= `_pagesize; this->locked /= 1048576;
134 printf("RAM Locked %5d MB\n", this->locked);
/netbsd-current/external/cddl/dtracetoolkit/dist/Mem/
H A Dswapinfo.d16 * RAM Kernel Kernel resident in RAM (and usually locked)
76 this->locked = `pages_locked;
108 this->locked *= `_pagesize; this->locked /= 1048576;
134 printf("RAM Locked %5d MB\n", this->locked);
/netbsd-current/external/gpl3/gdb.old/dist/gas/testsuite/gas/i386/
H A Dbundle-bad.s15 # This locked sequence exceeds the bundle size.
/netbsd-current/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/
H A DGDBRegistrationListener.cpp145 std::lock_guard<llvm::sys::Mutex> locked(*JITDebugLock);
169 std::lock_guard<llvm::sys::Mutex> locked(*JITDebugLock);
188 std::lock_guard<llvm::sys::Mutex> locked(*JITDebugLock);
/netbsd-current/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cc73 ThreadMutex locked[kMaxNesting]; member in struct:__sanitizer::DDLogicalThread
209 ThreadMutex *tm = &lt->locked[lt->nlocked++];
222 u32 id1 = lt->locked[i].id;
223 u32 stk1 = lt->locked[i].stk;
296 ThreadMutex *tm = &lt->locked[lt->nlocked++];
318 if (cb->lt->locked[i].id == m->id) {
319 lt->locked[i] = lt->locked[last];
334 // Remove the mutex from lt->locked if there.
337 if (lt->locked[
[all...]
/netbsd-current/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cc71 ThreadMutex locked[kMaxNesting]; member in struct:__sanitizer::DDLogicalThread
207 ThreadMutex *tm = &lt->locked[lt->nlocked++];
220 u32 id1 = lt->locked[i].id;
221 u32 stk1 = lt->locked[i].stk;
294 ThreadMutex *tm = &lt->locked[lt->nlocked++];
316 if (cb->lt->locked[i].id == m->id) {
317 lt->locked[i] = lt->locked[last];
332 // Remove the mutex from lt->locked if there.
335 if (lt->locked[
[all...]
/netbsd-current/external/bsd/ppp/usr.sbin/pppd/
H A Dtdb.h45 int *locked; /* set if we have a chain locked */ member in struct:__anon6223
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_mxgpu_ai.c246 int locked; local
256 locked = mutex_trylock(&adev->lock_reset);
257 if (locked)
269 if (locked) {
H A Damdgpu_mxgpu_nv.c248 int locked; local
258 locked = mutex_trylock(&adev->lock_reset);
259 if (locked)
271 if (locked) {

Completed in 196 milliseconds

123456