Lines Matching defs:rwstate
2571 uint32_t rwstate;
2581 rwstate = (uint32_t)generic_so.rwlock.rwlock_readers;
2582 if (rwstate & URW_WRITE_LOCKED) {
2592 si_p->si_state.nreaders = (rwstate & URW_READERS_MASK);
2594 si_p->si_has_waiters = ((rwstate & URW_HAS_WAITERS) != 0);
2902 uint32_t *rwstate;
2966 rwstate = (uint32_t *)&generic_so.rwlock.readers;
2967 *rwstate &= URW_HAS_WAITERS;
2969 *rwstate |= URW_WRITE_LOCKED;
2971 *rwstate |= (value & URW_READERS_MASK);