Home
last modified time | relevance | path

Searched refs:atomic_dec_and_test (Results 1 – 25 of 41) sorted by relevance

12

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Drefcount.h71 if (atomic_dec_and_test(ref) == true) { in refcount_dec_and_lock_irqsave()
82 return (atomic_dec_and_test(r)); in refcount_dec_and_test()
H A Dmm_types.h56 if (__predict_false(atomic_dec_and_test(&mm->mm_count))) in mmdrop()
69 if (__predict_false(atomic_dec_and_test(&mm->mm_users))) in mmput()
H A Dspinlock.h175 if (atomic_dec_and_test(cnt)) in _atomic_dec_and_lock_irqsave()
H A Dmutex.h137 if (atomic_dec_and_test(cnt)) { in atomic_dec_and_mutex_lock()
H A Dsched.h125 if (atomic_dec_and_test(&task->usage)) in put_task_struct()
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-condvar.c147 if (atomic_dec_and_test(&cvp->cv_waiters)) { in cv_wait_common()
254 if (atomic_dec_and_test(&cvp->cv_waiters)) { in __cv_timedwait_common()
362 if (atomic_dec_and_test(&cvp->cv_waiters)) { in __cv_timedwait_hires()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dsa.h49 if (atomic_dec_and_test(&client->users)) in ib_sa_client_put()
H A Dib_uverbs_main.c198 if (atomic_dec_and_test(&file->device->refcount)) in ib_uverbs_release_file()
896 if (atomic_dec_and_test(&dev->refcount)) in ib_uverbs_open()
1111 if (atomic_dec_and_test(&uverbs_dev->refcount)) in ib_uverbs_add_one()
1180 if (atomic_dec_and_test(&uverbs_dev->refcount)) in ib_uverbs_remove_one()
H A Dib_multicast.c186 if (atomic_dec_and_test(&port->refcount)) in deref_port()
196 if (atomic_dec_and_test(&group->refcount)) { in release_group()
207 if (atomic_dec_and_test(&member->refcount)) in deref_member()
H A Dib_umem_odp.c94 int zero_notifiers = atomic_dec_and_test(&context->notifier_count); in ib_ucontext_notifier_end_account()
/freebsd/sys/ofed/include/rdma/
H A Drdmavt_mr.h123 if (unlikely(atomic_dec_and_test(&mr->refcount))) in rvt_put_mr()
H A Drdmavt_qp.h484 if (qp && atomic_dec_and_test(&qp->refcount)) in rvt_put_qp()
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dev.c255 if (atomic_dec_and_test(&chp->refcnt)) in c4iw_ev_dispatch()
278 if (atomic_dec_and_test(&chp->refcnt)) in c4iw_ev_handler()
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_srq.c60 if (atomic_dec_and_test(&srq->refcount)) in mlx4_srq_event()
235 if (atomic_dec_and_test(&srq->refcount)) in mlx4_srq_free()
H A Dmlx4_cq.c90 if (atomic_dec_and_test(&cq->refcount)) in mlx4_cq_event()
331 if (atomic_dec_and_test(&cq->refcount)) in mlx4_cq_free()
H A Dmlx4_qp.c70 if (atomic_dec_and_test(&qp->refcount)) in mlx4_qp_event()
504 if (atomic_dec_and_test(&qp->refcount)) in mlx4_qp_free()
/freebsd/sys/dev/drm2/
H A Ddrm_atomic.h59 #define atomic_dec_and_test(p) (atomic_dec_return(p) == 0) macro
H A DdrmP.h1497 if (atomic_dec_and_test(&obj->handle_count)) in drm_gem_object_handle_unreference()
1517 if (atomic_dec_and_test(&obj->handle_count)) in drm_gem_object_handle_unreference_unlocked()
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_srq.c57 if (atomic_dec_and_test(&srq->refcount)) in mlx5_srq_event()
447 if (atomic_dec_and_test(&srq->refcount)) in mlx5_core_destroy_srq()
H A Dmlx5_qp.c59 if (atomic_dec_and_test(&common->refcount)) in mlx5_core_put_rsc()
445 if (atomic_dec_and_test(&dct->common.refcount)) in mlx5_core_destroy_dct()
/freebsd/sys/compat/linuxkpi/common/include/asm/
H A Datomic.h52 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0) macro
/freebsd/sys/contrib/dev/athk/ath12k/
H A Ddp_tx.c366 if (atomic_dec_and_test(&ar->dp.num_tx_pending)) in ath12k_dp_tx_free_txbuf()
385 if (atomic_dec_and_test(&ar->dp.num_tx_pending)) in ath12k_dp_tx_htt_tx_complete_buf()
620 if (atomic_dec_and_test(&ar->dp.num_tx_pending)) in ath12k_dp_tx_completion_handler()
/freebsd/sys/contrib/vchiq/interface/compat/
H A Dvchi_bsd.h88 #define atomic_dec_and_test(p) (atomic_fetchadd_int(p, -1) == 1) macro
/freebsd/sys/contrib/dev/athk/ath11k/
H A Ddp_tx.c318 if (atomic_dec_and_test(&ar->dp.num_tx_pending)) in ath11k_dp_tx_free_txbuf()
349 if (atomic_dec_and_test(&ar->dp.num_tx_pending)) in ath11k_dp_tx_htt_tx_complete_buf()
766 if (atomic_dec_and_test(&ar->dp.num_tx_pending)) in ath11k_dp_tx_completion_handler()
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_mcg.c143 if (atomic_dec_and_test(ref)) \
444 if (atomic_dec_and_test(&group->refcount)) { in release_group()

12