Lines Matching refs:ib_event
1455 const struct ib_cm_event *ib_event, in cma_save_ip_info() argument
1461 hdr = ib_event->private_data; in cma_save_ip_info()
1486 const struct ib_cm_event *ib_event, in cma_save_net_info() argument
1490 if (ib_event->event == IB_CM_REQ_RECEIVED) in cma_save_net_info()
1492 ib_event->param.req_rcvd.primary_path); in cma_save_net_info()
1493 else if (ib_event->event == IB_CM_SIDR_REQ_RECEIVED) in cma_save_net_info()
1498 return cma_save_ip_info(src_addr, dst_addr, ib_event, service_id); in cma_save_net_info()
1501 static int cma_save_req_info(const struct ib_cm_event *ib_event, in cma_save_req_info() argument
1505 &ib_event->param.req_rcvd; in cma_save_req_info()
1507 &ib_event->param.sidr_req_rcvd; in cma_save_req_info()
1509 switch (ib_event->event) { in cma_save_req_info()
1619 roce_get_net_dev_by_cm_event(const struct ib_cm_event *ib_event) in roce_get_net_dev_by_cm_event() argument
1624 if (ib_event->event == IB_CM_REQ_RECEIVED) in roce_get_net_dev_by_cm_event()
1625 sgid_attr = ib_event->param.req_rcvd.ppath_sgid_attr; in roce_get_net_dev_by_cm_event()
1626 else if (ib_event->event == IB_CM_SIDR_REQ_RECEIVED) in roce_get_net_dev_by_cm_event()
1627 sgid_attr = ib_event->param.sidr_req_rcvd.sgid_attr; in roce_get_net_dev_by_cm_event()
1642 static struct net_device *cma_get_net_dev(const struct ib_cm_event *ib_event, in cma_get_net_dev() argument
1652 err = cma_save_ip_info(listen_addr, src_addr, ib_event, in cma_get_net_dev()
1658 net_dev = roce_get_net_dev_by_cm_event(ib_event); in cma_get_net_dev()
1761 const struct ib_cm_event *ib_event, in cma_find_listener() argument
1773 if (cma_match_private_data(id_priv, ib_event->private_data)) { in cma_find_listener()
1793 const struct ib_cm_event *ib_event, in cma_ib_id_from_event() argument
1801 err = cma_save_req_info(ib_event, req); in cma_ib_id_from_event()
1805 *net_dev = cma_get_net_dev(ib_event, req); in cma_ib_id_from_event()
1854 id_priv = cma_find_listener(bind_list, cm_id, ib_event, req, *net_dev); in cma_ib_id_from_event()
2131 const struct ib_cm_event *ib_event) in cma_ib_handler() argument
2140 if ((ib_event->event != IB_CM_TIMEWAIT_EXIT && in cma_ib_handler()
2142 (ib_event->event == IB_CM_TIMEWAIT_EXIT && in cma_ib_handler()
2146 switch (ib_event->event) { in cma_ib_handler()
2165 cma_set_rep_event_data(&event, &ib_event->param.rep_rcvd, in cma_ib_handler()
2166 ib_event->private_data); in cma_ib_handler()
2190 ib_event->param.rej_rcvd.reason)); in cma_ib_handler()
2192 event.status = ib_event->param.rej_rcvd.reason; in cma_ib_handler()
2194 event.param.conn.private_data = ib_event->private_data; in cma_ib_handler()
2199 ib_event->event); in cma_ib_handler()
2217 const struct ib_cm_event *ib_event, in cma_ib_new_conn_id() argument
2225 struct sa_path_rec *path = ib_event->param.req_rcvd.primary_path; in cma_ib_new_conn_id()
2227 ib_event->param.req_rcvd.primary_path->service_id; in cma_ib_new_conn_id()
2234 ib_event->param.req_rcvd.qp_type, in cma_ib_new_conn_id()
2242 listen_id, ib_event, ss_family, service_id)) in cma_ib_new_conn_id()
2246 rt->num_pri_alt_paths = ib_event->param.req_rcvd.alternate_path ? 2 : 1; in cma_ib_new_conn_id()
2254 rt->path_rec[1] = *ib_event->param.req_rcvd.alternate_path; in cma_ib_new_conn_id()
2282 const struct ib_cm_event *ib_event, in cma_ib_new_udp_id() argument
2302 listen_id, ib_event, ss_family, in cma_ib_new_udp_id()
2303 ib_event->param.sidr_req_rcvd.service_id)) in cma_ib_new_udp_id()
2343 const struct ib_cm_event *ib_event) in cma_ib_check_req_qp_type() argument
2345 return (((ib_event->event == IB_CM_REQ_RECEIVED) && in cma_ib_check_req_qp_type()
2346 (ib_event->param.req_rcvd.qp_type == id->qp_type)) || in cma_ib_check_req_qp_type()
2347 ((ib_event->event == IB_CM_SIDR_REQ_RECEIVED) && in cma_ib_check_req_qp_type()
2353 const struct ib_cm_event *ib_event) in cma_ib_req_handler() argument
2362 listen_id = cma_ib_id_from_event(cm_id, ib_event, &req, &net_dev); in cma_ib_req_handler()
2366 trace_cm_req_handler(listen_id, ib_event->event); in cma_ib_req_handler()
2367 if (!cma_ib_check_req_qp_type(&listen_id->id, ib_event)) { in cma_ib_req_handler()
2380 if (ib_event->event == IB_CM_SIDR_REQ_RECEIVED) { in cma_ib_req_handler()
2381 conn_id = cma_ib_new_udp_id(&listen_id->id, ib_event, net_dev); in cma_ib_req_handler()
2382 event.param.ud.private_data = ib_event->private_data + offset; in cma_ib_req_handler()
2386 conn_id = cma_ib_new_conn_id(&listen_id->id, ib_event, net_dev); in cma_ib_req_handler()
2387 cma_set_req_event_data(&event, &ib_event->param.req_rcvd, in cma_ib_req_handler()
2388 ib_event->private_data, offset); in cma_ib_req_handler()
4151 const struct ib_cm_event *ib_event) in cma_sidr_rep_handler() argument
4156 &ib_event->param.sidr_rep_rcvd; in cma_sidr_rep_handler()
4163 switch (ib_event->event) { in cma_sidr_rep_handler()
4169 event.param.ud.private_data = ib_event->private_data; in cma_sidr_rep_handler()
4173 event.status = ib_event->param.sidr_rep_rcvd.status; in cma_sidr_rep_handler()
4197 ib_event->event); in cma_sidr_rep_handler()