Home
last modified time | relevance | path

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

/arch/sh/include/asm/
Datomic.h35 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/arch/h8300/include/asm/
Dcmpxchg.h64 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/arch/sparc/include/asm/
Datomic_32.h29 int atomic_xchg(atomic_t *, int);
Datomic_64.h55 static inline int atomic_xchg(atomic_t *v, int new) in ATOMIC_OPS()
/arch/m68k/include/asm/
Datomic.h166 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
183 static inline int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
/arch/sparc/lib/
Datomic32.c70 int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
81 EXPORT_SYMBOL(atomic_xchg);
/arch/hexagon/include/asm/
Datomic.h46 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) macro
/arch/arc/include/asm/
Dcmpxchg.h222 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/arch/powerpc/platforms/powernv/
Dopal-prd.c92 if (atomic_xchg(&prd_usage, 1) == 1) in opal_prd_open()
260 atomic_xchg(&prd_usage, 0); in opal_prd_release()
/arch/xtensa/include/asm/
Datomic.h259 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/arch/s390/include/asm/
Datomic.h78 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS() macro
/arch/riscv/include/asm/
Datomic.h306 #define atomic_xchg atomic_xchg in ATOMIC_OPS() macro
/arch/mips/math-emu/
Ddsemul.c157 fr_idx = atomic_xchg(&tsk->thread.bd_emu_frame, BD_EMUFRAME_NONE); in dsemul_thread_cleanup()
/arch/parisc/include/asm/
Datomic.h78 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/arch/alpha/include/asm/
Datomic.h206 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS() macro
/arch/ia64/include/asm/
Datomic.h212 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/arch/mips/mm/
Dpage.c283 if (atomic_xchg(&run_once, 1)) { in build_clear_page()
430 if (atomic_xchg(&run_once, 1)) { in build_copy_page()
/arch/sh/drivers/dma/
Ddma-api.c198 if (atomic_xchg(&channel->busy, 1)) in request_dma()
/arch/mips/include/asm/
Datomic.h231 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) macro
/arch/powerpc/include/asm/
Datomic.h201 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/arch/arm/include/asm/
Datomic.h245 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
/arch/powerpc/kvm/
Dbook3s_xive_template.c201 int p = atomic_xchg(&q->pending_count, 0); in GLUE()
/arch/x86/kvm/
Di8254.c247 if (atomic_read(&ps->reinject) && !atomic_xchg(&ps->irq_ack, 0)) in pit_do_work()
Dx86.c7632 vcpu->arch.nmi_pending += atomic_xchg(&vcpu->arch.nmi_queued, 0); in process_nmi()
/arch/powerpc/sysdev/xive/
Dcommon.c175 int p = atomic_xchg(&q->pending_count, 0); in xive_scan_interrupts()