Home
last modified time | relevance | path

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

/arch/s390/lib/
Dspinlock.c50 if (_raw_compare_and_swap(&lp->lock, 0, cpu)) in arch_spin_lock_wait()
90 if (_raw_compare_and_swap(&lp->lock, 0, cpu)) in arch_spin_lock_wait_flags()
128 if (_raw_compare_and_swap(&lp->lock, 0, cpu)) in arch_spin_trylock_retry()
159 if (_raw_compare_and_swap(&rw->lock, old, old + 1)) in _raw_read_lock_wait()
177 if (_raw_compare_and_swap(&rw->lock, old, old + 1)) in _raw_read_trylock_retry()
231 _raw_compare_and_swap(&rw->lock, old, old | 0x80000000)) in _raw_write_lock_wait()
257 if (_raw_compare_and_swap(&rw->lock, 0, 0x80000000)) in _raw_write_trylock_retry()
/arch/s390/include/asm/
Dspinlock.h19 _raw_compare_and_swap(unsigned int *lock, unsigned int old, unsigned int new) in _raw_compare_and_swap() function
63 _raw_compare_and_swap(&lp->lock, 0, SPINLOCK_LOCKVAL)); in arch_spin_trylock_once()
135 _raw_compare_and_swap(&rw->lock, old, old + 1)); in arch_read_trylock_once()
142 _raw_compare_and_swap(&rw->lock, 0, 0x80000000)); in arch_write_trylock_once()
228 } while (!_raw_compare_and_swap(&rw->lock, old, old - 1)); in arch_read_unlock()