Lines Matching refs:uobj
161 struct ib_ucq_object *uobj) in ib_uverbs_release_ucq() argument
167 list_for_each_entry_safe(evt, tmp, &uobj->comp_list, obj_list) { in ib_uverbs_release_ucq()
177 list_for_each_entry_safe(evt, tmp, &uobj->async_list, obj_list) { in ib_uverbs_release_ucq()
185 struct ib_uevent_object *uobj) in ib_uverbs_release_uevent() argument
190 list_for_each_entry_safe(evt, tmp, &uobj->event_list, obj_list) { in ib_uverbs_release_uevent()
198 struct ib_uqp_object *uobj) in ib_uverbs_detach_umcast() argument
202 list_for_each_entry_safe(mcast, tmp, &uobj->mcast_list, list) { in ib_uverbs_detach_umcast()
212 struct ib_uobject *uobj, *tmp; in ib_uverbs_cleanup_ucontext() local
216 list_for_each_entry_safe(uobj, tmp, &context->ah_list, list) { in ib_uverbs_cleanup_ucontext()
217 struct ib_ah *ah = uobj->object; in ib_uverbs_cleanup_ucontext()
219 idr_remove_uobj(&ib_uverbs_ah_idr, uobj); in ib_uverbs_cleanup_ucontext()
221 kfree(uobj); in ib_uverbs_cleanup_ucontext()
225 list_for_each_entry_safe(uobj, tmp, &context->mw_list, list) { in ib_uverbs_cleanup_ucontext()
226 struct ib_mw *mw = uobj->object; in ib_uverbs_cleanup_ucontext()
228 idr_remove_uobj(&ib_uverbs_mw_idr, uobj); in ib_uverbs_cleanup_ucontext()
230 kfree(uobj); in ib_uverbs_cleanup_ucontext()
233 list_for_each_entry_safe(uobj, tmp, &context->rule_list, list) { in ib_uverbs_cleanup_ucontext()
234 struct ib_flow *flow_id = uobj->object; in ib_uverbs_cleanup_ucontext()
236 idr_remove_uobj(&ib_uverbs_rule_idr, uobj); in ib_uverbs_cleanup_ucontext()
238 kfree(uobj); in ib_uverbs_cleanup_ucontext()
241 list_for_each_entry_safe(uobj, tmp, &context->qp_list, list) { in ib_uverbs_cleanup_ucontext()
242 struct ib_qp *qp = uobj->object; in ib_uverbs_cleanup_ucontext()
244 container_of(uobj, struct ib_uqp_object, uevent.uobject); in ib_uverbs_cleanup_ucontext()
246 idr_remove_uobj(&ib_uverbs_qp_idr, uobj); in ib_uverbs_cleanup_ucontext()
257 list_for_each_entry_safe(uobj, tmp, &context->srq_list, list) { in ib_uverbs_cleanup_ucontext()
258 struct ib_srq *srq = uobj->object; in ib_uverbs_cleanup_ucontext()
260 container_of(uobj, struct ib_uevent_object, uobject); in ib_uverbs_cleanup_ucontext()
262 idr_remove_uobj(&ib_uverbs_srq_idr, uobj); in ib_uverbs_cleanup_ucontext()
268 list_for_each_entry_safe(uobj, tmp, &context->cq_list, list) { in ib_uverbs_cleanup_ucontext()
269 struct ib_cq *cq = uobj->object; in ib_uverbs_cleanup_ucontext()
272 container_of(uobj, struct ib_ucq_object, uobject); in ib_uverbs_cleanup_ucontext()
274 idr_remove_uobj(&ib_uverbs_cq_idr, uobj); in ib_uverbs_cleanup_ucontext()
280 list_for_each_entry_safe(uobj, tmp, &context->mr_list, list) { in ib_uverbs_cleanup_ucontext()
281 struct ib_mr *mr = uobj->object; in ib_uverbs_cleanup_ucontext()
283 idr_remove_uobj(&ib_uverbs_mr_idr, uobj); in ib_uverbs_cleanup_ucontext()
285 kfree(uobj); in ib_uverbs_cleanup_ucontext()
289 list_for_each_entry_safe(uobj, tmp, &context->xrcd_list, list) { in ib_uverbs_cleanup_ucontext()
290 struct ib_xrcd *xrcd = uobj->object; in ib_uverbs_cleanup_ucontext()
292 container_of(uobj, struct ib_uxrcd_object, uobject); in ib_uverbs_cleanup_ucontext()
294 idr_remove_uobj(&ib_uverbs_xrcd_idr, uobj); in ib_uverbs_cleanup_ucontext()
300 list_for_each_entry_safe(uobj, tmp, &context->pd_list, list) { in ib_uverbs_cleanup_ucontext()
301 struct ib_pd *pd = uobj->object; in ib_uverbs_cleanup_ucontext()
303 idr_remove_uobj(&ib_uverbs_pd_idr, uobj); in ib_uverbs_cleanup_ucontext()
305 kfree(uobj); in ib_uverbs_cleanup_ucontext()
468 struct ib_ucq_object *uobj; in ib_uverbs_comp_handler() local
487 uobj = container_of(cq->uobject, struct ib_ucq_object, uobject); in ib_uverbs_comp_handler()
490 entry->counter = &uobj->comp_events_reported; in ib_uverbs_comp_handler()
493 list_add_tail(&entry->obj_list, &uobj->comp_list); in ib_uverbs_comp_handler()
536 struct ib_ucq_object *uobj = container_of(event->element.cq->uobject, in ib_uverbs_cq_event_handler() local
539 ib_uverbs_async_handler(uobj->uverbs_file, uobj->uobject.user_handle, in ib_uverbs_cq_event_handler()
540 event->event, &uobj->async_list, in ib_uverbs_cq_event_handler()
541 &uobj->async_events_reported); in ib_uverbs_cq_event_handler()
546 struct ib_uevent_object *uobj; in ib_uverbs_qp_event_handler() local
552 uobj = container_of(event->element.qp->uobject, in ib_uverbs_qp_event_handler()
555 ib_uverbs_async_handler(context_ptr, uobj->uobject.user_handle, in ib_uverbs_qp_event_handler()
556 event->event, &uobj->event_list, in ib_uverbs_qp_event_handler()
557 &uobj->events_reported); in ib_uverbs_qp_event_handler()
562 struct ib_uevent_object *uobj; in ib_uverbs_srq_event_handler() local
564 uobj = container_of(event->element.srq->uobject, in ib_uverbs_srq_event_handler()
567 ib_uverbs_async_handler(context_ptr, uobj->uobject.user_handle, in ib_uverbs_srq_event_handler()
568 event->event, &uobj->event_list, in ib_uverbs_srq_event_handler()
569 &uobj->events_reported); in ib_uverbs_srq_event_handler()