Lines Matching refs:tmp
40 int tmp; in __down_read_trylock() local
42 while ((tmp = sem->count) >= 0) { in __down_read_trylock()
43 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock()
44 tmp + RWSEM_ACTIVE_READ_BIAS)) { in __down_read_trylock()
57 int tmp; in __down_write() local
59 tmp = atomic_add_return(RWSEM_ACTIVE_WRITE_BIAS, in __down_write()
61 if (tmp == RWSEM_ACTIVE_WRITE_BIAS) in __down_write()
69 int tmp; in __down_write_trylock() local
71 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
74 return tmp == RWSEM_UNLOCKED_VALUE; in __down_write_trylock()
82 int tmp; in __up_read() local
85 tmp = atomic_sub_return(1,(atomic_t *)(&sem->count)); in __up_read()
86 if (tmp < -1 && (tmp & RWSEM_ACTIVE_MASK) == 0) in __up_read()
114 int tmp; in __downgrade_write() local
117 tmp = atomic_add_return(-RWSEM_WAITING_BIAS, (atomic_t *)(&sem->count)); in __downgrade_write()
118 if (tmp < 0) in __downgrade_write()