Lines Matching refs:reader_count
80 rw->writer_count = rw->reader_count = rw->reader_blocked = 0; in __nisdb_rwinit()
126 if (rw->destroyed == 0 && rw->reader_count == 0) { in __nisdb_rw_readlock_ok()
155 if (rw->destroyed == 0 && rw->reader_count == 0) { in __nisdb_rw_force_writelock()
196 if (rw->reader_count == 0 && rw->writer_count == 0) { in __nisdb_wlock_trylock()
207 if (rw->reader_count > 0) { in __nisdb_wlock_trylock()
216 if (rw->reader_count == in __nisdb_wlock_trylock()
226 if (rw->reader_count == rw->reader_blocked) in __nisdb_wlock_trylock()
242 (rw->writer_count == 0 && rw->reader_count == 0) || in __nisdb_wlock_trylock()
244 (rw->reader_count == 0) || in __nisdb_wlock_trylock()
245 (rw->reader_count == 1 && in __nisdb_wlock_trylock()
324 if (rw->reader_count == 0 && rr == &rw->reader) { in increment_reader()
327 rw->reader_count = 1; in increment_reader()
339 rw->reader_count++; in increment_reader()
492 if (rw->reader_count == 0 || in __nisdb_rulock()
537 rw->reader_count--; in __nisdb_rulock()
541 if (rw->reader_count == 0) { in __nisdb_rulock()
627 if (rw->reader_count == 0) { in __nisdb_assert_rheld()
679 (rw->reader_count > 0 && in __nisdb_destroy_lock()
680 !(rw->reader_count == 1 && rw->reader.id == myself && in __nisdb_destroy_lock()
682 (rw->writer_count > 0 && rw->reader_count > 0)) { in __nisdb_destroy_lock()
729 if (rw->reader_count == 0) in __nisdb_lock_report()
735 rw, rw->reader_count, rw->reader_blocked); in __nisdb_lock_report()