atomic_add_unless 350 arch/powerpc/kvm/book3s_xive.c return atomic_add_unless(&q->count, 1, max) ? 0 : -EBUSY; atomic_add_unless 1789 arch/powerpc/perf/core-book3s.c if (!atomic_add_unless(&num_events, -1, 1)) { atomic_add_unless 444 arch/powerpc/perf/core-fsl-emb.c if (!atomic_add_unless(&num_events, -1, 1)) { atomic_add_unless 476 arch/powerpc/sysdev/xive/common.c return !!atomic_add_unless(&q->count, 1, max); atomic_add_unless 173 arch/s390/kernel/perf_cpum_cf.c if (!atomic_add_unless(&num_events, -1, 1)) { atomic_add_unless 599 arch/s390/kernel/perf_cpum_sf.c if (!atomic_add_unless(&num_events, -1, 1)) { atomic_add_unless 348 arch/s390/kernel/topology.c if (atomic_add_unless(&topology_poll, -1, 0)) atomic_add_unless 83 arch/sh/kernel/perf_event.c if (!atomic_add_unless(&num_events, -1, 1)) { atomic_add_unless 456 arch/x86/platform/uv/uv_nmi.c int first = atomic_add_unless(&hub_nmi->in_nmi, 1, 1); atomic_add_unless 460 arch/x86/platform/uv/uv_nmi.c if (atomic_add_unless(&uv_in_nmi, 1, 1)) atomic_add_unless 1014 drivers/acpi/apei/ghes.c if (!atomic_add_unless(&ghes_in_nmi, 1, 1)) atomic_add_unless 639 drivers/base/power/runtime.c atomic_add_unless(&parent->power.child_count, -1, 0); atomic_add_unless 1180 drivers/base/power/runtime.c atomic_add_unless(&parent->power.child_count, -1, 0); atomic_add_unless 3708 drivers/cdrom/cdrom.c if (!atomic_add_unless(&initialized, 1, 1)) atomic_add_unless 4470 drivers/char/ipmi/ipmi_msghandler.c if (atomic_add_unless(&intf->watchdog_pretimeouts_to_deliver, -1, 0)) { atomic_add_unless 304 drivers/cpufreq/cpufreq_governor.c if (!atomic_add_unless(&policy_dbs->work_count, 1, 1)) atomic_add_unless 231 drivers/cpuidle/coupled.c ret = atomic_add_unless(&coupled->ready_waiting_counts, atomic_add_unless 45 drivers/crypto/atmel-sha204a.c if (!atomic_add_unless(&i2c_priv->tfm_count, 1, 1)) atomic_add_unless 146 drivers/dma/qcom/hidma_ll.c if (atomic_add_unless(&lldev->trepool[i].allocated, 1, 1)) atomic_add_unless 987 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (atomic_add_unless(&ctx->win_updated, -1, 0)) atomic_add_unless 2195 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c if (likely(atomic_add_unless(&ce->pin_count, -1, 1))) atomic_add_unless 92 drivers/gpu/drm/i915/gt/intel_context.c if (likely(atomic_add_unless(&ce->pin_count, -1, 1))) atomic_add_unless 317 drivers/gpu/drm/i915/gt/intel_timeline.c if (atomic_add_unless(&tl->pin_count, 1, 0)) atomic_add_unless 160 drivers/gpu/drm/i915/i915_active.c if (atomic_add_unless(&ref->count, -1, 1)) atomic_add_unless 353 drivers/gpu/drm/i915/i915_active.c if (atomic_add_unless(&ref->count, 1, 0)) atomic_add_unless 390 drivers/gpu/drm/i915/i915_active.c if (!atomic_add_unless(&ref->count, 1, 0)) { atomic_add_unless 421 drivers/gpu/drm/i915/i915_active.c if (!atomic_add_unless(&ref->count, 1, 0)) { atomic_add_unless 806 drivers/gpu/drm/i915/i915_gem_gtt.c if (atomic_add_unless(&pt->used, -1, 1)) atomic_add_unless 88 drivers/gpu/drm/i915/intel_wakeref.c if (atomic_add_unless(&wf->count, -1, 1)) atomic_add_unless 122 drivers/gpu/drm/i915/intel_wakeref.h if (unlikely(!atomic_add_unless(&wf->count, -1, 1))) atomic_add_unless 92 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c new_cnt = atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); atomic_add_unless 119 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c atomic_add_unless(&cmd_enc->pending_vblank_cnt, -1, 0); atomic_add_unless 135 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c atomic_add_unless(&phys_enc->pending_ctlstart_cnt, -1, 0); atomic_add_unless 232 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); atomic_add_unless 321 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c new_cnt = atomic_add_unless(&phys_enc->pending_kickoff_cnt, atomic_add_unless 324 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c atomic_add_unless(&omap_dmm->engine_counter, -1, 0)); atomic_add_unless 168 drivers/iio/common/hid-sensors/hid-sensor-trigger.c if (atomic_add_unless(&st->runtime_pm_enable, 1, 1)) atomic_add_unless 126 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c if (!atomic_add_unless(&dev->num_cqs, 1, dev->dsr->caps.max_cq)) atomic_add_unless 224 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c if (!atomic_add_unless(&dev->num_qps, 1, dev->dsr->caps.max_qp)) atomic_add_unless 134 drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c if (!atomic_add_unless(&dev->num_srqs, 1, dev->dsr->caps.max_srq)) atomic_add_unless 442 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c if (!atomic_add_unless(&dev->num_pds, 1, dev->dsr->caps.max_pd)) atomic_add_unless 528 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c if (!atomic_add_unless(&dev->num_ahs, 1, dev->dsr->caps.max_ah)) atomic_add_unless 392 drivers/md/raid5.c if (atomic_add_unless(&sh->count, -1, 1)) atomic_add_unless 343 drivers/media/i2c/m5mols/m5mols_core.c atomic_add_unless(&info->irq_done, -1, 0), atomic_add_unless 631 drivers/media/platform/omap3isp/ispstat.c if (!atomic_add_unless(&stat->buf_err, -1, 0) && atomic_add_unless 57 drivers/media/rc/ttusbir.c atomic_add_unless(&tt->led_complete, 1, 1)) { atomic_add_unless 1502 drivers/misc/mic/scif/scif_rma.c if (!atomic_add_unless(&pinned_pages->ref_count, 1, 0)) atomic_add_unless 1403 drivers/net/ethernet/cavium/thunder/nicvf_queues.c if (!atomic_add_unless(&nic->pnicvf->tx_ptp_skbs, 1, 1)) atomic_add_unless 575 drivers/phy/ti/phy-twl4030-usb.c if (atomic_add_unless(&twl->connected, 1, 1)) { atomic_add_unless 582 drivers/phy/ti/phy-twl4030-usb.c if (atomic_add_unless(&twl->connected, -1, 0)) { atomic_add_unless 1087 drivers/ps3/ps3-lpm.c if (!atomic_add_unless(&lpm_priv->open, 1, 1)) { atomic_add_unless 3154 drivers/s390/net/qeth_core_main.c atomic_add_unless(&card->force_alloc_skb, -1, 0); atomic_add_unless 274 drivers/s390/scsi/zfcp_aux.c while (atomic_add_unless(&adapter->stat_miss, -1, 0)) atomic_add_unless 1443 drivers/scsi/mpt3sas/mpt3sas_base.c if (!atomic_add_unless(&reply_q->busy, 1, 1)) atomic_add_unless 58 drivers/tty/serial/serial_core.c if (atomic_add_unless(&state->refcount, 1, 0)) atomic_add_unless 3446 fs/btrfs/inode.c if (atomic_add_unless(&inode->i_count, -1, 1)) atomic_add_unless 1776 fs/ceph/inode.c if (atomic_add_unless(&inode->i_count, -1, 1)) atomic_add_unless 3083 fs/ext4/ext4.h atomic_add_unless(&EXT4_SB(sb)->s_lock_busy, -1, 0); atomic_add_unless 3089 fs/ext4/ext4.h atomic_add_unless(&EXT4_SB(sb)->s_lock_busy, 1, atomic_add_unless 275 fs/nfs/pnfs_dev.c if (atomic_add_unless(&d->ref, -1, 2)) atomic_add_unless 286 fs/nfsd/filecache.c if (atomic_add_unless(&nf->nf_ref, -1, 1)) atomic_add_unless 41 fs/reiserfs/file.c if (atomic_add_unless(&REISERFS_I(inode)->openers, -1, 1)) atomic_add_unless 364 fs/super.c if (!atomic_add_unless(&s->s_active, -1, 1)) { atomic_add_unless 1653 fs/xfs/xfs_buf.c if (atomic_add_unless(&bp->b_lru_ref, -1, 0)) { atomic_add_unless 3046 fs/xfs/xfs_log.c if (!atomic_add_unless(&iclog->ic_refcnt, -1, 1)) { atomic_add_unless 790 include/asm-generic/atomic-instrumented.h #define atomic_add_unless atomic_add_unless atomic_add_unless 984 include/asm-generic/atomic-long.h return atomic_add_unless(v, a, u); atomic_add_unless 1098 include/linux/atomic-fallback.h #ifndef atomic_add_unless atomic_add_unless 1113 include/linux/atomic-fallback.h #define atomic_add_unless atomic_add_unless atomic_add_unless 1127 include/linux/atomic-fallback.h return atomic_add_unless(v, 1, 0); atomic_add_unless 157 include/linux/page_ref.h int ret = atomic_add_unless(&page->_refcount, nr, u); atomic_add_unless 75 include/linux/pm_runtime.h atomic_add_unless(&dev->power.usage_count, -1, 0); atomic_add_unless 76 include/linux/refcount.h return atomic_add_unless(&r->refs, i, 0); atomic_add_unless 86 include/linux/refcount.h return atomic_add_unless(&r->refs, 1, 0); atomic_add_unless 2190 kernel/debug/kdb/kdb_main.c if (!atomic_add_unless(&kdb_nmi_disabled, -1, 0)) atomic_add_unless 4435 kernel/events/core.c if (!atomic_add_unless(&perf_sched_count, -1, 1)) atomic_add_unless 1469 kernel/locking/mutex.c if (atomic_add_unless(cnt, -1, 1)) atomic_add_unless 932 kernel/module.c ret = atomic_add_unless(&mod->refcnt, MODULE_REF_BASE, 0); atomic_add_unless 707 kernel/power/hibernate.c if (!atomic_add_unless(&snapshot_device_available, -1, 0)) { atomic_add_unless 883 kernel/power/hibernate.c if (!atomic_add_unless(&snapshot_device_available, -1, 0)) { atomic_add_unless 54 kernel/power/user.c if (!atomic_add_unless(&snapshot_device_available, -1, 0)) { atomic_add_unless 24 lib/dec_and_lock.c if (atomic_add_unless(atomic, -1, 1)) atomic_add_unless 41 lib/dec_and_lock.c if (atomic_add_unless(atomic, -1, 1)) atomic_add_unless 56 lib/fault-inject.c #define atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0) atomic_add_unless 294 net/batman-adv/main.h #define batadv_atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0) atomic_add_unless 962 net/batman-adv/tp_meter.c if (!atomic_add_unless(&bat_priv->tp_num, 1, BATADV_TP_MAX_NUM)) { atomic_add_unless 1343 net/batman-adv/tp_meter.c if (!atomic_add_unless(&bat_priv->tp_num, 1, BATADV_TP_MAX_NUM)) { atomic_add_unless 412 net/mac80211/mesh_pathtbl.c if (atomic_add_unless(&sdata->u.mesh.mpaths, 1, MESH_MAX_MPATHS) == 0) atomic_add_unless 4697 net/netfilter/nf_tables_api.c !atomic_add_unless(&set->nelems, 1, set->size + set->ndeact)) { atomic_add_unless 52 net/netfilter/nft_dynset.c if (!atomic_add_unless(&set->nelems, 1, set->size)) atomic_add_unless 1088 net/phonet/pep.c !atomic_add_unless(&pn->tx_credits, -1, 0)) { atomic_add_unless 256 net/rds/ib_recv.c avail_allocs = atomic_add_unless(&rds_ib_allocation,