Searched refs:xchg (Results 1 - 25 of 235) sorted by relevance

12345678910

/linux-master/scripts/atomic/
H A Dgen-atomic-fallback.sh159 local xchg="$1"; shift
163 #define raw_${xchg}_relaxed arch_${xchg}_relaxed
165 #ifdef arch_${xchg}_acquire
166 #define raw_${xchg}_acquire arch_${xchg}_acquire
168 #define raw_${xchg}_acquire(...) \\
169 __atomic_op_acquire(arch_${xchg}, __VA_ARGS__)
172 #ifdef arch_${xchg}_release
173 #define raw_${xchg}_releas
[all...]
H A Dgen-atomic-instrumented.sh87 local xchg="$1"; shift
91 if [ "${xchg%_local}" = "${xchg}" ]; then
98 if [ "${xchg%${xchg#try_cmpxchg}}" = "try_cmpxchg" ] ; then
101 #define ${xchg}${order}(ptr, oldp, ...) \\
110 raw_${xchg}${order}(__ai_ptr, __ai_oldp, __VA_ARGS__); \\
117 #define ${xchg}${order}(ptr, ...) \\
124 raw_${xchg}${order}(__ai_ptr, __VA_ARGS__); \\
165 for xchg i
[all...]
/linux-master/arch/arm64/include/asm/xen/
H A Devents.h20 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
/linux-master/arch/sh/include/asm/
H A Dcmpxchg-cas.h23 #include <asm/cmpxchg-xchg.h>
H A Dcmpxchg-llsc.h51 #include <asm/cmpxchg-xchg.h>
H A Dbarrier.h41 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
/linux-master/arch/x86/include/asm/xen/
H A Devents.h24 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
/linux-master/drivers/accessibility/speakup/
H A Dselection.c39 tty = xchg(&ssw->tty, NULL);
99 * we need to use xchg here to avoid race with speakup_set_selection()
101 tty = xchg(&speakup_sel_work.tty, NULL);
110 struct tty_struct *tty = xchg(&ssw->tty, NULL);
138 tty = xchg(&speakup_paste_work.tty, NULL);
/linux-master/kernel/
H A Ddma.c75 if (xchg(&dma_chan_busy[dmanr].lock, 1) != 0)
95 if (xchg(&dma_chan_busy[dmanr].lock, 0) == 0) {
/linux-master/arch/x86/include/asm/
H A Dpgtable-2level.h52 return __pte(xchg(&xp->pte_low, 0));
61 return __pmd(xchg((pmdval_t *)xp, 0));
70 return __pud(xchg((pudval_t *)xp, 0));
H A Dbarrier.h61 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
H A Dpgtable_64.h94 return native_make_pte(xchg(&xp->pte, 0));
107 return native_make_pmd(xchg(&xp->pmd, 0));
130 return native_make_pud(xchg(&xp->pud, 0));
/linux-master/kernel/locking/
H A Dmcs_spinlock.h75 * below xchg() to order the initialization stores above against any
79 prev = xchg(lock, node);
H A Dosq_lock.c72 * We must xchg() the @node->next value, because if we were to
84 next = xchg(&node->next, NULL);
226 next = xchg(&node->next, NULL);
/linux-master/include/linux/
H A Ddebug_locks.h16 return xchg(&debug_locks, 0);
/linux-master/drivers/md/dm-vdo/
H A Dfunnel-queue.h91 * other producer threads can see the entry (the xchg) and try to update the "next" field.
93 * xchg implements a full barrier.
96 previous = xchg(&queue->newest, entry);
/linux-master/arch/alpha/include/asm/
H A Dcmpxchg.h11 #include <asm/xchg.h>
39 #include <asm/xchg.h>
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_xdp.c24 old_prog = xchg(&port->xdp_prog, xdp->prog);
32 xchg(&port->xdp_prog, old_prog);
/linux-master/drivers/net/ethernet/engleder/
H A Dtsnep_xdp.c14 old_prog = xchg(&adapter->xdp_prog, prog);
/linux-master/drivers/s390/cio/
H A Dqdio_thinint.c91 return xchg(&q_indicators[TIQDIO_SHARED_IND].ind, 0);
121 xchg(irq->dsci, 0);
/linux-master/tools/testing/selftests/powerpc/benchmarks/
H A Dcontext_switch.c274 static unsigned long xchg(unsigned long *p, unsigned long val) function
293 c = xchg(m, 2);
297 c = xchg(m, 2);
311 else if (xchg(m, 0) == 1)
/linux-master/drivers/gpu/drm/qxl/
H A Dqxl_irq.c38 pending = xchg(&qdev->ram_header->int_pending, 0);
/linux-master/arch/x86/kvm/mmu/
H A Dtdp_iter.h24 return xchg(rcu_dereference(sptep), new_spte);
/linux-master/arch/arm/kernel/
H A Ddma.c62 if (xchg(&dma->lock, 1) != 0)
74 xchg(&dma->lock, 0);
105 if (xchg(&dma->lock, 0) != 0) {
/linux-master/kernel/kcsan/
H A Dselftest.c151 KCSAN_CHECK_READ_BARRIER(xchg(&test_var, 0));
180 KCSAN_CHECK_WRITE_BARRIER(xchg(&test_var, 0));
212 KCSAN_CHECK_RW_BARRIER(xchg(&test_var, 0));

Completed in 289 milliseconds

12345678910