Home
last modified time | relevance | path

Searched refs:LDSEM_ACTIVE_BIAS (Results 1 – 1 of 1) sorted by relevance

/linux-4.4.14/drivers/tty/
Dtty_ldsem.c67 #define LDSEM_ACTIVE_BIAS 1L macro
69 #define LDSEM_READ_BIAS LDSEM_ACTIVE_BIAS
70 #define LDSEM_WRITE_BIAS (LDSEM_WAIT_BIAS + LDSEM_ACTIVE_BIAS)
129 adjust = sem->wait_readers * (LDSEM_ACTIVE_BIAS - LDSEM_WAIT_BIAS); in __ldsem_wake_readers()
154 long count = ldsem_atomic_update(LDSEM_ACTIVE_BIAS, sem); in writer_trylock()
156 if ((count & LDSEM_ACTIVE_MASK) == LDSEM_ACTIVE_BIAS) in writer_trylock()
158 if (ldsem_cmpxchg(&count, count - LDSEM_ACTIVE_BIAS, sem)) in writer_trylock()
204 long adjust = -LDSEM_ACTIVE_BIAS + LDSEM_WAIT_BIAS; in down_read_failed()
272 long adjust = -LDSEM_ACTIVE_BIAS; in down_write_failed()
284 if ((count & LDSEM_ACTIVE_MASK) == LDSEM_ACTIVE_BIAS) { in down_write_failed()
[all …]