Lines Matching defs:count
45 __s32 count;
73 /* call this *after* you increment lock->count */
90 /* call this *before* you decrement lock->count */
152 BUG_ON(lock->count < 0);
154 if (lock->count >= MAX_HOLDERS)
158 if (lock->count > 0)
161 lock->count = -1;
167 lock->count++;
178 lock->count = 0;
186 return lock->count >= 0 &&
187 lock->count < MAX_HOLDERS &&
204 lock->count++;
232 lock->count++;
246 BUG_ON(lock->count <= 0);
248 --lock->count;
266 if (lock->count == 0 && list_empty(&lock->waiters)) {
267 lock->count = -1;
294 lock->count = 0;