Searched refs:ldsem_cmpxchg (Results 1 – 1 of 1) sorted by relevance
/linux-4.1.27/drivers/tty/ |
D | tty_ldsem.c | 87 static inline int ldsem_cmpxchg(long *old, long new, struct ld_semaphore *sem) in ldsem_cmpxchg() function 134 if (ldsem_cmpxchg(&count, count - adjust, sem)) in __ldsem_wake_readers() 158 if (ldsem_cmpxchg(&count, count - LDSEM_ACTIVE_BIAS, sem)) in writer_trylock() 213 if (ldsem_cmpxchg(&count, count + adjust, sem)) in down_read_failed() 282 if (ldsem_cmpxchg(&count, count + adjust, sem)) in down_write_failed() 377 if (ldsem_cmpxchg(&count, count + LDSEM_READ_BIAS, sem)) { in ldsem_down_read_trylock() 403 if (ldsem_cmpxchg(&count, count + LDSEM_WRITE_BIAS, sem)) { in ldsem_down_write_trylock()
|