Home
last modified time | relevance | path

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

/linux-4.4.14/include/asm-generic/
Dmutex-xchg.h34 if (likely(atomic_xchg_acquire(count, -1) != 1)) in __mutex_fastpath_lock()
49 if (unlikely(atomic_xchg_acquire(count, 0) != 1)) in __mutex_fastpath_lock_retval()
94 int prev = atomic_xchg_acquire(count, 0); in __mutex_fastpath_trylock()
108 prev = atomic_xchg_acquire(count, prev); in __mutex_fastpath_trylock()
/linux-4.4.14/include/linux/
Datomic.h159 #define atomic_xchg_acquire atomic_xchg macro
164 #ifndef atomic_xchg_acquire
165 #define atomic_xchg_acquire(...) \ macro
/linux-4.4.14/arch/arm64/include/asm/
Datomic.h80 #define atomic_xchg_acquire(v, new) xchg_acquire(&((v)->counter), (new)) macro
129 #define atomic64_xchg_acquire atomic_xchg_acquire
/linux-4.4.14/kernel/locking/
Dmutex.c533 (atomic_xchg_acquire(&lock->count, 0) == 1)) in __mutex_lock_common()
557 (atomic_xchg_acquire(&lock->count, -1) == 1)) in __mutex_lock_common()
871 prev = atomic_xchg_acquire(&lock->count, -1); in __mutex_trylock_slowpath()