/linux-3.4.99/include/linux/ |
D | atomic.h | 15 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)
|
D | kref.h | 115 return atomic_add_unless(&kref->refcount, 1, 0); in kref_get_unless_zero()
|
D | pm_runtime.h | 64 atomic_add_unless(&dev->power.usage_count, -1, 0); in pm_runtime_put_noidle()
|
D | pagemap.h | 182 if (unlikely(!atomic_add_unless(&page->_count, count, 0))) in page_cache_add_speculative()
|
/linux-3.4.99/lib/ |
D | dec_and_lock.c | 23 if (atomic_add_unless(atomic, -1, 1)) in _atomic_dec_and_lock()
|
D | fault-inject.c | 49 #define atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0)
|
/linux-3.4.99/arch/hexagon/include/asm/ |
D | atomic.h | 151 #define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
|
/linux-3.4.99/net/batman-adv/ |
D | main.h | 213 #define atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0)
|
/linux-3.4.99/kernel/power/ |
D | hibernate.c | 609 if (!atomic_add_unless(&snapshot_device_available, -1, 0)) { in hibernate() 768 if (!atomic_add_unless(&snapshot_device_available, -1, 0)) { in software_resume()
|
D | user.c | 54 if (!atomic_add_unless(&snapshot_device_available, -1, 0)) { in snapshot_open()
|
/linux-3.4.99/include/asm-generic/ |
D | atomic-long.h | 246 return (long)atomic_add_unless(v, a, u); in atomic_long_add_unless()
|
/linux-3.4.99/fs/reiserfs/ |
D | file.c | 41 if (atomic_add_unless(&REISERFS_I(inode)->openers, -1, 1)) in reiserfs_file_release()
|
/linux-3.4.99/arch/sh/kernel/ |
D | perf_event.c | 86 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy()
|
/linux-3.4.99/kernel/ |
D | mutex.c | 486 if (atomic_add_unless(cnt, -1, 1)) in atomic_dec_and_mutex_lock()
|
/linux-3.4.99/drivers/gpu/drm/nouveau/ |
D | nv31_mpeg.c | 40 if (!atomic_add_unless(&pmpeg->refcount, 1, 1)) in nv31_mpeg_context_new()
|
/linux-3.4.99/drivers/infiniband/hw/ehca/ |
D | ehca_cq.c | 137 if (!atomic_add_unless(&shca->num_cqs, 1, shca->max_num_cqs)) { in ehca_create_cq()
|
/linux-3.4.99/arch/s390/kernel/ |
D | topology.c | 306 if (atomic_add_unless(&topology_poll, -1, 0)) in set_topology_timer()
|
D | perf_cpum_cf.c | 290 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy()
|
/linux-3.4.99/drivers/base/power/ |
D | runtime.c | 503 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/ |
D | xprt.c | 956 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/ |
D | core-fsl-emb.c | 418 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy()
|
/linux-3.4.99/Documentation/ |
D | atomic_ops.txt | 270 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/ |
D | inetpeer.c | 245 if (!atomic_add_unless(&u->refcnt, 1, -1)) in lookup_rcu()
|
/linux-3.4.99/net/rds/ |
D | iw_recv.c | 147 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/ |
D | ps3-lpm.c | 1099 if (!atomic_add_unless(&lpm_priv->open, 1, 1)) { in ps3_lpm_open()
|