Home
last modified time | relevance | path

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

1234567891011

/openbmc/linux/scripts/atomic/
H A Dgen-atomic-fallback.sh159 local xchg="$1"; shift
183 __atomic_op_fence(arch_${xchg}, __VA_ARGS__)
191 local xchg="$1"; shift
195 printf "#if defined(arch_${xchg}${order})\n"
196 printf "#define raw_${xchg}${order} arch_${xchg}${order}\n"
205 printf "#elif defined(arch_${xchg})\n"
206 printf "#define raw_${xchg}${order} arch_${xchg}\n"
211 printf "#define raw_${xchg}${order}(...) raw_${xchg}${order}_not_implemented()\n"
217 local xchg="$1"; shift
220 gen_xchg_order_fallback "${xchg}" "${order}"
[all …]
H A Dgen-atomic-instrumented.sh87 local xchg="$1"; shift
91 if [ "${xchg%_local}" = "${xchg}" ]; then
110 raw_${xchg}${order}(__ai_ptr, __ai_oldp, __VA_ARGS__); \\
124 raw_${xchg}${order}(__ai_ptr, __VA_ARGS__); \\
165 for xchg in "xchg" "cmpxchg" "cmpxchg64" "cmpxchg128" "try_cmpxchg" "try_cmpxchg64" "try_cmpxchg128…
167 gen_xchg "${xchg}" "${order}"
172 for xchg in "cmpxchg_local" "cmpxchg64_local" "cmpxchg128_local" "sync_cmpxchg" "try_cmpxchg_local"…
173 gen_xchg "${xchg}" ""
/openbmc/qemu/pc-bios/optionrom/
H A Dkvmvapic.S128 xchg %eax, %ebx
134 xchg %eax, %ecx
140 xchg %eax, %edx
146 xchg %eax, %esi
152 xchg %eax, %edi
158 xchg %eax, %ebp
163 xchg %eax, 4(%esp)
268 xchg %eax, 4(%esp)
/openbmc/linux/drivers/accessibility/speakup/
H A Dselection.c39 tty = xchg(&ssw->tty, NULL); in __speakup_set_selection()
101 tty = xchg(&speakup_sel_work.tty, NULL); in speakup_cancel_selection()
110 struct tty_struct *tty = xchg(&ssw->tty, NULL); in __speakup_paste_selection()
138 tty = xchg(&speakup_paste_work.tty, NULL); in speakup_cancel_paste()
/openbmc/linux/arch/x86/include/asm/
H A 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()
H A 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()
H A Dbarrier.h61 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
/openbmc/linux/kernel/
H A Ddma.c75 if (xchg(&dma_chan_busy[dmanr].lock, 1) != 0) in request_dma()
95 if (xchg(&dma_chan_busy[dmanr].lock, 0) == 0) { in free_dma()
H A Dkexec.c112 kimage_free(xchg(dest_image, NULL)); in do_kexec_load()
122 kimage_free(xchg(&kexec_crash_image, NULL)); in do_kexec_load()
162 image = xchg(dest_image, image); in do_kexec_load()
/openbmc/linux/arch/arm/kernel/
H A 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()
/openbmc/u-boot/arch/microblaze/include/asm/
H A Dsystem.h130 #define xchg(ptr, with) \ macro
132 #define tas(ptr) (xchg ((ptr), 1))
/openbmc/linux/tools/testing/selftests/powerpc/benchmarks/
H A Dcontext_switch.c274 static unsigned long xchg(unsigned long *p, unsigned long val) in xchg() function
293 c = xchg(m, 2); in mutex_lock()
297 c = xchg(m, 2); in mutex_lock()
311 else if (xchg(m, 0) == 1) in mutex_unlock()
/openbmc/u-boot/arch/x86/cpu/
H A Dlapic.c21 #define xchg(ptr, v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v), (ptr), \ macro
62 (void)xchg((volatile unsigned long *)(LAPIC_DEFAULT_BASE + reg), v); in lapic_write()
/openbmc/linux/kernel/locking/
H A Dosq_lock.c79 next = xchg(&node->next, NULL); in osq_wait_next()
223 next = xchg(&node->next, NULL); in osq_unlock()
/openbmc/linux/drivers/net/slip/
H A Dslip.c181 rbuff = xchg(&sl->rbuff, rbuff); in sl_alloc_bufs()
182 xbuff = xchg(&sl->xbuff, xbuff); in sl_alloc_bufs()
184 cbuff = xchg(&sl->cbuff, cbuff); in sl_alloc_bufs()
185 slcomp = xchg(&sl->slcomp, slcomp); in sl_alloc_bufs()
209 kfree(xchg(&sl->rbuff, NULL)); in sl_free_bufs()
210 kfree(xchg(&sl->xbuff, NULL)); in sl_free_bufs()
212 kfree(xchg(&sl->cbuff, NULL)); in sl_free_bufs()
213 slhc_free(xchg(&sl->slcomp, NULL)); in sl_free_bufs()
264 xbuff = xchg(&sl->xbuff, xbuff);
265 rbuff = xchg(&sl->rbuff, rbuff);
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_xdp.c24 old_prog = xchg(&port->xdp_prog, xdp->prog); in lan966x_xdp_setup()
32 xchg(&port->xdp_prog, old_prog); in lan966x_xdp_setup()
/openbmc/linux/kernel/kcsan/
H A Dselftest.c151 KCSAN_CHECK_READ_BARRIER(xchg(&test_var, 0)); in test_barrier()
180 KCSAN_CHECK_WRITE_BARRIER(xchg(&test_var, 0)); in test_barrier()
212 KCSAN_CHECK_RW_BARRIER(xchg(&test_var, 0)); in test_barrier()
/openbmc/u-boot/arch/mips/include/asm/
H A Dsystem.h241 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) macro
242 #define tas(ptr) (xchg((ptr),1))
/openbmc/linux/arch/arm64/include/asm/xen/
H A Devents.h20 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
/openbmc/u-boot/arch/sh/include/asm/
H A Dsystem.h135 #define set_mb(var, value) do { xchg(&var, value); } while (0)
217 #define xchg(ptr,x) \ macro
/openbmc/linux/drivers/s390/cio/
H A Dqdio_thinint.c91 return xchg(&q_indicators[TIQDIO_SHARED_IND].ind, 0); in clear_shared_ind()
121 xchg(irq->dsci, 0); in tiqdio_thinint_handler()
/openbmc/linux/arch/x86/include/asm/xen/
H A Devents.h24 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
/openbmc/linux/arch/sh/include/asm/
H A Dbarrier.h41 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
/openbmc/linux/arch/powerpc/kernel/
H A Dwatchdog.c177 xchg(&__wd_nmi_output, 1); in wd_lockup_ipi()
357 if (__wd_nmi_output && xchg(&__wd_nmi_output, 0)) { in watchdog_timer_interrupt()
416 xchg(&__wd_nmi_output, 1); // see wd_lockup_ipi in DEFINE_INTERRUPT_HANDLER_NMI()
/openbmc/linux/include/linux/
H A Ddebug_locks.h16 return xchg(&debug_locks, 0); in __debug_locks_off()

1234567891011