Lines Matching refs:uobj

156 			  struct ib_ucq_object *uobj)  in ib_uverbs_release_ucq()  argument
162 list_for_each_entry_safe(evt, tmp, &uobj->comp_list, obj_list) { in ib_uverbs_release_ucq()
172 list_for_each_entry_safe(evt, tmp, &uobj->async_list, obj_list) { in ib_uverbs_release_ucq()
180 struct ib_uevent_object *uobj) in ib_uverbs_release_uevent() argument
185 list_for_each_entry_safe(evt, tmp, &uobj->event_list, obj_list) { in ib_uverbs_release_uevent()
193 struct ib_uqp_object *uobj) in ib_uverbs_detach_umcast() argument
197 list_for_each_entry_safe(mcast, tmp, &uobj->mcast_list, list) { in ib_uverbs_detach_umcast()
207 struct ib_uobject *uobj, *tmp; in ib_uverbs_cleanup_ucontext() local
214 list_for_each_entry_safe(uobj, tmp, &context->ah_list, list) { in ib_uverbs_cleanup_ucontext()
215 struct ib_ah *ah = uobj->object; in ib_uverbs_cleanup_ucontext()
217 idr_remove_uobj(&ib_uverbs_ah_idr, uobj); in ib_uverbs_cleanup_ucontext()
219 kfree(uobj); in ib_uverbs_cleanup_ucontext()
223 list_for_each_entry_safe(uobj, tmp, &context->mw_list, list) { in ib_uverbs_cleanup_ucontext()
224 struct ib_mw *mw = uobj->object; in ib_uverbs_cleanup_ucontext()
226 idr_remove_uobj(&ib_uverbs_mw_idr, uobj); in ib_uverbs_cleanup_ucontext()
228 kfree(uobj); in ib_uverbs_cleanup_ucontext()
231 list_for_each_entry_safe(uobj, tmp, &context->rule_list, list) { in ib_uverbs_cleanup_ucontext()
232 struct ib_flow *flow_id = uobj->object; in ib_uverbs_cleanup_ucontext()
234 idr_remove_uobj(&ib_uverbs_rule_idr, uobj); in ib_uverbs_cleanup_ucontext()
236 kfree(uobj); in ib_uverbs_cleanup_ucontext()
239 list_for_each_entry_safe(uobj, tmp, &context->qp_list, list) { in ib_uverbs_cleanup_ucontext()
240 struct ib_qp *qp = uobj->object; in ib_uverbs_cleanup_ucontext()
242 container_of(uobj, struct ib_uqp_object, uevent.uobject); in ib_uverbs_cleanup_ucontext()
244 idr_remove_uobj(&ib_uverbs_qp_idr, uobj); in ib_uverbs_cleanup_ucontext()
255 list_for_each_entry_safe(uobj, tmp, &context->srq_list, list) { in ib_uverbs_cleanup_ucontext()
256 struct ib_srq *srq = uobj->object; in ib_uverbs_cleanup_ucontext()
258 container_of(uobj, struct ib_uevent_object, uobject); in ib_uverbs_cleanup_ucontext()
260 idr_remove_uobj(&ib_uverbs_srq_idr, uobj); in ib_uverbs_cleanup_ucontext()
266 list_for_each_entry_safe(uobj, tmp, &context->cq_list, list) { in ib_uverbs_cleanup_ucontext()
267 struct ib_cq *cq = uobj->object; in ib_uverbs_cleanup_ucontext()
270 container_of(uobj, struct ib_ucq_object, uobject); in ib_uverbs_cleanup_ucontext()
272 idr_remove_uobj(&ib_uverbs_cq_idr, uobj); in ib_uverbs_cleanup_ucontext()
278 list_for_each_entry_safe(uobj, tmp, &context->mr_list, list) { in ib_uverbs_cleanup_ucontext()
279 struct ib_mr *mr = uobj->object; in ib_uverbs_cleanup_ucontext()
281 idr_remove_uobj(&ib_uverbs_mr_idr, uobj); in ib_uverbs_cleanup_ucontext()
283 kfree(uobj); in ib_uverbs_cleanup_ucontext()
287 list_for_each_entry_safe(uobj, tmp, &context->xrcd_list, list) { in ib_uverbs_cleanup_ucontext()
288 struct ib_xrcd *xrcd = uobj->object; in ib_uverbs_cleanup_ucontext()
290 container_of(uobj, struct ib_uxrcd_object, uobject); in ib_uverbs_cleanup_ucontext()
292 idr_remove_uobj(&ib_uverbs_xrcd_idr, uobj); in ib_uverbs_cleanup_ucontext()
298 list_for_each_entry_safe(uobj, tmp, &context->pd_list, list) { in ib_uverbs_cleanup_ucontext()
299 struct ib_pd *pd = uobj->object; in ib_uverbs_cleanup_ucontext()
301 idr_remove_uobj(&ib_uverbs_pd_idr, uobj); in ib_uverbs_cleanup_ucontext()
303 kfree(uobj); in ib_uverbs_cleanup_ucontext()
441 struct ib_ucq_object *uobj; in ib_uverbs_comp_handler() local
460 uobj = container_of(cq->uobject, struct ib_ucq_object, uobject); in ib_uverbs_comp_handler()
463 entry->counter = &uobj->comp_events_reported; in ib_uverbs_comp_handler()
466 list_add_tail(&entry->obj_list, &uobj->comp_list); in ib_uverbs_comp_handler()
509 struct ib_ucq_object *uobj = container_of(event->element.cq->uobject, in ib_uverbs_cq_event_handler() local
512 ib_uverbs_async_handler(uobj->uverbs_file, uobj->uobject.user_handle, in ib_uverbs_cq_event_handler()
513 event->event, &uobj->async_list, in ib_uverbs_cq_event_handler()
514 &uobj->async_events_reported); in ib_uverbs_cq_event_handler()
519 struct ib_uevent_object *uobj; in ib_uverbs_qp_event_handler() local
525 uobj = container_of(event->element.qp->uobject, in ib_uverbs_qp_event_handler()
528 ib_uverbs_async_handler(context_ptr, uobj->uobject.user_handle, in ib_uverbs_qp_event_handler()
529 event->event, &uobj->event_list, in ib_uverbs_qp_event_handler()
530 &uobj->events_reported); in ib_uverbs_qp_event_handler()
535 struct ib_uevent_object *uobj; in ib_uverbs_srq_event_handler() local
537 uobj = container_of(event->element.srq->uobject, in ib_uverbs_srq_event_handler()
540 ib_uverbs_async_handler(context_ptr, uobj->uobject.user_handle, in ib_uverbs_srq_event_handler()
541 event->event, &uobj->event_list, in ib_uverbs_srq_event_handler()
542 &uobj->events_reported); in ib_uverbs_srq_event_handler()