Home
last modified time | relevance | path

Searched refs:atomic_add_unless (Results 1 – 25 of 44) sorted by relevance

12

/linux-3.4.99/include/linux/
Datomic.h15 static inline int atomic_add_unless(atomic_t *v, int a, int u) in atomic_add_unless() function
28 #define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
Dkref.h115 return atomic_add_unless(&kref->refcount, 1, 0); in kref_get_unless_zero()
Dpm_runtime.h64 atomic_add_unless(&dev->power.usage_count, -1, 0); in pm_runtime_put_noidle()
Dpagemap.h182 if (unlikely(!atomic_add_unless(&page->_count, count, 0))) in page_cache_add_speculative()
/linux-3.4.99/lib/
Ddec_and_lock.c23 if (atomic_add_unless(atomic, -1, 1)) in _atomic_dec_and_lock()
Dfault-inject.c49 #define atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0)
/linux-3.4.99/arch/hexagon/include/asm/
Datomic.h151 #define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
/linux-3.4.99/net/batman-adv/
Dmain.h213 #define atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0)
/linux-3.4.99/kernel/power/
Dhibernate.c609 if (!atomic_add_unless(&snapshot_device_available, -1, 0)) { in hibernate()
768 if (!atomic_add_unless(&snapshot_device_available, -1, 0)) { in software_resume()
Duser.c54 if (!atomic_add_unless(&snapshot_device_available, -1, 0)) { in snapshot_open()
/linux-3.4.99/include/asm-generic/
Datomic-long.h246 return (long)atomic_add_unless(v, a, u); in atomic_long_add_unless()
/linux-3.4.99/fs/reiserfs/
Dfile.c41 if (atomic_add_unless(&REISERFS_I(inode)->openers, -1, 1)) in reiserfs_file_release()
/linux-3.4.99/arch/sh/kernel/
Dperf_event.c86 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy()
/linux-3.4.99/kernel/
Dmutex.c486 if (atomic_add_unless(cnt, -1, 1)) in atomic_dec_and_mutex_lock()
/linux-3.4.99/drivers/gpu/drm/nouveau/
Dnv31_mpeg.c40 if (!atomic_add_unless(&pmpeg->refcount, 1, 1)) in nv31_mpeg_context_new()
/linux-3.4.99/drivers/infiniband/hw/ehca/
Dehca_cq.c137 if (!atomic_add_unless(&shca->num_cqs, 1, shca->max_num_cqs)) { in ehca_create_cq()
/linux-3.4.99/arch/s390/kernel/
Dtopology.c306 if (atomic_add_unless(&topology_poll, -1, 0)) in set_topology_timer()
Dperf_cpum_cf.c290 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy()
/linux-3.4.99/drivers/base/power/
Druntime.c503 atomic_add_unless(&parent->power.child_count, -1, 0); in rpm_suspend()
992 atomic_add_unless(&parent->power.child_count, -1, 0); in __pm_runtime_set_status()
/linux-3.4.99/net/sunrpc/
Dxprt.c956 if (!atomic_add_unless(&xprt->num_reqs, 1, xprt->max_reqs)) in xprt_dynamic_alloc_slot()
969 if (atomic_add_unless(&xprt->num_reqs, -1, xprt->min_reqs)) { in xprt_dynamic_free_slot()
/linux-3.4.99/arch/powerpc/perf/
Dcore-fsl-emb.c418 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy()
/linux-3.4.99/Documentation/
Datomic_ops.txt270 int atomic_add_unless(atomic_t *v, int a, int u);
276 atomic_add_unless requires explicit memory barriers around the operation
279 atomic_inc_not_zero, equivalent to atomic_add_unless(v, 1, 0)
/linux-3.4.99/net/ipv4/
Dinetpeer.c245 if (!atomic_add_unless(&u->refcnt, 1, -1)) in lookup_rcu()
/linux-3.4.99/net/rds/
Diw_recv.c147 if (!atomic_add_unless(&rds_iw_allocation, 1, rds_iw_sysctl_max_recv_allocation)) { in rds_iw_recv_refill_one()
/linux-3.4.99/drivers/ps3/
Dps3-lpm.c1099 if (!atomic_add_unless(&lpm_priv->open, 1, 1)) { in ps3_lpm_open()

12