Home
last modified time | relevance | path

Searched refs:xchg (Results 1 – 25 of 244) sorted by relevance

12345678910

/kernel/linux/linux-5.10/scripts/atomic/
Dgen-atomic-fallback.sh149 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}"
Dgen-atomic-instrumented.sh112 local xchg="$1"; shift
120 arch_${xchg}(__ai_ptr, __VA_ARGS__); \\
/kernel/linux/linux-5.10/drivers/accessibility/speakup/
Dselection.c39 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/
Dcmpxchg.h126 #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/
Dpgtable-2level.h52 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()
Dpgtable-3level.h179 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()
Dpgtable_64.h94 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()
/kernel/linux/linux-5.10/arch/h8300/include/asm/
Dcmpxchg.h7 #define xchg(ptr, x) \ macro
64 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/kernel/linux/linux-5.10/kernel/
Ddma.c75 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()
Dkexec.c123 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/
Dcmpxchg.h17 #ifndef xchg
83 #define xchg(ptr, x) ({ \ macro
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Datomic_64.h56 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/
Ddma.c62 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/
Dcontext_switch.c274 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/
Dslip.c180 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/
Dosq_lock.c79 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/
Dirq.c544 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/
Dcmpxchg.h143 #define xchg(ptr, x) \ macro
152 xchg((ptr), (x)); \
158 xchg((ptr), (x)); \
/kernel/linux/linux-5.10/arch/arm64/include/asm/xen/
Devents.h20 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
/kernel/linux/linux-5.10/arch/s390/include/asm/
Datomic.h80 #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/
Devents.h24 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
/kernel/linux/linux-5.10/drivers/s390/cio/
Dqdio_thinint.c106 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/
Datomic.h33 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
Dbarrier.h41 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
/kernel/linux/linux-5.10/drivers/s390/char/
Dcon3270.c201 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()

12345678910