• Home
  • Raw
  • Download

Lines Matching refs:count

28 	oldcount = sem->count;  in __down_read()
29 sem->count += RWSEM_ACTIVE_READ_BIAS; in __down_read()
41 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in __down_read()
42 :"Ir" (RWSEM_ACTIVE_READ_BIAS), "m" (sem->count) : "memory"); in __down_read()
55 res = sem->count; in __down_read_trylock()
61 res = cmpxchg(&sem->count, old, new); in __down_read_trylock()
70 oldcount = sem->count; in __down_write()
71 sem->count += RWSEM_ACTIVE_WRITE_BIAS; in __down_write()
83 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in __down_write()
84 :"Ir" (RWSEM_ACTIVE_WRITE_BIAS), "m" (sem->count) : "memory"); in __down_write()
95 long ret = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
106 oldcount = sem->count; in __up_read()
107 sem->count -= RWSEM_ACTIVE_READ_BIAS; in __up_read()
119 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in __up_read()
120 :"Ir" (RWSEM_ACTIVE_READ_BIAS), "m" (sem->count) : "memory"); in __up_read()
129 long count; in __up_write() local
131 sem->count -= RWSEM_ACTIVE_WRITE_BIAS; in __up_write()
132 count = sem->count; in __up_write()
145 :"=&r" (count), "=m" (sem->count), "=&r" (temp) in __up_write()
146 :"Ir" (RWSEM_ACTIVE_WRITE_BIAS), "m" (sem->count) : "memory"); in __up_write()
148 if (unlikely(count)) in __up_write()
149 if ((int)count == 0) in __up_write()
160 oldcount = sem->count; in __downgrade_write()
161 sem->count -= RWSEM_WAITING_BIAS; in __downgrade_write()
173 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in __downgrade_write()
174 :"Ir" (-RWSEM_WAITING_BIAS), "m" (sem->count) : "memory"); in __downgrade_write()
183 sem->count += val; in rwsem_atomic_add()
194 :"=&r" (temp), "=m" (sem->count) in rwsem_atomic_add()
195 :"Ir" (val), "m" (sem->count)); in rwsem_atomic_add()
202 sem->count += val; in rwsem_atomic_update()
203 return sem->count; in rwsem_atomic_update()
215 :"=&r" (ret), "=m" (sem->count), "=&r" (temp) in rwsem_atomic_update()
216 :"Ir" (val), "m" (sem->count)); in rwsem_atomic_update()