Lines Matching refs:tmp
35 int tmp; in __down_read_trylock() local
37 while ((tmp = sem->count) >= 0) { in __down_read_trylock()
38 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock()
39 tmp + RWSEM_ACTIVE_READ_BIAS)) { in __down_read_trylock()
52 int tmp; in __down_write() local
54 tmp = atomic_add_return(RWSEM_ACTIVE_WRITE_BIAS, in __down_write()
56 if (tmp == RWSEM_ACTIVE_WRITE_BIAS) in __down_write()
64 int tmp; in __down_write_trylock() local
66 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
69 return tmp == RWSEM_UNLOCKED_VALUE; in __down_write_trylock()
77 int tmp; in __up_read() local
80 tmp = atomic_dec_return((atomic_t *)(&sem->count)); in __up_read()
81 if (tmp < -1 && (tmp & RWSEM_ACTIVE_MASK) == 0) in __up_read()
109 int tmp; in __downgrade_write() local
112 tmp = atomic_add_return(-RWSEM_WAITING_BIAS, (atomic_t *)(&sem->count)); in __downgrade_write()
113 if (tmp < 0) in __downgrade_write()