Home
last modified time | relevance | path

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

12

/linux-6.1.9/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_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_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_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_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_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_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_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.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.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()
Duverbs_main.c381 uobj = cq->uobject; in ib_uverbs_comp_handler()
383 entry->desc.comp.cq_handle = cq->uobject->uevent.uobject.user_handle; in ib_uverbs_comp_handler()
434 eobj->uobject.user_handle, event->event, in uverbs_uobj_event()
440 uverbs_uobj_event(&event->element.cq->uobject->uevent, event); in ib_uverbs_cq_event_handler()
446 if (!event->element.qp->uobject) in ib_uverbs_qp_event_handler()
449 uverbs_uobj_event(&event->element.qp->uobject->uevent, event); in ib_uverbs_qp_event_handler()
454 uverbs_uobj_event(&event->element.wq->uobject->uevent, event); in ib_uverbs_wq_event_handler()
459 uverbs_uobj_event(&event->element.srq->uobject->uevent, event); in ib_uverbs_srq_event_handler()
607 bundle.uobject = NULL; in ib_uverbs_write()
671 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()
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_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()
1007 struct ib_usrq_object *uobject, in ib_create_srq_user() argument
1022 srq->uobject = uobject; in ib_create_srq_user()
1213 qp->uobject = uobj; in create_qp()
1292 xrc_qp->uobject = uobj; in ib_create_qp_user()
2021 if (!qp->uobject) in ib_destroy_qp_user()
2064 cq->uobject = NULL; in __ib_create_cq()
2233 mr->uobject = NULL; in ib_alloc_mr()
2294 mr->uobject = NULL; in ib_alloc_mr_integrity()
2471 wq->uobject = NULL; in ib_create_wq()
/linux-6.1.9/include/rdma/
Duverbs_std_types.h73 uobj_put_read((_obj)->uobject)
96 WARN_ON(attrs->uobject); in uobj_finalize_uobj_create()
97 attrs->uobject = uobj; in uobj_finalize_uobj_create()
122 action->uobject = uobj; in uverbs_flow_action_fill_action()
136 struct ib_uobject uobject; member
153 ibflow->uobject = uobj; in ib_set_flow()
161 uflow = container_of(uobj, typeof(*uflow), uobject); in ib_set_flow()
Duverbs_types.h131 static inline void uverbs_uobject_get(struct ib_uobject *uobject) in uverbs_uobject_get() argument
133 kref_get(&uobject->ref); in uverbs_uobject_get()
135 void uverbs_uobject_put(struct ib_uobject *uobject);
Duverbs_ioctl.h612 struct ib_uobject *uobject; member
634 struct ib_uobject *uobject; member
697 return attr->obj_attr.uobject->object; in uverbs_attr_get_obj()
708 return attr->obj_attr.uobject; in uverbs_attr_get_uobject()
Dib_verbs.h1542 struct ib_uobject *uobject; member
1565 struct ib_uobject *uobject; member
1583 struct ib_ucq_object *uobject; member
1615 struct ib_usrq_object *uobject; member
1669 struct ib_uwq_object *uobject; member
1713 struct ib_uobject *uobject; member
1786 struct ib_uqp_object *uobject; member
1814 struct ib_uobject *uobject; member
1829 struct ib_uobject *uobject; /* user */ member
1844 struct ib_uobject *uobject; member
[all …]
/linux-6.1.9/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()
Dfs.c2016 static int flow_matcher_cleanup(struct ib_uobject *uobject, in flow_matcher_cleanup() argument
2020 struct mlx5_ib_flow_matcher *obj = uobject->object; in flow_matcher_cleanup()
2029 static int steering_anchor_cleanup(struct ib_uobject *uobject, in steering_anchor_cleanup() argument
2033 struct mlx5_ib_steering_anchor *obj = uobject->object; in steering_anchor_cleanup()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/drivers/infiniband/hw/cxgb4/
Drestrack.c382 if (ibcq->uobject) in c4iw_fill_res_cq_entry()

12