• Home
  • Raw
  • Download

Lines Matching refs:conn_id

1741 	struct rdma_id_private *listen_id, *conn_id;  in cma_req_handler()  local
1765 conn_id = cma_new_udp_id(&listen_id->id, ib_event, net_dev); in cma_req_handler()
1770 conn_id = cma_new_conn_id(&listen_id->id, ib_event, net_dev); in cma_req_handler()
1774 if (!conn_id) { in cma_req_handler()
1779 mutex_lock_nested(&conn_id->handler_mutex, SINGLE_DEPTH_NESTING); in cma_req_handler()
1780 ret = cma_acquire_dev(conn_id, listen_id); in cma_req_handler()
1784 conn_id->cm_id.ib = cm_id; in cma_req_handler()
1785 cm_id->context = conn_id; in cma_req_handler()
1792 atomic_inc(&conn_id->refcount); in cma_req_handler()
1793 ret = conn_id->id.event_handler(&conn_id->id, &event); in cma_req_handler()
1801 if (cma_comp(conn_id, RDMA_CM_CONNECT) && in cma_req_handler()
1802 (conn_id->id.qp_type != IB_QPT_UD)) in cma_req_handler()
1805 mutex_unlock(&conn_id->handler_mutex); in cma_req_handler()
1807 cma_deref_id(conn_id); in cma_req_handler()
1813 cma_deref_id(conn_id); in cma_req_handler()
1815 conn_id->cm_id.ib = NULL; in cma_req_handler()
1817 cma_exch(conn_id, RDMA_CM_DESTROYING); in cma_req_handler()
1818 mutex_unlock(&conn_id->handler_mutex); in cma_req_handler()
1821 if (conn_id) in cma_req_handler()
1822 rdma_destroy_id(&conn_id->id); in cma_req_handler()
1909 struct rdma_id_private *listen_id, *conn_id; in iw_conn_req_handler() local
1929 conn_id = container_of(new_cm_id, struct rdma_id_private, id); in iw_conn_req_handler()
1930 mutex_lock_nested(&conn_id->handler_mutex, SINGLE_DEPTH_NESTING); in iw_conn_req_handler()
1931 conn_id->state = RDMA_CM_CONNECT; in iw_conn_req_handler()
1933 ret = rdma_translate_ip(laddr, &conn_id->id.route.addr.dev_addr, NULL); in iw_conn_req_handler()
1935 mutex_unlock(&conn_id->handler_mutex); in iw_conn_req_handler()
1940 ret = cma_acquire_dev(conn_id, listen_id); in iw_conn_req_handler()
1942 mutex_unlock(&conn_id->handler_mutex); in iw_conn_req_handler()
1947 conn_id->cm_id.iw = cm_id; in iw_conn_req_handler()
1948 cm_id->context = conn_id; in iw_conn_req_handler()
1951 memcpy(cma_src_addr(conn_id), laddr, rdma_addr_size(laddr)); in iw_conn_req_handler()
1952 memcpy(cma_dst_addr(conn_id), raddr, rdma_addr_size(raddr)); in iw_conn_req_handler()
1954 ret = ib_query_device(conn_id->id.device, &attr); in iw_conn_req_handler()
1956 mutex_unlock(&conn_id->handler_mutex); in iw_conn_req_handler()
1972 atomic_inc(&conn_id->refcount); in iw_conn_req_handler()
1973 ret = conn_id->id.event_handler(&conn_id->id, &event); in iw_conn_req_handler()
1976 conn_id->cm_id.iw = NULL; in iw_conn_req_handler()
1977 cma_exch(conn_id, RDMA_CM_DESTROYING); in iw_conn_req_handler()
1978 mutex_unlock(&conn_id->handler_mutex); in iw_conn_req_handler()
1980 cma_deref_id(conn_id); in iw_conn_req_handler()
1981 rdma_destroy_id(&conn_id->id); in iw_conn_req_handler()
1985 mutex_unlock(&conn_id->handler_mutex); in iw_conn_req_handler()
1986 cma_deref_id(conn_id); in iw_conn_req_handler()