/linux/drivers/infiniband/core/ |
A D | rdma_core.c | 136 uobj->uapi_object->type_class->alloc_abort(uobj); in uverbs_destroy_uobject() 157 uobj->uapi_object->type_class->remove_handle(uobj); in uverbs_destroy_uobject() 239 return uobj; in __uobj_get_destroy() 275 if (!uobj) in alloc_uobj() 293 return uobj; in alloc_uobj() 326 if (!uobj || !kref_get_unless_zero(&uobj->ref)) in lookup_get_idr_uobject() 418 uobj->uapi_object->type_class->lookup_put(uobj, mode); in rdma_lookup_get_uobject() 528 xa_erase(&uobj->ufile->idr, uobj->id); in alloc_abort_idr_uobject() 554 xa_erase(&uobj->ufile->idr, uobj->id); in remove_handle_idr_uobject() 658 uobj->uapi_object->type_class->alloc_commit(uobj); in rdma_alloc_commit_uobject() [all …]
|
A D | uverbs_std_types_async_fd.c | 14 struct ib_uobject *uobj = in UVERBS_HANDLER() local 18 container_of(uobj, struct ib_uverbs_async_event_file, uobj)); in UVERBS_HANDLER() 22 static void uverbs_async_event_destroy_uobj(struct ib_uobject *uobj, in uverbs_async_event_destroy_uobj() argument 26 container_of(uobj, struct ib_uverbs_async_event_file, uobj); in uverbs_async_event_destroy_uobj() 38 struct ib_uobject *uobj = filp->private_data; in uverbs_async_event_release() local 41 if (!uobj) in uverbs_async_event_release() 45 container_of(uobj, struct ib_uverbs_async_event_file, uobj); in uverbs_async_event_release() 53 uverbs_uobject_get(uobj); in uverbs_async_event_release() 56 uverbs_uobject_put(uobj); in uverbs_async_event_release()
|
A D | uverbs_cmd.c | 194 if (IS_ERR(uobj)) in _ib_uverbs_lookup_comp_file() 201 uobj); in _ib_uverbs_lookup_comp_file() 311 container_of(uobj, struct ib_uverbs_async_event_file, uobj)); in ib_uverbs_get_context() 433 if (IS_ERR(uobj)) in ib_uverbs_alloc_pd() 713 if (IS_ERR(uobj)) in ib_uverbs_reg_mr() 791 if (IS_ERR(uobj)) in ib_uverbs_rereg_mr() 856 uobj = NULL; in ib_uverbs_rereg_mr() 882 if (uobj) in ib_uverbs_rereg_mr() 915 if (IS_ERR(uobj)) in ib_uverbs_alloc_mw() 989 if (IS_ERR(uobj)) in ib_uverbs_create_comp_channel() [all …]
|
A D | uverbs.h | 126 struct ib_uobject uobj; member 132 struct ib_uobject uobj; member 229 struct ib_ucq_object *uobj); 230 void ib_uverbs_release_uevent(struct ib_uevent_object *uobj); 247 struct ib_uqp_object *uobj); 313 uobj); in ib_uverbs_get_async_event() 315 uverbs_uobject_get(&async_ev_file->uobj); in ib_uverbs_get_async_event()
|
A D | uverbs_main.c | 132 struct ib_ucq_object *uobj) in ib_uverbs_release_ucq() argument 144 uverbs_uobject_put(&ev_file->uobj); in ib_uverbs_release_ucq() 147 ib_uverbs_release_uevent(&uobj->uevent); in ib_uverbs_release_ucq() 164 uverbs_uobject_put(&async_file->uobj); in ib_uverbs_release_uevent() 168 struct ib_uqp_object *uobj) in ib_uverbs_detach_umcast() argument 204 uverbs_uobject_put(&file->default_async_file->uobj); in ib_uverbs_release_file() 362 struct ib_ucq_object *uobj; in ib_uverbs_comp_handler() local 381 uobj = cq->uobject; in ib_uverbs_comp_handler() 384 entry->counter = &uobj->comp_events_reported; in ib_uverbs_comp_handler() 387 list_add_tail(&entry->obj_list, &uobj->comp_list); in ib_uverbs_comp_handler() [all …]
|
A D | uverbs_std_types_mr.c | 87 struct ib_uobject *uobj = in UVERBS_HANDLER() local 135 mr->uobject = uobj; in UVERBS_HANDLER() 142 uobj->object = mr; in UVERBS_HANDLER() 189 struct ib_uobject *uobj = in UVERBS_HANDLER() local 249 mr->uobject = uobj; in UVERBS_HANDLER() 255 uobj->object = mr; in UVERBS_HANDLER()
|
A D | uverbs_std_types_dm.c | 53 struct ib_uobject *uobj = in UVERBS_HANDLER() local 79 dm->uobject = uobj; in UVERBS_HANDLER() 82 uobj->object = dm; in UVERBS_HANDLER()
|
A D | uverbs_std_types_cq.c | 100 uobj); in UVERBS_HANDLER() 149 uverbs_uobject_put(&obj->uevent.event_file->uobj); in UVERBS_HANDLER() 188 struct ib_uobject *uobj = in UVERBS_HANDLER() local 191 container_of(uobj, struct ib_ucq_object, uevent.uobject); in UVERBS_HANDLER()
|
A D | uverbs_std_types_counters.c | 58 struct ib_uobject *uobj = uverbs_attr_get_uobject( in UVERBS_HANDLER() local 77 counters->uobject = uobj; in UVERBS_HANDLER() 78 uobj->object = counters; in UVERBS_HANDLER()
|
A D | uverbs_std_types_wq.c | 111 uverbs_uobject_put(&obj->uevent.event_file->uobj); in UVERBS_HANDLER() 162 struct ib_uobject *uobj = in UVERBS_HANDLER() local 165 container_of(uobj, struct ib_uwq_object, uevent.uobject); in UVERBS_HANDLER()
|
A D | uverbs_std_types_flow_action.c | 309 struct ib_uobject *uobj = uverbs_attr_get_uobject( in UVERBS_HANDLER() local 329 uverbs_flow_action_fill_action(action, uobj, ib_dev, in UVERBS_HANDLER() 338 struct ib_uobject *uobj = uverbs_attr_get_uobject( in UVERBS_HANDLER() local 340 struct ib_flow_action *action = uobj->object; in UVERBS_HANDLER()
|
A D | uverbs_std_types.c | 158 uverbs_completion_event_file_destroy_uobj(struct ib_uobject *uobj, in uverbs_completion_event_file_destroy_uobj() argument 162 container_of(uobj, struct ib_uverbs_completion_event_file, in uverbs_completion_event_file_destroy_uobj() 163 uobj); in uverbs_completion_event_file_destroy_uobj()
|
A D | uverbs_std_types_srq.c | 140 uverbs_uobject_put(&obj->uevent.event_file->uobj); in UVERBS_HANDLER() 200 struct ib_uobject *uobj = in UVERBS_HANDLER() local 203 container_of(uobj, struct ib_usrq_object, uevent.uobject); in UVERBS_HANDLER()
|
A D | rdma_core.h | 51 int uobj_destroy(struct ib_uobject *uobj, struct uverbs_attr_bundle *attrs); 66 void uverbs_finalize_object(struct ib_uobject *uobj,
|
A D | uverbs_std_types_qp.c | 282 uverbs_uobject_put(&obj->uevent.event_file->uobj); in UVERBS_HANDLER() 348 struct ib_uobject *uobj = in UVERBS_HANDLER() local 351 container_of(uobj, struct ib_uqp_object, uevent.uobject); in UVERBS_HANDLER()
|
A D | core_priv.h | 322 struct ib_uqp_object *uobj, const char *caller);
|
A D | verbs.c | 1206 struct ib_uqp_object *uobj, const char *caller) in create_qp() argument 1221 qp->uobject = uobj; in create_qp() 1283 struct ib_uqp_object *uobj, const char *caller) in ib_create_qp_user() argument 1290 qp = create_qp(dev, pd, attr, udata, uobj, NULL); in ib_create_qp_user() 1300 xrc_qp->uobject = uobj; in ib_create_qp_user()
|
/linux/include/rdma/ |
A D | uverbs_std_types.h | 36 if (IS_ERR(uobj)) in _uobj_get_obj_read() 38 return uobj->object; in _uobj_get_obj_read() 97 attrs->uobject = uobj; in uobj_finalize_uobj_create() 106 if (!IS_ERR(uobj)) in __uobj_alloc() 108 return uobj; in __uobj_alloc() 115 struct ib_uobject *uobj, in uverbs_flow_action_fill_action() argument 122 action->uobject = uobj; in uverbs_flow_action_fill_action() 123 uobj->object = action; in uverbs_flow_action_fill_action() 152 uobj->object = ibflow; in ib_set_flow() 153 ibflow->uobject = uobj; in ib_set_flow() [all …]
|
A D | uverbs_types.h | 61 void (*alloc_commit)(struct ib_uobject *uobj); 63 void (*alloc_abort)(struct ib_uobject *uobj); 68 void (*lookup_put)(struct ib_uobject *uobj, enum rdma_lookup_mode mode); 70 int __must_check (*destroy_hw)(struct ib_uobject *uobj, 73 void (*remove_handle)(struct ib_uobject *uobj); 103 int __must_check (*destroy_object)(struct ib_uobject *uobj, 112 void rdma_lookup_put_uobject(struct ib_uobject *uobj, 116 void rdma_alloc_abort_uobject(struct ib_uobject *uobj, 119 void rdma_alloc_commit_uobject(struct ib_uobject *uobj, 146 void (*destroy_object)(struct ib_uobject *uobj,
|
/linux/drivers/infiniband/hw/mlx5/ |
A D | devx.c | 81 struct ib_uobject uobj; member 600 switch (uobj_get_object_id(uobj)) { in devx_is_valid_obj_id() 1519 uobj->object = obj; in UVERBS_HANDLER() 1651 struct ib_uobject uobj; member 1675 uobj); in UVERBS_HANDLER() 1701 uobj); in UVERBS_HANDLER() 1777 uobj); in UVERBS_HANDLER() 2005 uobj); in UVERBS_HANDLER() 2304 uobj->object = obj; in UVERBS_HANDLER() 2746 uobj); in devx_async_cmd_event_destroy_uobj() [all …]
|
A D | qos.c | 28 struct ib_uobject *uobj = uverbs_attr_get_uobject(attrs, in UVERBS_HANDLER() local 73 uobj->object = pp_entry; in UVERBS_HANDLER()
|
A D | dm.c | 207 struct ib_uobject *uobj = uverbs_attr_get_uobject( in UVERBS_HANDLER() local 209 struct mlx5_ib_dev *dev = to_mdev(uobj->context->device); in UVERBS_HANDLER() 210 struct ib_dm *ibdm = uobj->object; in UVERBS_HANDLER() 244 err = add_dm_mmap_entry(uobj->context, &op_entry->mentry, in UVERBS_HANDLER()
|
A D | fs.c | 2123 struct ib_uobject *uobj; in UVERBS_HANDLER() local 2132 uobj = uverbs_attr_get_uobject(attrs, MLX5_IB_ATTR_CREATE_FLOW_HANDLE); in UVERBS_HANDLER() 2212 ib_set_flow(uobj, &flow_handler->ibflow, qp, &dev->ib_dev, uflow_res); in UVERBS_HANDLER() 2284 struct ib_uobject *uobj = uverbs_attr_get_uobject( in UVERBS_HANDLER() local 2329 uobj->object = obj; in UVERBS_HANDLER() 2384 struct ib_uobject *uobj = uverbs_attr_get_uobject( in UVERBS_HANDLER() local 2413 uverbs_flow_action_fill_action(action, uobj, &mdev->ib_dev, in UVERBS_HANDLER() 2510 struct ib_uobject *uobj = uverbs_attr_get_uobject(attrs, in UVERBS_HANDLER() local 2560 uverbs_flow_action_fill_action(&maction->ib_action, uobj, &mdev->ib_dev, in UVERBS_HANDLER()
|
A D | main.c | 3413 struct ib_uobject *uobj = uverbs_attr_get_uobject( in UVERBS_HANDLER() local 3431 uobj->object = entry; in UVERBS_HANDLER() 3526 struct ib_uobject *uobj = uverbs_attr_get_uobject( in UVERBS_HANDLER() local 3558 uobj->object = entry; in UVERBS_HANDLER()
|