Lines Matching refs:count
123 atomic_t *count = (atomic_t *)rw; in arch_read_lock() local
124 while (atomic_dec_return(count) < 0) in arch_read_lock()
125 atomic_inc(count); in arch_read_lock()
136 atomic_t *count = (atomic_t *)rw; in arch_write_lock() local
137 while (!atomic_sub_and_test(RW_LOCK_BIAS, count)) in arch_write_lock()
138 atomic_add(RW_LOCK_BIAS, count); in arch_write_lock()
149 atomic_t *count = (atomic_t *)rw; in arch_read_unlock() local
150 atomic_inc(count); in arch_read_unlock()
161 atomic_t *count = (atomic_t *)rw; in arch_write_unlock() local
162 atomic_add(RW_LOCK_BIAS, count); in arch_write_unlock()
169 atomic_t *count = (atomic_t *)lock; in arch_read_trylock() local
170 atomic_dec(count); in arch_read_trylock()
171 if (atomic_read(count) >= 0) in arch_read_trylock()
173 atomic_inc(count); in arch_read_trylock()
179 atomic_t *count = (atomic_t *)lock; in arch_write_trylock() local
180 if (atomic_sub_and_test(RW_LOCK_BIAS, count)) in arch_write_trylock()
182 atomic_add(RW_LOCK_BIAS, count); in arch_write_trylock()