Lines Matching refs:i_cm_id

88 	ret = ib_modify_qp(ic->i_cm_id->qp, attr, IB_QP_MIN_RNR_TIMER);  in rds_ib_tune_rnr()
169 err = ib_modify_qp(ic->i_cm_id->qp, &qp_attr, IB_QP_STATE); in rds_ib_cm_connect_complete()
389 rdma_notify(ic->i_cm_id, IB_EVENT_COMM_EST); in rds_ib_qp_event_handler()
442 struct ib_device *dev = ic->i_cm_id->device; in rds_ib_setup_qp()
536 ret = rdma_create_qp(ic->i_cm_id, ic->i_pd, &attr); in rds_ib_setup_qp()
609 rdma_destroy_qp(ic->i_cm_id); in rds_ib_setup_qp()
822 BUG_ON(ic->i_cm_id); in rds_ib_cm_handle_connect()
824 ic->i_cm_id = cm_id; in rds_ib_cm_handle_connect()
884 if (ic->i_cm_id == cm_id) in rds_ib_cm_initiate_connect()
909 ic->i_cm_id = rdma_create_id(&init_net, handler, conn, in rds_ib_conn_path_connect()
911 if (IS_ERR(ic->i_cm_id)) { in rds_ib_conn_path_connect()
912 ret = PTR_ERR(ic->i_cm_id); in rds_ib_conn_path_connect()
913 ic->i_cm_id = NULL; in rds_ib_conn_path_connect()
918 rdsdebug("created cm id %p for conn %p\n", ic->i_cm_id, conn); in rds_ib_conn_path_connect()
948 ret = rdma_resolve_addr(ic->i_cm_id, (struct sockaddr *)&src, in rds_ib_conn_path_connect()
952 rdsdebug("addr resolve failed for cm id %p: %d\n", ic->i_cm_id, in rds_ib_conn_path_connect()
954 rdma_destroy_id(ic->i_cm_id); in rds_ib_conn_path_connect()
955 ic->i_cm_id = NULL; in rds_ib_conn_path_connect()
973 rdsdebug("cm %p pd %p cq %p %p qp %p\n", ic->i_cm_id, in rds_ib_conn_path_shutdown()
975 ic->i_cm_id ? ic->i_cm_id->qp : NULL); in rds_ib_conn_path_shutdown()
977 if (ic->i_cm_id) { in rds_ib_conn_path_shutdown()
978 struct ib_device *dev = ic->i_cm_id->device; in rds_ib_conn_path_shutdown()
980 rdsdebug("disconnecting cm %p\n", ic->i_cm_id); in rds_ib_conn_path_shutdown()
981 err = rdma_disconnect(ic->i_cm_id); in rds_ib_conn_path_shutdown()
987 ic->i_cm_id, err); in rds_ib_conn_path_shutdown()
1010 if (ic->i_cm_id->qp) in rds_ib_conn_path_shutdown()
1011 rdma_destroy_qp(ic->i_cm_id); in rds_ib_conn_path_shutdown()
1048 rdma_destroy_id(ic->i_cm_id); in rds_ib_conn_path_shutdown()
1056 ic->i_cm_id = NULL; in rds_ib_conn_path_shutdown()