Searched refs:xchg (Results 1 – 25 of 45) sorted by relevance
12
/arch/x86/include/asm/ |
D | pgtable-2level.h | 52 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()
|
D | pgtable-3level.h | 179 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()
|
D | pgtable_64.h | 94 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()
|
D | barrier.h | 61 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
|
D | atomic64_32.h | 50 ATOMIC64_DECL(xchg); 93 alternative_atomic64(xchg, "=&A" (o), in arch_atomic64_xchg()
|
D | local.h | 126 #define local_xchg(l, n) (xchg(&((l)->a.counter), (n)))
|
D | cmpxchg.h | 78 #define arch_xchg(ptr, v) __xchg_op((ptr), (v), xchg, "")
|
/arch/arm64/include/asm/xen/ |
D | events.h | 20 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
/arch/arm/kernel/ |
D | dma.c | 62 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/ |
D | events.h | 24 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
/arch/sh/include/asm/ |
D | barrier.h | 41 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
|
/arch/sparc/include/asm/ |
D | parport.h | 52 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/ |
D | irq.c | 713 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/ |
D | cmpxchg.h | 57 #define xchg(ptr, x) \ macro
|
/arch/alpha/include/asm/ |
D | xchg.h | 3 #error Do not include xchg.h directly!
|
/arch/hexagon/kernel/ |
D | smp.c | 88 while ((ops = xchg(&ipi->bits, 0)) != 0) in handle_ipi()
|
/arch/ia64/kernel/ |
D | smp.c | 103 while ((ops = xchg(pending_ipis, 0)) != 0) { in handle_IPI()
|
/arch/riscv/kernel/ |
D | smp.c | 147 ops = xchg(pending_ipis, 0); in handle_IPI()
|
/arch/s390/kernel/ |
D | kprobes.c | 51 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/ |
D | smp.c | 51 ops = xchg(&this_cpu_ptr(&ipi_data)->bits, 0); in handle_ipi()
|
/arch/mips/sibyte/common/ |
D | sb_tbprof.c | 258 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/ |
D | smp.c | 377 copy = pending = xchg(this_cpu_ptr(&ipi_data), 0); in do_IPI()
|
/arch/x86/lib/ |
D | atomic64_386_32.S | 52 BEGIN_IRQ_SAVE(xchg)
|
/arch/x86/math-emu/ |
D | reg_u_sub.S | 196 xchg %edx,%eax
|
/arch/x86/hyperv/ |
D | hv_apic.c | 93 if (hvp && (xchg(&hvp->apic_assist, 0) & 0x1)) in hv_apic_eoi_write()
|
12