Home
last modified time | relevance | path

Searched refs:atomic_cmpxchg (Results 1 – 100 of 100) sorted by relevance

/linux-4.4.14/include/linux/
Datomic.h182 #define atomic_cmpxchg_relaxed atomic_cmpxchg
183 #define atomic_cmpxchg_acquire atomic_cmpxchg
184 #define atomic_cmpxchg_release atomic_cmpxchg
190 __atomic_op_acquire(atomic_cmpxchg, __VA_ARGS__)
195 __atomic_op_release(atomic_cmpxchg, __VA_ARGS__)
198 #ifndef atomic_cmpxchg
199 #define atomic_cmpxchg(...) \ macro
200 __atomic_op_fence(atomic_cmpxchg, __VA_ARGS__)
490 val = atomic_cmpxchg(v, c, c + 1); in atomic_inc_not_zero_hint()
505 v1 = atomic_cmpxchg(p, v, v + 1); in atomic_inc_unless_negative()
[all …]
Dpagemap.h210 return likely(atomic_cmpxchg(&page->_count, count, 0) == count); in page_freeze_refs()
/linux-4.4.14/arch/sh/include/asm/
Datomic.h39 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
57 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
/linux-4.4.14/arch/m68k/include/asm/
Datomic.h124 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro
129 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
184 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
/linux-4.4.14/include/asm-generic/
Dqspinlock.h88 (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) == 0)) in queued_spin_trylock()
103 val = atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL); in queued_spin_lock()
Datomic.h177 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new))) macro
183 while (c != u && (old = atomic_cmpxchg(v, c, c + a)) != c) in __atomic_add_unless()
/linux-4.4.14/arch/sh/kernel/
Dftrace.c122 old = atomic_cmpxchg(&nmi_running, old, new); in clear_mod_flag()
162 if (!atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG)) in wait_for_nmi_and_set_mod_flag()
167 } while (atomic_cmpxchg(&nmi_running, 0, MOD_CODE_WRITE_FLAG)); in wait_for_nmi_and_set_mod_flag()
/linux-4.4.14/kernel/locking/
Dqspinlock.c211 old = atomic_cmpxchg(&lock->val, val, new); in xchg_tail()
322 old = atomic_cmpxchg(&lock->val, val, new); in queued_spin_lock_slowpath()
429 old = atomic_cmpxchg(&lock->val, val, _Q_LOCKED_VAL); in queued_spin_lock_slowpath()
/linux-4.4.14/arch/mn10300/include/asm/
Datomic.h126 while (c != (u) && (old = atomic_cmpxchg((v), c, c + (a))) != c) \
132 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new))) macro
/linux-4.4.14/arch/x86/include/asm/
Datomic.h175 static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
216 old = atomic_cmpxchg((v), c, c + (a)); in ATOMIC_OP()
Dmutex_32.h104 if (likely(atomic_cmpxchg(count, 1, 0) == 1)) in __mutex_fastpath_trylock()
Dqspinlock.h58 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
Dmutex_64.h121 if (likely(atomic_cmpxchg(count, 1, 0) == 1)) in __mutex_fastpath_trylock()
/linux-4.4.14/arch/xtensa/include/asm/
Datomic.h230 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS() macro
249 old = atomic_cmpxchg((v), c, c + (a)); in ATOMIC_OPS()
/linux-4.4.14/arch/m32r/include/asm/
Datomic.h219 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro
238 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
/linux-4.4.14/arch/sparc/include/asm/
Datomic_64.h76 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS() macro
86 old = atomic_cmpxchg((v), c, c + (a)); in ATOMIC_OPS()
Datomic_32.h26 int atomic_cmpxchg(atomic_t *, int, int);
/linux-4.4.14/drivers/md/bcache/
Dio.c76 count = atomic_cmpxchg(&ca->io_count, old, new); in bch_count_io_errors()
85 errors = atomic_cmpxchg(&ca->io_errors, in bch_count_io_errors()
Dalloc.c99 } while (atomic_cmpxchg(&c->rescale, r, r + next) != r); in bch_rescale_priorities()
/linux-4.4.14/arch/frv/include/asm/
Datomic.h164 #define atomic_cmpxchg(v, old, new) (cmpxchg(&(v)->counter, old, new)) macro
176 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
/linux-4.4.14/tools/testing/selftests/futex/include/
Datomic.h40 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
/linux-4.4.14/arch/sparc/lib/
Datomic32.c77 int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
90 EXPORT_SYMBOL(atomic_cmpxchg);
/linux-4.4.14/lib/
Ddump_stack.c40 old = atomic_cmpxchg(&dump_lock, -1, cpu); in dump_stack()
/linux-4.4.14/arch/arm64/include/asm/
Datomic.h90 #define atomic_cmpxchg(v, old, new) cmpxchg(&((v)->counter), (old), (new)) macro
136 #define atomic64_cmpxchg atomic_cmpxchg
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
Dvnic_rq.h218 int rc = atomic_cmpxchg(&rq->bpoll_state, ENIC_POLL_STATE_IDLE, in enic_poll_lock_napi()
234 int rc = atomic_cmpxchg(&rq->bpoll_state, ENIC_POLL_STATE_IDLE, in enic_poll_lock_poll()
/linux-4.4.14/arch/arc/include/asm/
Dcmpxchg.h81 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro
Datomic.h210 while (c != (u) && (old = atomic_cmpxchg((v), c, c + (a))) != c)\
/linux-4.4.14/arch/ia64/include/asm/
Datomic.h134 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) macro
148 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
/linux-4.4.14/arch/parisc/include/asm/
Datomic.h74 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
93 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
/linux-4.4.14/arch/tile/include/asm/
Datomic.h137 static inline int atomic_cmpxchg(atomic_t *v, int o, int n) in atomic_cmpxchg() function
/linux-4.4.14/arch/tile/lib/
Dspinlock_64.c28 return atomic_cmpxchg((atomic_t *)lock, -1, -1); in arch_spin_read_noalloc()
/linux-4.4.14/arch/s390/include/asm/
Datomic.h136 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in ATOMIC_OP()
153 old = atomic_cmpxchg(v, c, c + a); in __atomic_add_unless()
/linux-4.4.14/net/netfilter/
Dxt_statistic.c47 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
/linux-4.4.14/drivers/gpu/host1x/hw/
Dsyncpt_hw.c66 } while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old); in syncpt_load()
/linux-4.4.14/arch/metag/include/asm/
Datomic_lnkget.h85 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in ATOMIC_OPS()
Datomic_lock1.h79 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/linux-4.4.14/arch/hexagon/include/asm/
Datomic.h78 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/linux-4.4.14/drivers/firewire/
Dcore-device.c815 if (atomic_cmpxchg(&device->state, in fw_device_shutdown()
904 atomic_cmpxchg(&old->state, in lookup_existing_device()
1078 if (atomic_cmpxchg(&device->state, in fw_device_init()
1155 if (atomic_cmpxchg(&device->state, in fw_device_refresh()
1181 if (atomic_cmpxchg(&device->state, in fw_device_refresh()
1279 if (atomic_cmpxchg(&device->state, in fw_node_event()
/linux-4.4.14/arch/h8300/include/asm/
Datomic.h66 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
/linux-4.4.14/arch/mips/include/asm/
Datomic.h215 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
234 old = atomic_cmpxchg((v), c, c + (a)); in __atomic_add_unless()
/linux-4.4.14/kernel/
Dsmpboot.c492 if (atomic_cmpxchg(&per_cpu(cpu_hotplug_state, cpu), in cpu_wait_death()
521 } while (atomic_cmpxchg(&per_cpu(cpu_hotplug_state, cpu), in cpu_report_death()
/linux-4.4.14/arch/arm/include/asm/
Datomic.h162 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
181 while (c != u && (old = atomic_cmpxchg((v), c, c + a)) != c) in __atomic_add_unless()
/linux-4.4.14/drivers/gpu/host1x/
Dintr.c262 while (atomic_cmpxchg(&waiter->state, WLS_PENDING, WLS_CANCELLED) == in host1x_intr_put_ref()
335 if (atomic_cmpxchg(&waiter->state, in host1x_intr_stop()
/linux-4.4.14/drivers/s390/cio/
Dccwgroup.c81 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_online()
110 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_offline()
190 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_ungroup_store()
Ddevice.c546 if (atomic_cmpxchg(&cdev->private->onoff, 0, 1) != 0) in online_store()
1343 (atomic_cmpxchg(&cdev->private->onoff, 0, 1) == 0)) { in purge_fn()
/linux-4.4.14/arch/avr32/include/asm/
Datomic.h182 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
/linux-4.4.14/arch/x86/kernel/
Dsmp.c203 if (atomic_cmpxchg(&stopping_cpu, -1, safe_smp_processor_id()) != -1) in native_stop_other_cpus()
/linux-4.4.14/drivers/media/pci/saa7164/
Dsaa7164-vbi.c471 if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) { in fops_release()
538 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in fops_read()
639 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in fops_poll()
Dsaa7164-encoder.c767 if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) { in fops_release()
835 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in fops_read()
936 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in fops_poll()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe.h424 int rc = atomic_cmpxchg(&q_vector->state, IXGBE_QV_STATE_IDLE, in ixgbe_qv_lock_napi()
450 int rc = atomic_cmpxchg(&q_vector->state, IXGBE_QV_STATE_IDLE, in ixgbe_qv_lock_poll()
477 int rc = atomic_cmpxchg(&q_vector->state, IXGBE_QV_STATE_IDLE, in ixgbe_qv_disable()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.h1004 int rc = atomic_cmpxchg(&bnapi->poll_state, BNXT_STATE_IDLE, in bnxt_lock_napi()
1018 int rc = atomic_cmpxchg(&bnapi->poll_state, BNXT_STATE_IDLE, in bnxt_lock_poll()
1039 old = atomic_cmpxchg(&bnapi->poll_state, BNXT_STATE_IDLE, in bnxt_disable_poll()
/linux-4.4.14/arch/alpha/include/asm/
Datomic.h134 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) in ATOMIC_OPS() macro
/linux-4.4.14/fs/pstore/
Dram_core.c61 } while (atomic_cmpxchg(&prz->buffer->start, old, new) != old); in buffer_start_add_atomic()
80 } while (atomic_cmpxchg(&prz->buffer->size, old, new) != old); in buffer_size_add_atomic()
/linux-4.4.14/block/
Dblk-mq-tag.c55 atomic_cmpxchg(index, old, new); in bt_index_atomic_inc()
369 atomic_cmpxchg(&bt->wake_index, o, wake_index); in bt_wake_ptr()
/linux-4.4.14/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c129 if (atomic_cmpxchg(&dev->update_sl, 1, 0)) in ocrdma_create_ah()
Docrdma_hw.c2509 if (atomic_cmpxchg(&dev->update_sl, 1, 0)) in ocrdma_set_av_params()
/linux-4.4.14/arch/powerpc/mm/
Dmmu_context_iommu.c218 if (atomic_cmpxchg(&mem->mapped, 1, 0) != 1) { in mm_iommu_put()
/linux-4.4.14/arch/powerpc/include/asm/
Datomic.h158 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vce.c590 if (!atomic_cmpxchg(&p->adev->vce.handles[i], 0, handle)) { in amdgpu_vce_validate_handle()
740 atomic_cmpxchg(&p->adev->vce.handles[i], handle, 0); in amdgpu_vce_ring_parse_cs()
Damdgpu_uvd.c568 if (!atomic_cmpxchg(&adev->uvd.handles[i], 0, handle)) { in amdgpu_uvd_cs_msg()
601 atomic_cmpxchg(&adev->uvd.handles[i], handle, 0); in amdgpu_uvd_cs_msg()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_vce.c539 if (!atomic_cmpxchg(&p->rdev->vce.handles[i], 0, handle)) { in radeon_vce_validate_handle()
680 atomic_cmpxchg(&p->rdev->vce.handles[i], handle, 0); in radeon_vce_cs_parse()
Dradeon_uvd.c478 if (!atomic_cmpxchg(&p->rdev->uvd.handles[i], 0, handle)) { in radeon_uvd_cs_msg()
514 atomic_cmpxchg(&p->rdev->uvd.handles[i], handle, 0); in radeon_uvd_cs_msg()
/linux-4.4.14/Documentation/
Datomic_ops.txt262 int atomic_cmpxchg(atomic_t *v, int old, int new);
266 atomic_cmpxchg will only satisfy its atomicity semantics as long as all
269 atomic_cmpxchg must provide explicit memory barriers around the operation,
273 The semantics for atomic_cmpxchg are the same as those defined for 'cas'
Dmemory-barriers.txt2346 atomic_cmpxchg(); atomic_long_cmpxchg();
/linux-4.4.14/arch/blackfin/kernel/
Dbfin_dma.c139 if (atomic_cmpxchg(&dma_ch[channel].chan_status, 0, 1)) { in request_dma()
/linux-4.4.14/arch/tile/kernel/
Dprocess.c631 ongoing = atomic_cmpxchg(&backtrace_cpus, 0, num_online_cpus() - 1); in arch_trigger_all_cpu_backtrace()
/linux-4.4.14/fs/nfs/
Dunlink.c222 wait_event(nfsi->waitqueue, atomic_cmpxchg(&nfsi->silly_count, 1, 0) == 1); in nfs_block_sillyrename()
/linux-4.4.14/drivers/hwtracing/coresight/
Dcoresight-etb10.c284 if (atomic_cmpxchg(&drvdata->in_use, 0, 1)) in etb_open()
/linux-4.4.14/net/ipv4/
Dinetpeer.c389 atomic_cmpxchg(&p->refcnt, 0, -1) == 0) { in inet_peer_gc()
/linux-4.4.14/drivers/hwtracing/intel_th/
Dmsu.c916 if (WARN_ON_ONCE(atomic_cmpxchg(&msc->user_count, -1, 0) != -1)) in msc_buffer_alloc()
938 count = atomic_cmpxchg(&msc->user_count, 0, -1); in msc_buffer_unlocked_free_unless_used()
/linux-4.4.14/drivers/vfio/
Dvfio.c1156 int users = atomic_cmpxchg(&group->container_users, 1, 0); in vfio_group_unset_container()
1375 opened = atomic_cmpxchg(&group->opened, 0, 1); in vfio_group_fops_open()
/linux-4.4.14/drivers/s390/net/
Dqeth_core_main.c488 if (atomic_cmpxchg(&buffer->state, QETH_QDIO_BUF_PRIMED, in qeth_qdio_handle_aob()
1652 switch (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_ESTABLISHED, in qeth_qdio_clear_card()
1796 atomic_cmpxchg(&channel->irq_pending, 0, 1) == 0); in qeth_idx_activate_get_answer()
1868 atomic_cmpxchg(&channel->irq_pending, 0, 1) == 0); in qeth_idx_activate_channel()
2081 while (atomic_cmpxchg(&card->write.irq_pending, 0, 1)) ; in qeth_send_control_data()
2470 if (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_UNINITIALIZED, in qeth_alloc_qdio_buffers()
3720 if (atomic_cmpxchg(&buffer->state, in qeth_qdio_output_handler()
4024 while (atomic_cmpxchg(&queue->state, QETH_OUT_Q_UNLOCKED, in qeth_do_send_packet_fast()
4059 while (atomic_cmpxchg(&queue->state, QETH_OUT_Q_UNLOCKED, in qeth_do_send_packet()
4927 if (atomic_cmpxchg(&card->qdio.state, QETH_QDIO_ALLOCATED, in qeth_qdio_establish()
Dqeth_l2_main.c1455 atomic_cmpxchg(&card->write.irq_pending, 0, 1) == 0); in qeth_osn_send_control_data()
/linux-4.4.14/net/rds/
Drds.h654 return atomic_cmpxchg(&conn->c_state, old, new) == old; in rds_conn_transition()
Diw_send.c386 if (atomic_cmpxchg(&ic->i_credits, oldval, newval) != oldval) in rds_iw_send_grab_credits()
Dib_send.c400 if (atomic_cmpxchg(&ic->i_credits, oldval, newval) != oldval) in rds_ib_send_grab_credits()
/linux-4.4.14/net/rxrpc/
Dar-input.c336 hi_serial = atomic_cmpxchg(&call->conn->hi_serial, hi_serial, in rxrpc_fast_process_packet()
/linux-4.4.14/drivers/media/usb/cx231xx/
Dcx231xx-417.c1743 if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) { in mpeg_release()
1774 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) { in mpeg_read()
/linux-4.4.14/fs/hfsplus/
Dxattr.c145 if (old_state != atomic_cmpxchg(&sbi->attr_tree_state, in hfsplus_create_attributes_file()
/linux-4.4.14/fs/gfs2/
Dlog.c367 if (atomic_cmpxchg(&sdp->sd_log_blks_free, free_blocks, in gfs2_log_reserve()
/linux-4.4.14/drivers/media/rc/
Dredrat3.c824 if (brightness != LED_OFF && atomic_cmpxchg(&rr3->flash, 0, 1) == 0) { in redrat3_brightness_set()
/linux-4.4.14/drivers/thermal/
Dthermal_core.c1505 if (atomic_cmpxchg(&pos->need_update, 1, 0)) in __thermal_cooling_device_register()
1946 if (atomic_cmpxchg(&tz->need_update, 1, 0)) in thermal_zone_device_register()
/linux-4.4.14/drivers/staging/media/omap4iss/
Diss.c874 if (atomic_cmpxchg(stopping, 1, 0)) { in omap4iss_module_sync_is_stopping()
/linux-4.4.14/drivers/block/drbd/
Ddrbd_actlog.c100 (r = atomic_cmpxchg(&device->md_io.in_use, 0, 1)) == 0 || in drbd_md_get_buffer()
/linux-4.4.14/drivers/net/ethernet/sfc/
Dfarch.c629 } else if (atomic_cmpxchg(&tx_queue->flush_outstanding, in efx_check_tx_flush_complete()
1107 if (atomic_cmpxchg(&tx_queue->flush_outstanding, 1, 0)) { in efx_farch_handle_tx_flush_done()
/linux-4.4.14/drivers/video/fbdev/omap2/displays-new/
Dpanel-dsi-cm.c843 old = atomic_cmpxchg(&ddata->do_update, 1, 0); in dsicm_te_isr()
/linux-4.4.14/arch/s390/mm/
Dpgtable.c904 } while (atomic_cmpxchg(v, old, new) != old); in atomic_xor_bits()
/linux-4.4.14/arch/x86/kernel/apic/
Dapic.c404 rsvd = atomic_cmpxchg(&eilvt_offsets[offset], rsvd, new); in reserve_eilvt_offset()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_conn.c244 if (atomic_cmpxchg(&cp->refcnt, 1, 0) == 1) { in ip_vs_conn_unlink()
/linux-4.4.14/fs/
Daio.c917 avail = atomic_cmpxchg(&ctx->reqs_available, in get_reqs_available()
/linux-4.4.14/kernel/trace/
Dring_buffer.c3102 } while (atomic_cmpxchg(&buffer->record_disabled, rd, new_rd) != rd); in ring_buffer_record_off()
3125 } while (atomic_cmpxchg(&buffer->record_disabled, rd, new_rd) != rd); in ring_buffer_record_on()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dlproc_llite.c445 rc = atomic_cmpxchg(&cache->ccc_lru_left, ov, nv); in ll_max_cached_mb_seq_write()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dmsgbuf.c336 if (atomic_cmpxchg(&array[*idx].allocated, 0, 1) == 0) in brcmf_msgbuf_alloc_pktid()
/linux-4.4.14/drivers/s390/block/
Ddasd.c2035 if (atomic_cmpxchg (&device->tasklet_scheduled, 0, 1) != 0) in dasd_schedule_device_bh()
2893 if (atomic_cmpxchg(&block->tasklet_scheduled, 0, 1) != 0) in dasd_schedule_block_bh()
/linux-4.4.14/net/ipv6/
Dip6_fib.c105 } while (atomic_cmpxchg(&net->ipv6.fib6_sernum, in fib6_new_sernum()
/linux-4.4.14/drivers/media/platform/omap3isp/
Disp.c1435 if (atomic_cmpxchg(stopping, 1, 0)) { in omap3isp_module_sync_is_stopping()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sp.c3953 old = atomic_cmpxchg((v), c, c + a); in __atomic_add_ifless()
3981 old = atomic_cmpxchg((v), c, c - a); in __atomic_dec_ifmoe()
/linux-4.4.14/mm/
Dhuge_memory.c222 if (atomic_cmpxchg(&huge_zero_refcount, 1, 0) == 1) { in shrink_huge_zero_page_scan()
/linux-4.4.14/fs/btrfs/
Dextent_io.c5144 old = atomic_cmpxchg(&eb->refs, refs, refs - 1); in free_extent_buffer()
/linux-4.4.14/drivers/md/
Draid5.c178 } while (atomic_cmpxchg(segments, old, new) != old); in raid5_set_bi_processed_stripes()