Home
last modified time | relevance | path

Searched refs:xchg (Results 1 – 25 of 76) sorted by relevance

1234

/arch/arc/include/asm/
Dcmpxchg.h154 #define xchg(ptr, with) \ macro
167 #define xchg(ptr, with) _xchg(ptr, with) macro
201 #define xchg(ptr, with) ({ \ macro
222 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/arch/x86/include/asm/
Dpgtable-2level.h52 return __pte(xchg(&xp->pte_low, 0)); in native_ptep_get_and_clear()
61 return __pmd(xchg((pmdval_t *)xp, 0)); in native_pmdp_get_and_clear()
70 return __pud(xchg((pudval_t *)xp, 0)); in native_pudp_get_and_clear()
Dpgtable-3level.h177 res.pmd_low = xchg(&orig->pmd_low, 0); in native_pmdp_get_and_clear()
207 old.pmd_low = xchg(&ptr->pmd_low, new.pmd_low); in pmdp_establish()
239 res.pud_low = xchg(&orig->pud_low, 0); in native_pudp_get_and_clear()
Dpgtable_64.h88 return native_make_pte(xchg(&xp->pte, 0)); in native_ptep_get_and_clear()
101 return native_make_pmd(xchg(&xp->pmd, 0)); in native_pmdp_get_and_clear()
124 return native_make_pud(xchg(&xp->pud, 0)); in native_pudp_get_and_clear()
Dbarrier.h64 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
/arch/h8300/include/asm/
Dcmpxchg.h7 #define xchg(ptr, x) \ macro
64 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/arch/sparc/include/asm/
Datomic_64.h57 return xchg(&v->counter, new); in ATOMIC_OPS()
62 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
Dcmpxchg_32.h28 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) macro
Dparport.h52 if (xchg(&sparc_ebus_dmas[dmanr].lock, 1) != 0) in request_dma()
63 if (xchg(&sparc_ebus_dmas[dmanr].lock, 0) == 0) { in free_dma()
/arch/arm64/include/asm/xen/
Devents.h20 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
/arch/arm/kernel/
Ddma.c62 if (xchg(&dma->lock, 1) != 0) in request_dma()
74 xchg(&dma->lock, 0); in request_dma()
105 if (xchg(&dma->lock, 0) != 0) { in free_dma()
/arch/x86/include/asm/xen/
Devents.h24 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
/arch/sh/include/asm/
Datomic.h35 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
Dbarrier.h41 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
Dcmpxchg.h48 #define xchg(ptr,x) \ macro
/arch/microblaze/include/asm/
Dcmpxchg.h37 #define xchg(ptr, x) \ macro
/arch/unicore32/include/asm/
Dcmpxchg.h41 #define xchg(ptr, x) \ macro
/arch/hexagon/include/asm/
Dcmpxchg.h45 #define xchg(ptr, v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v), (ptr), \ macro
/arch/c6x/include/asm/
Dcmpxchg.h44 #define xchg(ptr, x) \ macro
/arch/um/kernel/
Dirq.c544 mask = xchg(&pending_mask, *mask_out); in to_irq_stack()
558 mask = xchg(&pending_mask, old); in to_irq_stack()
577 mask = xchg(&pending_mask, 0); in to_irq_stack()
596 mask = xchg(&pending_mask, 0); in from_irq_stack()
/arch/s390/include/asm/
Datomic.h78 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS()
125 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
Dcmpxchg.h26 #define xchg(ptr, x) \ macro
/arch/riscv/include/asm/
Dcmpxchg.h143 #define xchg(ptr, x) \ macro
152 xchg((ptr), (x)); \
158 xchg((ptr), (x)); \
/arch/csky/include/asm/
Dcmpxchg.h36 #define xchg(ptr, x) (__xchg((x), (ptr), sizeof(*(ptr)))) macro
/arch/parisc/include/asm/
Datomic.h78 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
224 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))

1234