Lines Matching refs:tmp
42 long tmp; in __down_read_trylock() local
44 while ((tmp = sem->count) >= 0) { in __down_read_trylock()
45 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock()
46 tmp + RWSEM_ACTIVE_READ_BIAS)) { in __down_read_trylock()
58 long tmp; in __down_write_nested() local
60 tmp = atomic_long_add_return(RWSEM_ACTIVE_WRITE_BIAS, in __down_write_nested()
62 if (unlikely(tmp != RWSEM_ACTIVE_WRITE_BIAS)) in __down_write_nested()
73 long tmp; in __down_write_trylock() local
75 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
77 return tmp == RWSEM_UNLOCKED_VALUE; in __down_write_trylock()
85 long tmp; in __up_read() local
87 tmp = atomic_long_dec_return((atomic_long_t *)&sem->count); in __up_read()
88 if (unlikely(tmp < -1 && (tmp & RWSEM_ACTIVE_MASK) == 0)) in __up_read()
115 long tmp; in __downgrade_write() local
117 tmp = atomic_long_add_return(-RWSEM_WAITING_BIAS, in __downgrade_write()
119 if (tmp < 0) in __downgrade_write()