/linux-6.1.9/lib/ |
D | dec_and_lock.c | 24 if (atomic_add_unless(atomic, -1, 1)) in _atomic_dec_and_lock() 41 if (atomic_add_unless(atomic, -1, 1)) in _atomic_dec_and_lock_irqsave()
|
D | fault-inject.c | 56 #define atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0)
|
/linux-6.1.9/Documentation/translations/zh_CN/core-api/ |
D | refcount-vs-atomic.rst | 137 * ``atomic_add_unless(&var, -1, 1)`` --> ``refcount_dec_not_one(&var)`` 143 .. note:: atomic_add_unless()只在执行成功时提供完整的顺序。
|
/linux-6.1.9/scripts/coccinelle/api/ |
D | atomic_as_refcounter.cocci | 100 atomic_add_unless(&(a)->x,-1,1)@p1 110 msg = "atomic_add_unless"
|
/linux-6.1.9/Documentation/litmus-tests/atomic/ |
D | Atomic-RMW-ops-are-atomic-WRT-atomic_set.litmus | 16 (void)atomic_add_unless(v, 1, 0);
|
/linux-6.1.9/drivers/gpu/drm/i915/gt/ |
D | intel_timeline.c | 195 if (atomic_add_unless(&tl->pin_count, 1, 0)) in intel_timeline_pin() 258 if (atomic_add_unless(&tl->active_count, 1, 0)) in intel_timeline_enter() 283 if (atomic_add_unless(&tl->active_count, -1, 1)) in intel_timeline_exit()
|
D | intel_context.h | 195 while (!atomic_add_unless(&ce->pin_count, -1, 1)) { in intel_context_unpin()
|
/linux-6.1.9/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_encoder_phys_cmd.c | 91 new_cnt = atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); in dpu_encoder_phys_cmd_pp_tx_done_irq() 118 atomic_add_unless(&cmd_enc->pending_vblank_cnt, -1, 0); in dpu_encoder_phys_cmd_pp_rd_ptr_irq() 129 atomic_add_unless(&phys_enc->pending_ctlstart_cnt, -1, 0); in dpu_encoder_phys_cmd_ctl_start_irq() 200 atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); in _dpu_encoder_phys_cmd_handle_ppdone_timeout()
|
D | dpu_encoder_phys_wb.c | 376 atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); in _dpu_encoder_phys_wb_frame_done_helper() 435 atomic_add_unless(&phys_enc->pending_kickoff_cnt, -1, 0); in _dpu_encoder_phys_wb_handle_wbdone_timeout()
|
/linux-6.1.9/Documentation/ |
D | atomic_t.txt | 44 atomic_add_unless(), atomic_inc_not_zero() 99 (void)atomic_add_unless(v, 1, 0); 111 before the atomic_add_unless(), in which case that latter one would no-op, or 123 atomic_add_unless(v, 1, 0);
|
/linux-6.1.9/drivers/net/wireguard/ |
D | queueing.c | 73 if (!atomic_add_unless(&queue->count, 1, MAX_QUEUED_PACKETS)) in wg_prev_queue_enqueue()
|
/linux-6.1.9/drivers/crypto/ |
D | atmel-sha204a.c | 45 if (!atomic_add_unless(&i2c_priv->tfm_count, 1, 1)) in atmel_sha204a_rng_read_nonblocking()
|
/linux-6.1.9/drivers/gpu/drm/i915/ |
D | intel_wakeref.h | 154 if (unlikely(!atomic_add_unless(&wf->count, -1, 1))) in __intel_wakeref_put()
|
D | intel_wakeref.c | 89 if (atomic_add_unless(&wf->count, -1, 1)) in __intel_wakeref_put_work()
|
D | i915_active.c | 183 if (atomic_add_unless(&ref->count, -1, 1)) in active_work() 193 if (atomic_add_unless(&ref->count, -1, 1)) in active_retire() 491 return atomic_add_unless(&ref->count, 1, 0); in i915_active_acquire_if_busy()
|
/linux-6.1.9/drivers/gpu/drm/i915/gem/ |
D | i915_gem_shrinker.c | 486 if (atomic_add_unless(&obj->mm.shrink_pin, 1, 0)) in i915_gem_object_make_unshrinkable() 508 if (atomic_add_unless(&obj->mm.shrink_pin, -1, 1)) in ___i915_gem_object_make_shrinkable()
|
/linux-6.1.9/Documentation/core-api/ |
D | refcount-vs-atomic.rst | 148 * ``atomic_add_unless(&var, -1, 1)`` --> ``refcount_dec_not_one(&var)`` 154 .. note:: atomic_add_unless() only provides full order on success.
|
/linux-6.1.9/net/batman-adv/ |
D | main.h | 290 #define batadv_atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0)
|
/linux-6.1.9/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_verbs.c | 442 if (!atomic_add_unless(&dev->num_pds, 1, dev->dsr->caps.max_pd)) in pvrdma_alloc_pd() 529 if (!atomic_add_unless(&dev->num_ahs, 1, dev->dsr->caps.max_ah)) in pvrdma_create_ah()
|
D | pvrdma_srq.c | 134 if (!atomic_add_unless(&dev->num_srqs, 1, dev->dsr->caps.max_srq)) in pvrdma_create_srq()
|
/linux-6.1.9/include/linux/ |
D | page_ref.h | 238 bool ret = atomic_add_unless(&page->_refcount, nr, u); in page_ref_add_unless()
|
D | pm_runtime.h | 142 atomic_add_unless(&dev->power.usage_count, -1, 0); in pm_runtime_put_noidle()
|
/linux-6.1.9/arch/sh/kernel/ |
D | perf_event.c | 65 if (!atomic_add_unless(&num_events, -1, 1)) { in hw_perf_event_destroy()
|
/linux-6.1.9/drivers/phy/ti/ |
D | phy-twl4030-usb.c | 590 if (atomic_add_unless(&twl->connected, 1, 1)) { in twl4030_usb_irq() 597 if (atomic_add_unless(&twl->connected, -1, 0)) { in twl4030_usb_irq()
|
/linux-6.1.9/arch/x86/platform/uv/ |
D | uv_nmi.c | 502 int first = atomic_add_unless(&hub_nmi->in_nmi, 1, 1); in uv_set_in_nmi() 506 if (atomic_add_unless(&uv_in_nmi, 1, 1)) in uv_set_in_nmi()
|