Home
last modified time | relevance | path

Searched refs:uobject (Results 1 – 25 of 33) 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()
102 static int uverbs_free_xrcd(struct ib_uobject *uobject, in uverbs_free_xrcd() argument
[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()
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()
203 container_of(uobj, struct ib_usrq_object, uevent.uobject); in UVERBS_HANDLER()
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()
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()
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
739 mr->uobject = uobj; in ib_uverbs_reg_mr()
841 new_mr->uobject = uobj; in ib_uverbs_rereg_mr()
940 mw->uobject = uobj; in ib_uverbs_alloc_mw()
1031 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()
87 typeof(*obj), uevent.uobject); in UVERBS_HANDLER()
232 obj->uevent.uobject.user_handle = user_handle; in UVERBS_HANDLER()
261 uobject); in UVERBS_HANDLER()
265 obj->uevent.uobject.object = qp; in UVERBS_HANDLER()
351 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()
55 ->obj_attr.uobject; in UVERBS_HANDLER()
79 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()
77 counters->uobject = uobj; in UVERBS_HANDLER()
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()
Duverbs_main.c390 uobj = cq->uobject; in ib_uverbs_comp_handler()
392 entry->desc.comp.cq_handle = cq->uobject->uevent.uobject.user_handle; in ib_uverbs_comp_handler()
443 eobj->uobject.user_handle, event->event, in uverbs_uobj_event()
449 uverbs_uobj_event(&event->element.cq->uobject->uevent, event); in ib_uverbs_cq_event_handler()
455 if (!event->element.qp->uobject) in ib_uverbs_qp_event_handler()
458 uverbs_uobj_event(&event->element.qp->uobject->uevent, event); in ib_uverbs_qp_event_handler()
463 uverbs_uobj_event(&event->element.wq->uobject->uevent, event); in ib_uverbs_wq_event_handler()
468 uverbs_uobj_event(&event->element.srq->uobject->uevent, event); in ib_uverbs_srq_event_handler()
616 bundle.uobject = NULL; in ib_uverbs_write()
680 if (bundle.uobject) in ib_uverbs_write()
[all …]
Duverbs_std_types_mr.c39 static int uverbs_free_mr(struct ib_uobject *uobject, in uverbs_free_mr() argument
43 return ib_dereg_mr_user((struct ib_mr *)uobject->object, in uverbs_free_mr()
135 mr->uobject = uobj; in UVERBS_HANDLER()
249 mr->uobject = uobj; in UVERBS_HANDLER()
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()
339 struct ib_uobject *uobject; in lookup_get_fd_uobject() local
357 uobject = f->private_data; in lookup_get_fd_uobject()
363 if (f->f_op != fd_type->fops || uobject->ufile != ufile) { in lookup_get_fd_uobject()
368 uverbs_uobject_get(uobject); in lookup_get_fd_uobject()
369 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_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()
466 ret = uobj_destroy(destroy_attr->uobject, &pbundle->bundle); in ib_uverbs_run_method()
472 uobj_put_destroy(destroy_attr->uobject); in ib_uverbs_run_method()
514 attr->obj_attr.uobject, in bundle_destroy()
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.c306 mr->uobject = NULL; in __ib_alloc_pd()
1009 struct ib_usrq_object *uobject, in ib_create_srq_user() argument
1024 srq->uobject = uobject; in ib_create_srq_user()
1215 qp->uobject = uobj; in create_qp()
1294 xrc_qp->uobject = uobj; in ib_create_qp_user()
2090 if (!qp->uobject) in ib_destroy_qp_user()
2133 cq->uobject = NULL; in __ib_create_cq()
2302 mr->uobject = NULL; in ib_alloc_mr()
2363 mr->uobject = NULL; in ib_alloc_mr_integrity()
2540 wq->uobject = NULL; in ib_create_wq()
Dnldev.c622 cq->uobject->uevent.uobject.context->res.id)) in fill_res_cq_entry()
709 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.c1386 static int devx_obj_cleanup(struct ib_uobject *uobject, in devx_obj_cleanup() argument
1392 struct devx_obj *obj = uobject->object; in devx_obj_cleanup()
2372 static int devx_umem_cleanup(struct ib_uobject *uobject, in devx_umem_cleanup() argument
2376 struct devx_umem *obj = uobject->object; in devx_umem_cleanup()
Dfs.c2013 static int flow_matcher_cleanup(struct ib_uobject *uobject, in flow_matcher_cleanup() argument
2017 struct mlx5_ib_flow_matcher *obj = uobject->object; in flow_matcher_cleanup()
2257 static int steering_anchor_cleanup(struct ib_uobject *uobject, in steering_anchor_cleanup() argument
2261 struct mlx5_ib_steering_anchor *obj = uobject->object; in steering_anchor_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()
962 return pd->ibpd.uobject ? max_data_size - MTHCA_INLINE_HEADER_SIZE : 0; in mthca_max_inline_data()
1479 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()
Dqp.c1668 if (qhp->ibqp.uobject) { in flush_qp()
1796 if (!qhp->ibqp.uobject) in rdma_init()
1983 if (!internal && (qhp->ibqp.uobject || attrs->next_state != in c4iw_modify_qp()

12