/Linux-v4.19/arch/arc/include/asm/ |
D | cmpxchg.h | 154 #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/ |
D | qdio_thinint.c | 82 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/ |
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 | 88 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()
|
D | pgtable-3level.h | 177 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/ |
D | cmpxchg.h | 7 #define xchg(ptr, x) \ macro 64 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
|
/Linux-v4.19/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 | 125 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/ |
D | cmpxchg.h | 17 #ifndef xchg 83 #define xchg(ptr, x) ({ \ macro
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | atomic_64.h | 57 return xchg(&v->counter, new); in ATOMIC_OPS() 62 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
|
/Linux-v4.19/arch/arm/kernel/ |
D | dma.c | 65 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/ |
D | context_switch.c | 267 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/ |
D | osq_lock.c | 79 next = xchg(&node->next, NULL); in osq_wait_next() 222 next = xchg(&node->next, NULL); in osq_unlock()
|
/Linux-v4.19/include/linux/ |
D | atomic.h | 544 #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/ |
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 …]
|
/Linux-v4.19/arch/um/kernel/ |
D | irq.c | 550 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/ |
D | cmpxchg.h | 151 #define xchg(ptr, x) \ macro 160 xchg((ptr), (x)); \ 166 xchg((ptr), (x)); \
|
/Linux-v4.19/arch/s390/include/asm/ |
D | atomic.h | 78 #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/ |
D | events.h | 20 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
/Linux-v4.19/arch/x86/include/asm/xen/ |
D | events.h | 22 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
|
/Linux-v4.19/arch/sh/include/asm/ |
D | atomic.h | 35 #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)
|
/Linux-v4.19/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()
|
/Linux-v4.19/arch/microblaze/include/asm/ |
D | cmpxchg.h | 37 #define xchg(ptr, x) \ macro
|
/Linux-v4.19/arch/unicore32/include/asm/ |
D | cmpxchg.h | 44 #define xchg(ptr, x) \ macro
|