Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/kernel/locking/
H A Drwsem.c157 #define RWSEM_FLAG_WAITERS (1UL << 1) macro
166 #define RWSEM_READ_FAILED_MASK (RWSEM_WRITER_MASK|RWSEM_FLAG_WAITERS|\
517 adjustment -= RWSEM_FLAG_WAITERS; in rwsem_mark_wake()
586 new &= ~RWSEM_FLAG_WAITERS; in rwsem_try_write_lock()
1020 if ((atomic_long_read(&sem->count) & RWSEM_FLAG_WAITERS)) { in rwsem_down_read_slowpath()
1058 adjustment += RWSEM_FLAG_WAITERS; in rwsem_down_read_slowpath()
1083 (adjustment & RWSEM_FLAG_WAITERS))) in rwsem_down_read_slowpath()
1119 atomic_long_andnot(RWSEM_FLAG_WAITERS|RWSEM_FLAG_HANDOFF, in rwsem_down_read_slowpath()
1220 atomic_long_or(RWSEM_FLAG_WAITERS, &sem->count); in rwsem_down_write_slowpath()
1304 atomic_long_andnot(RWSEM_FLAG_WAITERS, &sem->count); in rwsem_down_write_slowpath()
[all …]