Lines Matching refs:uobject

218 	put_uobj_read(pd->uobject);  in put_pd_read()
228 put_uobj_read(cq->uobject); in put_cq_read()
238 put_uobj_read(ah->uobject); in put_ah_read()
256 put_uobj_read(qp->uobject); in put_qp_read()
261 put_uobj_write(qp->uobject); in put_qp_write()
271 put_uobj_read(srq->uobject); in put_srq_read()
560 pd->uobject = uobj; in ib_uverbs_alloc_pd()
785 init_uobj(&obj->uobject, 0, file->ucontext, &xrcd_lock_class); in ib_uverbs_open_xrcd()
787 down_write(&obj->uobject.mutex); in ib_uverbs_open_xrcd()
805 obj->uobject.object = xrcd; in ib_uverbs_open_xrcd()
806 ret = idr_add_uobj(&ib_uverbs_xrcd_idr, &obj->uobject); in ib_uverbs_open_xrcd()
811 resp.xrcd_handle = obj->uobject.id; in ib_uverbs_open_xrcd()
833 list_add_tail(&obj->uobject.list, &file->ucontext->xrcd_list); in ib_uverbs_open_xrcd()
836 obj->uobject.live = 1; in ib_uverbs_open_xrcd()
837 up_write(&obj->uobject.mutex); in ib_uverbs_open_xrcd()
850 idr_remove_uobj(&ib_uverbs_xrcd_idr, &obj->uobject); in ib_uverbs_open_xrcd()
856 put_uobj_write(&obj->uobject); in ib_uverbs_open_xrcd()
892 obj = container_of(uobj, struct ib_uxrcd_object, uobject); in ib_uverbs_close_xrcd()
1009 mr->uobject = uobj; in ib_uverbs_reg_mr()
1144 put_uobj_write(mr->uobject); in ib_uverbs_rereg_mr()
1227 mw->uobject = uobj; in ib_uverbs_alloc_mw()
1375 init_uobj(&obj->uobject, cmd->user_handle, file->ucontext, &cq_lock_class); in create_cq()
1376 down_write(&obj->uobject.mutex); in create_cq()
1406 cq->uobject = &obj->uobject; in create_cq()
1412 obj->uobject.object = cq; in create_cq()
1413 ret = idr_add_uobj(&ib_uverbs_cq_idr, &obj->uobject); in create_cq()
1418 resp.base.cq_handle = obj->uobject.id; in create_cq()
1429 list_add_tail(&obj->uobject.list, &file->ucontext->cq_list); in create_cq()
1432 obj->uobject.live = 1; in create_cq()
1434 up_write(&obj->uobject.mutex); in create_cq()
1439 idr_remove_uobj(&ib_uverbs_cq_idr, &obj->uobject); in create_cq()
1449 put_uobj_write(&obj->uobject); in create_cq()
1714 obj = container_of(cq->uobject, struct ib_ucq_object, uobject); in ib_uverbs_destroy_cq()
1776 init_uobj(&obj->uevent.uobject, cmd->user_handle, file->ucontext, in create_qp()
1778 down_write(&obj->uevent.uobject.mutex); in create_qp()
1889 qp->uobject = &obj->uevent.uobject; in create_qp()
1891 obj->uevent.uobject.object = qp; in create_qp()
1892 ret = idr_add_uobj(&ib_uverbs_qp_idr, &obj->uevent.uobject); in create_qp()
1898 resp.base.qp_handle = obj->uevent.uobject.id; in create_qp()
1914 uobject); in create_qp()
1929 list_add_tail(&obj->uevent.uobject.list, &file->ucontext->qp_list); in create_qp()
1932 obj->uevent.uobject.live = 1; in create_qp()
1934 up_write(&obj->uevent.uobject.mutex); in create_qp()
1938 idr_remove_uobj(&ib_uverbs_qp_idr, &obj->uevent.uobject); in create_qp()
1955 put_uobj_write(&obj->uevent.uobject); in create_qp()
2094 init_uobj(&obj->uevent.uobject, cmd.user_handle, file->ucontext, &qp_lock_class); in ib_uverbs_open_qp()
2095 down_write(&obj->uevent.uobject.mutex); in ib_uverbs_open_qp()
2118 qp->uobject = &obj->uevent.uobject; in ib_uverbs_open_qp()
2120 obj->uevent.uobject.object = qp; in ib_uverbs_open_qp()
2121 ret = idr_add_uobj(&ib_uverbs_qp_idr, &obj->uevent.uobject); in ib_uverbs_open_qp()
2127 resp.qp_handle = obj->uevent.uobject.id; in ib_uverbs_open_qp()
2135 obj->uxrcd = container_of(xrcd_uobj, struct ib_uxrcd_object, uobject); in ib_uverbs_open_qp()
2140 list_add_tail(&obj->uevent.uobject.list, &file->ucontext->qp_list); in ib_uverbs_open_qp()
2143 obj->uevent.uobject.live = 1; in ib_uverbs_open_qp()
2145 up_write(&obj->uevent.uobject.mutex); in ib_uverbs_open_qp()
2150 idr_remove_uobj(&ib_uverbs_qp_idr, &obj->uevent.uobject); in ib_uverbs_open_qp()
2157 put_uobj_write(&obj->uevent.uobject); in ib_uverbs_open_qp()
2394 obj = container_of(uobj, struct ib_uqp_object, uevent.uobject); in ib_uverbs_destroy_qp()
2862 ah->uobject = uobj; in ib_uverbs_create_ah()
2958 obj = container_of(qp->uobject, struct ib_uqp_object, uevent.uobject); in ib_uverbs_attach_mcast()
3010 obj = container_of(qp->uobject, struct ib_uqp_object, uevent.uobject); in ib_uverbs_detach_mcast()
3187 flow_id->uobject = uobj; in ib_uverbs_ex_create_flow()
3290 init_uobj(&obj->uevent.uobject, cmd->user_handle, file->ucontext, &srq_lock_class); in __uverbs_create_xsrq()
3291 down_write(&obj->uevent.uobject.mutex); in __uverbs_create_xsrq()
3300 obj->uxrcd = container_of(xrcd_uobj, struct ib_uxrcd_object, uobject); in __uverbs_create_xsrq()
3335 srq->uobject = &obj->uevent.uobject; in __uverbs_create_xsrq()
3349 obj->uevent.uobject.object = srq; in __uverbs_create_xsrq()
3350 ret = idr_add_uobj(&ib_uverbs_srq_idr, &obj->uevent.uobject); in __uverbs_create_xsrq()
3355 resp.srq_handle = obj->uevent.uobject.id; in __uverbs_create_xsrq()
3374 list_add_tail(&obj->uevent.uobject.list, &file->ucontext->srq_list); in __uverbs_create_xsrq()
3377 obj->uevent.uobject.live = 1; in __uverbs_create_xsrq()
3379 up_write(&obj->uevent.uobject.mutex); in __uverbs_create_xsrq()
3384 idr_remove_uobj(&ib_uverbs_srq_idr, &obj->uevent.uobject); in __uverbs_create_xsrq()
3403 put_uobj_write(&obj->uevent.uobject); in __uverbs_create_xsrq()
3562 obj = container_of(uobj, struct ib_uevent_object, uobject); in ib_uverbs_destroy_srq()