/linux-4.4.14/include/linux/ |
D | atomic.h | 158 #define atomic_xchg_relaxed atomic_xchg 159 #define atomic_xchg_acquire atomic_xchg 160 #define atomic_xchg_release atomic_xchg 166 __atomic_op_acquire(atomic_xchg, __VA_ARGS__) 171 __atomic_op_release(atomic_xchg, __VA_ARGS__) 174 #ifndef atomic_xchg 175 #define atomic_xchg(...) \ macro 176 __atomic_op_fence(atomic_xchg, __VA_ARGS__)
|
/linux-4.4.14/include/asm-generic/ |
D | mutex-xchg.h | 28 if (unlikely(atomic_xchg(count, 0) != 1)) in __mutex_fastpath_lock() 50 if (likely(atomic_xchg(count, -1) != 1)) in __mutex_fastpath_lock_retval()
|
D | atomic.h | 176 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) macro
|
/linux-4.4.14/drivers/video/backlight/ |
D | apple_bl.c | 226 if (atomic_xchg(&apple_bl_registered, 1) == 0) in apple_bl_register() 235 if (atomic_xchg(&apple_bl_registered, 0) == 1) in apple_bl_unregister()
|
/linux-4.4.14/arch/m68k/include/asm/ |
D | atomic.h | 125 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro 142 static inline int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
|
/linux-4.4.14/arch/sparc/lib/ |
D | atomic32.c | 64 int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function 75 EXPORT_SYMBOL(atomic_xchg);
|
/linux-4.4.14/arch/arm64/include/asm/ |
D | atomic.h | 82 #define atomic_xchg(v, new) xchg(&((v)->counter), (new)) macro 131 #define atomic64_xchg atomic_xchg
|
/linux-4.4.14/arch/h8300/include/asm/ |
D | cmpxchg.h | 63 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-4.4.14/arch/sparc/include/asm/ |
D | atomic_32.h | 27 int atomic_xchg(atomic_t *, int);
|
D | atomic_64.h | 77 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS() macro
|
/linux-4.4.14/arch/sh/include/asm/ |
D | atomic.h | 38 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-4.4.14/arch/arc/include/asm/ |
D | cmpxchg.h | 159 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-4.4.14/arch/tile/include/asm/ |
D | atomic.h | 123 static inline int atomic_xchg(atomic_t *v, int n) in atomic_xchg() function
|
/linux-4.4.14/arch/metag/include/asm/ |
D | atomic_lnkget.h | 110 static inline int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
|
D | atomic_lock1.h | 95 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-4.4.14/drivers/net/wireless/cw1200/ |
D | bh.c | 460 rx = atomic_xchg(&priv->bh_rx, 0); in cw1200_bh() 461 tx = atomic_xchg(&priv->bh_tx, 0); in cw1200_bh() 462 term = atomic_xchg(&priv->bh_term, 0); in cw1200_bh()
|
D | scan.c | 332 atomic_xchg(&priv->recent_scan, 0); in cw1200_clear_recent_scan_work() 339 if (atomic_xchg(&priv->scan.in_progress, 0)) { in cw1200_scan_timeout()
|
D | sta.c | 139 if (atomic_xchg(&priv->tx_lock, 1) != 1) in cw1200_stop() 143 atomic_xchg(&priv->tx_lock, 0); /* for recovery to work */ in cw1200_stop()
|
/linux-4.4.14/arch/hexagon/include/asm/ |
D | atomic.h | 58 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) macro
|
/linux-4.4.14/drivers/md/bcache/ |
D | writeback.h | 73 !atomic_xchg(&dc->has_dirty, 1)) { in bch_writeback_add()
|
D | stats.c | 154 unsigned t = atomic_xchg(&acc->collector.name, 0); \ in scale_accounting()
|
D | super.c | 852 if (atomic_xchg(&dc->running, 1)) { in bch_cached_dev_run()
|
/linux-4.4.14/arch/mn10300/include/asm/ |
D | atomic.h | 131 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) macro
|
/linux-4.4.14/kernel/locking/ |
D | osq_lock.c | 101 old = atomic_xchg(&lock->tail, curr); in osq_lock()
|
/linux-4.4.14/arch/powerpc/platforms/powernv/ |
D | opal-prd.c | 100 if (atomic_xchg(&prd_usage, 1) == 1) in opal_prd_open() 275 atomic_xchg(&prd_usage, 0); in opal_prd_release()
|
/linux-4.4.14/arch/x86/include/asm/ |
D | atomic.h | 180 static inline int atomic_xchg(atomic_t *v, int new) in atomic_xchg() function
|
/linux-4.4.14/arch/xtensa/include/asm/ |
D | atomic.h | 231 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS() macro
|
/linux-4.4.14/kernel/ |
D | hung_task.c | 235 if (atomic_xchg(&reset_hung_task, 0)) in watchdog()
|
D | smpboot.c | 454 (void)atomic_xchg(&per_cpu(cpu_hotplug_state, cpu), CPU_ONLINE); in cpu_set_state_online()
|
/linux-4.4.14/arch/avr32/include/asm/ |
D | atomic.h | 181 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-4.4.14/arch/m32r/include/asm/ |
D | atomic.h | 220 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-4.4.14/arch/frv/include/asm/ |
D | atomic.h | 165 #define atomic_xchg(v, new) (xchg(&(v)->counter, new)) macro
|
/linux-4.4.14/drivers/gpu/drm/nouveau/ |
D | nouveau_usif.c | 205 if (atomic_xchg(&ntfy->enabled, 1)) in usif_notify_get() 245 if (ret == 0 && atomic_xchg(&ntfy->enabled, 0)) in usif_notify_put()
|
/linux-4.4.14/drivers/platform/x86/ |
D | dell-smo8800.c | 100 (data = atomic_xchg(&smo8800->counter, 0))); in smo8800_misc_read()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ih.c | 188 if (atomic_xchg(&adev->irq.ih.lock, 1)) in amdgpu_ih_process()
|
/linux-4.4.14/arch/alpha/include/asm/ |
D | atomic.h | 135 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OPS() macro
|
/linux-4.4.14/kernel/debug/ |
D | debug_core.c | 507 atomic_xchg(&kgdb_active, cpu); in kgdb_cpu_enter() 522 atomic_xchg(&kgdb_active, cpu); in kgdb_cpu_enter()
|
/linux-4.4.14/arch/ia64/include/asm/ |
D | atomic.h | 135 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-4.4.14/arch/parisc/include/asm/ |
D | atomic.h | 75 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-4.4.14/arch/blackfin/mach-common/ |
D | smp.c | 150 while ((pending = atomic_xchg(&bfin_ipi_data->bits, 0)) != 0) { in ipi_handler_int1()
|
/linux-4.4.14/arch/s390/include/asm/ |
D | atomic.h | 134 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) in ATOMIC_OP() macro
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | atomic.h | 159 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-4.4.14/arch/mips/mm/ |
D | page.c | 275 if (atomic_xchg(&run_once, 1)) { in build_clear_page() 422 if (atomic_xchg(&run_once, 1)) { in build_copy_page()
|
/linux-4.4.14/mm/ |
D | swap_state.c | 417 pages = atomic_xchg(&swapin_readahead_hits, 0) + 2; in swapin_nr_pages()
|
/linux-4.4.14/arch/mips/include/asm/ |
D | atomic.h | 216 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) macro
|
/linux-4.4.14/arch/arm/include/asm/ |
D | atomic.h | 206 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) macro
|
/linux-4.4.14/drivers/gpu/host1x/ |
D | intr.c | 154 WARN_ON(atomic_xchg(&waiter->state, WLS_HANDLED) != in run_handlers()
|
/linux-4.4.14/arch/s390/oprofile/ |
D | hwsampler.c | 190 atomic_xchg(&cb->ext_params, atomic_read(&cb->ext_params) | param32); in hws_ext_handler() 862 ext_params = atomic_xchg(&cb->ext_params, 0); in worker()
|
/linux-4.4.14/arch/sh/drivers/dma/ |
D | dma-api.c | 201 if (atomic_xchg(&channel->busy, 1)) in request_dma()
|
/linux-4.4.14/kernel/trace/ |
D | trace_mmiotrace.c | 127 unsigned long cnt = atomic_xchg(&dropped_count, 0); in count_overruns()
|
/linux-4.4.14/fs/btrfs/ |
D | volumes.h | 532 ret = atomic_xchg(dev->dev_stat_values + index, 0); in btrfs_dev_stat_read_and_reset()
|
D | dev-replace.c | 792 WARN_ON(atomic_xchg( in btrfs_resume_dev_replace_async()
|
D | ioctl.c | 1493 if (atomic_xchg(&root->fs_info->mutually_exclusive_operation_running, in btrfs_ioctl_resize() 2639 if (atomic_xchg(&root->fs_info->mutually_exclusive_operation_running, in btrfs_ioctl_add_dev() 2685 if (atomic_xchg(&root->fs_info->mutually_exclusive_operation_running, in btrfs_ioctl_rm_dev() 4472 if (atomic_xchg( in btrfs_ioctl_dev_replace() 4678 if (!atomic_xchg(&fs_info->mutually_exclusive_operation_running, 1)) { in btrfs_ioctl_balance()
|
D | qgroup.c | 2638 reserved = atomic_xchg(&root->qgroup_meta_rsv, 0); in btrfs_qgroup_free_meta_all()
|
D | volumes.c | 3902 WARN_ON(atomic_xchg(&fs_info->mutually_exclusive_operation_running, 1)); in btrfs_recover_balance()
|
/linux-4.4.14/net/ceph/ |
D | messenger.c | 331 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); in con_sock_state_init() 342 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTING); in con_sock_state_connecting() 353 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTED); in con_sock_state_connected() 364 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSING); in con_sock_state_closing() 377 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); in con_sock_state_closed()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/pcie/ |
D | rx.c | 434 int pending = atomic_xchg(&rba->req_pending, 0); in iwl_pcie_rx_allocator() 492 pending = atomic_xchg(&rba->req_pending, 0); in iwl_pcie_rx_allocator()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | base.c | 210 if (!atomic_xchg(&clk->waiting, 0)) in nvkm_pstate_work()
|
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp4/ |
D | mdp4_crtc.c | 529 pending = atomic_xchg(&mdp4_crtc->pending, 0); in mdp4_crtc_vblank_irq()
|
/linux-4.4.14/drivers/staging/nvec/ |
D | nvec.c | 178 if (atomic_xchg(&nvec->msg_pool[i].used, 1) == 0) { in nvec_msg_alloc()
|
/linux-4.4.14/drivers/net/wireless/ath/wil6210/ |
D | debugfs.c | 1213 int rx = atomic_xchg(&wil->isr_count_rx, 0); in wil_info_debugfs_show() 1214 int tx = atomic_xchg(&wil->isr_count_tx, 0); in wil_info_debugfs_show()
|
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/ |
D | mdp5_crtc.c | 655 pending = atomic_xchg(&mdp5_crtc->pending, 0); in mdp5_crtc_vblank_irq()
|
/linux-4.4.14/Documentation/ |
D | atomic_ops.txt | 254 int atomic_xchg(atomic_t *v, int new); 260 atomic_xchg must provide explicit memory barriers around the operation.
|
D | memory-barriers.txt | 2331 atomic_xchg(); atomic_long_xchg();
|
/linux-4.4.14/drivers/firewire/ |
D | core-device.c | 1320 if (atomic_xchg(&device->state, in fw_node_event()
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | driver.c | 860 if (unlikely(dd->do_drop && atomic_xchg(&dd->drop_packet, in handle_receive_interrupt()
|
/linux-4.4.14/drivers/misc/lis3lv02d/ |
D | lis3lv02d.c | 618 data = atomic_xchg(&lis3->count, 0); in lis3lv02d_misc_read()
|
/linux-4.4.14/kernel/rcu/ |
D | rcutorture.c | 1070 if (atomic_xchg(&beenhere, 1) != 0) in rcutorture_trace_dump()
|
/linux-4.4.14/fs/ |
D | aio.c | 805 if (atomic_xchg(&ctx->dead, 1)) { in kill_ioctx()
|
/linux-4.4.14/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 1537 cpu_to_be32(1 + atomic_xchg(&ch->req_lim_delta, 0)); in srpt_build_cmd_rsp() 1588 cpu_to_be32(1 + atomic_xchg(&ch->req_lim_delta, 0)); in srpt_build_tskmgmt_rsp()
|
/linux-4.4.14/drivers/scsi/ |
D | hptiop.c | 1084 if (atomic_xchg(&hba->resetting, 1) == 0) { in hptiop_reset_hba()
|
/linux-4.4.14/drivers/block/drbd/ |
D | drbd_worker.c | 534 sect_in = atomic_xchg(&device->rs_sect_in, 0); in drbd_rs_number_requests()
|
/linux-4.4.14/drivers/s390/net/ |
D | qeth_core_main.c | 2538 if (atomic_xchg(&card->qdio.state, QETH_QDIO_UNINITIALIZED) == in qeth_free_qdio_buffers() 3534 if (atomic_xchg(&queue->state, QETH_OUT_Q_LOCKED_FLUSH) == in qeth_check_outbound_queue() 4104 atomic_xchg(&queue->state, QETH_OUT_Q_LOCKED_FLUSH); in qeth_do_send_packet()
|
/linux-4.4.14/drivers/ata/ |
D | libahci.c | 1814 status = atomic_xchg(&pp->intr_status, 0); in ahci_port_thread_fn()
|
/linux-4.4.14/drivers/net/ethernet/ti/ |
D | netcp_ethss.c | 2008 if (atomic_xchg(&slave->link_state, link_state) != link_state) in netcp_ethss_update_link_state()
|
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/ |
D | sdio.c | 2646 intstatus = atomic_xchg(&bus->intstatus, 0); in brcmf_sdio_dpc()
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | r600.c | 4067 if (atomic_xchg(&rdev->ih.lock, 1)) in r600_irq_process()
|
D | evergreen.c | 5054 if (atomic_xchg(&rdev->ih.lock, 1)) in evergreen_irq_process()
|
D | si.c | 6449 if (atomic_xchg(&rdev->ih.lock, 1)) in si_irq_process()
|
D | cik.c | 7936 if (atomic_xchg(&rdev->ih.lock, 1)) in cik_irq_process()
|
/linux-4.4.14/net/core/ |
D | dev.c | 1689 int deferred = atomic_xchg(&netstamp_needed_deferred, 0); in net_enable_timestamp()
|
/linux-4.4.14/kernel/events/ |
D | core.c | 4091 events = atomic_xchg(&rb->poll, 0); in perf_poll()
|
/linux-4.4.14/arch/x86/kvm/ |
D | x86.c | 6069 vcpu->arch.nmi_pending += atomic_xchg(&vcpu->arch.nmi_queued, 0); in process_nmi()
|