Home
last modified time | relevance | path

Searched refs:usecnt (Results 1 – 16 of 16) sorted by relevance

/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_verbs.c278 atomic_set(&pd->usecnt, 0); in __ib_alloc_pd()
346 WARN_ON(atomic_read(&pd->usecnt)); in ib_dealloc_pd_user()
384 atomic_inc(&pd->usecnt); in _ib_create_ah()
694 atomic_dec(&pd->usecnt); in ib_destroy_ah_user()
724 atomic_inc(&srq->ext.cq->usecnt); in ib_create_srq()
728 atomic_inc(&srq->ext.xrc.xrcd->usecnt); in ib_create_srq()
730 atomic_inc(&pd->usecnt); in ib_create_srq()
734 atomic_dec(&srq->pd->usecnt); in ib_create_srq()
736 atomic_dec(&srq->ext.xrc.xrcd->usecnt); in ib_create_srq()
738 atomic_dec(&srq->ext.cq->usecnt); in ib_create_srq()
[all …]
H A Dib_rdma_core.c77 return atomic_fetch_add_unless(&uobj->usecnt, 1, -1) == -1 ? in uverbs_try_lock_object()
81 return atomic_cmpxchg(&uobj->usecnt, 0, -1) == 0 ? 0 : -EBUSY; in uverbs_try_lock_object()
94 WARN_ON(atomic_read(&uobj->usecnt) <= 0); in assert_uverbs_usecnt()
97 WARN_ON(atomic_read(&uobj->usecnt) != -1); in assert_uverbs_usecnt()
156 * For DESTROY the usecnt is held write locked, the caller is expected in uverbs_destroy_uobject()
161 atomic_set(&uobj->usecnt, 0); in uverbs_destroy_uobject()
207 atomic_set(&uobj->usecnt, 0); in uobj_destroy()
290 atomic_set(&uobj->usecnt, -1); in alloc_uobj()
632 atomic_set(&uobj->usecnt, 0); in rdma_alloc_commit_uobject()
677 * In order to unlock an object, either decrease its usecnt fo in rdma_lookup_put_uobject()
[all...]
H A Dib_uverbs_std_types_counters.c47 ret = ib_destroy_usecnt(&counters->usecnt, why, uobject); in uverbs_free_counters()
80 atomic_set(&counters->usecnt, 0); in UVERBS_HANDLER()
100 if (!atomic_read(&counters->usecnt)) in UVERBS_HANDLER()
H A Dib_uverbs_std_types_dm.c44 ret = ib_destroy_usecnt(&dm->usecnt, why, uobject); in uverbs_free_dm()
82 atomic_set(&dm->usecnt, 0); in UVERBS_HANDLER()
H A Dib_cq.c119 atomic_set(&cq->usecnt, 0); in __ib_alloc_cq_user()
150 if (WARN_ON_ONCE(atomic_read(&cq->usecnt) != 0)) in ib_free_cq_user()
H A Dib_uverbs_cmd.c443 atomic_set(&pd->usecnt, 0); in ib_uverbs_alloc_pd()
620 atomic_set(&xrcd->usecnt, 0); in ib_uverbs_open_xrcd()
638 atomic_inc(&xrcd->usecnt); in ib_uverbs_open_xrcd()
657 atomic_dec(&xrcd->usecnt); in ib_uverbs_open_xrcd()
696 if (vnode && !atomic_dec_and_test(&xrcd->usecnt)) in ib_uverbs_dealloc_xrcd()
702 atomic_inc(&xrcd->usecnt); in ib_uverbs_dealloc_xrcd()
766 atomic_inc(&pd->usecnt); in ib_uverbs_reg_mr()
852 atomic_inc(&pd->usecnt); in ib_uverbs_rereg_mr()
854 atomic_dec(&old_pd->usecnt); in ib_uverbs_rereg_mr()
923 atomic_inc(&pd->usecnt); in ib_uverbs_alloc_mw()
[all …]
H A Dib_uverbs_std_types_mr.c134 atomic_inc(&pd->usecnt); in UVERBS_HANDLER()
135 atomic_inc(&dm->usecnt); in UVERBS_HANDLER()
H A Dib_uverbs_std_types.c62 atomic_dec(&qp->usecnt); in uverbs_free_flow()
195 ret = ib_destroy_usecnt(&pd->usecnt, why, uobject); in uverbs_free_pd()
H A Dcore_priv.h176 atomic_set(&qp->usecnt, 0); in _ib_create_qp()
H A Dib_uverbs_std_types_cq.c122 atomic_set(&cq->usecnt, 0); in UVERBS_HANDLER()
H A Dib_uverbs_std_types_flow_action.c44 ret = ib_destroy_usecnt(&action->usecnt, why, uobject); in uverbs_free_flow_action()
H A Dib_uverbs_main.c113 atomic_dec(&pd->usecnt); in uverbs_dealloc_mw()
/freebsd/sys/ofed/include/rdma/
H A Duverbs_std_types.h134 atomic_set(&action->usecnt, 0); in uverbs_flow_action_fill_action()
171 atomic_inc(&qp->usecnt); in ib_set_flow()
H A Dib_verbs.h1415 atomic_t usecnt; /* protects exclusive access */ member
1433 atomic_t usecnt; /* count all resources */ member
1445 atomic_t usecnt; /* count all exposed resources */ member
1473 atomic_t usecnt; /* count number of work queues */ member
1485 atomic_t usecnt; member
1530 atomic_t usecnt; member
1566 atomic_t usecnt; member
1593 atomic_t usecnt; member
1612 atomic_t usecnt; member
1970 atomic_t usecnt; member
[all …]
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_main.c2925 atomic_set(&devr->p0->usecnt, 0); in create_dev_resources()
2938 atomic_set(&devr->c0->usecnt, 0); in create_dev_resources()
2951 atomic_set(&devr->x0->usecnt, 0); in create_dev_resources()
2962 atomic_set(&devr->x1->usecnt, 0); in create_dev_resources()
2988 atomic_inc(&devr->s0->ext.xrc.xrcd->usecnt); in create_dev_resources()
2989 atomic_inc(&devr->s0->ext.cq->usecnt); in create_dev_resources()
2990 atomic_inc(&devr->p0->usecnt); in create_dev_resources()
2991 atomic_set(&devr->s0->usecnt, 0); in create_dev_resources()
3012 atomic_inc(&devr->p0->usecnt); in create_dev_resources()
3013 atomic_set(&devr->s1->usecnt, in create_dev_resources()
[all...]
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dmain.c2465 if (handle->destroyed || !atomic_read(&cq->ibcq.usecnt)) { in bnxt_re_cqn_handler()