/kernel/linux/linux-5.10/scripts/atomic/ |
D | gen-atomic-fallback.sh | 149 local xchg="$1"; shift 159 __atomic_op_acquire(${xchg}, __VA_ARGS__) 164 __atomic_op_release(${xchg}, __VA_ARGS__) 169 __atomic_op_fence(${xchg}, __VA_ARGS__) 190 for xchg in "${ARCH}xchg" "${ARCH}cmpxchg" "${ARCH}cmpxchg64"; do 191 gen_xchg_fallbacks "${xchg}"
|
D | gen-atomic-instrumented.sh | 112 local xchg="$1"; shift 120 arch_${xchg}(__ai_ptr, __VA_ARGS__); \\
|
/kernel/linux/linux-5.10/drivers/accessibility/speakup/ |
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()
|
/kernel/linux/linux-5.10/arch/arc/include/asm/ |
D | cmpxchg.h | 126 #define xchg(ptr, with) \ macro 139 #define xchg(ptr, with) _xchg(ptr, with) macro 156 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
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()
|
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()
|
D | pgtable-3level.h | 179 res.pmd_low = xchg(&orig->pmd_low, 0); in native_pmdp_get_and_clear() 209 old.pmd_low = xchg(&ptr->pmd_low, new.pmd_low); in pmdp_establish() 241 res.pud_low = xchg(&orig->pud_low, 0); in native_pudp_get_and_clear()
|
/kernel/linux/linux-5.10/arch/h8300/include/asm/ |
D | cmpxchg.h | 7 #define xchg(ptr, x) \ macro 64 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
|
/kernel/linux/linux-5.10/kernel/ |
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()
|
D | kexec.c | 123 kimage_free(xchg(dest_image, NULL)); in do_kexec_load() 132 kimage_free(xchg(&kexec_crash_image, NULL)); in do_kexec_load() 167 image = xchg(dest_image, image); in do_kexec_load()
|
/kernel/linux/linux-5.10/include/asm-generic/ |
D | cmpxchg.h | 17 #ifndef xchg 83 #define xchg(ptr, x) ({ \ macro
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
D | atomic_64.h | 56 return xchg(&v->counter, new); in ATOMIC_OPS() 61 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/benchmarks/ |
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()
|
/kernel/linux/linux-5.10/drivers/net/slip/ |
D | slip.c | 180 rbuff = xchg(&sl->rbuff, rbuff); in sl_alloc_bufs() 181 xbuff = xchg(&sl->xbuff, xbuff); in sl_alloc_bufs() 183 cbuff = xchg(&sl->cbuff, cbuff); in sl_alloc_bufs() 184 slcomp = xchg(&sl->slcomp, slcomp); in sl_alloc_bufs() 208 kfree(xchg(&sl->rbuff, NULL)); in sl_free_bufs() 209 kfree(xchg(&sl->xbuff, NULL)); in sl_free_bufs() 211 kfree(xchg(&sl->cbuff, NULL)); in sl_free_bufs() 212 slhc_free(xchg(&sl->slcomp, NULL)); in sl_free_bufs() 263 xbuff = xchg(&sl->xbuff, xbuff); 264 rbuff = xchg(&sl->rbuff, rbuff); [all …]
|
/kernel/linux/linux-5.10/kernel/locking/ |
D | osq_lock.c | 79 next = xchg(&node->next, NULL); in osq_wait_next() 223 next = xchg(&node->next, NULL); in osq_unlock()
|
/kernel/linux/linux-5.10/arch/um/kernel/ |
D | irq.c | 544 mask = xchg(&pending_mask, *mask_out); in to_irq_stack() 558 mask = xchg(&pending_mask, old); in to_irq_stack() 577 mask = xchg(&pending_mask, 0); in to_irq_stack() 596 mask = xchg(&pending_mask, 0); in from_irq_stack()
|
/kernel/linux/linux-5.10/arch/riscv/include/asm/ |
D | cmpxchg.h | 143 #define xchg(ptr, x) \ macro 152 xchg((ptr), (x)); \ 158 xchg((ptr), (x)); \
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/xen/ |
D | events.h | 20 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | atomic.h | 80 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS() 131 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
|
/kernel/linux/linux-5.10/arch/x86/include/asm/xen/ |
D | events.h | 24 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
/kernel/linux/linux-5.10/drivers/s390/cio/ |
D | qdio_thinint.c | 106 return xchg(&q_indicators[TIQDIO_SHARED_IND].ind, 0); in clear_shared_ind() 115 xchg(irq->dsci, 0); in tiqdio_call_inq_handlers()
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
D | atomic.h | 33 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
|
D | barrier.h | 41 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
|
/kernel/linux/linux-5.10/drivers/s390/char/ |
D | con3270.c | 201 xchg(&((struct con3270 *) rq->view)->write, rq); in con3270_write_callback() 223 wrq = xchg(&cp->write, 0); in con3270_update() 285 xchg(&cp->write, wrq); in con3270_update() 349 xchg(&cp->read, rrq); in con3270_read_tasklet() 373 rrq = xchg(&cp->read, 0); in con3270_issue_read()
|