Home
last modified time | relevance | path

Searched refs:cmpxchg (Results 1 – 25 of 98) sorted by relevance

1234

/linux-2.6.39/net/ipv6/
Dprotocol.c34 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/
Dprotocol.c41 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/
Dsystem.h70 #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/
Ddrm_lock.c199 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/
Dxlist.h32 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/
Drwsem.h43 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/
Drwsem.h45 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock()
75 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
Datomic.h180 #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/
Drwsem.h38 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock()
66 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
Datomic.h39 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
/linux-2.6.39/arch/mips/include/asm/
Dcmpxchg.h101 #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/
Drwsem.h37 if (tmp == cmpxchg(&sem->count, tmp, in __down_read_trylock()
67 tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
Datomic_64.h70 #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/
Dirq_work.c62 } 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/
Dcmpxchg_64.h133 #define cmpxchg(ptr, old, new) \ macro
145 cmpxchg((ptr), (o), (n)); \
Dcmpxchg_32.h145 #define cmpxchg(ptr, old, new) \ macro
215 #define cmpxchg(ptr, o, n) \ macro
/linux-2.6.39/arch/s390/include/asm/
Dcmpxchg.h163 #define cmpxchg(ptr, o, n) \ macro
171 cmpxchg((ptr), (o), (n)); \
/linux-2.6.39/arch/alpha/include/asm/
Drwsem.h61 res = cmpxchg(&sem->count, old, new); in __down_read_trylock()
95 long ret = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, in __down_write_trylock()
Datomic.h172 #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/
Dcmpxchg.h19 #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) macro
/linux-2.6.39/arch/parisc/include/asm/
Datomic.h117 #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/
Datomic.h112 #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/
Dintrinsics.h174 #define cmpxchg(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) macro
177 #define cmpxchg_local cmpxchg
Datomic.h86 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new))
90 (cmpxchg(&((v)->counter), old, new))
/linux-2.6.39/arch/x86/xen/
Dp2m.c451 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()

1234