Home
last modified time | relevance | path

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

12

/freebsd-13.1/sys/compat/linuxkpi/common/include/linux/
H A Dmm_types.h57 if (__predict_false(atomic_dec_and_test(&mm->mm_count))) in mmdrop()
70 if (__predict_false(atomic_dec_and_test(&mm->mm_users))) in mmput()
H A Drefcount.h75 if (atomic_dec_and_test(&ref->value) == true) { in refcount_dec_and_lock_irqsave()
H A Dkref.h121 if (unlikely(!atomic_dec_and_test(&kref->refcount))) { in kref_put_mutex()
H A Dmutex.h136 if (atomic_dec_and_test(cnt)) { in atomic_dec_and_mutex_lock()
H A Dspinlock.h182 if (atomic_dec_and_test(cnt)) in _atomic_dec_and_lock_irqsave()
H A Dsched.h118 if (atomic_dec_and_test(&task->usage)) in put_task_struct()
/freebsd-13.1/sys/dev/cxgbe/iw_cxgbe/
H A Dev.c185 if (atomic_dec_and_test(&chp->refcnt)) in c4iw_ev_dispatch()
208 if (atomic_dec_and_test(&chp->refcnt)) in c4iw_ev_handler()
/freebsd-13.1/sys/ofed/drivers/infiniband/core/
H A Dsa.h51 if (atomic_dec_and_test(&client->users)) in ib_sa_client_put()
H A Dib_multicast.c188 if (atomic_dec_and_test(&port->refcount)) in deref_port()
198 if (atomic_dec_and_test(&group->refcount)) { in release_group()
209 if (atomic_dec_and_test(&member->refcount)) in deref_member()
H A Dib_uverbs_main.c396 if (atomic_dec_and_test(&file->device->refcount)) in ib_uverbs_release_file()
1018 if (atomic_dec_and_test(&dev->refcount)) in ib_uverbs_open()
1272 if (atomic_dec_and_test(&uverbs_dev->refcount)) in ib_uverbs_add_one()
1384 if (atomic_dec_and_test(&uverbs_dev->refcount)) in ib_uverbs_remove_one()
H A Dib_umem_odp.c96 int zero_notifiers = atomic_dec_and_test(&context->notifier_count); in ib_ucontext_notifier_end_account()
/freebsd-13.1/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-condvar.c149 if (atomic_dec_and_test(&cvp->cv_waiters)) { in cv_wait_common()
298 if (atomic_dec_and_test(&cvp->cv_waiters)) { in __cv_timedwait_common()
406 if (atomic_dec_and_test(&cvp->cv_waiters)) { in __cv_timedwait_hires()
/freebsd-13.1/sys/ofed/include/rdma/
H A Drdmavt_mr.h125 if (unlikely(atomic_dec_and_test(&mr->refcount))) in rvt_put_mr()
H A Drdmavt_qp.h486 if (qp && atomic_dec_and_test(&qp->refcount)) in rvt_put_qp()
/freebsd-13.1/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-13.1/sys/dev/drm2/
H A Ddrm_atomic.h61 #define atomic_dec_and_test(p) (atomic_dec_return(p) == 0) macro
H A DdrmP.h1499 if (atomic_dec_and_test(&obj->handle_count)) in drm_gem_object_handle_unreference()
1519 if (atomic_dec_and_test(&obj->handle_count)) in drm_gem_object_handle_unreference_unlocked()
/freebsd-13.1/sys/dev/mlx5/mlx5_core/
H A Dmlx5_srq.c59 if (atomic_dec_and_test(&srq->refcount)) in mlx5_srq_event()
449 if (atomic_dec_and_test(&srq->refcount)) in mlx5_core_destroy_srq()
H A Dmlx5_qp.c61 if (atomic_dec_and_test(&common->refcount)) in mlx5_core_put_rsc()
447 if (atomic_dec_and_test(&dct->common.refcount)) in mlx5_core_destroy_dct()
/freebsd-13.1/sys/compat/linuxkpi/common/include/asm/
H A Datomic.h54 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0) macro
/freebsd-13.1/sys/contrib/openzfs/include/os/linux/kernel/linux/
H A Dvfs_compat.h201 if (atomic_dec_and_test(&acl->a_refcount)) in zpl_posix_acl_release()
/freebsd-13.1/sys/contrib/vchiq/interface/compat/
H A Dvchi_bsd.h88 #define atomic_dec_and_test(p) (atomic_fetchadd_int(p, -1) == 1) macro
/freebsd-13.1/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