Searched refs:RW_WRITE_LOCKED (Results 1 – 16 of 16) sorted by relevance
| /netbsd/src/sys/kern/ |
| D | kern_rwlock.c | 257 if ((owner & (RW_WRITE_LOCKED|RW_HAS_WAITERS)) != RW_WRITE_LOCKED) { in rw_oncpu() 319 need_wait = RW_WRITE_LOCKED | RW_WRITE_WANTED; in rw_vector_enter() 323 incr = curthread | RW_WRITE_LOCKED; in rw_vector_enter() 325 need_wait = RW_WRITE_LOCKED | RW_THREAD; in rw_vector_enter() 455 if (__predict_false((owner & RW_WRITE_LOCKED) != 0)) { in rw_vector_exit() 458 decr = curthread | RW_WRITE_LOCKED; in rw_vector_exit() 513 newown |= RW_WRITE_LOCKED | RW_HAS_WAITERS; in rw_vector_exit() 562 need_wait = RW_WRITE_LOCKED | RW_WRITE_WANTED; in rw_vector_tryenter() 565 incr = curthread | RW_WRITE_LOCKED; in rw_vector_tryenter() 566 need_wait = RW_WRITE_LOCKED | RW_THREAD; in rw_vector_tryenter() [all …]
|
| /netbsd/src/lib/libpthread/ |
| D | pthread_rwlock.c | 144 if ((owner & ~RW_THREAD) != RW_WRITE_LOCKED) in pthread__rwlock_spin() 173 if ((owner & (RW_WRITE_LOCKED | RW_WRITE_WANTED)) == 0) { in pthread__rwlock_rdlock() 263 if ((owner & (RW_WRITE_LOCKED | RW_WRITE_WANTED)) != 0) in pthread_rwlock_tryrdlock() 297 (uintptr_t)self | RW_WRITE_LOCKED); in pthread__rwlock_wrlock() 385 next = rw_cas(ptr, owner, (uintptr_t)self | RW_WRITE_LOCKED); in pthread_rwlock_trywrlock() 466 if ((owner & RW_WRITE_LOCKED) != 0) { in pthread_rwlock_unlock() 468 decr = (uintptr_t)self | RW_WRITE_LOCKED; in pthread_rwlock_unlock() 516 new = (uintptr_t)thread | RW_WRITE_LOCKED; in pthread_rwlock_unlock() 616 if ((owner & RW_WRITE_LOCKED) != 0) in _pthread_rwlock_held_np() 626 return (owner & RW_THREAD) != 0 && (owner & RW_WRITE_LOCKED) == 0; in _pthread_rwlock_rdheld_np() [all …]
|
| D | pthread_int.h | 326 #define RW_WRITE_LOCKED 0x04 /* lock is currently write locked */ macro
|
| /netbsd/src/external/cddl/osnet/sys/sys/ |
| D | rwlock_impl.h | 38 #define _RW_READ_HELD(rw) ((((rw)->rw_owner & RW_WRITE_LOCKED) == 0) && \ 42 ((rw)->rw_owner & RW_WRITE_LOCKED)) 44 (((rw)->rw_owner & RW_WRITE_LOCKED) && \
|
| /netbsd/src/sys/arch/amd64/amd64/ |
| D | lock_stubs.S | 188 testb $(RW_WRITE_LOCKED|RW_WRITE_WANTED), %al 203 orq $RW_WRITE_LOCKED, %rcx 219 testb $RW_WRITE_LOCKED, %al 240 2: leaq -RW_WRITE_LOCKED(%rax), %rdx 265 testb $(RW_WRITE_LOCKED|RW_WRITE_WANTED), %al 281 orq $RW_WRITE_LOCKED, %rcx
|
| D | genassym.cf | 357 define RW_WRITE_LOCKED RW_WRITE_LOCKED
|
| /netbsd/src/sys/arch/i386/i386/ |
| D | lock_stubs.S | 115 testb $(RW_WRITE_LOCKED|RW_WRITE_WANTED), %al 130 orl $RW_WRITE_LOCKED, %ecx 147 testb $RW_WRITE_LOCKED, %al 168 2: leal -RW_WRITE_LOCKED(%eax), %ecx 197 testb $(RW_WRITE_LOCKED|RW_WRITE_WANTED), %al 214 orl $RW_WRITE_LOCKED, %ecx
|
| D | genassym.cf | 357 define RW_WRITE_LOCKED RW_WRITE_LOCKED
|
| /netbsd/src/sys/arch/powerpc/powerpc/ |
| D | lock_stubs.S | 128 ori %r7,%r13,RW_WRITE_LOCKED 154 ori %r7,%r13,RW_WRITE_LOCKED 176 andi. %r0,%r9,RW_WRITE_LOCKED 186 ori %r9,%r13,RW_WRITE_LOCKED
|
| D | genassym.cf | 227 define RW_WRITE_LOCKED RW_WRITE_LOCKED
|
| /netbsd/src/sys/arch/alpha/alpha/ |
| D | lock_stubs.s | 230 and t0, (RW_WRITE_LOCKED|RW_WRITE_WANTED), t1 243 or v0, RW_WRITE_LOCKED, t2 267 and t0, (RW_WRITE_LOCKED|RW_WRITE_WANTED), t1 280 or v0, RW_WRITE_LOCKED, v0 311 and a1, RW_WRITE_LOCKED, t1
|
| D | genassym.cf | 208 define RW_WRITE_LOCKED RW_WRITE_LOCKED
|
| /netbsd/src/sys/arch/vax/vax/ |
| D | lock_stubs.S | 195 bitl $RW_WRITE_LOCKED, %r2 /* is it write locked? */ 214 bisl2 $RW_WRITE_LOCKED, %r2 /* show that it's a write */ 230 bitl $(RW_WRITE_LOCKED|RW_WRITE_WANTED), %r2 251 bisl2 $RW_WRITE_LOCKED, %r3 /* show that it's a write */
|
| D | genassym.cf | 175 define RW_WRITE_LOCKED RW_WRITE_LOCKED
|
| /netbsd/src/sys/ddb/ |
| D | db_syncobj.c | 66 if (owner & RW_WRITE_LOCKED) in db_syncobj_owner()
|
| /netbsd/src/sys/sys/ |
| D | rwlock.h | 74 #define RW_WRITE_LOCKED 0x04UL /* lock is currently write locked */ macro
|