| /linux/drivers/infiniband/core/ |
| H A D | uverbs_std_types_wq.c | 10 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 D | uverbs_std_types_dm.c | 37 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 D | uverbs_std_types_counters.c | 38 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 D | uverbs_std_types_flow_action.c | 37 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 D | uverbs_main.c | 332 uobj = cq->uobject; in ib_uverbs_comp_handler() 334 entry->desc.comp.cq_handle = cq->uobject->uevent.uobject.user_handle; in ib_uverbs_comp_handler() 385 eobj->uobject.user_handle, event->event, in uverbs_uobj_event() 391 uverbs_uobj_event(&event->element.cq->uobject->uevent, event); in ib_uverbs_cq_event_handler() 397 if (!event->element.qp->uobject) in ib_uverbs_qp_event_handler() 400 uverbs_uobj_event(&event->element.qp->uobject->uevent, event); in ib_uverbs_qp_event_handler() 405 uverbs_uobj_event(&event->element.wq->uobject->uevent, event); in ib_uverbs_wq_event_handler() 410 uverbs_uobj_event(&event->element.srq->uobject->uevent, event); in ib_uverbs_srq_event_handler() 558 bundle.uobject = NULL; in ib_uverbs_write() 623 if (bundle.uobject) in ib_uverbs_write() [all …]
|
| H A D | rdma_core.c | 84 * In order to indicate we no longer needs this uobject, uverbs_uobject_put 85 * is called. When the reference count is decreased, the uobject is freed. 88 void uverbs_uobject_put(struct ib_uobject *uobject) in uverbs_uobject_put() argument 90 kref_put(&uobject->ref, uverbs_uobject_free); in uverbs_uobject_put() 141 * also the uobject itself must be locked for write. 147 * uobject cannot be on the uobjects_lists 153 * For all other destroy modes this function internally unlocks the uobject 220 * LOOKUP_DESTROY uobject kref. 230 * Once the uobject is destroyed by RDMA_REMOVE_DESTROY then it is left in uobj_destroy() 376 struct ib_uobject *uobject; in lookup_get_fd_uobject() local [all...] |
| H A D | verbs.c | 366 mr->uobject = NULL; in __ib_alloc_pd() 1063 * @uobject: uobject pointer if this is not a kernel SRQ 1073 struct ib_usrq_object *uobject, in ib_create_srq_user() 1088 srq->uobject = uobject; in ib_create_srq_user() 1292 qp->uobject = uobj; in create_qp() 1376 xrc_qp->uobject = uobj; in ib_create_qp_user() 2178 if (!qp->uobject) in ib_destroy_qp_user() 2393 mr->uobject in ib_alloc_mr() 1072 ib_create_srq_user(struct ib_pd * pd,struct ib_srq_init_attr * srq_init_attr,struct ib_usrq_object * uobject,struct ib_udata * udata) ib_create_srq_user() argument [all...] |
| H A D | uverbs_std_types_dmabuf.c | 72 * UVERBS_METHOD_DMABUF_ALLOC. The abort cleans up the uobject. in uverbs_dmabuf_release() 78 * uverbs_uobject_release() may drop the last reference to the uobject, 85 * The dma_buf is freed once this function returns. If the uobject was 112 ->obj_attr.uobject; in UVERBS_HANDLER() 165 /* Tell uverbs_dmabuf_release() that the uobject is being aborted */ in uverbs_dmabuf_fd_destroy_uobj()
|
| H A D | nldev.c | 704 if (cq->uobject && cq->uobject->uevent.uobject.context && in fill_res_cq_entry() 706 cq->uobject->uevent.uobject.context->res.id)) in fill_res_cq_entry() 794 if (pd->uobject && pd->uobject->context && in fill_res_pd_entry() 796 pd->uobject->context->res.id)) in fill_res_pd_entry()
|
| /linux/include/rdma/ |
| H A D | uverbs_std_types.h | 73 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 D | uverbs_types.h | 131 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);
|
| /linux/drivers/infiniband/hw/bnxt_re/ |
| H A D | uapi.c | 149 static int alloc_page_obj_cleanup(struct ib_uobject *uobject, in alloc_page_obj_cleanup() argument 153 struct bnxt_re_user_mmap_entry *entry = uobject->object; in alloc_page_obj_cleanup() 365 static int get_toggle_mem_obj_cleanup(struct ib_uobject *uobject, in get_toggle_mem_obj_cleanup() argument 369 struct bnxt_re_toggle_mem *tmem = uobject->object; in get_toggle_mem_obj_cleanup() 496 static int bnxt_re_dbr_cleanup(struct ib_uobject *uobject, in bnxt_re_dbr_cleanup() argument 500 struct bnxt_re_dbr_obj *obj = uobject->object; in bnxt_re_dbr_cleanup()
|
| /linux/drivers/infiniband/hw/mthca/ |
| H A D | mthca_qp.c | 626 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 D | mthca_srq.c | 361 if (!srq->ibsrq.uobject) { in mthca_free_srq()
|
| /linux/drivers/infiniband/hw/cxgb4/ |
| H A D | restrack.c | 382 if (ibcq->uobject) in c4iw_fill_res_cq_entry()
|
| H A D | cm.c | 1912 if (ep->com.qp->ibqp.uobject) in complete_cached_srq_buffers()
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | main.c | 4093 static int mmap_obj_cleanup(struct ib_uobject *uobject, in mlx5_ib_init_multiport_master() 4097 struct mlx5_user_mmap_entry *obj = uobject->object; in mlx5_ib_init_multiport_master() 4158 mmap_obj_cleanup(struct ib_uobject * uobject,enum rdma_remove_reason why,struct uverbs_attr_bundle * attrs) mmap_obj_cleanup() argument
|