| /OK3568_Linux_fs/kernel/scripts/atomic/ |
| H A 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}"
|
| H A D | gen-atomic-instrumented.sh | 112 local xchg="$1"; shift 120 arch_${xchg}(__ai_ptr, __VA_ARGS__); \\
|
| /OK3568_Linux_fs/kernel/drivers/accessibility/speakup/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/arch/arc/include/asm/ |
| H A 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))
|
| /OK3568_Linux_fs/kernel/arch/x86/include/asm/ |
| H 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()
|
| H A 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()
|
| H 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()
|
| /OK3568_Linux_fs/kernel/arch/h8300/include/asm/ |
| H A D | cmpxchg.h | 7 #define xchg(ptr, x) \ macro 64 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H 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()
|
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/slip/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/benchmarks/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/arch/arm/kernel/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/include/asm-generic/ |
| H A D | cmpxchg.h | 17 #ifndef xchg 83 #define xchg(ptr, x) ({ \ macro
|
| /OK3568_Linux_fs/kernel/arch/sparc/include/asm/ |
| H A D | atomic_64.h | 56 return xchg(&v->counter, new); in ATOMIC_OPS() 61 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
|
| /OK3568_Linux_fs/kernel/arch/um/kernel/ |
| H A 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()
|
| /OK3568_Linux_fs/u-boot/arch/microblaze/include/asm/ |
| H A D | system.h | 130 #define xchg(ptr, with) \ macro 132 #define tas(ptr) (xchg ((ptr), 1))
|
| /OK3568_Linux_fs/kernel/kernel/locking/ |
| H A D | osq_lock.c | 79 next = xchg(&node->next, NULL); in osq_wait_next() 223 next = xchg(&node->next, NULL); in osq_unlock()
|
| /OK3568_Linux_fs/u-boot/arch/x86/cpu/ |
| H A D | lapic.c | 22 #define xchg(ptr, v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v), (ptr), \ macro 63 (void)xchg((volatile unsigned long *)(LAPIC_DEFAULT_BASE + reg), v); in lapic_write()
|
| /OK3568_Linux_fs/kernel/arch/riscv/include/asm/ |
| H A D | cmpxchg.h | 143 #define xchg(ptr, x) \ macro 152 xchg((ptr), (x)); \ 158 xchg((ptr), (x)); \
|
| /OK3568_Linux_fs/u-boot/arch/mips/include/asm/ |
| H A D | system.h | 240 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) macro 241 #define tas(ptr) (xchg((ptr),1))
|
| /OK3568_Linux_fs/kernel/drivers/s390/char/ |
| H A 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()
|
| /OK3568_Linux_fs/u-boot/arch/sh/include/asm/ |
| H A D | system.h | 135 #define set_mb(var, value) do { xchg(&var, value); } while (0) 217 #define xchg(ptr,x) \ macro
|
| /OK3568_Linux_fs/kernel/arch/s390/include/asm/ |
| H A 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))
|
| /OK3568_Linux_fs/kernel/drivers/s390/cio/ |
| H A 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()
|