/linux-master/scripts/atomic/ |
H A D | gen-atomic-fallback.sh | 159 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 D | gen-atomic-instrumented.sh | 87 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 D | events.h | 20 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
/linux-master/arch/sh/include/asm/ |
H A D | cmpxchg-cas.h | 23 #include <asm/cmpxchg-xchg.h>
|
H A D | cmpxchg-llsc.h | 51 #include <asm/cmpxchg-xchg.h>
|
H A D | barrier.h | 41 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
|
/linux-master/arch/x86/include/asm/xen/ |
H A D | events.h | 24 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
/linux-master/drivers/accessibility/speakup/ |
H A D | selection.c | 39 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 D | dma.c | 75 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 D | pgtable-2level.h | 52 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 D | barrier.h | 57 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
|
/linux-master/kernel/locking/ |
H A D | mcs_spinlock.h | 75 * below xchg() to order the initialization stores above against any 79 prev = xchg(lock, node);
|
H A D | osq_lock.c | 72 * 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 D | debug_locks.h | 16 return xchg(&debug_locks, 0);
|
/linux-master/drivers/md/dm-vdo/ |
H A D | funnel-queue.h | 91 * 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 D | cmpxchg.h | 11 #include <asm/xchg.h> 39 #include <asm/xchg.h>
|
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_xdp.c | 24 old_prog = xchg(&port->xdp_prog, xdp->prog); 32 xchg(&port->xdp_prog, old_prog);
|
/linux-master/drivers/net/ethernet/engleder/ |
H A D | tsnep_xdp.c | 14 old_prog = xchg(&adapter->xdp_prog, prog);
|
/linux-master/drivers/s390/cio/ |
H A D | qdio_thinint.c | 91 return xchg(&q_indicators[TIQDIO_SHARED_IND].ind, 0); 121 xchg(irq->dsci, 0);
|
/linux-master/tools/testing/selftests/powerpc/benchmarks/ |
H A D | context_switch.c | 274 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 D | qxl_irq.c | 38 pending = xchg(&qdev->ram_header->int_pending, 0);
|
/linux-master/arch/x86/kvm/mmu/ |
H A D | tdp_iter.h | 24 return xchg(rcu_dereference(sptep), new_spte);
|
/linux-master/arch/powerpc/kexec/ |
H A D | crash.c | 477 xchg(&kexec_crash_image, NULL); 483 xchg(&kexec_crash_image, image); 537 xchg(&kexec_crash_image, NULL); 544 xchg(&kexec_crash_image, image);
|
/linux-master/arch/arm/kernel/ |
H A D | dma.c | 62 if (xchg(&dma->lock, 1) != 0) 74 xchg(&dma->lock, 0); 105 if (xchg(&dma->lock, 0) != 0) {
|
/linux-master/kernel/kcsan/ |
H A D | selftest.c | 151 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));
|