Home
last modified time | relevance | path

Searched refs:uobject (Results 1 – 25 of 34) sorted by relevance

12

/drivers/infiniband/core/
Duverbs_std_types.c42 static int uverbs_free_ah(struct ib_uobject *uobject, in uverbs_free_ah() argument
46 return rdma_destroy_ah_user((struct ib_ah *)uobject->object, in uverbs_free_ah()
51 static int uverbs_free_flow(struct ib_uobject *uobject, in uverbs_free_flow() argument
55 struct ib_flow *flow = (struct ib_flow *)uobject->object; in uverbs_free_flow()
57 container_of(uobject, struct ib_uflow_object, uobject); in uverbs_free_flow()
71 static int uverbs_free_mw(struct ib_uobject *uobject, in uverbs_free_mw() argument
75 return uverbs_dealloc_mw((struct ib_mw *)uobject->object); in uverbs_free_mw()
78 static int uverbs_free_rwq_ind_tbl(struct ib_uobject *uobject, in uverbs_free_rwq_ind_tbl() argument
82 struct ib_rwq_ind_table *rwq_ind_tbl = uobject->object; in uverbs_free_rwq_ind_tbl()
91 if (ib_is_destroy_retryable(ret, why, uobject)) in uverbs_free_rwq_ind_tbl()
[all …]
Duverbs_std_types_srq.c10 static int uverbs_free_srq(struct ib_uobject *uobject, in uverbs_free_srq() argument
14 struct ib_srq *srq = uobject->object; in uverbs_free_srq()
16 container_of(uobject, struct ib_uevent_object, uobject); in uverbs_free_srq()
21 if (ib_is_destroy_retryable(ret, why, uobject)) in uverbs_free_srq()
26 container_of(uobject, struct ib_usrq_object, in uverbs_free_srq()
27 uevent.uobject); in uverbs_free_srq()
41 typeof(*obj), uevent.uobject); in UVERBS_HANDLER()
85 uobject); in UVERBS_HANDLER()
105 obj->uevent.uobject.user_handle = user_handle; in UVERBS_HANDLER()
113 obj->uevent.uobject.object = srq; in UVERBS_HANDLER()
[all …]
Duverbs_std_types_wq.c10 static int uverbs_free_wq(struct ib_uobject *uobject, in uverbs_free_wq() argument
14 struct ib_wq *wq = uobject->object; in uverbs_free_wq()
16 container_of(uobject, struct ib_uwq_object, uevent.uobject); in uverbs_free_wq()
20 if (ib_is_destroy_retryable(ret, why, uobject)) in uverbs_free_wq()
32 typeof(*obj), uevent.uobject); in UVERBS_HANDLER()
68 obj->uevent.uobject.user_handle = user_handle; in UVERBS_HANDLER()
80 obj->uevent.uobject.object = wq; in UVERBS_HANDLER()
89 wq->uobject = obj; in UVERBS_HANDLER()
165 container_of(uobj, struct ib_uwq_object, uevent.uobject); in UVERBS_HANDLER()
Duverbs_std_types_cq.c38 static int uverbs_free_cq(struct ib_uobject *uobject, in uverbs_free_cq() argument
42 struct ib_cq *cq = uobject->object; in uverbs_free_cq()
45 container_of(uobject, struct ib_ucq_object, uevent.uobject); in uverbs_free_cq()
49 if (ib_is_destroy_retryable(ret, why, uobject)) in uverbs_free_cq()
66 typeof(*obj), uevent.uobject); in UVERBS_HANDLER()
122 cq->uobject = obj; in UVERBS_HANDLER()
135 obj->uevent.uobject.object = cq; in UVERBS_HANDLER()
136 obj->uevent.uobject.user_handle = user_handle; in UVERBS_HANDLER()
191 container_of(uobj, struct ib_ucq_object, uevent.uobject); in UVERBS_HANDLER()
Duverbs_cmd.c443 pd->uobject = uobj; in ib_uverbs_alloc_pd()
623 obj->uobject.object = xrcd; in ib_uverbs_open_xrcd()
639 uobj_finalize_uobj_create(&obj->uobject, attrs); in ib_uverbs_open_xrcd()
641 resp.xrcd_handle = obj->uobject.id; in ib_uverbs_open_xrcd()
648 uobj_alloc_abort(&obj->uobject, attrs); in ib_uverbs_open_xrcd()
671 int ib_uverbs_dealloc_xrcd(struct ib_uobject *uobject, struct ib_xrcd *xrcd, in ib_uverbs_dealloc_xrcd() argument
685 if (ib_is_destroy_retryable(ret, why, uobject)) { in ib_uverbs_dealloc_xrcd()
749 mr->uobject = uobj; in ib_uverbs_reg_mr()
906 mw->uobject = uobj; in ib_uverbs_alloc_mw()
997 obj->uevent.uobject.user_handle = cmd->user_handle; in create_cq()
[all …]
Duverbs_std_types_qp.c11 static int uverbs_free_qp(struct ib_uobject *uobject, in uverbs_free_qp() argument
15 struct ib_qp *qp = uobject->object; in uverbs_free_qp()
17 container_of(uobject, struct ib_uqp_object, uevent.uobject); in uverbs_free_qp()
35 if (ib_is_destroy_retryable(ret, why, uobject)) in uverbs_free_qp()
87 typeof(*obj), uevent.uobject); in UVERBS_HANDLER()
232 obj->uevent.uobject.user_handle = user_handle; in UVERBS_HANDLER()
274 uobject); in UVERBS_HANDLER()
277 qp->uobject = obj; in UVERBS_HANDLER()
280 obj->uevent.uobject.object = qp; in UVERBS_HANDLER()
372 container_of(uobj, struct ib_uqp_object, uevent.uobject); in UVERBS_HANDLER()
Duverbs_std_types_dm.c37 static int uverbs_free_dm(struct ib_uobject *uobject, in uverbs_free_dm() argument
41 struct ib_dm *dm = uobject->object; in uverbs_free_dm()
44 ret = ib_destroy_usecnt(&dm->usecnt, why, uobject); in uverbs_free_dm()
57 ->obj_attr.uobject; in UVERBS_HANDLER()
81 dm->uobject = uobj; in UVERBS_HANDLER()
Duverbs_std_types_counters.c38 static int uverbs_free_counters(struct ib_uobject *uobject, in uverbs_free_counters() argument
42 struct ib_counters *counters = uobject->object; in uverbs_free_counters()
45 ret = ib_destroy_usecnt(&counters->usecnt, why, uobject); in uverbs_free_counters()
78 counters->uobject = uobj; in UVERBS_HANDLER()
Duverbs_main.c379 uobj = cq->uobject; in ib_uverbs_comp_handler()
381 entry->desc.comp.cq_handle = cq->uobject->uevent.uobject.user_handle; in ib_uverbs_comp_handler()
432 eobj->uobject.user_handle, event->event, in uverbs_uobj_event()
438 uverbs_uobj_event(&event->element.cq->uobject->uevent, event); in ib_uverbs_cq_event_handler()
444 if (!event->element.qp->uobject) in ib_uverbs_qp_event_handler()
447 uverbs_uobj_event(&event->element.qp->uobject->uevent, event); in ib_uverbs_qp_event_handler()
452 uverbs_uobj_event(&event->element.wq->uobject->uevent, event); in ib_uverbs_wq_event_handler()
457 uverbs_uobj_event(&event->element.srq->uobject->uevent, event); in ib_uverbs_srq_event_handler()
605 bundle.uobject = NULL; in ib_uverbs_write()
669 if (bundle.uobject) in ib_uverbs_write()
[all …]
Drdma_core.c55 void uverbs_uobject_put(struct ib_uobject *uobject) in uverbs_uobject_put() argument
57 kref_put(&uobject->ref, uverbs_uobject_free); in uverbs_uobject_put()
345 struct ib_uobject *uobject; in lookup_get_fd_uobject() local
363 uobject = f->private_data; in lookup_get_fd_uobject()
369 if (f->f_op != fd_type->fops || uobject->ufile != ufile) { in lookup_get_fd_uobject()
374 uverbs_uobject_get(uobject); in lookup_get_fd_uobject()
375 return uobject; in lookup_get_fd_uobject()
Duverbs.h182 struct ib_uobject uobject; member
190 struct ib_uobject uobject; member
241 int ib_uverbs_dealloc_xrcd(struct ib_uobject *uobject, struct ib_xrcd *xrcd,
Duverbs_std_types_mr.c38 static int uverbs_free_mr(struct ib_uobject *uobject, in uverbs_free_mr() argument
42 return ib_dereg_mr_user((struct ib_mr *)uobject->object, in uverbs_free_mr()
134 mr->uobject = uobj; in UVERBS_HANDLER()
Duverbs_ioctl.c322 o_attr->uobject = uverbs_get_uobject_from_file( in uverbs_process_attr()
325 if (IS_ERR(o_attr->uobject)) in uverbs_process_attr()
326 return PTR_ERR(o_attr->uobject); in uverbs_process_attr()
331 s64 id = o_attr->uobject->id; in uverbs_process_attr()
458 ret = uobj_destroy(destroy_attr->uobject, &pbundle->bundle); in ib_uverbs_run_method()
464 uobj_put_destroy(destroy_attr->uobject); in ib_uverbs_run_method()
506 attr->obj_attr.uobject, in bundle_destroy()
Duverbs_std_types_flow_action.c37 static int uverbs_free_flow_action(struct ib_uobject *uobject, in uverbs_free_flow_action() argument
41 struct ib_flow_action *action = uobject->object; in uverbs_free_flow_action()
44 ret = ib_destroy_usecnt(&action->usecnt, why, uobject); in uverbs_free_flow_action()
Duverbs_std_types_device.c43 attrs->uobject = NULL; in UVERBS_HANDLER()
45 if (attrs->uobject) in UVERBS_HANDLER()
46 uverbs_finalize_object(attrs->uobject, UVERBS_ACCESS_NEW, true, in UVERBS_HANDLER()
Dverbs.c270 pd->uobject = NULL; in __ib_alloc_pd()
308 mr->uobject = NULL; in __ib_alloc_pd()
1012 struct ib_usrq_object *uobject, in ib_create_srq_user() argument
1027 srq->uobject = uobject; in ib_create_srq_user()
1950 if (!qp->uobject) in ib_destroy_qp_user()
1999 cq->uobject = NULL; in __ib_create_cq()
2168 mr->uobject = NULL; in ib_alloc_mr()
2229 mr->uobject = NULL; in ib_alloc_mr_integrity()
2406 wq->uobject = NULL; in ib_create_wq()
Dcore_priv.h340 qp->uobject = uobj; in _ib_create_qp()
Dnldev.c611 cq->uobject->uevent.uobject.context->res.id)) in fill_res_cq_entry()
698 pd->uobject->context->res.id)) in fill_res_pd_entry()
/drivers/infiniband/hw/mlx5/
Dqos.c85 static int pp_obj_cleanup(struct ib_uobject *uobject, in pp_obj_cleanup() argument
89 struct mlx5_ib_pp *pp_entry = uobject->object; in pp_obj_cleanup()
Ddevx.c1297 static int devx_obj_cleanup(struct ib_uobject *uobject, in devx_obj_cleanup() argument
1303 struct devx_obj *obj = uobject->object; in devx_obj_cleanup()
1327 if (ib_is_destroy_retryable(ret, why, uobject)) in devx_obj_cleanup()
2205 static int devx_umem_cleanup(struct ib_uobject *uobject, in devx_umem_cleanup() argument
2209 struct devx_umem *obj = uobject->object; in devx_umem_cleanup()
2214 if (ib_is_destroy_retryable(err, why, uobject)) in devx_umem_cleanup()
/drivers/infiniband/hw/mlx4/
Dcq.c404 if (ibcq->uobject) { in mlx4_ib_resize_cq()
428 if (ibcq->uobject) { in mlx4_ib_resize_cq()
462 if (!ibcq->uobject) in mlx4_ib_resize_cq()
/drivers/infiniband/hw/mthca/
Dmthca_qp.c626 if (qp->ibqp.uobject) in __mthca_modify_qp()
669 u8 sched_queue = ibqp->uobject ? 0x2 : 0x1; in __mthca_modify_qp()
834 if (new_state == IB_QPS_RESET && !qp->ibqp.uobject) { in __mthca_modify_qp()
959 return pd->ibpd.uobject ? max_data_size - MTHCA_INLINE_HEADER_SIZE : 0; in mthca_max_inline_data()
1476 if (!qp->ibqp.uobject) { in mthca_free_qp()
Dmthca_srq.c361 if (!srq->ibsrq.uobject) { in mthca_free_srq()
/drivers/infiniband/hw/cxgb4/
Drestrack.c382 if (ibcq->uobject) in c4iw_fill_res_cq_entry()
/drivers/infiniband/hw/hns/
Dhns_roce_hw_v1.c796 free_mr->mr_free_cq->ib_cq.uobject = NULL; in hns_roce_v1_rsv_lp_qp()
815 free_mr->mr_free_pd->ibpd.uobject = NULL; in hns_roce_v1_rsv_lp_qp()
865 hr_qp->ibqp.uobject = NULL; in hns_roce_v1_rsv_lp_qp()
3294 if (ibqp->uobject) { in hns_roce_v1_m_qp()
3312 if (new_state == IB_QPS_RESET && !ibqp->uobject) { in hns_roce_v1_m_qp()
3583 if (!ibqp->uobject) { in hns_roce_v1_q_qp()

12