Lines Matching refs:conn_id
2362 struct rdma_id_private *listen_id, *conn_id = NULL; in cma_ib_req_handler() local
2388 conn_id = cma_ib_new_udp_id(&listen_id->id, ib_event, net_dev); in cma_ib_req_handler()
2393 conn_id = cma_ib_new_conn_id(&listen_id->id, ib_event, net_dev); in cma_ib_req_handler()
2397 if (!conn_id) { in cma_ib_req_handler()
2402 mutex_lock_nested(&conn_id->handler_mutex, SINGLE_DEPTH_NESTING); in cma_ib_req_handler()
2403 ret = cma_ib_acquire_dev(conn_id, listen_id, &req); in cma_ib_req_handler()
2405 destroy_id_handler_unlock(conn_id); in cma_ib_req_handler()
2409 conn_id->cm_id.ib = cm_id; in cma_ib_req_handler()
2410 cm_id->context = conn_id; in cma_ib_req_handler()
2413 ret = cma_cm_event_handler(conn_id, &event); in cma_ib_req_handler()
2416 conn_id->cm_id.ib = NULL; in cma_ib_req_handler()
2418 destroy_id_handler_unlock(conn_id); in cma_ib_req_handler()
2422 if (READ_ONCE(conn_id->state) == RDMA_CM_CONNECT && in cma_ib_req_handler()
2423 conn_id->id.qp_type != IB_QPT_UD) { in cma_ib_req_handler()
2427 mutex_unlock(&conn_id->handler_mutex); in cma_ib_req_handler()
2542 struct rdma_id_private *listen_id, *conn_id; in iw_conn_req_handler() local
2561 conn_id = __rdma_create_id(listen_id->id.route.addr.dev_addr.net, in iw_conn_req_handler()
2565 if (IS_ERR(conn_id)) { in iw_conn_req_handler()
2569 mutex_lock_nested(&conn_id->handler_mutex, SINGLE_DEPTH_NESTING); in iw_conn_req_handler()
2570 conn_id->state = RDMA_CM_CONNECT; in iw_conn_req_handler()
2572 ret = rdma_translate_ip(laddr, &conn_id->id.route.addr.dev_addr); in iw_conn_req_handler()
2575 destroy_id_handler_unlock(conn_id); in iw_conn_req_handler()
2579 ret = cma_iw_acquire_dev(conn_id, listen_id); in iw_conn_req_handler()
2582 destroy_id_handler_unlock(conn_id); in iw_conn_req_handler()
2586 conn_id->cm_id.iw = cm_id; in iw_conn_req_handler()
2587 cm_id->context = conn_id; in iw_conn_req_handler()
2590 memcpy(cma_src_addr(conn_id), laddr, rdma_addr_size(laddr)); in iw_conn_req_handler()
2591 memcpy(cma_dst_addr(conn_id), raddr, rdma_addr_size(raddr)); in iw_conn_req_handler()
2593 ret = cma_cm_event_handler(conn_id, &event); in iw_conn_req_handler()
2596 conn_id->cm_id.iw = NULL; in iw_conn_req_handler()
2598 destroy_id_handler_unlock(conn_id); in iw_conn_req_handler()
2602 mutex_unlock(&conn_id->handler_mutex); in iw_conn_req_handler()