| /linux/scripts/atomic/ |
| H A D | gen-atomic-fallback.sh | 159 local xchg="$1"; shift 169 __atomic_op_acquire(arch_${xchg}, __VA_ARGS__) 176 __atomic_op_release(arch_${xchg}, __VA_ARGS__) 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" 199 printf "#elif defined(arch_${xchg}_relaxed)\n" 200 printf "#define raw_${xchg}${order}(...) \\\\\n" 201 printf " __atomic_op${forder}(arch_${xchg}, __VA_ARGS__)\n" [all …]
|
| /linux/drivers/accessibility/speakup/ |
| H A D | selection.c | 39 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()
|
| /linux/arch/x86/include/asm/ |
| H A 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()
|
| /linux/kernel/ |
| H A D | dma.c | 75 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 D | kexec.c | 117 kimage_free(xchg(dest_image, NULL)); in do_kexec_load() 127 kimage_free(xchg(&kexec_crash_image, NULL)); in do_kexec_load() 167 image = xchg(dest_image, image); in do_kexec_load()
|
| /linux/arch/arm/kernel/ |
| H A 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()
|
| /linux/tools/testing/selftests/powerpc/benchmarks/ |
| H A D | context_switch.c | 274 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()
|
| /linux/drivers/net/slip/ |
| H A D | slip.c | 181 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 …]
|
| /linux/kernel/kcsan/ |
| H A D | selftest.c | 151 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()
|
| /linux/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_xdp.c | 24 old_prog = xchg(&port->xdp_prog, xdp->prog); in lan966x_xdp_setup() 32 xchg(&port->xdp_prog, old_prog); in lan966x_xdp_setup()
|
| /linux/drivers/s390/cio/ |
| H A D | qdio_thinint.c | 91 return xchg(&q_indicators[TIQDIO_SHARED_IND].ind, 0); in clear_shared_ind() 121 xchg(irq->dsci, 0); in tiqdio_thinint_handler()
|
| /linux/arch/arm64/include/asm/xen/ |
| H A D | events.h | 20 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
| /linux/arch/powerpc/kernel/ |
| H A D | watchdog.c | 178 xchg(&__wd_nmi_output, 1); in wd_lockup_ipi() 360 if (__wd_nmi_output && xchg(&__wd_nmi_output, 0)) { in watchdog_timer_interrupt() 419 xchg(&__wd_nmi_output, 1); // see wd_lockup_ipi in DEFINE_INTERRUPT_HANDLER_NMI()
|
| /linux/arch/x86/include/asm/xen/ |
| H A D | events.h | 24 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
| /linux/arch/sh/include/asm/ |
| H A D | barrier.h | 41 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
|
| /linux/include/linux/ |
| H A D | debug_locks.h | 16 return xchg(&debug_locks, 0); in __debug_locks_off()
|
| /linux/drivers/md/dm-vdo/ |
| H A D | funnel-queue.h | 96 previous = xchg(&queue->newest, entry); in vdo_funnel_queue_put()
|
| /linux/kernel/locking/ |
| H A D | mcs_spinlock.h | 67 * below xchg() to order the initialization stores above against any in mcs_spin_lock() 71 prev = xchg(lock, node); in mcs_spin_lock()
|
| /linux/fs/nfs/ |
| H A D | read.c | 176 xchg(&nfs_req_openctx(req)->error, error); in nfs_read_completion() 337 xchg(&ctx->error, 0); in nfs_do_read_folio() 354 ret = xchg(&ctx->error, 0); in nfs_do_read_folio()
|
| /linux/drivers/net/ethernet/engleder/ |
| H A D | tsnep_xdp.c | 14 old_prog = xchg(&adapter->xdp_prog, prog); in tsnep_xdp_setup_prog()
|
| /linux/drivers/xen/events/ |
| H A D | events_fifo.c | 326 ready = xchg(&control_block->ready, 0); in __evtchn_fifo_handle_events() 331 ready |= xchg(&control_block->ready, 0); in __evtchn_fifo_handle_events()
|
| /linux/drivers/irqchip/ |
| H A D | irq-ompic.c | 126 while ((ops = xchg(pending_ops, 0)) != 0) { in ompic_ipi_handler()
|
| /linux/fs/crypto/ |
| H A D | inline_crypt.c | 82 if (!xchg(&mode->logged_blk_crypto_native, 1)) in fscrypt_log_blk_crypto_impl() 85 } else if (!xchg(&mode->logged_blk_crypto_fallback, 1)) { in fscrypt_log_blk_crypto_impl()
|
| /linux/net/bridge/netfilter/ |
| H A D | ebt_limit.c | 42 info->credit += (now - xchg(&info->prev, now)) * CREDITS_PER_JIFFY; in ebt_limit_mt()
|
| /linux/arch/x86/kernel/ |
| H A D | crash.c | 562 xchg(&kexec_crash_image, NULL); in arch_crash_handle_hotplug_event() 564 xchg(&kexec_crash_image, image); in arch_crash_handle_hotplug_event()
|