Home
last modified time | relevance | path

Searched refs:atomic_xchg (Results 1 – 25 of 44) sorted by relevance

12

/linux-3.3/include/asm-generic/
Dmutex-xchg.h28 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()
Datomic.h135 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) macro
Datomic-long.h254 (atomic_xchg((atomic_t *)(v), (new)))
/linux-3.3/kernel/
Dmutex.c207 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/
Datomic.h106 #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/
Datomic_32.h24 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
Datomic_64.h71 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/linux-3.3/arch/sh/include/asm/
Datomic.h37 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/linux-3.3/arch/hexagon/include/asm/
Datomic.h43 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) macro
/linux-3.3/arch/tile/include/asm/
Datomic.h133 __x = (typeof(__x))(typeof(__x-__x))atomic_xchg( \
Datomic_64.h44 static inline int atomic_xchg(atomic_t *v, int n) in atomic_xchg() function
Datomic_32.h37 static inline int atomic_xchg(atomic_t *v, int n) in atomic_xchg() function
/linux-3.3/arch/avr32/include/asm/
Datomic.h168 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/linux-3.3/arch/xtensa/include/asm/
Datomic.h225 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/linux-3.3/arch/h8300/include/asm/
Datomic.h105 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/linux-3.3/arch/x86/include/asm/
Datomic.h214 static inline int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
/linux-3.3/arch/m32r/include/asm/
Datomic.h239 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/linux-3.3/arch/cris/include/asm/
Datomic.h139 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/linux-3.3/arch/frv/include/asm/
Datomic.h240 #define atomic_xchg(v, new) (xchg(&(v)->counter, new)) macro
/linux-3.3/arch/mn10300/include/asm/
Datomic.h117 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) macro
/linux-3.3/arch/alpha/include/asm/
Datomic.h176 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/linux-3.3/kernel/debug/
Ddebug_core.c497 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/
Datomic.h181 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/linux-3.3/arch/ia64/include/asm/
Datomic.h87 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/linux-3.3/arch/parisc/include/asm/
Datomic.h197 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro

12