• Home
  • Raw
  • Download

Lines Matching refs:uevent

154 	struct ib_ucm_event *uevent;  in ib_ucm_cleanup_events()  local
160 uevent = list_entry(ctx->events.next, in ib_ucm_cleanup_events()
162 list_del(&uevent->file_list); in ib_ucm_cleanup_events()
163 list_del(&uevent->ctx_list); in ib_ucm_cleanup_events()
167 if (ib_ucm_new_cm_id(uevent->resp.event)) in ib_ucm_cleanup_events()
168 ib_destroy_cm_id(uevent->cm_id); in ib_ucm_cleanup_events()
170 kfree(uevent); in ib_ucm_cleanup_events()
358 struct ib_ucm_event *uevent; in ib_ucm_event_handler() local
364 uevent = kzalloc(sizeof *uevent, GFP_KERNEL); in ib_ucm_event_handler()
365 if (!uevent) in ib_ucm_event_handler()
368 uevent->ctx = ctx; in ib_ucm_event_handler()
369 uevent->cm_id = cm_id; in ib_ucm_event_handler()
370 uevent->resp.uid = ctx->uid; in ib_ucm_event_handler()
371 uevent->resp.id = ctx->id; in ib_ucm_event_handler()
372 uevent->resp.event = event->event; in ib_ucm_event_handler()
374 result = ib_ucm_event_process(event, uevent); in ib_ucm_event_handler()
379 list_add_tail(&uevent->file_list, &ctx->file->events); in ib_ucm_event_handler()
380 list_add_tail(&uevent->ctx_list, &ctx->events); in ib_ucm_event_handler()
386 kfree(uevent); in ib_ucm_event_handler()
398 struct ib_ucm_event *uevent; in ib_ucm_event() local
422 uevent = list_entry(file->events.next, struct ib_ucm_event, file_list); in ib_ucm_event()
424 if (ib_ucm_new_cm_id(uevent->resp.event)) { in ib_ucm_event()
431 ctx->cm_id = uevent->cm_id; in ib_ucm_event()
433 uevent->resp.id = ctx->id; in ib_ucm_event()
437 &uevent->resp, sizeof(uevent->resp))) { in ib_ucm_event()
442 if (uevent->data) { in ib_ucm_event()
443 if (cmd.data_len < uevent->data_len) { in ib_ucm_event()
448 uevent->data, uevent->data_len)) { in ib_ucm_event()
454 if (uevent->info) { in ib_ucm_event()
455 if (cmd.info_len < uevent->info_len) { in ib_ucm_event()
460 uevent->info, uevent->info_len)) { in ib_ucm_event()
466 list_del(&uevent->file_list); in ib_ucm_event()
467 list_del(&uevent->ctx_list); in ib_ucm_event()
468 uevent->ctx->events_reported++; in ib_ucm_event()
470 kfree(uevent->data); in ib_ucm_event()
471 kfree(uevent->info); in ib_ucm_event()
472 kfree(uevent); in ib_ucm_event()