Home
last modified time | relevance | path

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

12

/linux/drivers/infiniband/core/
H A 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 …]
H A 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()
H A 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()
H A Duverbs_cmd.c462 pd->uobject = uobj; in ib_uverbs_alloc_pd()
642 obj->uobject.object = xrcd; in ib_uverbs_open_xrcd()
657 uobj_finalize_uobj_create(&obj->uobject, attrs); in ib_uverbs_open_xrcd()
659 resp.xrcd_handle = obj->uobject.id; in ib_uverbs_open_xrcd()
666 uobj_alloc_abort(&obj->uobject, attrs); in ib_uverbs_open_xrcd()
688 int ib_uverbs_dealloc_xrcd(struct ib_uobject *uobject, struct ib_xrcd *xrcd, in ib_uverbs_dealloc_xrcd() argument
756 mr->uobject = uobj; in ib_uverbs_reg_mr()
858 new_mr->uobject = uobj; in ib_uverbs_rereg_mr()
957 mw->uobject = uobj; in ib_uverbs_alloc_mw()
1048 obj->uevent.uobject.user_handle = cmd->user_handle; in create_cq()
[all …]
H A 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()
185 cq->uobject = obj; in UVERBS_HANDLER()
199 obj->uevent.uobject.object = cq; in UVERBS_HANDLER()
200 obj->uevent.uobject.user_handle = user_handle; in UVERBS_HANDLER()
267 container_of(uobj, struct ib_ucq_object, uevent.uobject); in UVERBS_HANDLER()
H A 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()
H A 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()
H A 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()
H A Duverbs_main.c391 uobj = cq->uobject; in ib_uverbs_comp_handler()
393 entry->desc.comp.cq_handle = cq->uobject->uevent.uobject.user_handle; in ib_uverbs_comp_handler()
444 eobj->uobject.user_handle, event->event, in uverbs_uobj_event()
450 uverbs_uobj_event(&event->element.cq->uobject->uevent, event); in ib_uverbs_cq_event_handler()
456 if (!event->element.qp->uobject) in ib_uverbs_qp_event_handler()
459 uverbs_uobj_event(&event->element.qp->uobject->uevent, event); in ib_uverbs_qp_event_handler()
464 uverbs_uobj_event(&event->element.wq->uobject->uevent, event); in ib_uverbs_wq_event_handler()
469 uverbs_uobj_event(&event->element.srq->uobject->uevent, event); in ib_uverbs_srq_event_handler()
617 bundle.uobject = NULL; in ib_uverbs_write()
681 if (bundle.uobject) in ib_uverbs_write()
[all …]
H A Duverbs_ioctl.c329 o_attr->uobject = uverbs_get_uobject_from_file( in uverbs_process_attr()
332 if (IS_ERR(o_attr->uobject)) in uverbs_process_attr()
333 return PTR_ERR(o_attr->uobject); in uverbs_process_attr()
338 s64 id = o_attr->uobject->id; in uverbs_process_attr()
473 ret = uobj_destroy(destroy_attr->uobject, bundle); in ib_uverbs_run_method()
479 uobj_put_destroy(destroy_attr->uobject); in ib_uverbs_run_method()
523 attr->obj_attr.uobject, in bundle_destroy()
H A Dverbs.c364 mr->uobject = NULL; in __ib_alloc_pd()
1067 struct ib_usrq_object *uobject, in ib_create_srq_user() argument
1082 srq->uobject = uobject; in ib_create_srq_user()
1283 qp->uobject = uobj; in create_qp()
1364 xrc_qp->uobject = uobj; in ib_create_qp_user()
2163 if (!qp->uobject) in ib_destroy_qp_user()
2206 cq->uobject = NULL; in __ib_create_cq()
2378 mr->uobject = NULL; in ib_alloc_mr()
2439 mr->uobject = NULL; in ib_alloc_mr_integrity()
2616 wq->uobject = NULL; in ib_create_wq()
/linux/include/rdma/
H A 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()
H A Dib_verbs.h1529 * Userspace requested uobject deletion or initial try
1530 * to remove uobject via cleanup. Call could fail
1539 /* The driver failed to destroy the uobject and is being disconnected */
1590 struct ib_uobject *uobject;
1613 struct ib_uobject *uobject;
1631 struct ib_ucq_object *uobject;
1663 struct ib_usrq_object *uobject;
1717 struct ib_uwq_object *uobject;
1761 struct ib_uobject *uobject;
1835 struct ib_uqp_object *uobject;
1573 struct ib_uobject *uobject; global() member
1596 struct ib_uobject *uobject; global() member
1614 struct ib_ucq_object *uobject; global() member
1646 struct ib_usrq_object *uobject; global() member
1700 struct ib_uwq_object *uobject; global() member
1744 struct ib_uobject *uobject; global() member
1818 struct ib_uqp_object *uobject; global() member
1847 struct ib_uobject *uobject; global() member
1860 struct ib_uobject *uobject; global() member
1883 struct ib_uobject *uobject; /* user */ global() member
1899 struct ib_uobject *uobject; global() member
2139 struct ib_uobject *uobject; global() member
2195 struct ib_uobject *uobject; global() member
2309 struct ib_uobject *uobject; global() member
[all...]
H A Duverbs_ioctl.h614 struct ib_uobject *uobject; member
637 struct ib_uobject *uobject;
701 return attr->obj_attr.uobject->object; in uverbs_attr_get_obj()
712 return attr->obj_attr.uobject; in uverbs_attr_get_uobject()
/linux/drivers/infiniband/hw/mlx5/
H A 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()
H A Ddevx.c37 struct ib_uobject *uobject; member
1447 static int devx_obj_cleanup(struct ib_uobject *uobject, in devx_obj_cleanup() argument
1453 struct devx_obj *obj = uobject->object; in devx_obj_cleanup()
2435 static int devx_umem_cleanup(struct ib_uobject *uobject, in devx_umem_cleanup() argument
2439 struct devx_umem *obj = uobject->object; in devx_umem_cleanup()
2665 struct devx_obj *obj = devx_out->uobject->object; in devx_async_destroy_cb()
2686 atomic_set(&cmd->uobject->usecnt, 0); in devx_wait_async_destroy()
2695 struct ib_uobject *uobject; in mlx5_ib_ufile_hw_cleanup() local
2704 list_for_each_entry(uobject, &ufile->uobjects, list) { in mlx5_ib_ufile_hw_cleanup()
2705 WARN_ON(uverbs_try_lock_object(uobject, UVERBS_LOOKUP_WRITE)); in mlx5_ib_ufile_hw_cleanup()
[all …]
H A Dfs.c2574 static int flow_matcher_cleanup(struct ib_uobject *uobject, in flow_matcher_cleanup() argument
2578 struct mlx5_ib_flow_matcher *obj = uobject->object; in flow_matcher_cleanup()
2818 static int steering_anchor_cleanup(struct ib_uobject *uobject, in steering_anchor_cleanup() argument
2822 struct mlx5_ib_steering_anchor *obj = uobject->object; in steering_anchor_cleanup()
H A Dqp.c4340 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
4442 !ibqp->uobject && qp->type != IB_QPT_XRC_TGT) { in __mlx5_ib_modify_qp()
5145 if (!ibqp->uobject) { in mlx5_ib_query_qp()
/linux/drivers/infiniband/hw/mlx4/
H A Dcq.c409 if (ibcq->uobject) { in mlx4_ib_resize_cq()
433 if (ibcq->uobject) { in mlx4_ib_resize_cq()
467 if (!ibcq->uobject) in mlx4_ib_resize_cq()
/linux/drivers/infiniband/hw/mthca/
H A 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()
H A Dmthca_srq.c361 if (!srq->ibsrq.uobject) { in mthca_free_srq()
/linux/drivers/infiniband/hw/cxgb4/
H A Drestrack.c382 if (ibcq->uobject) in c4iw_fill_res_cq_entry()
H A Dqp.c1673 if (qhp->ibqp.uobject) { in flush_qp()
1801 if (!qhp->ibqp.uobject) in rdma_init()
1988 if (!internal && (qhp->ibqp.uobject || attrs->next_state != in c4iw_modify_qp()
/linux/drivers/infiniband/hw/bnxt_re/
H A Dib_verbs.c3288 if (!ibcq->uobject) { in bnxt_re_resize_cq()
4776 static int alloc_page_obj_cleanup(struct ib_uobject *uobject, in alloc_page_obj_cleanup() argument
4780 struct bnxt_re_user_mmap_entry *entry = uobject->object; in alloc_page_obj_cleanup()
4914 static int get_toggle_mem_obj_cleanup(struct ib_uobject *uobject, in get_toggle_mem_obj_cleanup() argument
4918 struct bnxt_re_user_mmap_entry *entry = uobject->object; in get_toggle_mem_obj_cleanup()
/linux/drivers/infiniband/hw/ionic/
H A Dionic_controlpath.c1327 const u16 dbid = ionic_obj_dbid(dev, pd->ibpd.uobject); in ionic_create_qp_cmd()
2553 qp->ibqp.uobject) in ionic_check_modify_qp()

12