/linux-6.3-rc2/scripts/atomic/ |
A D | gen-atomic-fallback.sh | 129 local xchg="$1"; shift 135 __atomic_op_acquire(${xchg}, __VA_ARGS__) 140 __atomic_op_release(${xchg}, __VA_ARGS__) 145 __atomic_op_fence(${xchg}, __VA_ARGS__) 153 local xchg="$1"; shift 154 printf "#ifndef ${xchg}_relaxed\n" 156 gen_basic_fallbacks ${xchg} 158 printf "#else /* ${xchg}_relaxed */\n" 160 gen_order_fallbacks ${xchg} 162 printf "#endif /* ${xchg}_relaxed */\n\n" [all …]
|
A D | gen-atomic-instrumented.sh | 85 local xchg="$1"; shift 90 if [ "${xchg%_local}" = "${xchg}" ]; then 109 arch_${xchg}${order}(__ai_ptr, __ai_oldp, __VA_ARGS__); \\ 123 arch_${xchg}${order}(__ai_ptr, __VA_ARGS__); \\
|
/linux-6.3-rc2/drivers/accessibility/speakup/ |
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-6.3-rc2/arch/x86/include/asm/ |
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()
|
A 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()
|
A D | barrier.h | 61 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
|
/linux-6.3-rc2/kernel/ |
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()
|
A D | kexec.c | 112 kimage_free(xchg(dest_image, NULL)); in do_kexec_load() 122 kimage_free(xchg(&kexec_crash_image, NULL)); in do_kexec_load() 157 image = xchg(dest_image, image); in do_kexec_load()
|
/linux-6.3-rc2/arch/arm/kernel/ |
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-6.3-rc2/tools/testing/selftests/powerpc/benchmarks/ |
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-6.3-rc2/drivers/net/slip/ |
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-6.3-rc2/kernel/locking/ |
A D | osq_lock.c | 79 next = xchg(&node->next, NULL); in osq_wait_next() 223 next = xchg(&node->next, NULL); in osq_unlock()
|
A D | mcs_spinlock.h | 79 prev = xchg(lock, node); in mcs_spin_lock()
|
/linux-6.3-rc2/kernel/kcsan/ |
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-6.3-rc2/drivers/net/ethernet/microchip/lan966x/ |
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-6.3-rc2/drivers/s390/cio/ |
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-6.3-rc2/drivers/net/ethernet/engleder/ |
A D | tsnep_xdp.c | 14 old_prog = xchg(&adapter->xdp_prog, prog); in tsnep_xdp_setup_prog()
|
/linux-6.3-rc2/arch/arm64/include/asm/xen/ |
A D | events.h | 20 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | watchdog.c | 177 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()
|
/linux-6.3-rc2/arch/x86/include/asm/xen/ |
A D | events.h | 24 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
/linux-6.3-rc2/arch/sh/include/asm/ |
A D | barrier.h | 41 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
|
/linux-6.3-rc2/arch/um/kernel/ |
A 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()
|
/linux-6.3-rc2/include/linux/ |
A D | debug_locks.h | 16 return xchg(&debug_locks, 0); in __debug_locks_off()
|
/linux-6.3-rc2/arch/sparc/include/asm/ |
A 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()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gt/ |
A D | intel_gt_requests.c | 64 struct intel_timeline *tl = xchg(&engine->retire, NULL); in engine_retire() 67 struct intel_timeline *next = xchg(&tl->retire, NULL); in engine_retire()
|