Lines Matching refs:rwstate
2708 uint32_t rwstate;
2718 rwstate = (uint32_t)generic_so.rwlock.rwlock_readers;
2719 if (rwstate & URW_WRITE_LOCKED) {
2729 si_p->si_state.nreaders = (rwstate & URW_READERS_MASK);
2731 si_p->si_has_waiters = ((rwstate & URW_HAS_WAITERS) != 0);
3039 uint32_t *rwstate;
3103 rwstate = (uint32_t *)&generic_so.rwlock.readers;
3104 *rwstate &= URW_HAS_WAITERS;
3106 *rwstate |= URW_WRITE_LOCKED;
3108 *rwstate |= (value & URW_READERS_MASK);