Home
last modified time | relevance | path

Searched refs:uobj (Results 1 – 20 of 20) sorted by relevance

/linux/include/rdma/
H A Duverbs_std_types.h34 static inline void *_uobj_get_obj_read(struct ib_uobject *uobj) in _uobj_get_obj_read() argument
36 if (IS_ERR(uobj)) in _uobj_get_obj_read()
38 return uobj->object; in _uobj_get_obj_read()
62 static inline void uobj_put_destroy(struct ib_uobject *uobj) in uobj_put_destroy() argument
64 rdma_lookup_put_uobject(uobj, UVERBS_LOOKUP_DESTROY); in uobj_put_destroy()
67 static inline void uobj_put_read(struct ib_uobject *uobj) in uobj_put_read() argument
69 rdma_lookup_put_uobject(uobj, UVERBS_LOOKUP_READ); in uobj_put_read()
75 static inline void uobj_put_write(struct ib_uobject *uobj) in uobj_put_write() argument
77 rdma_lookup_put_uobject(uobj, UVERBS_LOOKUP_WRITE); in uobj_put_write()
80 static inline void uobj_alloc_abort(struct ib_uobject *uobj, in uobj_alloc_abort() argument
[all …]
H A Duverbs_types.h60 /* This consumes the kref on uobj */
61 void (*alloc_commit)(struct ib_uobject *uobj);
62 /* This does not consume the kref on uobj */
63 void (*alloc_abort)(struct ib_uobject *uobj);
68 void (*lookup_put)(struct ib_uobject *uobj, enum rdma_lookup_mode mode);
69 /* This does not consume the kref on uobj */
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,
[all...]
/linux/drivers/infiniband/core/
H A Duverbs_std_types_async_fd.c14 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()
H A Duverbs_cmd.c191 struct ib_uobject *uobj = ufd_get_read(UVERBS_OBJECT_COMP_CHANNEL, in _ib_uverbs_lookup_comp_file() local
194 if (IS_ERR(uobj)) in _ib_uverbs_lookup_comp_file()
195 return (void *)uobj; in _ib_uverbs_lookup_comp_file()
197 uverbs_uobject_get(uobj); in _ib_uverbs_lookup_comp_file()
198 uobj_put_read(uobj); in _ib_uverbs_lookup_comp_file()
200 return container_of(uobj, struct ib_uverbs_completion_event_file, in _ib_uverbs_lookup_comp_file()
201 uobj); in _ib_uverbs_lookup_comp_file()
281 struct ib_uobject *uobj; in ib_uverbs_get_context() local
292 uobj = uobj_alloc(UVERBS_OBJECT_ASYNC_EVENT, attrs, &ib_dev); in ib_uverbs_get_context()
293 if (IS_ERR(uobj)) { in ib_uverbs_get_context()
[all …]
H A Duverbs_std_types_dm.c53 struct ib_uobject *uobj = in UVERBS_HANDLER() local
79 dm->uobject = uobj; in UVERBS_HANDLER()
82 uobj->object = dm; in UVERBS_HANDLER()
H A Duverbs_std_types_mr.c87 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()
H A Duverbs_std_types_cq.c100 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()
H A Duverbs_std_types_counters.c58 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()
H A Duverbs_std_types_wq.c111 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()
H A Duverbs_std_types.c158 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()
H A Duverbs_std_types_srq.c140 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()
H A Drdma_core.h51 int uobj_destroy(struct ib_uobject *uobj, struct uverbs_attr_bundle *attrs);
66 void uverbs_finalize_object(struct ib_uobject *uobj,
H A Duverbs_std_types_qp.c282 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()
H A Dcore_priv.h322 struct ib_uqp_object *uobj, const char *caller);
H A Dverbs.c1213 struct ib_uqp_object *uobj, const char *caller) in create_qp() argument
1228 qp->uobject = uobj; in create_qp()
1292 struct ib_uqp_object *uobj, const char *caller) in ib_create_qp_user() argument
1299 qp = create_qp(dev, pd, attr, udata, uobj, NULL); in ib_create_qp_user()
1309 xrc_qp->uobject = uobj; in ib_create_qp_user()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Duchan.c77 struct nvkm_uobj *uobj = container_of(oproxy, typeof(*uobj), oproxy); in nvkm_uchan_object_fini_1() local
78 struct nvkm_chan *chan = uobj->chan; in nvkm_uchan_object_fini_1()
79 struct nvkm_cctx *cctx = uobj->cctx; in nvkm_uchan_object_fini_1()
100 struct nvkm_uobj *uobj = container_of(oproxy, typeof(*uobj), oproxy); in nvkm_uchan_object_init_0() local
101 struct nvkm_chan *chan = uobj->chan; in nvkm_uchan_object_init_0()
102 struct nvkm_cctx *cctx = uobj->cctx; in nvkm_uchan_object_init_0()
133 struct nvkm_uobj *uobj = container_of(oproxy, typeof(*uobj), oproxy); in nvkm_uchan_object_dtor() local
136 if (!uobj->cctx) in nvkm_uchan_object_dtor()
139 engn = uobj->cctx->vctx->ectx->engn; in nvkm_uchan_object_dtor()
141 engn->func->ramht_del(uobj->chan, uobj->hash); in nvkm_uchan_object_dtor()
[all …]
/linux/drivers/infiniband/hw/mlx5/
H A Dqos.c28 struct ib_uobject *uobj = uverbs_attr_get_uobject(attrs, in UVERBS_HANDLER() local
73 uobj->object = pp_entry; in UVERBS_HANDLER()
H A Ddm.c207 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()
H A Dfs.c1916 struct ib_uobject *uobj; in UVERBS_HANDLER() local
1925 uobj = uverbs_attr_get_uobject(attrs, MLX5_IB_ATTR_CREATE_FLOW_HANDLE); in UVERBS_HANDLER()
2005 ib_set_flow(uobj, &flow_handler->ibflow, qp, &dev->ib_dev, uflow_res); in UVERBS_HANDLER()
2344 struct ib_uobject *uobj = uverbs_attr_get_uobject( in UVERBS_HANDLER() local
2389 uobj->object = obj; in UVERBS_HANDLER()
2402 struct ib_uobject *uobj = uverbs_attr_get_uobject( in UVERBS_HANDLER() local
2461 uobj->object = obj; in UVERBS_HANDLER()
2525 struct ib_uobject *uobj = uverbs_attr_get_uobject( in UVERBS_HANDLER() local
2554 uverbs_flow_action_fill_action(action, uobj, &mdev->ib_dev, in UVERBS_HANDLER()
2651 struct ib_uobject *uobj = uverbs_attr_get_uobject(attrs, in UVERBS_HANDLER() local
[all …]
/linux/drivers/infiniband/hw/bnxt_re/
H A Dib_verbs.c4504 struct ib_uobject *uobj = uverbs_attr_get_uobject(attrs, BNXT_RE_ALLOC_PAGE_HANDLE); in UVERBS_HANDLER() local
4563 uobj->object = entry; in UVERBS_HANDLER()
4647 struct ib_uobject *uobj = uverbs_attr_get_uobject(attrs, BNXT_RE_TOGGLE_MEM_HANDLE); in UVERBS_HANDLER() local
4701 uobj->object = entry; in UVERBS_HANDLER()