Home
last modified time | relevance | path

Searched refs:RW_WRITE_LOCKED (Results 1 – 5 of 5) sorted by relevance

/titanic_41/usr/src/uts/common/sys/
H A Drwlock_impl.h52 #define RW_WRITE_LOCKED 4 macro
54 #define RW_WRITE_LOCK(thread) ((uintptr_t)(thread) | RW_WRITE_LOCKED)
60 #define RW_WRITE_CLAIMED (RW_WRITE_LOCKED | RW_WRITE_WANTED)
70 !((tmp) & RW_WRITE_LOCKED))
74 (RW_OWNER | RW_WRITE_LOCKED)) == RW_WRITE_LOCK(curthread))
/titanic_41/usr/src/uts/common/os/
H A Drwlock.c258 return ((old & RW_LOCKED) && !(old & RW_WRITE_LOCKED)); in rw_locked()
291 lock_busy = RW_WRITE_LOCKED; in rw_enter_sleep()
365 (old & RW_WRITE_LOCKED) ? 1 : 0, in rw_enter_sleep()
423 if (old & RW_WRITE_LOCKED) { in rw_exit_wakeup()
470 if (!(old & RW_WRITE_LOCKED)) { in rw_exit_wakeup()
485 if ((old & RW_WRITE_LOCKED) && in rw_exit_wakeup()
545 RW_WRITE_CLAIMED : RW_WRITE_LOCKED)) { in rw_tryenter()
650 return ((old & RW_LOCKED) && !(old & RW_WRITE_LOCKED)); in rw_read_locked()
667 return ((old & RW_WRITE_LOCKED) ? (kthread_t *)(old & RW_OWNER) : NULL); in rw_owner()
/titanic_41/usr/src/uts/intel/ia32/ml/
H A Dlock_prim.s924 testl $RW_WRITE_LOCKED|RW_WRITE_WANTED, %eax
938 orq $RW_WRITE_LOCKED, %rdx /* rdx = write-locked value */
982 testl $RW_WRITE_LOCKED, %eax /* write-locked or write-wanted? */
991 orq $RW_WRITE_LOCKED, %rax /* eax = write-locked value */
1013 testl $RW_WRITE_LOCKED|RW_WRITE_WANTED, %eax
1026 orl $RW_WRITE_LOCKED, %edx /* edx = write-locked value */
1069 testl $RW_WRITE_LOCKED, %eax /* write-locked or write-wanted? */
1078 orl $RW_WRITE_LOCKED, %eax /* eax = write-locked value */
/titanic_41/usr/src/uts/sparc/v9/ml/
H A Dlock_prim.s504 or THREAD_REG, RW_WRITE_LOCKED, %o5 ! delay: %o5 = owner
565 andcc %o4, RW_WRITE_LOCKED, %g0 ! are we a writer?
567 or THREAD_REG, RW_WRITE_LOCKED, %o4 ! delay: %o4 = owner
/titanic_41/usr/src/cmd/mdb/common/modules/genunix/
H A Dsobj.c517 else if ((wwwh = lock.rw_wwwh) & RW_WRITE_LOCKED) in rwlock()