/linux-3.3/include/asm-generic/ |
D | mutex-xchg.h | 28 if (unlikely(atomic_xchg(count, 0) != 1)) in __mutex_fastpath_lock() 45 if (unlikely(atomic_xchg(count, 0) != 1)) in __mutex_fastpath_lock_retval() 65 if (unlikely(atomic_xchg(count, 1) != 0)) in __mutex_fastpath_unlock() 89 int prev = atomic_xchg(count, 0); in __mutex_fastpath_trylock() 103 prev = atomic_xchg(count, prev); in __mutex_fastpath_trylock()
|
D | atomic.h | 135 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) macro
|
D | atomic-long.h | 254 (atomic_xchg((atomic_t *)(v), (new)))
|
/linux-3.3/kernel/ |
D | mutex.c | 207 if (atomic_xchg(&lock->count, -1) == 1) in __mutex_lock_common() 222 if (atomic_xchg(&lock->count, -1) == 1) in __mutex_lock_common() 437 prev = atomic_xchg(&lock->count, -1); in __mutex_trylock_slowpath()
|
/linux-3.3/arch/m68k/include/asm/ |
D | atomic.h | 106 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro 151 static inline int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
|
/linux-3.3/arch/sparc/include/asm/ |
D | atomic_32.h | 24 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
D | atomic_64.h | 71 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-3.3/arch/sh/include/asm/ |
D | atomic.h | 37 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-3.3/arch/hexagon/include/asm/ |
D | atomic.h | 43 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) macro
|
/linux-3.3/arch/tile/include/asm/ |
D | atomic.h | 133 __x = (typeof(__x))(typeof(__x-__x))atomic_xchg( \
|
D | atomic_64.h | 44 static inline int atomic_xchg(atomic_t *v, int n) in atomic_xchg() function
|
D | atomic_32.h | 37 static inline int atomic_xchg(atomic_t *v, int n) in atomic_xchg() function
|
/linux-3.3/arch/avr32/include/asm/ |
D | atomic.h | 168 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-3.3/arch/xtensa/include/asm/ |
D | atomic.h | 225 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-3.3/arch/h8300/include/asm/ |
D | atomic.h | 105 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-3.3/arch/x86/include/asm/ |
D | atomic.h | 214 static inline int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
|
/linux-3.3/arch/m32r/include/asm/ |
D | atomic.h | 239 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-3.3/arch/cris/include/asm/ |
D | atomic.h | 139 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-3.3/arch/frv/include/asm/ |
D | atomic.h | 240 #define atomic_xchg(v, new) (xchg(&(v)->counter, new)) macro
|
/linux-3.3/arch/mn10300/include/asm/ |
D | atomic.h | 117 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) macro
|
/linux-3.3/arch/alpha/include/asm/ |
D | atomic.h | 176 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-3.3/kernel/debug/ |
D | debug_core.c | 497 atomic_xchg(&kgdb_active, cpu); in kgdb_cpu_enter() 512 atomic_xchg(&kgdb_active, cpu); in kgdb_cpu_enter()
|
/linux-3.3/arch/powerpc/include/asm/ |
D | atomic.h | 181 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-3.3/arch/ia64/include/asm/ |
D | atomic.h | 87 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-3.3/arch/parisc/include/asm/ |
D | atomic.h | 197 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|