Lines Matching refs:rw
253 rw_locked(rwlock_impl_t *lp, krw_t rw)
257 if (rw == RW_READER || rw == RW_READER_STARVEWRITER)
260 if (rw == RW_WRITER)
274 rw_enter_sleep(rwlock_impl_t *lp, krw_t rw)
282 if (rw == RW_READER) {
286 } else if (rw == RW_READER_STARVEWRITER) {
348 if (rw != RW_WRITER) {
359 LOCKSTAT_RECORD4(LS_RW_ENTER_BLOCK, lp, sleep_time, rw,
370 ASSERT(rw_locked(lp, rw));
374 LOCKSTAT_RECORD(LS_RW_ENTER_ACQUIRE, lp, rw);
527 rw_tryenter(krwlock_t *rwlp, krw_t rw)
532 if (rw != RW_WRITER) {
536 if ((old = lp->rw_wwwh) & (rw == RW_READER ?
551 LOCKSTAT_RECORD(LS_RW_TRYENTER_ACQUIRE, lp, rw);
555 LOCKSTAT_RECORD(LS_RW_TRYENTER_ACQUIRE, lp, rw);
557 ASSERT(rw_locked(lp, rw));