Lines Matching refs:ib_event
1004 static int cma_ib_handler(struct ib_cm_id *cm_id, struct ib_cm_event *ib_event) in cma_ib_handler() argument
1010 if ((ib_event->event != IB_CM_TIMEWAIT_EXIT && in cma_ib_handler()
1012 (ib_event->event == IB_CM_TIMEWAIT_EXIT && in cma_ib_handler()
1017 switch (ib_event->event) { in cma_ib_handler()
1024 event.status = cma_verify_rep(id_priv, ib_event->private_data); in cma_ib_handler()
1033 cma_set_rep_event_data(&event, &ib_event->param.rep_rcvd, in cma_ib_handler()
1034 ib_event->private_data); in cma_ib_handler()
1057 event.status = ib_event->param.rej_rcvd.reason; in cma_ib_handler()
1059 event.param.conn.private_data = ib_event->private_data; in cma_ib_handler()
1064 ib_event->event); in cma_ib_handler()
1083 struct ib_cm_event *ib_event) in cma_new_conn_id() argument
1093 if (cma_get_net_info(ib_event->private_data, listen_id->ps, in cma_new_conn_id()
1098 listen_id->ps, ib_event->param.req_rcvd.qp_type); in cma_new_conn_id()
1106 rt->num_paths = ib_event->param.req_rcvd.alternate_path ? 2 : 1; in cma_new_conn_id()
1112 rt->path_rec[0] = *ib_event->param.req_rcvd.primary_path; in cma_new_conn_id()
1114 rt->path_rec[1] = *ib_event->param.req_rcvd.alternate_path; in cma_new_conn_id()
1138 struct ib_cm_event *ib_event) in cma_new_udp_id() argument
1153 if (cma_get_net_info(ib_event->private_data, listen_id->ps, in cma_new_udp_id()
1190 static int cma_check_req_qp_type(struct rdma_cm_id *id, struct ib_cm_event *ib_event) in cma_check_req_qp_type() argument
1192 return (((ib_event->event == IB_CM_REQ_RECEIVED) && in cma_check_req_qp_type()
1193 (ib_event->param.req_rcvd.qp_type == id->qp_type)) || in cma_check_req_qp_type()
1194 ((ib_event->event == IB_CM_SIDR_REQ_RECEIVED) && in cma_check_req_qp_type()
1199 static int cma_req_handler(struct ib_cm_id *cm_id, struct ib_cm_event *ib_event) in cma_req_handler() argument
1206 if (!cma_check_req_qp_type(&listen_id->id, ib_event)) in cma_req_handler()
1215 if (ib_event->event == IB_CM_SIDR_REQ_RECEIVED) { in cma_req_handler()
1216 conn_id = cma_new_udp_id(&listen_id->id, ib_event); in cma_req_handler()
1217 event.param.ud.private_data = ib_event->private_data + offset; in cma_req_handler()
1221 conn_id = cma_new_conn_id(&listen_id->id, ib_event); in cma_req_handler()
1222 cma_set_req_event_data(&event, &ib_event->param.req_rcvd, in cma_req_handler()
1223 ib_event->private_data, offset); in cma_req_handler()
2478 struct ib_cm_event *ib_event) in cma_sidr_rep_handler() argument
2482 struct ib_cm_sidr_rep_event_param *rep = &ib_event->param.sidr_rep_rcvd; in cma_sidr_rep_handler()
2489 switch (ib_event->event) { in cma_sidr_rep_handler()
2495 event.param.ud.private_data = ib_event->private_data; in cma_sidr_rep_handler()
2499 event.status = ib_event->param.sidr_rep_rcvd.status; in cma_sidr_rep_handler()
2523 ib_event->event); in cma_sidr_rep_handler()