/linux-2.6.39/net/ipv6/ |
D | protocol.c | 34 return !cmpxchg((const struct inet6_protocol **)&inet6_protos[hash], in inet6_add_protocol() 47 ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[hash], in inet6_del_protocol()
|
/linux-2.6.39/net/ipv4/ |
D | protocol.c | 41 return !cmpxchg((const struct net_protocol **)&inet_protos[hash], in inet_add_protocol() 54 ret = (cmpxchg((const struct net_protocol **)&inet_protos[hash], in inet_del_protocol()
|
/linux-2.6.39/arch/frv/include/asm/ |
D | system.h | 70 #define cmpxchg(ptr, test, new) \ macro 110 #define cmpxchg(ptr, test, new) \ macro 141 return cmpxchg((unsigned long *)ptr, old, new); in __cmpxchg_local()
|
/linux-2.6.39/drivers/gpu/drm/ |
D | drm_lock.c | 199 prev = cmpxchg(lock, old, new); in drm_lock_take() 242 prev = cmpxchg(lock, old, new); in drm_lock_transfer() 275 prev = cmpxchg(lock, old, new); in drm_lock_free() 313 prev = cmpxchg(&s->lock->lock, old, new); in drm_notifier() 359 prev = cmpxchg(lock, old, DRM_KERNEL_CONTEXT); in drm_idlelock_release()
|
/linux-2.6.39/net/rds/ |
D | xlist.h | 32 check = cmpxchg(&head->next, cur, new); in xlist_add() 50 check = cmpxchg(&head->next, cur, next); in xlist_del_head()
|
/linux-2.6.39/arch/xtensa/include/asm/ |
D | rwsem.h | 43 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock() 71 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
|
/linux-2.6.39/arch/powerpc/include/asm/ |
D | rwsem.h | 45 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock() 75 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
|
D | atomic.h | 180 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) 437 #define atomic64_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
|
/linux-2.6.39/arch/sh/include/asm/ |
D | rwsem.h | 38 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock() 66 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
|
D | atomic.h | 39 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
|
/linux-2.6.39/arch/mips/include/asm/ |
D | cmpxchg.h | 101 #define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_mb__before_llsc(), smp_llsc_mb()) macro 107 cmpxchg((ptr), (o), (n)); \
|
/linux-2.6.39/arch/sparc/include/asm/ |
D | rwsem.h | 37 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock() 67 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
|
D | atomic_64.h | 70 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) 91 ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
|
/linux-2.6.39/kernel/ |
D | irq_work.c | 62 } while (cmpxchg(&entry->next, next, nflags) != next); in irq_work_claim() 148 (void)cmpxchg(&entry->next, in irq_work_run()
|
/linux-2.6.39/arch/x86/include/asm/ |
D | cmpxchg_64.h | 133 #define cmpxchg(ptr, old, new) \ macro 145 cmpxchg((ptr), (o), (n)); \
|
D | cmpxchg_32.h | 145 #define cmpxchg(ptr, old, new) \ macro 215 #define cmpxchg(ptr, o, n) \ macro
|
/linux-2.6.39/arch/s390/include/asm/ |
D | cmpxchg.h | 163 #define cmpxchg(ptr, o, n) \ macro 171 cmpxchg((ptr), (o), (n)); \
|
/linux-2.6.39/arch/alpha/include/asm/ |
D | rwsem.h | 61 res = cmpxchg(&sem->count, old, new); in __down_read_trylock() 95 long ret = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
|
D | atomic.h | 172 #define atomic64_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) 175 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new))
|
/linux-2.6.39/include/asm-generic/ |
D | cmpxchg.h | 19 #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) macro
|
/linux-2.6.39/arch/parisc/include/asm/ |
D | atomic.h | 117 #define cmpxchg(ptr,o,n) \ macro 196 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) 310 ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
|
/linux-2.6.39/arch/mn10300/include/asm/ |
D | atomic.h | 112 #define cmpxchg(ptr, o, n) \ macro 118 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
|
/linux-2.6.39/arch/ia64/include/asm/ |
D | intrinsics.h | 174 #define cmpxchg(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) macro 177 #define cmpxchg_local cmpxchg
|
D | atomic.h | 86 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) 90 (cmpxchg(&((v)->counter), old, new))
|
/linux-2.6.39/arch/x86/xen/ |
D | p2m.c | 451 if (cmpxchg(top_p, p2m_mid_missing, mid) != p2m_mid_missing) in alloc_p2m() 473 if (cmpxchg(top_mfn_p, missing_mfn, mid_mfn_mfn) != missing_mfn) in alloc_p2m() 491 if (cmpxchg(&mid[mididx], p2m_orig, p2m) != p2m_orig) in alloc_p2m() 603 WARN_ON(cmpxchg(&p2m_top[topidx][mididx], p2m_missing, in __set_phys_to_machine()
|