Home
last modified time | relevance | path

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

/linux-4.1.27/arch/tile/include/asm/
Dcmpxchg.h43 #define xchg(ptr, n) \ macro
80 #define xchg(ptr, n) \ macro
125 #define xchg64 xchg
130 #define tas(ptr) xchg((ptr), 1)
Datomic.h125 return xchg(&v->counter, n); in atomic_xchg()
/linux-4.1.27/arch/arc/include/asm/
Dcmpxchg.h129 #define xchg(ptr, with) \ macro
142 #define xchg(ptr, with) _xchg(ptr, with) macro
159 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/linux-4.1.27/drivers/s390/cio/
Dqdio_thinint.c83 xchg(irq_ptr->dsci, 1 << 7); in tiqdio_add_input_queues()
123 xchg(irq_ptr->dsci, 0); in clear_nonshared_ind()
142 return xchg(&q_indicators[TIQDIO_SHARED_IND].ind, 0); in clear_shared_ind()
153 xchg(q->irq_ptr->dsci, 0); in tiqdio_call_inq_handlers()
168 xchg(q->irq_ptr->dsci, 0); in tiqdio_call_inq_handlers()
Dqdio_main.c258 xchg(&q->slsb.val[bufnr], state); in set_buf_states()
/linux-4.1.27/arch/frv/include/asm/
Dcmpxchg.h27 #define xchg(ptr, x) \ macro
55 #define xchg(ptr, x) \ macro
72 #define tas(ptr) (xchg((ptr), 1))
Datomic.h180 #define atomic_xchg(v, new) (xchg(&(v)->counter, new))
Dpgtable.h397 unsigned long x = xchg(&ptep->pte, 0); in ptep_get_and_clear()
/linux-4.1.27/arch/c6x/include/asm/
Dcmpxchg.h47 #define xchg(ptr, x) \ macro
50 #define tas(ptr) xchg((ptr), 1)
/linux-4.1.27/kernel/
Ddma.c74 if (xchg(&dma_chan_busy[dmanr].lock, 1) != 0) in request_dma()
94 if (xchg(&dma_chan_busy[dmanr].lock, 0) == 0) { in free_dma()
Dkthread.c192 done = xchg(&create->done, NULL); in kthread()
234 struct completion *done = xchg(&create->done, NULL); in create_kthread()
300 if (xchg(&create->done, NULL)) in kthread_create_on_node()
Dirq_work.c154 xchg(&work->flags, flags); in irq_work_run_list()
Dkmod.c201 struct completion *comp = xchg(&sub_info->complete, NULL); in umh_complete()
569 if (xchg(&sub_info->complete, NULL)) in call_usermodehelper_exec()
Dkexec.c1294 kimage_free(xchg(&kexec_crash_image, NULL)); in SYSCALL_DEFINE4()
1323 image = xchg(dest_image, image); in SYSCALL_DEFINE4()
1417 kimage_free(xchg(&kexec_crash_image, NULL)); in SYSCALL_DEFINE5()
1453 image = xchg(dest_image, image); in SYSCALL_DEFINE5()
Dacct.c249 old = xchg(&ns->bacct, &acct->pin); in acct_on()
Dsys.c1648 mask = xchg(&current->fs->umask, mask & S_IRWXUGO); in SYSCALL_DEFINE1()
1713 old_exe = xchg(&mm->exe_file, exe.file); in prctl_set_mm_exe_file()
Dexit.c411 self.next = xchg(&core_state->dumper.next, &self); in exit_mm()
Dsysctl.c2575 put_pid(xchg(&cad_pid, new_pid)); in proc_do_cad_pid()
/linux-4.1.27/include/asm-generic/
Dcmpxchg.h16 #ifndef xchg
82 #define xchg(ptr, x) \ macro
Datomic.h175 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v)))
/linux-4.1.27/arch/x86/include/asm/
Dpgtable-2level.h43 return __pte(xchg(&xp->pte_low, 0)); in native_ptep_get_and_clear()
52 return __pmd(xchg((pmdval_t *)xp, 0)); in native_pmdp_get_and_clear()
Dpgtable-3level.h146 res.pte_low = xchg(&ptep->pte_low, 0); in native_ptep_get_and_clear()
169 res.pmd_low = xchg(&orig->pmd_low, 0); in native_pmdp_get_and_clear()
Dpgtable_64.h76 return native_make_pte(xchg(&xp->pte, 0)); in native_ptep_get_and_clear()
89 return native_make_pmd(xchg(&xp->pmd, 0)); in native_pmdp_get_and_clear()
Datomic64_32.h50 ATOMIC64_DECL(xchg);
92 alternative_atomic64(xchg, "=&A" (o), in atomic64_xchg()
Dcmpxchg.h78 #define xchg(ptr, v) __xchg_op((ptr), (v), xchg, "") macro
Dbarrier.h38 #define set_mb(var, value) do { (void)xchg(&var, value); } while (0)
Datomic.h182 return xchg(&v->counter, new); in atomic_xchg()
Datomic64_64.h171 return xchg(&v->counter, new); in atomic64_xchg()
Dlocal.h125 #define local_xchg(l, n) (xchg(&((l)->a.counter), (n)))
/linux-4.1.27/arch/blackfin/include/asm/
Dcmpxchg.h130 #define xchg(ptr, x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))) macro
131 #define tas(ptr) ((void)xchg((ptr), 1))
/linux-4.1.27/arch/um/kernel/
Dirq.c415 mask = xchg(&pending_mask, *mask_out); in to_irq_stack()
429 mask = xchg(&pending_mask, old); in to_irq_stack()
448 mask = xchg(&pending_mask, 0); in to_irq_stack()
467 mask = xchg(&pending_mask, 0); in from_irq_stack()
/linux-4.1.27/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-4.1.27/kernel/locking/
Dosq_lock.c73 next = xchg(&node->next, NULL); in osq_wait_next()
194 next = xchg(&node->next, NULL); in osq_unlock()
Dmcs_spinlock.h69 prev = xchg(lock, node); in mcs_spin_lock()
/linux-4.1.27/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-4.1.27/arch/sparc/include/asm/
Datomic_64.h73 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS()
92 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
Dparport.h49 if (xchg(&sparc_ebus_dmas[dmanr].lock, 1) != 0) in request_dma()
60 if (xchg(&sparc_ebus_dmas[dmanr].lock, 0) == 0) { in free_dma()
Dcmpxchg_32.h27 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) macro
Dcmpxchg_64.h43 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) macro
/linux-4.1.27/arch/arm64/include/asm/xen/
Devents.h19 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
/linux-4.1.27/arch/x86/include/asm/xen/
Devents.h21 #define xchg_xen_ulong(ptr, val) xchg((ptr), (val))
/linux-4.1.27/arch/sh/include/asm/
Dbarrier.h35 #define set_mb(var, value) do { (void)xchg(&var, value); } while (0)
Dcmpxchg.h42 #define xchg(ptr,x) \ macro
Datomic.h38 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/linux-4.1.27/arch/microblaze/include/asm/
Dcmpxchg.h36 #define xchg(ptr, x) \ macro
/linux-4.1.27/arch/unicore32/include/asm/
Dcmpxchg.h44 #define xchg(ptr, x) \ macro
/linux-4.1.27/arch/nios2/include/asm/
Dcmpxchg.h14 #define xchg(ptr, x) \ macro
/linux-4.1.27/include/linux/
Ddebug_locks.h16 return xchg(&debug_locks, 0); in __debug_locks_off()
Dllist.h193 return xchg(&head->first, NULL); in llist_del_all()
Dmm.h805 return xchg(&page->_last_cpupid, cpupid & LAST_CPUPID_MASK); in page_cpupid_xchg_last()
/linux-4.1.27/arch/hexagon/include/asm/
Dcmpxchg.h59 #define xchg(ptr, v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v), (ptr), \ macro
Datomic.h58 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new)))
/linux-4.1.27/drivers/s390/char/
Dcon3270.c195 xchg(&((struct con3270 *) rq->view)->write, rq); in con3270_write_callback()
216 wrq = xchg(&cp->write, 0); in con3270_update()
278 xchg(&cp->write, wrq); in con3270_update()
342 xchg(&cp->read, rrq); in con3270_read_tasklet()
366 rrq = xchg(&cp->read, 0); in con3270_issue_read()
Dtty3270.c335 xchg(&tp->write, rq); in tty3270_write_callback()
351 wrq = xchg(&tp->write, 0); in tty3270_update()
421 xchg(&tp->write, wrq); in tty3270_update()
580 xchg(&tp->read, rrq); in tty3270_read_tasklet()
605 rrq = xchg(&tp->read, 0); in tty3270_issue_read()
620 xchg(&tp->read, rrq); in tty3270_issue_read()
/linux-4.1.27/arch/score/include/asm/
Dcmpxchg.h22 #define xchg(ptr, v) \ macro
/linux-4.1.27/arch/alpha/include/asm/
Datomic.h120 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS()
123 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS()
Dcmpxchg.h45 #define xchg(ptr, x) \ macro
Dxchg.h2 #error Do not include xchg.h directly!
/linux-4.1.27/arch/arm64/include/asm/
Datomic.h114 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
212 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
Dcmpxchg.h75 #define xchg(ptr,x) \ macro
/linux-4.1.27/arch/metag/include/asm/
Dcmpxchg.h36 #define xchg(ptr, x) \ macro
Datomic_lock1.h112 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/linux-4.1.27/arch/mn10300/include/asm/
Dcmpxchg.h106 #define xchg(ptr, v) \ macro
Datomic.h127 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v)))
Dpgtable.h312 __pte(xchg(&(ptep)->pte, 0))
/linux-4.1.27/arch/ia64/include/asm/
Datomic.h119 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
123 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
Dpgtable.h428 return __pte(xchg((long *) ptep, 0)); in ptep_get_and_clear()
/linux-4.1.27/arch/parisc/include/asm/
Datomic.h75 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
225 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
Dcmpxchg.h46 #define xchg(ptr, x) \ macro
/linux-4.1.27/arch/s390/include/asm/
Datomic.h131 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
260 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
Dcmpxchg.h25 #define xchg(ptr, x) \ macro
Dpercpu.h156 ret__ = xchg(ptr__, nval); \
/linux-4.1.27/drivers/staging/speakup/
Ddevsynth.c50 if (xchg(&dev_opened, 1)) in speakup_file_open()
Dselection.c138 struct tty_struct *tty = xchg(&spw->tty, NULL); in __speakup_paste_selection()
/linux-4.1.27/arch/avr32/include/asm/
Dcmpxchg.h17 #define xchg(ptr,x) \ macro
Datomic.h169 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/linux-4.1.27/arch/powerpc/include/asm/
Datomic.h155 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
416 #define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
Dcmpxchg.h130 #define xchg(ptr,x) \ macro
/linux-4.1.27/arch/m32r/include/asm/
Dpgtable-2level.h66 #define ptep_get_and_clear(mm,addr,xp) __pte(xchg(&(xp)->pte, 0))
Dcmpxchg.h67 #define xchg(ptr, x) \ macro
Datomic.h216 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_irq.c34 pending = xchg(&qdev->ram_header->int_pending, 0); in qxl_irq_handler()
/linux-4.1.27/arch/x86/ia32/
Dia32entry.S178 xchg %ecx,%esi /* rsi:arg2, rcx:arg4 */
401 xchg %ecx,%esi /* rsi:arg2, rcx:arg4 */
541 xchg %ecx,%esi /* rsi:arg2, rcx:arg4 */
/linux-4.1.27/arch/xtensa/include/asm/
Dcmpxchg.h138 #define xchg(ptr,x) \ macro
Datomic.h227 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS()
/linux-4.1.27/mm/
Dpage_counter.c156 old = xchg(&counter->limit, limit); in page_counter_limit()
Dhuge_memory.c226 struct page *zero_page = xchg(&huge_zero_page, NULL); in shrink_huge_zero_page_scan()
/linux-4.1.27/arch/ia64/include/uapi/asm/
Dcmpxchg.h55 #define xchg(ptr, x) \ macro
/linux-4.1.27/drivers/xen/events/
Devents_fifo.c330 ready = xchg(&control_block->ready, 0); in evtchn_fifo_handle_events()
335 ready |= xchg(&control_block->ready, 0); in evtchn_fifo_handle_events()
/linux-4.1.27/arch/m68k/include/asm/
Dcmpxchg.h78 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) macro
Datomic.h121 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/linux-4.1.27/arch/mips/include/asm/
Datomic.h212 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new)))
494 #define atomic64_xchg(v, new) (xchg(&((v)->counter), (new)))
Dcmpxchg.h133 #define xchg(ptr, x) \ macro
/linux-4.1.27/net/bridge/netfilter/
Debt_limit.c41 info->credit += (now - xchg(&info->prev, now)) * CREDITS_PER_JIFFY; in ebt_limit_mt()
/linux-4.1.27/arch/hexagon/kernel/
Dsmp.c100 while ((ops = xchg(&ipi->bits, 0)) != 0) in handle_ipi()
/linux-4.1.27/drivers/net/wireless/prism54/
Dislpci_mgt.c387 if ((frame = xchg(&priv->mgmt_received, frame)) != NULL) { in islpci_mgt_receive()
469 frame = xchg(&priv->mgmt_received, NULL); in islpci_mgt_transaction()
/linux-4.1.27/arch/arm/include/asm/
Dcmpxchg.h105 #define xchg(ptr,x) \ macro
Datomic.h201 #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
/linux-4.1.27/arch/ia64/kernel/
Dsmp.c104 while ((ops = xchg(pending_ipis, 0)) != 0) { in handle_IPI()
/linux-4.1.27/arch/arc/kernel/
Dsmp.c319 pending = xchg(this_cpu_ptr(&ipi_data), 0); in do_IPI()
/linux-4.1.27/drivers/net/wireless/mwifiex/
D11n_rxreorder.c138 int i, j, xchg; in mwifiex_11n_scan_and_dispatch() local
160 xchg = tbl->win_size - i; in mwifiex_11n_scan_and_dispatch()
161 for (j = 0; j < xchg; ++j) { in mwifiex_11n_scan_and_dispatch()
/linux-4.1.27/arch/mips/sgi-ip27/
Dip27-timer.c144 } while (xchg(&rt_timer_irq, irq)); in hub_rt_clock_event_global_init()
/linux-4.1.27/arch/mips/sibyte/common/
Dsb_tbprof.c270 if (xchg(&sbp.tb_enable, 1)) in sbprof_zbprof_start()
409 if (xchg(&sbp.open, SB_OPENING) != SB_CLOSED) in sbprof_tb_open()
/linux-4.1.27/kernel/trace/
Dblktrace.c314 bt = xchg(&q->blk_trace, NULL); in blk_trace_remove()
524 old_bt = xchg(&q->blk_trace, bt); in do_blk_trace_setup()
526 (void) xchg(&q->blk_trace, old_bt); in do_blk_trace_setup()
1473 bt = xchg(&q->blk_trace, NULL); in blk_trace_remove_queue()
1506 old_bt = xchg(&q->blk_trace, bt); in blk_trace_setup_queue()
1508 (void)xchg(&q->blk_trace, old_bt); in blk_trace_setup_queue()
/linux-4.1.27/net/netfilter/
Dxt_limit.c76 priv->credit += (now - xchg(&priv->prev, now)) * CREDITS_PER_JIFFY; in limit_mt()
Dnf_conntrack_ecache.c136 events = xchg(&e->cache, 0); in nf_ct_deliver_cached_events()
Dnf_log.c279 m = xchg(&emergency_ptr, NULL); in nf_log_buf_open()
/linux-4.1.27/arch/s390/kernel/
Dnmi.c80 if (xchg(&mchchk_wng_posted, 1) == 0) in s390_handle_mcck()
Dtime.c763 if (xchg(&first, 1) == 1) { in etr_sync_clock()
812 xchg(&first, 0); in etr_sync_clock()
1535 if (xchg(&first, 1) == 1) { in stp_sync_clock()
1567 xchg(&first, 0); in stp_sync_clock()
Dsmp.c449 bits = xchg(&pcpu_devices[smp_processor_id()].ec_mask, 0); in smp_handle_ext_call()
/linux-4.1.27/arch/x86/lib/
Datomic64_386_32.S61 BEGIN(xchg)
/linux-4.1.27/arch/x86/math-emu/
Dreg_u_sub.S195 xchg %edx,%eax
/linux-4.1.27/net/ipv6/
Daf_inet6.c418 skb = xchg(&np->pktoptions, NULL); in inet6_destroy_sock()
422 skb = xchg(&np->rxpmtu, NULL); in inet6_destroy_sock()
431 opt = xchg((__force struct ipv6_txoptions **)&np->opt, NULL); in inet6_destroy_sock()
Dipv6_sockglue.c114 opt = xchg((__force struct ipv6_txoptions **)&inet6_sk(sk)->opt, in ipv6_update_options()
235 opt = xchg((__force struct ipv6_txoptions **)&np->opt, in do_ipv6_setsockopt()
241 pktopt = xchg(&np->pktoptions, NULL); in do_ipv6_setsockopt()
Ddatagram.c339 skb = xchg(&np->rxpmtu, skb); in ipv6_local_rxpmtu()
490 skb = xchg(&np->rxpmtu, NULL); in ipv6_recv_rxpmtu()
Dtcp_ipv6.c1326 opt_skb = xchg(&np->pktoptions, opt_skb); in tcp_v6_do_rcv()
1329 opt_skb = xchg(&np->pktoptions, NULL); in tcp_v6_do_rcv()
/linux-4.1.27/include/net/
Dpkt_cls.h23 return xchg(clp, cl); in __cls_set_class()
Dsock.h1755 old_dst = xchg((__force struct dst_entry **)&sk->sk_dst_cache, dst); in sk_dst_set()
1998 err = xchg(&sk->sk_err, 0); in sock_error()
/linux-4.1.27/drivers/watchdog/
Dxen_wdt.c124 if (xchg(&is_active, true)) in xen_wdt_open()
/linux-4.1.27/arch/x86/crypto/
Dsha1_avx2_x86_64_asm.S473 xchg WK_BUF, PRECALC_BUF
612 xchg WK_BUF, PRECALC_BUF
/linux-4.1.27/drivers/net/wan/
Dx25_asy.c141 xbuff = xchg(&sl->xbuff, xbuff); in x25_asy_change_mtu()
152 rbuff = xchg(&sl->rbuff, rbuff); in x25_asy_change_mtu()
/linux-4.1.27/kernel/rcu/
Dtree_plugin.h1977 old_rhpp = xchg(&rdp->nocb_tail, rhtp); in __call_rcu_nocb_enqueue()
2168 rdp->nocb_gp_tail = xchg(&rdp->nocb_tail, &rdp->nocb_head); in nocb_leader_wait()
2214 tail = xchg(&rdp->nocb_follower_tail, rdp->nocb_gp_tail); in nocb_leader_wait()
2289 tail = xchg(&rdp->nocb_follower_tail, &rdp->nocb_follower_head); in rcu_nocb_kthread()
2993 !rsh.inuse && xchg(&rsh.inuse, 1) == 0) in rcu_sys_is_idle()
/linux-4.1.27/drivers/misc/sgi-gru/
Dgrufault.c166 k = xchg(&tfm->fault_bits[i], 0UL); in get_clear_fault_map()
170 k = xchg(&tfm->done_bits[i], 0UL); in get_clear_fault_map()
/linux-4.1.27/net/atm/
Dsvc.c549 error = xchg(&sk->sk_err_soft, 0); in svc_addparty()
576 error = xchg(&sk->sk_err_soft, 0); in svc_dropparty()
Dclip.c258 old = xchg(&clip_vcc->xoff, 0); in clip_pop()
385 old = xchg(&entry->vccs->xoff, 1); /* assume XOFF ... */ in clip_start_xmit()
/linux-4.1.27/drivers/char/
Dgenrtc.c189 (data = xchg(&gen_rtc_irq_data, 0))); in gen_rtc_read()
/linux-4.1.27/arch/mips/kernel/
Drtlx.c165 state = xchg(&chan->lx_state, RTLX_STATE_OPENED); in rtlx_open()
Dvpe.c786 state = xchg(&v->state, VPE_STATE_INUSE); in vpe_open()
Dtraps.c1886 old_handler = xchg(&exception_handlers[n], handler); in set_except_vector()
/linux-4.1.27/drivers/net/irda/
Dstir4200.c573 skb = xchg(&stir->tx_pending, skb); in stir_hard_xmit()
758 skb = xchg(&stir->tx_pending, NULL); in stir_transmit_thread()
/linux-4.1.27/net/rds/
Dib_recv.c91 tmp = xchg(&cache->xfer, NULL); in rds_ib_cache_xfer_to_ready()
447 old = xchg(&cache->xfer, NULL); in rds_ib_recv_cache_put()
/linux-4.1.27/arch/ia64/mm/
Dtlb.c76 flush_bit = xchg(&ia64_ctx.flushmap[i], 0); in wrap_mmu_context()
/linux-4.1.27/fs/ext4/
Dpage-io.c342 bio->bi_private = xchg(&io_end->bio, bio); in ext4_end_bio()
/linux-4.1.27/fs/cachefiles/
Ddaemon.c98 if (xchg(&cachefiles_open, 1) == 1) in cachefiles_daemon_open()
/linux-4.1.27/Documentation/virtual/kvm/
Dlocking.txt102 old_spte = xchg(spte, 0ull)
/linux-4.1.27/arch/alpha/kernel/
Dsmp.c535 while ((ops = xchg(pending_ipis, 0)) != 0) { in handle_ipi()
/linux-4.1.27/fs/btrfs/
Dbackref.c533 struct __prelim_ref *xchg; in __merge_refs() local
542 xchg = ref1; in __merge_refs()
544 ref2 = xchg; in __merge_refs()
Dtransaction.c2185 prev = xchg(&fs_info->pending_changes, 0); in btrfs_apply_pending_changes()
Dinode.c3209 if (!xchg(&root->orphan_item_inserted, 1)) in btrfs_orphan_add()
/linux-4.1.27/arch/powerpc/kernel/
Dsmp.c252 all = xchg(&info->messages, 0); in smp_ipi_demux()
/linux-4.1.27/net/decnet/
Ddn_neigh.c426 neigh_release(xchg(&dn_db->router, neigh_clone(neigh))); in dn_neigh_router_hello()
Ddn_route.c377 if ((rt = xchg((struct dn_route **)&dn_rt_hash_table[i].chain, NULL)) == NULL) in dn_run_flush()
/linux-4.1.27/kernel/sched/
Ddebug.c536 SEQ_printf(m, "numa_migrations, %ld\n", xchg(&p->numa_pages_migrated, 0)); in sched_show_numa()
/linux-4.1.27/fs/
Dfile.c367 struct file * file = xchg(&fdt->fd[i], NULL); in close_files()
Dnamespace.c1470 if (!xchg(&mnt->mnt_expiry_mark, 1)) in do_umount()
2483 if (!xchg(&mnt->mnt_expiry_mark, 1) || in mark_mounts_for_expiry()
/linux-4.1.27/fs/nfs/
Dfile.c259 ret = xchg(&ctx->error, 0); in nfs_file_fsync_commit()
Dnfs4state.c2113 clnt = xchg(&clp->cl_rpcclient, clnt); in nfs4_discover_server_trunking()
/linux-4.1.27/arch/s390/oprofile/
Dhwsampler.c783 xchg((unsigned char *) te, 0x40); in worker_on_interrupt()
/linux-4.1.27/arch/x86/kvm/
Dlapic.c330 pir_val = xchg(&pir[i], 0); in __kvm_apic_update_irr()
2055 pe = xchg(&apic->pending_events, 0); in kvm_apic_accept_events()
Dmmu.c353 return xchg(sptep, spte); in __update_clear_spte_slow()
427 orig.spte_low = xchg(&ssptep->spte_low, sspte.spte_low); in __update_clear_spte_slow()
/linux-4.1.27/arch/arm/mach-rpc/
Decard.c279 req = xchg(&ecard_req, NULL); in ecard_task()
/linux-4.1.27/drivers/video/fbdev/
Dsa1100fb.c966 u_int state = xchg(&fbi->task_state, -1); in sa1100fb_task()
Dpxafb.c1623 u_int state = xchg(&fbi->task_state, -1); in pxafb_task()
/linux-4.1.27/net/ipv4/
Dip_tunnel.c78 old_dst = xchg((__force struct dst_entry **)&idst->dst, dst); in __tunnel_dst_set()
Dcipso_ipv4.c2011 opt = xchg(&req_inet->opt, opt); in cipso_v4_req_setattr()
Dudp.c1646 old = xchg(&sk->sk_rx_dst, dst); in udp_sk_rx_dst_set()
/linux-4.1.27/drivers/block/
Dataflop.c589 handler = xchg(&FloppyIRQHandler, NULL); in floppy_irq()
/linux-4.1.27/drivers/s390/crypto/
Dap_bus.c1838 xchg(ap_airq.lsi_ptr, 0); in ap_poll_all()
/linux-4.1.27/drivers/md/
Ddm-bufio.c1284 a = xchg(&c->async_write_error, 0); in dm_bufio_write_dirty_buffers()
/linux-4.1.27/sound/usb/
Dmixer_quirks.c231 (rc_code = xchg(&mixer->rc_code, 0)) != 0); in snd_usb_sbrc_hwdep_read()
/linux-4.1.27/fs/cifs/
Dconnect.c933 task_to_wake = xchg(&server->tsk, NULL); in cifs_demultiplex_thread()
2099 task = xchg(&server->tsk, NULL); in cifs_put_tcp_session()
/linux-4.1.27/drivers/tty/serial/8250/
D8250_core.c621 rpm_active = xchg(&p->rpm_tx_active, 1); in serial8250_rpm_get_tx()
634 rpm_active = xchg(&p->rpm_tx_active, 0); in serial8250_rpm_put_tx()
/linux-4.1.27/drivers/net/ethernet/sfc/
Dmcdi.c983 if (xchg(&mcdi->mode, MCDI_MODE_FAIL) == MCDI_MODE_FAIL) in efx_mcdi_abandon()
/linux-4.1.27/Documentation/
Datomic_ops.txt539 The routines xchg() and cmpxchg() must provide the same exact
Dmemory-barriers.txt2375 xchg();
/linux-4.1.27/net/core/
Dsock.c1081 v.val = xchg(&sk->sk_err_soft, 0); in sock_getsockopt()
/linux-4.1.27/drivers/atm/
Deni.c1535 events = xchg(&eni_dev->events,0); in eni_tasklet()
/linux-4.1.27/virt/kvm/
Dkvm_main.c1055 mask = xchg(&dirty_bitmap[i], 0); in kvm_get_dirty_log_protect()
/linux-4.1.27/drivers/tty/vt/
Dvt.c2515 return xchg(&kmsg_con, new); in vt_kmsg_redirect()