Home
last modified time | relevance | path

Searched refs:uobj (Results 1 – 8 of 8) sorted by relevance

/titanic_41/usr/src/uts/common/io/ib/clients/of/sol_ofs/
H A Dsol_uobj.c175 sol_ofs_uobj_init(sol_ofs_uobj_t *uobj, in sol_ofs_uobj_init() argument
178 uobj->uo_user_handle = user_handle; in sol_ofs_uobj_init()
179 uobj->uo_refcnt = 1; in sol_ofs_uobj_init()
180 uobj->uo_type = uobj_type; in sol_ofs_uobj_init()
181 uobj->uo_id = -1; in sol_ofs_uobj_init()
182 uobj->uo_live = 0; in sol_ofs_uobj_init()
183 rw_init(&uobj->uo_lock, NULL, RW_DRIVER, NULL); in sol_ofs_uobj_init()
184 mutex_init(&uobj->uo_reflock, NULL, MUTEX_DRIVER, NULL); in sol_ofs_uobj_init()
200 ofs_uobj_fini(sol_ofs_uobj_t *uobj) in ofs_uobj_fini() argument
202 rw_destroy(&uobj->uo_lock); in ofs_uobj_fini()
[all …]
/titanic_41/usr/src/uts/common/io/ib/clients/of/sol_uverbs/
H A Dsol_uverbs.c858 uctxt->uobj.uo_live = 1; in sol_uverbs_open()
859 rw_exit(&uctxt->uobj.uo_lock); in sol_uverbs_open()
926 if (!sol_ofs_uobj_remove(&uverbs_uctxt_uo_tbl, &uctxt->uobj)) { in sol_uverbs_close()
931 sol_ofs_uobj_put(&uctxt->uobj); in sol_uverbs_close()
946 sol_ofs_uobj_put(&uctxt->uobj); in sol_uverbs_close()
947 sol_ofs_uobj_deref(&uctxt->uobj, sol_ofs_uobj_free); in sol_uverbs_close()
966 sol_ofs_uobj_put(&verbs_uctxt->uobj); in sol_uverbs_close()
968 sol_ofs_uobj_put(&uctxt->uobj); in sol_uverbs_close()
969 sol_ofs_uobj_deref(&uctxt->uobj, sol_ofs_uobj_free); in sol_uverbs_close()
972 sol_ofs_uobj_put(&uctxt->uobj); in sol_uverbs_close()
[all …]
H A Dsol_uverbs_comp.c233 sol_ofs_uobj_init(&ucq->uobj, cmd.user_handle, in sol_uverbs_create_cq()
235 rw_enter(&ucq->uobj.uo_lock, RW_WRITER); in sol_uverbs_create_cq()
259 if (compl_uctxt->uctxt_verbs_id != uctxt->uobj.uo_id + in sol_uverbs_create_cq()
267 sol_ofs_uobj_put(&compl_uctxt->uobj); in sol_uverbs_create_cq()
272 rw_enter(&ufile->uobj.uo_lock, RW_WRITER); in sol_uverbs_create_cq()
274 rw_exit(&ufile->uobj.uo_lock); in sol_uverbs_create_cq()
275 sol_ofs_uobj_put(&compl_uctxt->uobj); in sol_uverbs_create_cq()
292 ucq->uobj.uo_uobj_sz = sizeof (uverbs_ucq_uobj_t); in sol_uverbs_create_cq()
312 ucq->uobj.uo_uobj_sz = sizeof (uverbs_ucq_uobj_t); in sol_uverbs_create_cq()
316 if (sol_ofs_uobj_add(&uverbs_ucq_uo_tbl, &ucq->uobj) != 0) { in sol_uverbs_create_cq()
[all …]
H A Dsol_uverbs_event.c91 rw_enter(&(ufile->uobj.uo_lock), RW_WRITER); in sol_uverbs_event_file_close()
92 if (sol_ofs_uobj_remove(&uverbs_ufile_uo_tbl, &ufile->uobj)) { in sol_uverbs_event_file_close()
93 rw_exit(&(ufile->uobj.uo_lock)); in sol_uverbs_event_file_close()
94 sol_ofs_uobj_deref(&ufile->uobj, uverbs_release_event_file); in sol_uverbs_event_file_close()
96 rw_exit(&(ufile->uobj.uo_lock)); in sol_uverbs_event_file_close()
327 sol_ofs_uobj_init(&ufile->uobj, 0, SOL_UVERBS_UFILE_UOBJ_TYPE); in uverbs_alloc_event_file()
328 rw_enter(&ufile->uobj.uo_lock, RW_WRITER); in uverbs_alloc_event_file()
330 if (sol_ofs_uobj_add(&uverbs_ufile_uo_tbl, &ufile->uobj) != 0) { in uverbs_alloc_event_file()
337 rw_exit(&ufile->uobj.uo_lock); in uverbs_alloc_event_file()
338 ufile->uobj.uo_uobj_sz = sizeof (uverbs_ufile_uobj_t); in uverbs_alloc_event_file()
[all …]
H A Dsol_uverbs_qp.c413 sol_ofs_uobj_init(&uqp->uobj, cmd.user_handle, in sol_uverbs_create_qp()
415 rw_enter(&uqp->uobj.uo_lock, RW_WRITER); in sol_uverbs_create_qp()
474 uqp->uobj.uo_uobj_sz = sizeof (uverbs_uqp_uobj_t); in sol_uverbs_create_qp()
512 uqp->uobj.uo_uobj_sz = sizeof (uverbs_uqp_uobj_t); in sol_uverbs_create_qp()
526 if (sol_ofs_uobj_add(&uverbs_uqp_uo_tbl, &uqp->uobj) != 0) { in sol_uverbs_create_qp()
533 resp.qp_handle = uqp->uobj.uo_id; in sol_uverbs_create_qp()
583 uqp->uobj.uo_live = 1; in sol_uverbs_create_qp()
585 sol_ofs_uobj_put(&upd->uobj); in sol_uverbs_create_qp()
586 sol_ofs_uobj_put(&uscq->uobj); in sol_uverbs_create_qp()
589 sol_ofs_uobj_put(&urcq->uobj); in sol_uverbs_create_qp()
[all …]
/titanic_41/usr/src/uts/common/sys/ib/clients/of/sol_uverbs/
H A Dsol_uverbs.h115 sol_ofs_uobj_t uobj; member
143 sol_ofs_uobj_t uobj; member
191 sol_ofs_uobj_t uobj; member
202 sol_ofs_uobj_t uobj; member
211 sol_ofs_uobj_t uobj; member
228 sol_ofs_uobj_t uobj; member
242 sol_ofs_uobj_t uobj; member
254 sol_ofs_uobj_t uobj; member
H A Dsol_uverbs_event.h48 void uverbs_release_event_file(sol_ofs_uobj_t *uobj);
/titanic_41/usr/src/uts/common/sys/ib/clients/of/sol_ofs/
H A Dsol_ofs_common.h108 void sol_ofs_uobj_free(sol_ofs_uobj_t *uobj);