Home
last modified time | relevance | path

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

12

/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.h179 res.pmd_low = xchg(&orig->pmd_low, 0); in native_pmdp_get_and_clear()
209 old.pmd_low = xchg(&ptr->pmd_low, new.pmd_low); in pmdp_establish()
241 res.pud_low = xchg(&orig->pud_low, 0); in native_pudp_get_and_clear()
Dpgtable_64.h94 return native_make_pte(xchg(&xp->pte, 0)); in native_ptep_get_and_clear()
107 return native_make_pmd(xchg(&xp->pmd, 0)); in native_pmdp_get_and_clear()
130 return native_make_pud(xchg(&xp->pud, 0)); in native_pudp_get_and_clear()
Dbarrier.h61 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
Datomic64_32.h50 ATOMIC64_DECL(xchg);
93 alternative_atomic64(xchg, "=&A" (o), in arch_atomic64_xchg()
Dlocal.h126 #define local_xchg(l, n) (xchg(&((l)->a.counter), (n)))
Dcmpxchg.h78 #define arch_xchg(ptr, v) __xchg_op((ptr), (v), xchg, "")
/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/
Dbarrier.h41 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
/arch/sparc/include/asm/
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/um/kernel/
Dirq.c713 mask = xchg(&pending_mask, *mask_out); in to_irq_stack()
727 mask = xchg(&pending_mask, old); in to_irq_stack()
746 mask = xchg(&pending_mask, 0); in to_irq_stack()
765 mask = xchg(&pending_mask, 0); in from_irq_stack()
/arch/ia64/include/uapi/asm/
Dcmpxchg.h57 #define xchg(ptr, x) \ macro
/arch/alpha/include/asm/
Dxchg.h3 #error Do not include xchg.h directly!
/arch/hexagon/kernel/
Dsmp.c88 while ((ops = xchg(&ipi->bits, 0)) != 0) in handle_ipi()
/arch/ia64/kernel/
Dsmp.c103 while ((ops = xchg(pending_ipis, 0)) != 0) { in handle_IPI()
/arch/riscv/kernel/
Dsmp.c147 ops = xchg(pending_ipis, 0); in handle_IPI()
/arch/s390/kernel/
Dkprobes.c51 if (xchg(&insn_page_in_use, 1) == 1) in alloc_s390_insn_page()
58 xchg(&insn_page_in_use, 0); in free_s390_insn_page()
/arch/csky/kernel/
Dsmp.c51 ops = xchg(&this_cpu_ptr(&ipi_data)->bits, 0); in handle_ipi()
/arch/mips/sibyte/common/
Dsb_tbprof.c258 if (xchg(&sbp.tb_enable, 1)) in sbprof_zbprof_start()
397 if (xchg(&sbp.open, SB_OPENING) != SB_CLOSED) in sbprof_tb_open()
/arch/arc/kernel/
Dsmp.c377 copy = pending = xchg(this_cpu_ptr(&ipi_data), 0); in do_IPI()
/arch/x86/lib/
Datomic64_386_32.S52 BEGIN_IRQ_SAVE(xchg)
/arch/x86/math-emu/
Dreg_u_sub.S196 xchg %edx,%eax
/arch/x86/hyperv/
Dhv_apic.c93 if (hvp && (xchg(&hvp->apic_assist, 0) & 0x1)) in hv_apic_eoi_write()

12