Home
last modified time | relevance | path

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

123456789

/Linux-v4.19/arch/arc/include/asm/
Dcmpxchg.h154 #define xchg(ptr, with) \ macro
167 #define xchg(ptr, with) _xchg(ptr, with) macro
201 #define xchg(ptr, with) ((typeof(*(ptr)))__xchg((unsigned long)(with), (ptr), \ macro
219 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/Linux-v4.19/drivers/s390/cio/
Dqdio_thinint.c82 xchg(irq_ptr->dsci, 1 << 7); in tiqdio_add_input_queues()
122 xchg(irq_ptr->dsci, 0); in clear_nonshared_ind()
141 return xchg(&q_indicators[TIQDIO_SHARED_IND].ind, 0); in clear_shared_ind()
151 xchg(irq->dsci, 0); in tiqdio_call_inq_handlers()
167 xchg(irq->dsci, 0); in tiqdio_call_inq_handlers()
/Linux-v4.19/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_64.h88 return native_make_pte(xchg(&xp->pte, 0)); in native_ptep_get_and_clear()
101 return native_make_pmd(xchg(&xp->pmd, 0)); in native_pmdp_get_and_clear()
124 return native_make_pud(xchg(&xp->pud, 0)); in native_pudp_get_and_clear()
Dpgtable-3level.h177 res.pmd_low = xchg(&orig->pmd_low, 0); in native_pmdp_get_and_clear()
207 old.pmd_low = xchg(&ptr->pmd_low, new.pmd_low); in pmdp_establish()
239 res.pud_low = xchg(&orig->pud_low, 0); in native_pudp_get_and_clear()
/Linux-v4.19/arch/h8300/include/asm/
Dcmpxchg.h7 #define xchg(ptr, x) \ macro
64 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/Linux-v4.19/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.c125 kimage_free(xchg(dest_image, NULL)); in do_kexec_load()
134 kimage_free(xchg(&kexec_crash_image, NULL)); in do_kexec_load()
165 image = xchg(dest_image, image); in do_kexec_load()
/Linux-v4.19/include/asm-generic/
Dcmpxchg.h17 #ifndef xchg
83 #define xchg(ptr, x) ({ \ macro
/Linux-v4.19/arch/sparc/include/asm/
Datomic_64.h57 return xchg(&v->counter, new); in ATOMIC_OPS()
62 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
/Linux-v4.19/arch/arm/kernel/
Ddma.c65 if (xchg(&dma->lock, 1) != 0) in request_dma()
77 xchg(&dma->lock, 0); in request_dma()
108 if (xchg(&dma->lock, 0) != 0) { in free_dma()
/Linux-v4.19/tools/testing/selftests/powerpc/benchmarks/
Dcontext_switch.c267 static unsigned long xchg(unsigned long *p, unsigned long val) in xchg() function
286 c = xchg(m, 2); in mutex_lock()
290 c = xchg(m, 2); in mutex_lock()
304 else if (xchg(m, 0) == 1) in mutex_unlock()
/Linux-v4.19/kernel/locking/
Dosq_lock.c79 next = xchg(&node->next, NULL); in osq_wait_next()
222 next = xchg(&node->next, NULL); in osq_unlock()
/Linux-v4.19/include/linux/
Datomic.h544 #define xchg_relaxed xchg
545 #define xchg_acquire xchg
546 #define xchg_release xchg
551 #define xchg_acquire(...) __atomic_op_acquire(xchg, __VA_ARGS__)
555 #define xchg_release(...) __atomic_op_release(xchg, __VA_ARGS__)
558 #ifndef xchg
559 #define xchg(...) __atomic_op_fence(xchg, __VA_ARGS__) macro
/Linux-v4.19/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 …]
/Linux-v4.19/arch/um/kernel/
Dirq.c550 mask = xchg(&pending_mask, *mask_out); in to_irq_stack()
564 mask = xchg(&pending_mask, old); in to_irq_stack()
583 mask = xchg(&pending_mask, 0); in to_irq_stack()
602 mask = xchg(&pending_mask, 0); in from_irq_stack()
/Linux-v4.19/arch/riscv/include/asm/
Dcmpxchg.h151 #define xchg(ptr, x) \ macro
160 xchg((ptr), (x)); \
166 xchg((ptr), (x)); \
/Linux-v4.19/arch/s390/include/asm/
Datomic.h78 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS()
125 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
/Linux-v4.19/arch/arm64/include/asm/xen/
Devents.h20 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
/Linux-v4.19/arch/x86/include/asm/xen/
Devents.h22 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
/Linux-v4.19/arch/sh/include/asm/
Datomic.h35 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
Dbarrier.h41 #define __smp_store_mb(var, value) do { (void)xchg(&var, value); } while (0)
/Linux-v4.19/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()
/Linux-v4.19/arch/microblaze/include/asm/
Dcmpxchg.h37 #define xchg(ptr, x) \ macro
/Linux-v4.19/arch/unicore32/include/asm/
Dcmpxchg.h44 #define xchg(ptr, x) \ macro

123456789