Lines Matching refs:count
122 atomic_t *count = (atomic_t *)rw; in arch_read_lock() local
123 while (atomic_dec_return(count) < 0) in arch_read_lock()
124 atomic_inc(count); in arch_read_lock()
135 atomic_t *count = (atomic_t *)rw; in arch_write_lock() local
136 while (!atomic_sub_and_test(RW_LOCK_BIAS, count)) in arch_write_lock()
137 atomic_add(RW_LOCK_BIAS, count); in arch_write_lock()
148 atomic_t *count = (atomic_t *)rw; in arch_read_unlock() local
149 atomic_inc(count); in arch_read_unlock()
160 atomic_t *count = (atomic_t *)rw; in arch_write_unlock() local
161 atomic_add(RW_LOCK_BIAS, count); in arch_write_unlock()
168 atomic_t *count = (atomic_t *)lock; in arch_read_trylock() local
169 atomic_dec(count); in arch_read_trylock()
170 if (atomic_read(count) >= 0) in arch_read_trylock()
172 atomic_inc(count); in arch_read_trylock()
178 atomic_t *count = (atomic_t *)lock; in arch_write_trylock() local
179 if (atomic_sub_and_test(RW_LOCK_BIAS, count)) in arch_write_trylock()
181 atomic_add(RW_LOCK_BIAS, count); in arch_write_trylock()