Lines Matching defs:nlocks
54 uint_t nlocks;
59 if ((nlocks = self->ul_rdlockcnt) != 0)
62 nlocks = 1;
66 for (; nlocks; nlocks--, readlockp++) {
81 if ((nlocks = self->ul_rdlockcnt) == 0) {
86 self->ul_rdlockcnt = nlocks = NLOCKS;
87 readlockp = lmalloc(nlocks * sizeof (readlock_t));
103 readlockp = lmalloc(nlocks * 2 * sizeof (readlock_t));
105 nlocks * sizeof (readlock_t));
106 lfree(self->ul_readlock.array, nlocks * sizeof (readlock_t));
112 (readlockp += nlocks)->rd_rwlock = rwlp;
122 uint_t nlocks;
124 if ((nlocks = ulwp->ul_rdlockcnt) != 0)
125 lfree(ulwp->ul_readlock.array, nlocks * sizeof (readlock_t));
142 uint_t nlocks;
155 if ((nlocks = self->ul_rdlockcnt) != 0)
158 nlocks = 1;
161 for (; nlocks; nlocks--, readlockp++) {