/linux-4.4.14/include/linux/ |
D | atomic.h | 182 #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 …]
|
D | pagemap.h | 210 return likely(atomic_cmpxchg(&page->_count, count, 0) == count); in page_freeze_refs()
|
/linux-4.4.14/arch/sh/include/asm/ |
D | atomic.h | 39 #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/ |
D | atomic.h | 124 #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/ |
D | qspinlock.h | 88 (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()
|
D | atomic.h | 177 #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/ |
D | ftrace.c | 122 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/ |
D | qspinlock.c | 211 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/ |
D | atomic.h | 126 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/ |
D | atomic.h | 175 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()
|
D | mutex_32.h | 104 if (likely(atomic_cmpxchg(count, 1, 0) == 1)) in __mutex_fastpath_trylock()
|
D | qspinlock.h | 58 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
|
D | mutex_64.h | 121 if (likely(atomic_cmpxchg(count, 1, 0) == 1)) in __mutex_fastpath_trylock()
|
/linux-4.4.14/arch/xtensa/include/asm/ |
D | atomic.h | 230 #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/ |
D | atomic.h | 219 #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/ |
D | atomic_64.h | 76 #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()
|
D | atomic_32.h | 26 int atomic_cmpxchg(atomic_t *, int, int);
|
/linux-4.4.14/drivers/md/bcache/ |
D | io.c | 76 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()
|
D | alloc.c | 99 } while (atomic_cmpxchg(&c->rescale, r, r + next) != r); in bch_rescale_priorities()
|
/linux-4.4.14/arch/frv/include/asm/ |
D | atomic.h | 164 #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/ |
D | atomic.h | 40 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() function
|
/linux-4.4.14/arch/sparc/lib/ |
D | atomic32.c | 77 int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function 90 EXPORT_SYMBOL(atomic_cmpxchg);
|
/linux-4.4.14/lib/ |
D | dump_stack.c | 40 old = atomic_cmpxchg(&dump_lock, -1, cpu); in dump_stack()
|
/linux-4.4.14/arch/arm64/include/asm/ |
D | atomic.h | 90 #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/ |
D | vnic_rq.h | 218 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/ |
D | cmpxchg.h | 81 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) macro
|
D | atomic.h | 210 while (c != (u) && (old = atomic_cmpxchg((v), c, c + (a))) != c)\
|
/linux-4.4.14/arch/ia64/include/asm/ |
D | atomic.h | 134 #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/ |
D | atomic.h | 74 #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/ |
D | atomic.h | 137 static inline int atomic_cmpxchg(atomic_t *v, int o, int n) in atomic_cmpxchg() function
|
/linux-4.4.14/arch/tile/lib/ |
D | spinlock_64.c | 28 return atomic_cmpxchg((atomic_t *)lock, -1, -1); in arch_spin_read_noalloc()
|
/linux-4.4.14/arch/s390/include/asm/ |
D | atomic.h | 136 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/ |
D | xt_statistic.c | 47 } while (atomic_cmpxchg(&info->master->count, oval, nval) != oval); in statistic_mt()
|
/linux-4.4.14/drivers/gpu/host1x/hw/ |
D | syncpt_hw.c | 66 } while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old); in syncpt_load()
|
/linux-4.4.14/arch/metag/include/asm/ |
D | atomic_lnkget.h | 85 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in ATOMIC_OPS()
|
D | atomic_lock1.h | 79 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
/linux-4.4.14/arch/hexagon/include/asm/ |
D | atomic.h | 78 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
/linux-4.4.14/drivers/firewire/ |
D | core-device.c | 815 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/ |
D | atomic.h | 66 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() function
|
/linux-4.4.14/arch/mips/include/asm/ |
D | atomic.h | 215 #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/ |
D | smpboot.c | 492 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/ |
D | atomic.h | 162 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/ |
D | intr.c | 262 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/ |
D | ccwgroup.c | 81 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()
|
D | device.c | 546 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/ |
D | atomic.h | 182 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
|
/linux-4.4.14/arch/x86/kernel/ |
D | smp.c | 203 if (atomic_cmpxchg(&stopping_cpu, -1, safe_smp_processor_id()) != -1) in native_stop_other_cpus()
|
/linux-4.4.14/drivers/media/pci/saa7164/ |
D | saa7164-vbi.c | 471 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()
|
D | saa7164-encoder.c | 767 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/ |
D | ixgbe.h | 424 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/ |
D | bnxt.h | 1004 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/ |
D | atomic.h | 134 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) in ATOMIC_OPS() macro
|
/linux-4.4.14/fs/pstore/ |
D | ram_core.c | 61 } 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/ |
D | blk-mq-tag.c | 55 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/ |
D | ocrdma_ah.c | 129 if (atomic_cmpxchg(&dev->update_sl, 1, 0)) in ocrdma_create_ah()
|
D | ocrdma_hw.c | 2509 if (atomic_cmpxchg(&dev->update_sl, 1, 0)) in ocrdma_set_av_params()
|
/linux-4.4.14/arch/powerpc/mm/ |
D | mmu_context_iommu.c | 218 if (atomic_cmpxchg(&mem->mapped, 1, 0) != 1) { in mm_iommu_put()
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | atomic.h | 158 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) macro
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vce.c | 590 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()
|
D | amdgpu_uvd.c | 568 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/ |
D | radeon_vce.c | 539 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()
|
D | radeon_uvd.c | 478 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/ |
D | atomic_ops.txt | 262 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'
|
D | memory-barriers.txt | 2346 atomic_cmpxchg(); atomic_long_cmpxchg();
|
/linux-4.4.14/arch/blackfin/kernel/ |
D | bfin_dma.c | 139 if (atomic_cmpxchg(&dma_ch[channel].chan_status, 0, 1)) { in request_dma()
|
/linux-4.4.14/arch/tile/kernel/ |
D | process.c | 631 ongoing = atomic_cmpxchg(&backtrace_cpus, 0, num_online_cpus() - 1); in arch_trigger_all_cpu_backtrace()
|
/linux-4.4.14/fs/nfs/ |
D | unlink.c | 222 wait_event(nfsi->waitqueue, atomic_cmpxchg(&nfsi->silly_count, 1, 0) == 1); in nfs_block_sillyrename()
|
/linux-4.4.14/drivers/hwtracing/coresight/ |
D | coresight-etb10.c | 284 if (atomic_cmpxchg(&drvdata->in_use, 0, 1)) in etb_open()
|
/linux-4.4.14/net/ipv4/ |
D | inetpeer.c | 389 atomic_cmpxchg(&p->refcnt, 0, -1) == 0) { in inet_peer_gc()
|
/linux-4.4.14/drivers/hwtracing/intel_th/ |
D | msu.c | 916 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/ |
D | vfio.c | 1156 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/ |
D | qeth_core_main.c | 488 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()
|
D | qeth_l2_main.c | 1455 atomic_cmpxchg(&card->write.irq_pending, 0, 1) == 0); in qeth_osn_send_control_data()
|
/linux-4.4.14/net/rds/ |
D | rds.h | 654 return atomic_cmpxchg(&conn->c_state, old, new) == old; in rds_conn_transition()
|
D | iw_send.c | 386 if (atomic_cmpxchg(&ic->i_credits, oldval, newval) != oldval) in rds_iw_send_grab_credits()
|
D | ib_send.c | 400 if (atomic_cmpxchg(&ic->i_credits, oldval, newval) != oldval) in rds_ib_send_grab_credits()
|
/linux-4.4.14/net/rxrpc/ |
D | ar-input.c | 336 hi_serial = atomic_cmpxchg(&call->conn->hi_serial, hi_serial, in rxrpc_fast_process_packet()
|
/linux-4.4.14/drivers/media/usb/cx231xx/ |
D | cx231xx-417.c | 1743 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/ |
D | xattr.c | 145 if (old_state != atomic_cmpxchg(&sbi->attr_tree_state, in hfsplus_create_attributes_file()
|
/linux-4.4.14/fs/gfs2/ |
D | log.c | 367 if (atomic_cmpxchg(&sdp->sd_log_blks_free, free_blocks, in gfs2_log_reserve()
|
/linux-4.4.14/drivers/media/rc/ |
D | redrat3.c | 824 if (brightness != LED_OFF && atomic_cmpxchg(&rr3->flash, 0, 1) == 0) { in redrat3_brightness_set()
|
/linux-4.4.14/drivers/thermal/ |
D | thermal_core.c | 1505 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/ |
D | iss.c | 874 if (atomic_cmpxchg(stopping, 1, 0)) { in omap4iss_module_sync_is_stopping()
|
/linux-4.4.14/drivers/block/drbd/ |
D | drbd_actlog.c | 100 (r = atomic_cmpxchg(&device->md_io.in_use, 0, 1)) == 0 || in drbd_md_get_buffer()
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
D | farch.c | 629 } 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/ |
D | panel-dsi-cm.c | 843 old = atomic_cmpxchg(&ddata->do_update, 1, 0); in dsicm_te_isr()
|
/linux-4.4.14/arch/s390/mm/ |
D | pgtable.c | 904 } while (atomic_cmpxchg(v, old, new) != old); in atomic_xor_bits()
|
/linux-4.4.14/arch/x86/kernel/apic/ |
D | apic.c | 404 rsvd = atomic_cmpxchg(&eilvt_offsets[offset], rsvd, new); in reserve_eilvt_offset()
|
/linux-4.4.14/net/netfilter/ipvs/ |
D | ip_vs_conn.c | 244 if (atomic_cmpxchg(&cp->refcnt, 1, 0) == 1) { in ip_vs_conn_unlink()
|
/linux-4.4.14/fs/ |
D | aio.c | 917 avail = atomic_cmpxchg(&ctx->reqs_available, in get_reqs_available()
|
/linux-4.4.14/kernel/trace/ |
D | ring_buffer.c | 3102 } 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/ |
D | lproc_llite.c | 445 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/ |
D | msgbuf.c | 336 if (atomic_cmpxchg(&array[*idx].allocated, 0, 1) == 0) in brcmf_msgbuf_alloc_pktid()
|
/linux-4.4.14/drivers/s390/block/ |
D | dasd.c | 2035 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/ |
D | ip6_fib.c | 105 } while (atomic_cmpxchg(&net->ipv6.fib6_sernum, in fib6_new_sernum()
|
/linux-4.4.14/drivers/media/platform/omap3isp/ |
D | isp.c | 1435 if (atomic_cmpxchg(stopping, 1, 0)) { in omap3isp_module_sync_is_stopping()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sp.c | 3953 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/ |
D | huge_memory.c | 222 if (atomic_cmpxchg(&huge_zero_refcount, 1, 0) == 1) { in shrink_huge_zero_page_scan()
|
/linux-4.4.14/fs/btrfs/ |
D | extent_io.c | 5144 old = atomic_cmpxchg(&eb->refs, refs, refs - 1); in free_extent_buffer()
|
/linux-4.4.14/drivers/md/ |
D | raid5.c | 178 } while (atomic_cmpxchg(segments, old, new) != old); in raid5_set_bi_processed_stripes()
|