Lines Matching refs:readlockp
53 readlock_t *readlockp;
60 readlockp = self->ul_readlock.array;
63 readlockp = &self->ul_readlock.single;
66 for (; nlocks; nlocks--, readlockp++) {
67 if (readlockp->rd_rwlock == rwlp)
68 return (readlockp);
69 if (readlockp->rd_count == 0 && remembered == NULL)
70 remembered = readlockp;
87 readlockp = lmalloc(nlocks * sizeof (readlock_t));
91 *readlockp = self->ul_readlock.single;
93 self->ul_readlock.array = readlockp;
97 (++readlockp)->rd_rwlock = rwlp;
98 return (readlockp);
103 readlockp = lmalloc(nlocks * 2 * sizeof (readlock_t));
104 (void) memcpy(readlockp, self->ul_readlock.array,
107 self->ul_readlock.array = readlockp;
112 (readlockp += nlocks)->rd_rwlock = rwlp;
113 return (readlockp);
141 readlock_t *readlockp;
156 readlockp = self->ul_readlock.array;
159 readlockp = &self->ul_readlock.single;
161 for (; nlocks; nlocks--, readlockp++) {
162 if (readlockp->rd_rwlock == rwlp) {
163 if (readlockp->rd_count)
711 readlock_t *readlockp;
720 readlockp = rwl_entry(rwlp);
721 if (readlockp->rd_count != 0) {
722 if (readlockp->rd_count == READ_LOCK_MAX) {
915 readlock_t *readlockp;
928 readlockp = rwl_entry(rwlp);
929 if (readlockp->rd_count != 0) {
930 if (readlockp->rd_count == READ_LOCK_MAX) {
1051 readlock_t *readlockp;
1054 readlockp = rwl_entry(rwlp);
1055 if (readlockp->rd_count == 0) {
1067 if (--readlockp->rd_count != 0) {