Home
last modified time | relevance | path

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

123

/arch/s390/include/asm/
Dcmpxchg.h14 #define cmpxchg(ptr, o, n) \ macro
21 #define cmpxchg64 cmpxchg
22 #define cmpxchg_local cmpxchg
23 #define cmpxchg64_local cmpxchg
/arch/tile/include/asm/
Dcmpxchg.h51 #define cmpxchg(ptr, o, n) \ macro
102 #define cmpxchg(ptr, o, n) \ macro
126 #define cmpxchg64 cmpxchg
Dbitops_64.h43 oldval = cmpxchg(addr, guess, guess ^ mask); in change_bit()
88 oldval = cmpxchg(addr, guess, guess ^ mask); in test_and_change_bit()
Datomic_64.h107 oldval = cmpxchg(&v->counter, guess, guess + a); in __atomic_add_unless()
178 oldval = cmpxchg(&v->counter, guess, guess + a); in atomic64_add_unless()
/arch/frv/include/asm/
Dcmpxchg.h82 #define cmpxchg(ptr, test, new) \ macro
122 #define cmpxchg(ptr, test, new) \ macro
153 return cmpxchg((unsigned long *)ptr, old, new); in __cmpxchg_local()
/arch/alpha/include/asm/
Dcmpxchg.h52 #define cmpxchg(ptr, o, n) \ macro
63 cmpxchg((ptr), (o), (n)); \
/arch/arc/include/asm/
Dcmpxchg.h95 #define cmpxchg(ptr, o, n) ((typeof(*(ptr)))__cmpxchg((ptr), \ macro
104 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
/arch/ia64/include/uapi/asm/
Dcmpxchg.h129 #define cmpxchg(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) macro
132 #define cmpxchg_local cmpxchg
/arch/blackfin/include/asm/
Dcmpxchg.h68 #define cmpxchg(ptr, o, n) \ macro
125 #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) macro
/arch/tile/gxio/
Ddma_queue.c81 cmpxchg(&dma_queue->hw_complete_count, in __gxio_dma_queue_update_credits()
107 if (cmpxchg(&dma_queue->hw_complete_count, in __gxio_dma_queue_update_credits()
/arch/sh/kernel/cpu/sh2/
Dsmp-j2.c31 while (cmpxchg(pmsg, messages, 0) != messages); in j2_ipi_interrupt_handler()
121 while (cmpxchg(pmsg, old, old|(1U<<message)) != old); in j2_send_ipi()
/arch/x86/include/asm/
Dcmpxchg_64.h12 cmpxchg((ptr), (o), (n)); \
/arch/arm64/include/asm/
Dsync_bitops.h24 #define sync_cmpxchg cmpxchg
/arch/hexagon/include/asm/
Dcmpxchg.h68 #define cmpxchg(ptr, old, new) \ macro
/arch/arm/include/asm/
Dsync_bitops.h23 #define sync_cmpxchg cmpxchg
/arch/score/include/asm/
Dcmpxchg.h40 #define cmpxchg(ptr, o, n) \ macro
/arch/metag/include/asm/
Dcmpxchg.h54 #define cmpxchg(ptr, o, n) \ macro
/arch/sparc/include/asm/
Datomic_64.h84 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS()
103 ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
Dcmpxchg_32.h57 #define cmpxchg(ptr, o, n) \ macro
/arch/sh/include/asm/
Dcmpxchg.h65 #define cmpxchg(ptr,o,n) \ macro
Datomic.h45 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
/arch/tile/kernel/
Dpmc.c38 return cmpxchg(&perf_irq, NULL, new_perf_irq); in reserve_pmc_hardware()
/arch/mips/include/asm/
Dcmpxchg.h227 #define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_mb__before_llsc(), smp_llsc_mb()) macro
240 cmpxchg((ptr), (o), (n)); \
/arch/mn10300/include/asm/
Dcmpxchg.h110 #define cmpxchg(ptr, o, n) \ macro
/arch/openrisc/include/asm/
DKbuild13 generic-y += cmpxchg-local.h
14 generic-y += cmpxchg.h

123