cm_id            1008 drivers/infiniband/core/cm.c static void cm_destroy_id(struct ib_cm_id *cm_id, int err)
cm_id            1013 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            1016 drivers/infiniband/core/cm.c 	switch (cm_id->state) {
cm_id            1031 drivers/infiniband/core/cm.c 		cm_id->state = IB_CM_IDLE;
cm_id            1048 drivers/infiniband/core/cm.c 		ib_send_cm_rej(cm_id, IB_CM_REJ_TIMEOUT,
cm_id            1060 drivers/infiniband/core/cm.c 			ib_send_cm_rej(cm_id, IB_CM_REJ_CONSUMER_DEFINED,
cm_id            1072 drivers/infiniband/core/cm.c 		ib_send_cm_rej(cm_id, IB_CM_REJ_CONSUMER_DEFINED,
cm_id            1079 drivers/infiniband/core/cm.c 		ib_send_cm_dreq(cm_id, NULL, 0);
cm_id            1088 drivers/infiniband/core/cm.c 		ib_send_cm_drep(cm_id, NULL, 0);
cm_id            1104 drivers/infiniband/core/cm.c 	cm_free_id(cm_id->local_id);
cm_id            1116 drivers/infiniband/core/cm.c void ib_destroy_cm_id(struct ib_cm_id *cm_id)
cm_id            1118 drivers/infiniband/core/cm.c 	cm_destroy_id(cm_id, 0);
cm_id            1135 drivers/infiniband/core/cm.c static int __ib_cm_listen(struct ib_cm_id *cm_id, __be64 service_id,
cm_id            1147 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            1148 drivers/infiniband/core/cm.c 	if (cm_id->state != IB_CM_IDLE)
cm_id            1151 drivers/infiniband/core/cm.c 	cm_id->state = IB_CM_LISTEN;
cm_id            1155 drivers/infiniband/core/cm.c 		cm_id->service_id = cpu_to_be64(cm.listen_service_id++);
cm_id            1156 drivers/infiniband/core/cm.c 		cm_id->service_mask = ~cpu_to_be64(0);
cm_id            1158 drivers/infiniband/core/cm.c 		cm_id->service_id = service_id;
cm_id            1159 drivers/infiniband/core/cm.c 		cm_id->service_mask = service_mask;
cm_id            1164 drivers/infiniband/core/cm.c 		cm_id->state = IB_CM_IDLE;
cm_id            1171 drivers/infiniband/core/cm.c int ib_cm_listen(struct ib_cm_id *cm_id, __be64 service_id, __be64 service_mask)
cm_id            1177 drivers/infiniband/core/cm.c 	ret = __ib_cm_listen(cm_id, service_id, service_mask);
cm_id            1205 drivers/infiniband/core/cm.c 	struct ib_cm_id *cm_id;
cm_id            1210 drivers/infiniband/core/cm.c 	cm_id = ib_create_cm_id(device, cm_handler, NULL);
cm_id            1211 drivers/infiniband/core/cm.c 	if (IS_ERR(cm_id))
cm_id            1212 drivers/infiniband/core/cm.c 		return cm_id;
cm_id            1222 drivers/infiniband/core/cm.c 		if (cm_id->cm_handler != cm_handler || cm_id->context) {
cm_id            1226 drivers/infiniband/core/cm.c 			ib_destroy_cm_id(cm_id);
cm_id            1233 drivers/infiniband/core/cm.c 		ib_destroy_cm_id(cm_id);
cm_id            1234 drivers/infiniband/core/cm.c 		cm_id = &cm_id_priv->id;
cm_id            1235 drivers/infiniband/core/cm.c 		return cm_id;
cm_id            1240 drivers/infiniband/core/cm.c 	err = __ib_cm_listen(cm_id, service_id, 0);
cm_id            1245 drivers/infiniband/core/cm.c 		ib_destroy_cm_id(cm_id);
cm_id            1248 drivers/infiniband/core/cm.c 	return cm_id;
cm_id            1404 drivers/infiniband/core/cm.c int ib_send_cm_req(struct ib_cm_id *cm_id,
cm_id            1417 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            1419 drivers/infiniband/core/cm.c 	if (cm_id->state != IB_CM_IDLE) {
cm_id            1444 drivers/infiniband/core/cm.c 	cm_id->service_id = param->service_id;
cm_id            1445 drivers/infiniband/core/cm.c 	cm_id->service_mask = ~cpu_to_be64(0);
cm_id            1477 drivers/infiniband/core/cm.c 	BUG_ON(cm_id->state != IB_CM_IDLE);
cm_id            1478 drivers/infiniband/core/cm.c 	cm_id->state = IB_CM_REQ_SENT;
cm_id            1846 drivers/infiniband/core/cm.c 	struct ib_cm_id *cm_id;
cm_id            1876 drivers/infiniband/core/cm.c 			cm_id = &cur_cm_id_priv->id;
cm_id            1877 drivers/infiniband/core/cm.c 			ib_send_cm_dreq(cm_id, NULL, 0);
cm_id            1933 drivers/infiniband/core/cm.c 	struct ib_cm_id *cm_id;
cm_id            1942 drivers/infiniband/core/cm.c 	cm_id = ib_create_cm_id(work->port->cm_dev->ib_device, NULL, NULL);
cm_id            1943 drivers/infiniband/core/cm.c 	if (IS_ERR(cm_id))
cm_id            1944 drivers/infiniband/core/cm.c 		return PTR_ERR(cm_id);
cm_id            1946 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            1966 drivers/infiniband/core/cm.c 			 be32_to_cpu(cm_id->local_id));
cm_id            2012 drivers/infiniband/core/cm.c 			ib_send_cm_rej(cm_id, IB_CM_REJ_INVALID_GID,
cm_id            2015 drivers/infiniband/core/cm.c 			ib_send_cm_rej(cm_id, IB_CM_REJ_INVALID_GID,
cm_id            2025 drivers/infiniband/core/cm.c 			ib_send_cm_rej(cm_id, IB_CM_REJ_INVALID_ALT_GID,
cm_id            2056 drivers/infiniband/core/cm.c 	ib_destroy_cm_id(cm_id);
cm_id            2090 drivers/infiniband/core/cm.c int ib_send_cm_rep(struct ib_cm_id *cm_id,
cm_id            2103 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            2105 drivers/infiniband/core/cm.c 	if (cm_id->state != IB_CM_REQ_RCVD &&
cm_id            2106 drivers/infiniband/core/cm.c 	    cm_id->state != IB_CM_MRA_REQ_SENT) {
cm_id            2108 drivers/infiniband/core/cm.c 			 be32_to_cpu(cm_id_priv->id.local_id), cm_id->state);
cm_id            2129 drivers/infiniband/core/cm.c 	cm_id->state = IB_CM_REP_SENT;
cm_id            2154 drivers/infiniband/core/cm.c int ib_send_cm_rtu(struct ib_cm_id *cm_id,
cm_id            2171 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            2173 drivers/infiniband/core/cm.c 	if (cm_id->state != IB_CM_REP_RCVD &&
cm_id            2174 drivers/infiniband/core/cm.c 	    cm_id->state != IB_CM_MRA_REP_SENT) {
cm_id            2176 drivers/infiniband/core/cm.c 			 be32_to_cpu(cm_id->local_id), cm_id->state);
cm_id            2196 drivers/infiniband/core/cm.c 	cm_id->state = IB_CM_ESTABLISHED;
cm_id            2277 drivers/infiniband/core/cm.c 	struct ib_cm_id *cm_id;
cm_id            2340 drivers/infiniband/core/cm.c 			cm_id = &cur_cm_id_priv->id;
cm_id            2341 drivers/infiniband/core/cm.c 			ib_send_cm_dreq(cm_id, NULL, 0);
cm_id            2470 drivers/infiniband/core/cm.c int ib_send_cm_dreq(struct ib_cm_id *cm_id,
cm_id            2482 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            2484 drivers/infiniband/core/cm.c 	if (cm_id->state != IB_CM_ESTABLISHED) {
cm_id            2486 drivers/infiniband/core/cm.c 			 be32_to_cpu(cm_id->local_id), cm_id->state);
cm_id            2491 drivers/infiniband/core/cm.c 	if (cm_id->lap_state == IB_CM_LAP_SENT ||
cm_id            2492 drivers/infiniband/core/cm.c 	    cm_id->lap_state == IB_CM_MRA_LAP_RCVD)
cm_id            2514 drivers/infiniband/core/cm.c 	cm_id->state = IB_CM_DREQ_SENT;
cm_id            2534 drivers/infiniband/core/cm.c int ib_send_cm_drep(struct ib_cm_id *cm_id,
cm_id            2551 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            2553 drivers/infiniband/core/cm.c 	if (cm_id->state != IB_CM_DREQ_RCVD) {
cm_id            2557 drivers/infiniband/core/cm.c 			 __func__, be32_to_cpu(cm_id->local_id), cm_id->state);
cm_id            2729 drivers/infiniband/core/cm.c int ib_send_cm_rej(struct ib_cm_id *cm_id,
cm_id            2745 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            2748 drivers/infiniband/core/cm.c 	switch (cm_id->state) {
cm_id            2775 drivers/infiniband/core/cm.c 			 be32_to_cpu(cm_id_priv->id.local_id), cm_id->state);
cm_id            2907 drivers/infiniband/core/cm.c int ib_send_cm_mra(struct ib_cm_id *cm_id,
cm_id            2928 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            2934 drivers/infiniband/core/cm.c 		lap_state = cm_id->lap_state;
cm_id            2939 drivers/infiniband/core/cm.c 		lap_state = cm_id->lap_state;
cm_id            2943 drivers/infiniband/core/cm.c 		if (cm_id->lap_state == IB_CM_LAP_RCVD) {
cm_id            2944 drivers/infiniband/core/cm.c 			cm_state = cm_id->state;
cm_id            2971 drivers/infiniband/core/cm.c 	cm_id->state = cm_state;
cm_id            2972 drivers/infiniband/core/cm.c 	cm_id->lap_state = lap_state;
cm_id            3123 drivers/infiniband/core/cm.c int ib_send_cm_lap(struct ib_cm_id *cm_id,
cm_id            3136 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            3138 drivers/infiniband/core/cm.c 	if (cm_id->state != IB_CM_ESTABLISHED ||
cm_id            3139 drivers/infiniband/core/cm.c 	    (cm_id->lap_state != IB_CM_LAP_UNINIT &&
cm_id            3140 drivers/infiniband/core/cm.c 	     cm_id->lap_state != IB_CM_LAP_IDLE)) {
cm_id            3169 drivers/infiniband/core/cm.c 	cm_id->lap_state = IB_CM_LAP_SENT;
cm_id            3333 drivers/infiniband/core/cm.c int ib_send_cm_apr(struct ib_cm_id *cm_id,
cm_id            3349 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            3351 drivers/infiniband/core/cm.c 	if (cm_id->state != IB_CM_ESTABLISHED ||
cm_id            3352 drivers/infiniband/core/cm.c 	    (cm_id->lap_state != IB_CM_LAP_RCVD &&
cm_id            3353 drivers/infiniband/core/cm.c 	     cm_id->lap_state != IB_CM_MRA_LAP_SENT)) {
cm_id            3371 drivers/infiniband/core/cm.c 	cm_id->lap_state = IB_CM_LAP_IDLE;
cm_id            3480 drivers/infiniband/core/cm.c int ib_send_cm_sidr_req(struct ib_cm_id *cm_id,
cm_id            3492 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            3499 drivers/infiniband/core/cm.c 	cm_id->service_id = param->service_id;
cm_id            3500 drivers/infiniband/core/cm.c 	cm_id->service_mask = ~cpu_to_be64(0);
cm_id            3513 drivers/infiniband/core/cm.c 	if (cm_id->state == IB_CM_IDLE)
cm_id            3523 drivers/infiniband/core/cm.c 	cm_id->state = IB_CM_SIDR_REQ_SENT;
cm_id            3552 drivers/infiniband/core/cm.c 	struct ib_cm_id *cm_id;
cm_id            3558 drivers/infiniband/core/cm.c 	cm_id = ib_create_cm_id(work->port->cm_dev->ib_device, NULL, NULL);
cm_id            3559 drivers/infiniband/core/cm.c 	if (IS_ERR(cm_id))
cm_id            3560 drivers/infiniband/core/cm.c 		return PTR_ERR(cm_id);
cm_id            3561 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            3588 drivers/infiniband/core/cm.c 	cur_cm_id_priv = cm_find_listen(cm_id->device,
cm_id            3633 drivers/infiniband/core/cm.c int ib_send_cm_sidr_rep(struct ib_cm_id *cm_id,
cm_id            3646 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            3648 drivers/infiniband/core/cm.c 	if (cm_id->state != IB_CM_SIDR_REQ_RCVD) {
cm_id            3665 drivers/infiniband/core/cm.c 	cm_id->state = IB_CM_IDLE;
cm_id            3876 drivers/infiniband/core/cm.c static int cm_establish(struct ib_cm_id *cm_id)
cm_id            3884 drivers/infiniband/core/cm.c 	cm_dev = ib_get_client_data(cm_id->device, &cm_client);
cm_id            3892 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            3894 drivers/infiniband/core/cm.c 	switch (cm_id->state)
cm_id            3898 drivers/infiniband/core/cm.c 		cm_id->state = IB_CM_ESTABLISHED;
cm_id            3905 drivers/infiniband/core/cm.c 			 be32_to_cpu(cm_id->local_id), cm_id->state);
cm_id            3923 drivers/infiniband/core/cm.c 	work->local_id = cm_id->local_id;
cm_id            3924 drivers/infiniband/core/cm.c 	work->remote_id = cm_id->remote_id;
cm_id            3942 drivers/infiniband/core/cm.c static int cm_migrate(struct ib_cm_id *cm_id)
cm_id            3950 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id            3952 drivers/infiniband/core/cm.c 	if (cm_id->state == IB_CM_ESTABLISHED &&
cm_id            3953 drivers/infiniband/core/cm.c 	    (cm_id->lap_state == IB_CM_LAP_UNINIT ||
cm_id            3954 drivers/infiniband/core/cm.c 	     cm_id->lap_state == IB_CM_LAP_IDLE)) {
cm_id            3955 drivers/infiniband/core/cm.c 		cm_id->lap_state = IB_CM_LAP_IDLE;
cm_id            3971 drivers/infiniband/core/cm.c int ib_cm_notify(struct ib_cm_id *cm_id, enum ib_event_type event)
cm_id            3977 drivers/infiniband/core/cm.c 		ret = cm_establish(cm_id);
cm_id            3980 drivers/infiniband/core/cm.c 		ret = cm_migrate(cm_id);
cm_id            4224 drivers/infiniband/core/cm.c int ib_cm_init_qp_attr(struct ib_cm_id *cm_id,
cm_id            4231 drivers/infiniband/core/cm.c 	cm_id_priv = container_of(cm_id, struct cm_id_private, id);
cm_id             159 drivers/infiniband/core/cma.c 		return id_priv->cm_id.iw;
cm_id            1117 drivers/infiniband/core/cma.c 		if (!id_priv->cm_id.ib || (id_priv->id.qp_type == IB_QPT_UD))
cm_id            1120 drivers/infiniband/core/cma.c 			ret = ib_cm_init_qp_attr(id_priv->cm_id.ib, qp_attr,
cm_id            1126 drivers/infiniband/core/cma.c 		if (!id_priv->cm_id.iw) {
cm_id            1130 drivers/infiniband/core/cma.c 			ret = iw_cm_init_qp_attr(id_priv->cm_id.iw, qp_attr,
cm_id            1627 drivers/infiniband/core/cma.c 		const struct ib_cm_id *cm_id,
cm_id            1639 drivers/infiniband/core/cma.c 			if (id_priv->id.device == cm_id->device &&
cm_id            1645 drivers/infiniband/core/cma.c 				if (id_priv_dev->id.device == cm_id->device &&
cm_id            1657 drivers/infiniband/core/cma.c cma_ib_id_from_event(struct ib_cm_id *cm_id,
cm_id            1718 drivers/infiniband/core/cma.c 	id_priv = cma_find_listener(bind_list, cm_id, ib_event, req, *net_dev);
cm_id            1854 drivers/infiniband/core/cma.c 			if (id_priv->cm_id.ib)
cm_id            1855 drivers/infiniband/core/cma.c 				ib_destroy_cm_id(id_priv->cm_id.ib);
cm_id            1857 drivers/infiniband/core/cma.c 			if (id_priv->cm_id.iw)
cm_id            1858 drivers/infiniband/core/cma.c 				iw_destroy_cm_id(id_priv->cm_id.iw);
cm_id            1893 drivers/infiniband/core/cma.c 	ret = ib_send_cm_rtu(id_priv->cm_id.ib, NULL, 0);
cm_id            1901 drivers/infiniband/core/cma.c 	ib_send_cm_rej(id_priv->cm_id.ib, IB_CM_REJ_CONSUMER_DEFINED,
cm_id            1920 drivers/infiniband/core/cma.c static int cma_ib_handler(struct ib_cm_id *cm_id,
cm_id            1923 drivers/infiniband/core/cma.c 	struct rdma_id_private *id_priv = cm_id->context;
cm_id            1943 drivers/infiniband/core/cma.c 			ib_send_cm_mra(cm_id, CMA_CM_MRA_SETTING, NULL, 0);
cm_id            1991 drivers/infiniband/core/cma.c 		id_priv->cm_id.ib = NULL;
cm_id            2135 drivers/infiniband/core/cma.c static int cma_ib_req_handler(struct ib_cm_id *cm_id,
cm_id            2145 drivers/infiniband/core/cma.c 	listen_id = cma_ib_id_from_event(cm_id, ib_event, &req, &net_dev);
cm_id            2182 drivers/infiniband/core/cma.c 	conn_id->cm_id.ib = cm_id;
cm_id            2183 drivers/infiniband/core/cma.c 	cm_id->context = conn_id;
cm_id            2184 drivers/infiniband/core/cma.c 	cm_id->cm_handler = cma_ib_handler;
cm_id            2201 drivers/infiniband/core/cma.c 		ib_send_cm_mra(cm_id, CMA_CM_MRA_SETTING, NULL, 0);
cm_id            2213 drivers/infiniband/core/cma.c 	conn_id->cm_id.ib = NULL;
cm_id            2238 drivers/infiniband/core/cma.c void rdma_read_gids(struct rdma_cm_id *cm_id, union ib_gid *sgid,
cm_id            2241 drivers/infiniband/core/cma.c 	struct rdma_addr *addr = &cm_id->route.addr;
cm_id            2243 drivers/infiniband/core/cma.c 	if (!cm_id->device) {
cm_id            2251 drivers/infiniband/core/cma.c 	if (rdma_protocol_roce(cm_id->device, cm_id->port_num)) {
cm_id            2319 drivers/infiniband/core/cma.c 		id_priv->cm_id.iw = NULL;
cm_id            2331 drivers/infiniband/core/cma.c static int iw_conn_req_handler(struct iw_cm_id *cm_id,
cm_id            2347 drivers/infiniband/core/cma.c 	listen_id = cm_id->context;
cm_id            2381 drivers/infiniband/core/cma.c 	conn_id->cm_id.iw = cm_id;
cm_id            2382 drivers/infiniband/core/cma.c 	cm_id->context = conn_id;
cm_id            2383 drivers/infiniband/core/cma.c 	cm_id->cm_handler = cma_iw_handler;
cm_id            2396 drivers/infiniband/core/cma.c 		conn_id->cm_id.iw = NULL;
cm_id            2425 drivers/infiniband/core/cma.c 	id_priv->cm_id.ib = id;
cm_id            2443 drivers/infiniband/core/cma.c 	id_priv->cm_id.iw = id;
cm_id            2445 drivers/infiniband/core/cma.c 	memcpy(&id_priv->cm_id.iw->local_addr, cma_src_addr(id_priv),
cm_id            2448 drivers/infiniband/core/cma.c 	ret = iw_cm_listen(id_priv->cm_id.iw, backlog);
cm_id            2451 drivers/infiniband/core/cma.c 		iw_destroy_cm_id(id_priv->cm_id.iw);
cm_id            2452 drivers/infiniband/core/cma.c 		id_priv->cm_id.iw = NULL;
cm_id            3671 drivers/infiniband/core/cma.c static int cma_sidr_rep_handler(struct ib_cm_id *cm_id,
cm_id            3674 drivers/infiniband/core/cma.c 	struct rdma_id_private *id_priv = cm_id->context;
cm_id            3727 drivers/infiniband/core/cma.c 		id_priv->cm_id.ib = NULL;
cm_id            3778 drivers/infiniband/core/cma.c 	id_priv->cm_id.ib = id;
cm_id            3786 drivers/infiniband/core/cma.c 	ret = ib_send_cm_sidr_req(id_priv->cm_id.ib, &req);
cm_id            3788 drivers/infiniband/core/cma.c 		ib_destroy_cm_id(id_priv->cm_id.ib);
cm_id            3789 drivers/infiniband/core/cma.c 		id_priv->cm_id.ib = NULL;
cm_id            3829 drivers/infiniband/core/cma.c 	id_priv->cm_id.ib = id;
cm_id            3859 drivers/infiniband/core/cma.c 	ret = ib_send_cm_req(id_priv->cm_id.ib, &req);
cm_id            3863 drivers/infiniband/core/cma.c 		id_priv->cm_id.ib = NULL;
cm_id            3873 drivers/infiniband/core/cma.c 	struct iw_cm_id *cm_id;
cm_id            3877 drivers/infiniband/core/cma.c 	cm_id = iw_create_cm_id(id_priv->id.device, cma_iw_handler, id_priv);
cm_id            3878 drivers/infiniband/core/cma.c 	if (IS_ERR(cm_id))
cm_id            3879 drivers/infiniband/core/cma.c 		return PTR_ERR(cm_id);
cm_id            3881 drivers/infiniband/core/cma.c 	cm_id->tos = id_priv->tos;
cm_id            3882 drivers/infiniband/core/cma.c 	cm_id->tos_set = id_priv->tos_set;
cm_id            3883 drivers/infiniband/core/cma.c 	id_priv->cm_id.iw = cm_id;
cm_id            3885 drivers/infiniband/core/cma.c 	memcpy(&cm_id->local_addr, cma_src_addr(id_priv),
cm_id            3887 drivers/infiniband/core/cma.c 	memcpy(&cm_id->remote_addr, cma_dst_addr(id_priv),
cm_id            3904 drivers/infiniband/core/cma.c 	ret = iw_cm_connect(cm_id, &iw_param);
cm_id            3907 drivers/infiniband/core/cma.c 		iw_destroy_cm_id(cm_id);
cm_id            3908 drivers/infiniband/core/cma.c 		id_priv->cm_id.iw = NULL;
cm_id            3972 drivers/infiniband/core/cma.c 	ret = ib_send_cm_rep(id_priv->cm_id.ib, &rep);
cm_id            3999 drivers/infiniband/core/cma.c 	return iw_cm_accept(id_priv->cm_id.iw, &iw_param);
cm_id            4021 drivers/infiniband/core/cma.c 	return ib_send_cm_sidr_rep(id_priv->cm_id.ib, &rep);
cm_id            4080 drivers/infiniband/core/cma.c 	if (!id_priv->cm_id.ib)
cm_id            4085 drivers/infiniband/core/cma.c 		ret = ib_cm_notify(id_priv->cm_id.ib, event);
cm_id            4102 drivers/infiniband/core/cma.c 	if (!id_priv->cm_id.ib)
cm_id            4110 drivers/infiniband/core/cma.c 			ret = ib_send_cm_rej(id_priv->cm_id.ib,
cm_id            4114 drivers/infiniband/core/cma.c 		ret = iw_cm_reject(id_priv->cm_id.iw,
cm_id            4129 drivers/infiniband/core/cma.c 	if (!id_priv->cm_id.ib)
cm_id            4137 drivers/infiniband/core/cma.c 		if (ib_send_cm_dreq(id_priv->cm_id.ib, NULL, 0))
cm_id            4138 drivers/infiniband/core/cma.c 			ib_send_cm_drep(id_priv->cm_id.ib, NULL, 0);
cm_id            4140 drivers/infiniband/core/cma.c 		ret = iw_cm_disconnect(id_priv->cm_id.iw, 0);
cm_id              79 drivers/infiniband/core/cma_priv.h 	} cm_id;
cm_id              97 drivers/infiniband/core/iwcm.c 	struct iwcm_id_private *cm_id;
cm_id             155 drivers/infiniband/core/iwcm.c 	list_add(&work->free_list, &work->cm_id->work_free_list);
cm_id             179 drivers/infiniband/core/iwcm.c 		work->cm_id = cm_id_priv;
cm_id             224 drivers/infiniband/core/iwcm.c static void add_ref(struct iw_cm_id *cm_id)
cm_id             227 drivers/infiniband/core/iwcm.c 	cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
cm_id             231 drivers/infiniband/core/iwcm.c static void rem_ref(struct iw_cm_id *cm_id)
cm_id             235 drivers/infiniband/core/iwcm.c 	cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
cm_id             240 drivers/infiniband/core/iwcm.c static int cm_event_handler(struct iw_cm_id *cm_id, struct iw_cm_event *event);
cm_id             307 drivers/infiniband/core/iwcm.c int iw_cm_disconnect(struct iw_cm_id *cm_id, int abrupt)
cm_id             314 drivers/infiniband/core/iwcm.c 	cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
cm_id             374 drivers/infiniband/core/iwcm.c static void destroy_cm_id(struct iw_cm_id *cm_id)
cm_id             380 drivers/infiniband/core/iwcm.c 	cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
cm_id             403 drivers/infiniband/core/iwcm.c 		cm_id->device->ops.iw_destroy_listen(cm_id);
cm_id             426 drivers/infiniband/core/iwcm.c 		cm_id->device->ops.iw_reject(cm_id, NULL, 0);
cm_id             439 drivers/infiniband/core/iwcm.c 	if (cm_id->mapped) {
cm_id             440 drivers/infiniband/core/iwcm.c 		iwpm_remove_mapinfo(&cm_id->local_addr, &cm_id->m_local_addr);
cm_id             441 drivers/infiniband/core/iwcm.c 		iwpm_remove_mapping(&cm_id->local_addr, RDMA_NL_IWCM);
cm_id             453 drivers/infiniband/core/iwcm.c void iw_destroy_cm_id(struct iw_cm_id *cm_id)
cm_id             455 drivers/infiniband/core/iwcm.c 	destroy_cm_id(cm_id);
cm_id             508 drivers/infiniband/core/iwcm.c static int iw_cm_map(struct iw_cm_id *cm_id, bool active)
cm_id             510 drivers/infiniband/core/iwcm.c 	const char *devname = dev_name(&cm_id->device->dev);
cm_id             511 drivers/infiniband/core/iwcm.c 	const char *ifname = cm_id->device->iw_ifname;
cm_id             520 drivers/infiniband/core/iwcm.c 	cm_id->m_local_addr = cm_id->local_addr;
cm_id             521 drivers/infiniband/core/iwcm.c 	cm_id->m_remote_addr = cm_id->remote_addr;
cm_id             530 drivers/infiniband/core/iwcm.c 	cm_id->mapped = true;
cm_id             531 drivers/infiniband/core/iwcm.c 	pm_msg.loc_addr = cm_id->local_addr;
cm_id             532 drivers/infiniband/core/iwcm.c 	pm_msg.rem_addr = cm_id->remote_addr;
cm_id             533 drivers/infiniband/core/iwcm.c 	pm_msg.flags = (cm_id->device->iw_driver_flags & IW_F_NO_PORT_MAP) ?
cm_id             542 drivers/infiniband/core/iwcm.c 		cm_id->m_local_addr = pm_msg.mapped_loc_addr;
cm_id             544 drivers/infiniband/core/iwcm.c 			cm_id->m_remote_addr = pm_msg.mapped_rem_addr;
cm_id             546 drivers/infiniband/core/iwcm.c 					     &cm_id->remote_addr,
cm_id             547 drivers/infiniband/core/iwcm.c 					     &cm_id->m_remote_addr);
cm_id             551 drivers/infiniband/core/iwcm.c 	return iwpm_create_mapinfo(&cm_id->local_addr,
cm_id             552 drivers/infiniband/core/iwcm.c 				   &cm_id->m_local_addr,
cm_id             562 drivers/infiniband/core/iwcm.c int iw_cm_listen(struct iw_cm_id *cm_id, int backlog)
cm_id             568 drivers/infiniband/core/iwcm.c 	cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
cm_id             582 drivers/infiniband/core/iwcm.c 		ret = iw_cm_map(cm_id, false);
cm_id             584 drivers/infiniband/core/iwcm.c 			ret = cm_id->device->ops.iw_create_listen(cm_id,
cm_id             604 drivers/infiniband/core/iwcm.c int iw_cm_reject(struct iw_cm_id *cm_id,
cm_id             612 drivers/infiniband/core/iwcm.c 	cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
cm_id             625 drivers/infiniband/core/iwcm.c 	ret = cm_id->device->ops.iw_reject(cm_id, private_data,
cm_id             642 drivers/infiniband/core/iwcm.c int iw_cm_accept(struct iw_cm_id *cm_id,
cm_id             650 drivers/infiniband/core/iwcm.c 	cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
cm_id             661 drivers/infiniband/core/iwcm.c 	qp = cm_id->device->ops.iw_get_qp(cm_id->device, iw_param->qpn);
cm_id             668 drivers/infiniband/core/iwcm.c 	cm_id->device->ops.iw_add_ref(qp);
cm_id             672 drivers/infiniband/core/iwcm.c 	ret = cm_id->device->ops.iw_accept(cm_id, iw_param);
cm_id             682 drivers/infiniband/core/iwcm.c 			cm_id->device->ops.iw_rem_ref(qp);
cm_id             698 drivers/infiniband/core/iwcm.c int iw_cm_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *iw_param)
cm_id             705 drivers/infiniband/core/iwcm.c 	cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
cm_id             720 drivers/infiniband/core/iwcm.c 	qp = cm_id->device->ops.iw_get_qp(cm_id->device, iw_param->qpn);
cm_id             725 drivers/infiniband/core/iwcm.c 	cm_id->device->ops.iw_add_ref(qp);
cm_id             730 drivers/infiniband/core/iwcm.c 	ret = iw_cm_map(cm_id, true);
cm_id             732 drivers/infiniband/core/iwcm.c 		ret = cm_id->device->ops.iw_connect(cm_id, iw_param);
cm_id             743 drivers/infiniband/core/iwcm.c 		cm_id->device->ops.iw_rem_ref(qp);
cm_id             769 drivers/infiniband/core/iwcm.c 	struct iw_cm_id *cm_id;
cm_id             779 drivers/infiniband/core/iwcm.c 	cm_id = iw_create_cm_id(listen_id_priv->id.device,
cm_id             783 drivers/infiniband/core/iwcm.c 	if (IS_ERR(cm_id))
cm_id             786 drivers/infiniband/core/iwcm.c 	cm_id->provider_data = iw_event->provider_data;
cm_id             787 drivers/infiniband/core/iwcm.c 	cm_id->m_local_addr = iw_event->local_addr;
cm_id             788 drivers/infiniband/core/iwcm.c 	cm_id->m_remote_addr = iw_event->remote_addr;
cm_id             789 drivers/infiniband/core/iwcm.c 	cm_id->local_addr = listen_id_priv->id.local_addr;
cm_id             793 drivers/infiniband/core/iwcm.c 				   &cm_id->remote_addr,
cm_id             796 drivers/infiniband/core/iwcm.c 		cm_id->remote_addr = iw_event->remote_addr;
cm_id             800 drivers/infiniband/core/iwcm.c 				     &cm_id->local_addr);
cm_id             801 drivers/infiniband/core/iwcm.c 		iw_event->local_addr = cm_id->local_addr;
cm_id             802 drivers/infiniband/core/iwcm.c 		iw_event->remote_addr = cm_id->remote_addr;
cm_id             805 drivers/infiniband/core/iwcm.c 	cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
cm_id             815 drivers/infiniband/core/iwcm.c 		iw_cm_reject(cm_id, NULL, 0);
cm_id             816 drivers/infiniband/core/iwcm.c 		iw_destroy_cm_id(cm_id);
cm_id             823 drivers/infiniband/core/iwcm.c 		iw_cm_reject(cm_id, NULL, 0);
cm_id             824 drivers/infiniband/core/iwcm.c 		iw_destroy_cm_id(cm_id);
cm_id             829 drivers/infiniband/core/iwcm.c 	ret = cm_id->cm_handler(cm_id, iw_event);
cm_id             831 drivers/infiniband/core/iwcm.c 		iw_cm_reject(cm_id, NULL, 0);
cm_id             832 drivers/infiniband/core/iwcm.c 		iw_destroy_cm_id(cm_id);
cm_id            1020 drivers/infiniband/core/iwcm.c 	struct iwcm_id_private *cm_id_priv = work->cm_id;
cm_id            1066 drivers/infiniband/core/iwcm.c static int cm_event_handler(struct iw_cm_id *cm_id,
cm_id            1074 drivers/infiniband/core/iwcm.c 	cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
cm_id            1084 drivers/infiniband/core/iwcm.c 	work->cm_id = cm_id_priv;
cm_id            1158 drivers/infiniband/core/iwcm.c int iw_cm_init_qp_attr(struct iw_cm_id *cm_id,
cm_id            1165 drivers/infiniband/core/iwcm.c 	cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);
cm_id             493 drivers/infiniband/core/nldev.c 	struct rdma_cm_id *cm_id = &id_priv->id;
cm_id             495 drivers/infiniband/core/nldev.c 	if (port && port != cm_id->port_num)
cm_id             498 drivers/infiniband/core/nldev.c 	if (cm_id->port_num &&
cm_id             499 drivers/infiniband/core/nldev.c 	    nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, cm_id->port_num))
cm_id             505 drivers/infiniband/core/nldev.c 		if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_TYPE, cm_id->qp_type))
cm_id             509 drivers/infiniband/core/nldev.c 	if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_PS, cm_id->ps))
cm_id             515 drivers/infiniband/core/nldev.c 	if (cm_id->route.addr.src_addr.ss_family &&
cm_id             517 drivers/infiniband/core/nldev.c 		    sizeof(cm_id->route.addr.src_addr),
cm_id             518 drivers/infiniband/core/nldev.c 		    &cm_id->route.addr.src_addr))
cm_id             520 drivers/infiniband/core/nldev.c 	if (cm_id->route.addr.dst_addr.ss_family &&
cm_id             522 drivers/infiniband/core/nldev.c 		    sizeof(cm_id->route.addr.dst_addr),
cm_id             523 drivers/infiniband/core/nldev.c 		    &cm_id->route.addr.dst_addr))
cm_id            1415 drivers/infiniband/core/nldev.c RES_GET_FUNCS(cm_id, RDMA_RESTRACK_CM_ID);
cm_id              93 drivers/infiniband/core/ucma.c 	struct rdma_cm_id	*cm_id;
cm_id             123 drivers/infiniband/core/ucma.c 	struct rdma_cm_id	*cm_id;
cm_id             141 drivers/infiniband/core/ucma.c 	else if (ctx->file != file || !ctx->cm_id)
cm_id             178 drivers/infiniband/core/ucma.c 	if (!ctx->cm_id->device) {
cm_id             189 drivers/infiniband/core/ucma.c 	rdma_destroy_id(uevent_close->cm_id);
cm_id             204 drivers/infiniband/core/ucma.c 	rdma_destroy_id(ctx->cm_id);
cm_id             303 drivers/infiniband/core/ucma.c static void ucma_removal_event_handler(struct rdma_cm_id *cm_id)
cm_id             305 drivers/infiniband/core/ucma.c 	struct ucma_context *ctx = cm_id->context;
cm_id             318 drivers/infiniband/core/ucma.c 	if (ctx->cm_id == cm_id) {
cm_id             327 drivers/infiniband/core/ucma.c 		if (con_req_eve->cm_id == cm_id &&
cm_id             340 drivers/infiniband/core/ucma.c static int ucma_event_handler(struct rdma_cm_id *cm_id,
cm_id             344 drivers/infiniband/core/ucma.c 	struct ucma_context *ctx = cm_id->context;
cm_id             352 drivers/infiniband/core/ucma.c 	uevent->cm_id = cm_id;
cm_id             356 drivers/infiniband/core/ucma.c 	if (cm_id->qp_type == IB_QPT_UD)
cm_id             357 drivers/infiniband/core/ucma.c 		ucma_copy_ud_event(cm_id->device, &uevent->resp.param.ud,
cm_id             370 drivers/infiniband/core/ucma.c 	} else if (!ctx->uid || ctx->cm_id != cm_id) {
cm_id             380 drivers/infiniband/core/ucma.c 			ucma_removal_event_handler(cm_id);
cm_id             389 drivers/infiniband/core/ucma.c 		ucma_removal_event_handler(cm_id);
cm_id             436 drivers/infiniband/core/ucma.c 		ctx->cm_id = uevent->cm_id;
cm_id             437 drivers/infiniband/core/ucma.c 		ctx->cm_id->context = ctx;
cm_id             482 drivers/infiniband/core/ucma.c 	struct rdma_cm_id *cm_id;
cm_id             503 drivers/infiniband/core/ucma.c 	cm_id = __rdma_create_id(current->nsproxy->net_ns,
cm_id             505 drivers/infiniband/core/ucma.c 	if (IS_ERR(cm_id)) {
cm_id             506 drivers/infiniband/core/ucma.c 		ret = PTR_ERR(cm_id);
cm_id             517 drivers/infiniband/core/ucma.c 	ctx->cm_id = cm_id;
cm_id             521 drivers/infiniband/core/ucma.c 	rdma_destroy_id(cm_id);
cm_id             589 drivers/infiniband/core/ucma.c 			rdma_destroy_id(uevent->cm_id);
cm_id             634 drivers/infiniband/core/ucma.c 		rdma_destroy_id(ctx->cm_id);
cm_id             665 drivers/infiniband/core/ucma.c 	ret = rdma_bind_addr(ctx->cm_id, (struct sockaddr *) &cmd.addr);
cm_id             691 drivers/infiniband/core/ucma.c 	ret = rdma_bind_addr(ctx->cm_id, (struct sockaddr *) &cmd.addr);
cm_id             717 drivers/infiniband/core/ucma.c 	ret = rdma_resolve_addr(ctx->cm_id, (struct sockaddr *) &cmd.src_addr,
cm_id             745 drivers/infiniband/core/ucma.c 	ret = rdma_resolve_addr(ctx->cm_id, (struct sockaddr *) &cmd.src_addr,
cm_id             768 drivers/infiniband/core/ucma.c 	ret = rdma_resolve_route(ctx->cm_id, cmd.timeout_ms);
cm_id             860 drivers/infiniband/core/ucma.c 	addr = (struct sockaddr *) &ctx->cm_id->route.addr.src_addr;
cm_id             864 drivers/infiniband/core/ucma.c 	addr = (struct sockaddr *) &ctx->cm_id->route.addr.dst_addr;
cm_id             868 drivers/infiniband/core/ucma.c 	if (!ctx->cm_id->device)
cm_id             871 drivers/infiniband/core/ucma.c 	resp.node_guid = (__force __u64) ctx->cm_id->device->node_guid;
cm_id             872 drivers/infiniband/core/ucma.c 	resp.port_num = ctx->cm_id->port_num;
cm_id             874 drivers/infiniband/core/ucma.c 	if (rdma_cap_ib_sa(ctx->cm_id->device, ctx->cm_id->port_num))
cm_id             875 drivers/infiniband/core/ucma.c 		ucma_copy_ib_route(&resp, &ctx->cm_id->route);
cm_id             876 drivers/infiniband/core/ucma.c 	else if (rdma_protocol_roce(ctx->cm_id->device, ctx->cm_id->port_num))
cm_id             877 drivers/infiniband/core/ucma.c 		ucma_copy_iboe_route(&resp, &ctx->cm_id->route);
cm_id             878 drivers/infiniband/core/ucma.c 	else if (rdma_protocol_iwarp(ctx->cm_id->device, ctx->cm_id->port_num))
cm_id             879 drivers/infiniband/core/ucma.c 		ucma_copy_iw_route(&resp, &ctx->cm_id->route);
cm_id             891 drivers/infiniband/core/ucma.c static void ucma_query_device_addr(struct rdma_cm_id *cm_id,
cm_id             894 drivers/infiniband/core/ucma.c 	if (!cm_id->device)
cm_id             897 drivers/infiniband/core/ucma.c 	resp->node_guid = (__force __u64) cm_id->device->node_guid;
cm_id             898 drivers/infiniband/core/ucma.c 	resp->port_num = cm_id->port_num;
cm_id             900 drivers/infiniband/core/ucma.c 		     ib_addr_get_pkey(&cm_id->route.addr.dev_addr));
cm_id             915 drivers/infiniband/core/ucma.c 	addr = (struct sockaddr *) &ctx->cm_id->route.addr.src_addr;
cm_id             919 drivers/infiniband/core/ucma.c 	addr = (struct sockaddr *) &ctx->cm_id->route.addr.dst_addr;
cm_id             923 drivers/infiniband/core/ucma.c 	ucma_query_device_addr(ctx->cm_id, &resp);
cm_id             944 drivers/infiniband/core/ucma.c 	resp->num_paths = ctx->cm_id->route.num_paths;
cm_id             948 drivers/infiniband/core/ucma.c 		struct sa_path_rec *rec = &ctx->cm_id->route.path_rec[i];
cm_id             982 drivers/infiniband/core/ucma.c 	ucma_query_device_addr(ctx->cm_id, &resp);
cm_id             986 drivers/infiniband/core/ucma.c 	if (ctx->cm_id->route.addr.src_addr.ss_family == AF_IB) {
cm_id             987 drivers/infiniband/core/ucma.c 		memcpy(addr, &ctx->cm_id->route.addr.src_addr, resp.src_size);
cm_id             991 drivers/infiniband/core/ucma.c 		rdma_read_gids(ctx->cm_id, (union ib_gid *)&addr->sib_addr,
cm_id             993 drivers/infiniband/core/ucma.c 		addr->sib_sid = rdma_get_service_id(ctx->cm_id, (struct sockaddr *)
cm_id             994 drivers/infiniband/core/ucma.c 						    &ctx->cm_id->route.addr.src_addr);
cm_id             999 drivers/infiniband/core/ucma.c 	if (ctx->cm_id->route.addr.dst_addr.ss_family == AF_IB) {
cm_id            1000 drivers/infiniband/core/ucma.c 		memcpy(addr, &ctx->cm_id->route.addr.dst_addr, resp.dst_size);
cm_id            1004 drivers/infiniband/core/ucma.c 		rdma_read_gids(ctx->cm_id, NULL,
cm_id            1006 drivers/infiniband/core/ucma.c 		addr->sib_sid = rdma_get_service_id(ctx->cm_id, (struct sockaddr *)
cm_id            1007 drivers/infiniband/core/ucma.c 						    &ctx->cm_id->route.addr.dst_addr);
cm_id            1088 drivers/infiniband/core/ucma.c 	ucma_copy_conn_param(ctx->cm_id, &conn_param, &cmd.conn_param);
cm_id            1090 drivers/infiniband/core/ucma.c 	ret = rdma_connect(ctx->cm_id, &conn_param);
cm_id            1113 drivers/infiniband/core/ucma.c 	ret = rdma_listen(ctx->cm_id, ctx->backlog);
cm_id            1135 drivers/infiniband/core/ucma.c 		ucma_copy_conn_param(ctx->cm_id, &conn_param, &cmd.conn_param);
cm_id            1138 drivers/infiniband/core/ucma.c 		ret = __rdma_accept(ctx->cm_id, &conn_param, NULL);
cm_id            1145 drivers/infiniband/core/ucma.c 		ret = __rdma_accept(ctx->cm_id, NULL, NULL);
cm_id            1167 drivers/infiniband/core/ucma.c 	ret = rdma_reject(ctx->cm_id, cmd.private_data, cmd.private_data_len);
cm_id            1188 drivers/infiniband/core/ucma.c 	ret = rdma_disconnect(ctx->cm_id);
cm_id            1221 drivers/infiniband/core/ucma.c 	ret = rdma_init_qp_attr(ctx->cm_id, &qp_attr, &resp.qp_attr_mask);
cm_id            1226 drivers/infiniband/core/ucma.c 	ib_copy_qp_attr_to_user(ctx->cm_id->device, &resp, &qp_attr);
cm_id            1247 drivers/infiniband/core/ucma.c 		rdma_set_service_type(ctx->cm_id, *((u8 *) optval));
cm_id            1254 drivers/infiniband/core/ucma.c 		ret = rdma_set_reuseaddr(ctx->cm_id, *((int *) optval) ? 1 : 0);
cm_id            1261 drivers/infiniband/core/ucma.c 		ret = rdma_set_afonly(ctx->cm_id, *((int *) optval) ? 1 : 0);
cm_id            1268 drivers/infiniband/core/ucma.c 		ret = rdma_set_ack_timeout(ctx->cm_id, *((u8 *)optval));
cm_id            1296 drivers/infiniband/core/ucma.c 	if (!ctx->cm_id->device)
cm_id            1304 drivers/infiniband/core/ucma.c 	if (rdma_cap_opa_ah(ctx->cm_id->device, ctx->cm_id->port_num)) {
cm_id            1309 drivers/infiniband/core/ucma.c 		ret = rdma_set_ib_path(ctx->cm_id, &opa);
cm_id            1313 drivers/infiniband/core/ucma.c 		ret = rdma_set_ib_path(ctx->cm_id, &sa_path);
cm_id            1321 drivers/infiniband/core/ucma.c 	return ucma_event_handler(ctx->cm_id, &event);
cm_id            1410 drivers/infiniband/core/ucma.c 	if (ctx->cm_id->device)
cm_id            1411 drivers/infiniband/core/ucma.c 		ret = rdma_notify(ctx->cm_id, (enum ib_event_type)cmd.event);
cm_id            1456 drivers/infiniband/core/ucma.c 	ret = rdma_join_multicast(ctx->cm_id, (struct sockaddr *)&mc->addr,
cm_id            1476 drivers/infiniband/core/ucma.c 	rdma_leave_multicast(ctx->cm_id, (struct sockaddr *) &mc->addr);
cm_id            1559 drivers/infiniband/core/ucma.c 	rdma_leave_multicast(mc->ctx->cm_id, (struct sockaddr *) &mc->addr);
cm_id            1807 drivers/infiniband/core/ucma.c 			rdma_destroy_id(ctx->cm_id);
cm_id             671 drivers/infiniband/hw/cxgb3/iwch_cm.c 	if (ep->com.cm_id) {
cm_id             673 drivers/infiniband/hw/cxgb3/iwch_cm.c 			 ep, ep->com.cm_id, ep->hwtid);
cm_id             674 drivers/infiniband/hw/cxgb3/iwch_cm.c 		ep->com.cm_id->event_handler(ep->com.cm_id, &event);
cm_id             675 drivers/infiniband/hw/cxgb3/iwch_cm.c 		ep->com.cm_id->rem_ref(ep->com.cm_id);
cm_id             676 drivers/infiniband/hw/cxgb3/iwch_cm.c 		ep->com.cm_id = NULL;
cm_id             688 drivers/infiniband/hw/cxgb3/iwch_cm.c 	if (ep->com.cm_id) {
cm_id             690 drivers/infiniband/hw/cxgb3/iwch_cm.c 			 ep, ep->com.cm_id, ep->hwtid);
cm_id             691 drivers/infiniband/hw/cxgb3/iwch_cm.c 		ep->com.cm_id->event_handler(ep->com.cm_id, &event);
cm_id             703 drivers/infiniband/hw/cxgb3/iwch_cm.c 	if (ep->com.cm_id) {
cm_id             705 drivers/infiniband/hw/cxgb3/iwch_cm.c 			 ep->com.cm_id, ep->hwtid);
cm_id             706 drivers/infiniband/hw/cxgb3/iwch_cm.c 		ep->com.cm_id->event_handler(ep->com.cm_id, &event);
cm_id             707 drivers/infiniband/hw/cxgb3/iwch_cm.c 		ep->com.cm_id->rem_ref(ep->com.cm_id);
cm_id             708 drivers/infiniband/hw/cxgb3/iwch_cm.c 		ep->com.cm_id = NULL;
cm_id             730 drivers/infiniband/hw/cxgb3/iwch_cm.c 	if (ep->com.cm_id) {
cm_id             733 drivers/infiniband/hw/cxgb3/iwch_cm.c 		ep->com.cm_id->event_handler(ep->com.cm_id, &event);
cm_id             736 drivers/infiniband/hw/cxgb3/iwch_cm.c 		ep->com.cm_id->rem_ref(ep->com.cm_id);
cm_id             737 drivers/infiniband/hw/cxgb3/iwch_cm.c 		ep->com.cm_id = NULL;
cm_id             763 drivers/infiniband/hw/cxgb3/iwch_cm.c 		ep->parent_ep->com.cm_id->event_handler(
cm_id             764 drivers/infiniband/hw/cxgb3/iwch_cm.c 						ep->parent_ep->com.cm_id,
cm_id             783 drivers/infiniband/hw/cxgb3/iwch_cm.c 	if (ep->com.cm_id) {
cm_id             785 drivers/infiniband/hw/cxgb3/iwch_cm.c 		ep->com.cm_id->event_handler(ep->com.cm_id, &event);
cm_id            1387 drivers/infiniband/hw/cxgb3/iwch_cm.c 	child_ep->com.cm_id = NULL;
cm_id            1486 drivers/infiniband/hw/cxgb3/iwch_cm.c 		if (ep->com.cm_id && ep->com.qp) {
cm_id            1581 drivers/infiniband/hw/cxgb3/iwch_cm.c 		if (ep->com.cm_id && ep->com.qp) {
cm_id            1645 drivers/infiniband/hw/cxgb3/iwch_cm.c 		if ((ep->com.cm_id) && (ep->com.qp)) {
cm_id            1740 drivers/infiniband/hw/cxgb3/iwch_cm.c 		if (ep->com.cm_id && ep->com.qp) {
cm_id            1759 drivers/infiniband/hw/cxgb3/iwch_cm.c int iwch_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len)
cm_id            1761 drivers/infiniband/hw/cxgb3/iwch_cm.c 	struct iwch_ep *ep = to_ep(cm_id);
cm_id            1780 drivers/infiniband/hw/cxgb3/iwch_cm.c int iwch_accept_cr(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
cm_id            1785 drivers/infiniband/hw/cxgb3/iwch_cm.c 	struct iwch_ep *ep = to_ep(cm_id);
cm_id            1786 drivers/infiniband/hw/cxgb3/iwch_cm.c 	struct iwch_dev *h = to_iwch_dev(cm_id->device);
cm_id            1805 drivers/infiniband/hw/cxgb3/iwch_cm.c 	cm_id->add_ref(cm_id);
cm_id            1806 drivers/infiniband/hw/cxgb3/iwch_cm.c 	ep->com.cm_id = cm_id;
cm_id            1855 drivers/infiniband/hw/cxgb3/iwch_cm.c 	ep->com.cm_id = NULL;
cm_id            1857 drivers/infiniband/hw/cxgb3/iwch_cm.c 	cm_id->rem_ref(cm_id);
cm_id            1863 drivers/infiniband/hw/cxgb3/iwch_cm.c static int is_loopback_dst(struct iw_cm_id *cm_id)
cm_id            1866 drivers/infiniband/hw/cxgb3/iwch_cm.c 	struct sockaddr_in *raddr = (struct sockaddr_in *)&cm_id->m_remote_addr;
cm_id            1875 drivers/infiniband/hw/cxgb3/iwch_cm.c int iwch_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
cm_id            1877 drivers/infiniband/hw/cxgb3/iwch_cm.c 	struct iwch_dev *h = to_iwch_dev(cm_id->device);
cm_id            1881 drivers/infiniband/hw/cxgb3/iwch_cm.c 	struct sockaddr_in *laddr = (struct sockaddr_in *)&cm_id->m_local_addr;
cm_id            1882 drivers/infiniband/hw/cxgb3/iwch_cm.c 	struct sockaddr_in *raddr = (struct sockaddr_in *)&cm_id->m_remote_addr;
cm_id            1884 drivers/infiniband/hw/cxgb3/iwch_cm.c 	if (cm_id->m_remote_addr.ss_family != PF_INET) {
cm_id            1889 drivers/infiniband/hw/cxgb3/iwch_cm.c 	if (is_loopback_dst(cm_id)) {
cm_id            1913 drivers/infiniband/hw/cxgb3/iwch_cm.c 	cm_id->add_ref(cm_id);
cm_id            1914 drivers/infiniband/hw/cxgb3/iwch_cm.c 	ep->com.cm_id = cm_id;
cm_id            1918 drivers/infiniband/hw/cxgb3/iwch_cm.c 		 ep->com.qp, cm_id);
cm_id            1950 drivers/infiniband/hw/cxgb3/iwch_cm.c 	memcpy(&ep->com.local_addr, &cm_id->m_local_addr,
cm_id            1952 drivers/infiniband/hw/cxgb3/iwch_cm.c 	memcpy(&ep->com.remote_addr, &cm_id->m_remote_addr,
cm_id            1966 drivers/infiniband/hw/cxgb3/iwch_cm.c 	cm_id->rem_ref(cm_id);
cm_id            1972 drivers/infiniband/hw/cxgb3/iwch_cm.c int iwch_create_listen(struct iw_cm_id *cm_id, int backlog)
cm_id            1975 drivers/infiniband/hw/cxgb3/iwch_cm.c 	struct iwch_dev *h = to_iwch_dev(cm_id->device);
cm_id            1981 drivers/infiniband/hw/cxgb3/iwch_cm.c 	if (cm_id->m_local_addr.ss_family != PF_INET) {
cm_id            1994 drivers/infiniband/hw/cxgb3/iwch_cm.c 	cm_id->add_ref(cm_id);
cm_id            1995 drivers/infiniband/hw/cxgb3/iwch_cm.c 	ep->com.cm_id = cm_id;
cm_id            1997 drivers/infiniband/hw/cxgb3/iwch_cm.c 	memcpy(&ep->com.local_addr, &cm_id->m_local_addr,
cm_id            2019 drivers/infiniband/hw/cxgb3/iwch_cm.c 		cm_id->provider_data = ep;
cm_id            2025 drivers/infiniband/hw/cxgb3/iwch_cm.c 	cm_id->rem_ref(cm_id);
cm_id            2032 drivers/infiniband/hw/cxgb3/iwch_cm.c int iwch_destroy_listen(struct iw_cm_id *cm_id)
cm_id            2035 drivers/infiniband/hw/cxgb3/iwch_cm.c 	struct iwch_listen_ep *ep = to_listen_ep(cm_id);
cm_id            2050 drivers/infiniband/hw/cxgb3/iwch_cm.c 	cm_id->rem_ref(cm_id);
cm_id             155 drivers/infiniband/hw/cxgb3/iwch_cm.h 	struct iw_cm_id *cm_id;
cm_id             196 drivers/infiniband/hw/cxgb3/iwch_cm.h static inline struct iwch_ep *to_ep(struct iw_cm_id *cm_id)
cm_id             198 drivers/infiniband/hw/cxgb3/iwch_cm.h 	return cm_id->provider_data;
cm_id             201 drivers/infiniband/hw/cxgb3/iwch_cm.h static inline struct iwch_listen_ep *to_listen_ep(struct iw_cm_id *cm_id)
cm_id             203 drivers/infiniband/hw/cxgb3/iwch_cm.h 	return cm_id->provider_data;
cm_id             217 drivers/infiniband/hw/cxgb3/iwch_cm.h int iwch_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param);
cm_id             218 drivers/infiniband/hw/cxgb3/iwch_cm.h int iwch_create_listen(struct iw_cm_id *cm_id, int backlog);
cm_id             219 drivers/infiniband/hw/cxgb3/iwch_cm.h int iwch_destroy_listen(struct iw_cm_id *cm_id);
cm_id             220 drivers/infiniband/hw/cxgb3/iwch_cm.h int iwch_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len);
cm_id             221 drivers/infiniband/hw/cxgb3/iwch_cm.h int iwch_accept_cr(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param);
cm_id             152 drivers/infiniband/hw/cxgb4/cm.c 	epc->cm_id->rem_ref(epc->cm_id);
cm_id             153 drivers/infiniband/hw/cxgb4/cm.c 	epc->cm_id = NULL;
cm_id             160 drivers/infiniband/hw/cxgb4/cm.c 	epc->cm_id->add_ref(epc->cm_id);
cm_id            1275 drivers/infiniband/hw/cxgb4/cm.c 	if (ep->com.cm_id) {
cm_id            1277 drivers/infiniband/hw/cxgb4/cm.c 			 ep, ep->com.cm_id, ep->hwtid);
cm_id            1278 drivers/infiniband/hw/cxgb4/cm.c 		ep->com.cm_id->event_handler(ep->com.cm_id, &event);
cm_id            1291 drivers/infiniband/hw/cxgb4/cm.c 	if (ep->com.cm_id) {
cm_id            1293 drivers/infiniband/hw/cxgb4/cm.c 			 ep, ep->com.cm_id, ep->hwtid);
cm_id            1294 drivers/infiniband/hw/cxgb4/cm.c 		ep->com.cm_id->event_handler(ep->com.cm_id, &event);
cm_id            1307 drivers/infiniband/hw/cxgb4/cm.c 	if (ep->com.cm_id) {
cm_id            1309 drivers/infiniband/hw/cxgb4/cm.c 			 ep->com.cm_id, ep->hwtid);
cm_id            1310 drivers/infiniband/hw/cxgb4/cm.c 		ep->com.cm_id->event_handler(ep->com.cm_id, &event);
cm_id            1353 drivers/infiniband/hw/cxgb4/cm.c 	ep->com.cm_id->event_handler(ep->com.cm_id, &event);
cm_id            1388 drivers/infiniband/hw/cxgb4/cm.c 	ret = ep->parent_ep->com.cm_id->event_handler(ep->parent_ep->com.cm_id,
cm_id            1406 drivers/infiniband/hw/cxgb4/cm.c 	if (ep->com.cm_id) {
cm_id            1408 drivers/infiniband/hw/cxgb4/cm.c 		ep->com.cm_id->event_handler(ep->com.cm_id, &event);
cm_id            2156 drivers/infiniband/hw/cxgb4/cm.c 				    &ep->com.cm_id->m_local_addr;
cm_id            2158 drivers/infiniband/hw/cxgb4/cm.c 				    &ep->com.cm_id->m_remote_addr;
cm_id            2160 drivers/infiniband/hw/cxgb4/cm.c 				      &ep->com.cm_id->m_local_addr;
cm_id            2162 drivers/infiniband/hw/cxgb4/cm.c 				      &ep->com.cm_id->m_remote_addr;
cm_id            2166 drivers/infiniband/hw/cxgb4/cm.c 	pr_debug("qp %p cm_id %p\n", ep->com.qp, ep->com.cm_id);
cm_id            2198 drivers/infiniband/hw/cxgb4/cm.c 	if (ep->com.cm_id->m_local_addr.ss_family == AF_INET) {
cm_id            2203 drivers/infiniband/hw/cxgb4/cm.c 					  raddr->sin_port, ep->com.cm_id->tos);
cm_id            2213 drivers/infiniband/hw/cxgb4/cm.c 					   ep->com.cm_id->tos,
cm_id            2225 drivers/infiniband/hw/cxgb4/cm.c 			ep->com.cm_id->tos);
cm_id            2236 drivers/infiniband/hw/cxgb4/cm.c 	ep->tos = ep->com.cm_id->tos;
cm_id            2542 drivers/infiniband/hw/cxgb4/cm.c 	if (parent_ep->com.cm_id->tos_set)
cm_id            2543 drivers/infiniband/hw/cxgb4/cm.c 		tos = parent_ep->com.cm_id->tos;
cm_id            2603 drivers/infiniband/hw/cxgb4/cm.c 	child_ep->com.cm_id = NULL;
cm_id            2772 drivers/infiniband/hw/cxgb4/cm.c 		if (ep->com.cm_id && ep->com.qp) {
cm_id            2800 drivers/infiniband/hw/cxgb4/cm.c 	if (ep->com.cm_id && ep->com.qp) {
cm_id            2906 drivers/infiniband/hw/cxgb4/cm.c 		if (ep->com.cm_id && ep->com.qp) {
cm_id            2995 drivers/infiniband/hw/cxgb4/cm.c 		if ((ep->com.cm_id) && (ep->com.qp)) {
cm_id            3090 drivers/infiniband/hw/cxgb4/cm.c int c4iw_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len)
cm_id            3093 drivers/infiniband/hw/cxgb4/cm.c 	struct c4iw_ep *ep = to_ep(cm_id);
cm_id            3116 drivers/infiniband/hw/cxgb4/cm.c int c4iw_accept_cr(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
cm_id            3121 drivers/infiniband/hw/cxgb4/cm.c 	struct c4iw_ep *ep = to_ep(cm_id);
cm_id            3122 drivers/infiniband/hw/cxgb4/cm.c 	struct c4iw_dev *h = to_c4iw_dev(cm_id->device);
cm_id            3184 drivers/infiniband/hw/cxgb4/cm.c 	ep->com.cm_id = cm_id;
cm_id            3231 drivers/infiniband/hw/cxgb4/cm.c static int pick_local_ipaddrs(struct c4iw_dev *dev, struct iw_cm_id *cm_id)
cm_id            3235 drivers/infiniband/hw/cxgb4/cm.c 	struct sockaddr_in *laddr = (struct sockaddr_in *)&cm_id->m_local_addr;
cm_id            3236 drivers/infiniband/hw/cxgb4/cm.c 	struct sockaddr_in *raddr = (struct sockaddr_in *)&cm_id->m_remote_addr;
cm_id            3283 drivers/infiniband/hw/cxgb4/cm.c static int pick_local_ip6addrs(struct c4iw_dev *dev, struct iw_cm_id *cm_id)
cm_id            3286 drivers/infiniband/hw/cxgb4/cm.c 	struct sockaddr_in6 *la6 = (struct sockaddr_in6 *)&cm_id->m_local_addr;
cm_id            3287 drivers/infiniband/hw/cxgb4/cm.c 	struct sockaddr_in6 *ra6 = (struct sockaddr_in6 *)&cm_id->m_remote_addr;
cm_id            3297 drivers/infiniband/hw/cxgb4/cm.c int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
cm_id            3299 drivers/infiniband/hw/cxgb4/cm.c 	struct c4iw_dev *dev = to_c4iw_dev(cm_id->device);
cm_id            3338 drivers/infiniband/hw/cxgb4/cm.c 	ep->com.cm_id = cm_id;
cm_id            3340 drivers/infiniband/hw/cxgb4/cm.c 	cm_id->provider_data = ep;
cm_id            3350 drivers/infiniband/hw/cxgb4/cm.c 		 ep->com.qp, cm_id);
cm_id            3365 drivers/infiniband/hw/cxgb4/cm.c 	memcpy(&ep->com.local_addr, &cm_id->m_local_addr,
cm_id            3367 drivers/infiniband/hw/cxgb4/cm.c 	memcpy(&ep->com.remote_addr, &cm_id->m_remote_addr,
cm_id            3375 drivers/infiniband/hw/cxgb4/cm.c 	if (cm_id->m_remote_addr.ss_family == AF_INET) {
cm_id            3383 drivers/infiniband/hw/cxgb4/cm.c 			err = pick_local_ipaddrs(dev, cm_id);
cm_id            3396 drivers/infiniband/hw/cxgb4/cm.c 					  raddr->sin_port, cm_id->tos);
cm_id            3405 drivers/infiniband/hw/cxgb4/cm.c 			err = pick_local_ip6addrs(dev, cm_id);
cm_id            3419 drivers/infiniband/hw/cxgb4/cm.c 					   raddr6->sin6_port, cm_id->tos,
cm_id            3429 drivers/infiniband/hw/cxgb4/cm.c 			ep->com.dev->rdev.lldi.adapter_type, cm_id->tos);
cm_id            3440 drivers/infiniband/hw/cxgb4/cm.c 	ep->tos = cm_id->tos;
cm_id            3536 drivers/infiniband/hw/cxgb4/cm.c int c4iw_create_listen(struct iw_cm_id *cm_id, int backlog)
cm_id            3539 drivers/infiniband/hw/cxgb4/cm.c 	struct c4iw_dev *dev = to_c4iw_dev(cm_id->device);
cm_id            3552 drivers/infiniband/hw/cxgb4/cm.c 	ep->com.cm_id = cm_id;
cm_id            3556 drivers/infiniband/hw/cxgb4/cm.c 	memcpy(&ep->com.local_addr, &cm_id->m_local_addr,
cm_id            3565 drivers/infiniband/hw/cxgb4/cm.c 					     cm_id->m_local_addr.ss_family, ep);
cm_id            3568 drivers/infiniband/hw/cxgb4/cm.c 					    cm_id->m_local_addr.ss_family, ep);
cm_id            3585 drivers/infiniband/hw/cxgb4/cm.c 		cm_id->provider_data = ep;
cm_id            3600 drivers/infiniband/hw/cxgb4/cm.c int c4iw_destroy_listen(struct iw_cm_id *cm_id)
cm_id            3603 drivers/infiniband/hw/cxgb4/cm.c 	struct c4iw_listen_ep *ep = to_listen_ep(cm_id);
cm_id            4241 drivers/infiniband/hw/cxgb4/cm.c 		if (ep->com.cm_id && ep->com.qp) {
cm_id             213 drivers/infiniband/hw/cxgb4/device.c 	struct iw_cm_id *id = ep->com.cm_id;
cm_id             232 drivers/infiniband/hw/cxgb4/device.c 	struct iw_cm_id *id = ep->com.cm_id;
cm_id             579 drivers/infiniband/hw/cxgb4/device.c 			      ep, ep->com.cm_id, ep->com.qp,
cm_id             600 drivers/infiniband/hw/cxgb4/device.c 			      ep, ep->com.cm_id, ep->com.qp,
cm_id             627 drivers/infiniband/hw/cxgb4/device.c 			&ep->com.cm_id->local_addr;
cm_id             629 drivers/infiniband/hw/cxgb4/device.c 			&ep->com.cm_id->m_local_addr;
cm_id             634 drivers/infiniband/hw/cxgb4/device.c 			      ep, ep->com.cm_id, (int)ep->com.state,
cm_id             640 drivers/infiniband/hw/cxgb4/device.c 			&ep->com.cm_id->local_addr;
cm_id             642 drivers/infiniband/hw/cxgb4/device.c 			&ep->com.cm_id->m_local_addr;
cm_id             647 drivers/infiniband/hw/cxgb4/device.c 			      ep, ep->com.cm_id, (int)ep->com.state,
cm_id             854 drivers/infiniband/hw/cxgb4/iw_cxgb4.h 	struct iw_cm_id *cm_id;
cm_id             918 drivers/infiniband/hw/cxgb4/iw_cxgb4.h static inline struct c4iw_ep *to_ep(struct iw_cm_id *cm_id)
cm_id             920 drivers/infiniband/hw/cxgb4/iw_cxgb4.h 	return cm_id->provider_data;
cm_id             923 drivers/infiniband/hw/cxgb4/iw_cxgb4.h static inline struct c4iw_listen_ep *to_listen_ep(struct iw_cm_id *cm_id)
cm_id             925 drivers/infiniband/hw/cxgb4/iw_cxgb4.h 	return cm_id->provider_data;
cm_id             975 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param);
cm_id             976 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_create_listen(struct iw_cm_id *cm_id, int backlog);
cm_id             977 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_destroy_listen(struct iw_cm_id *cm_id);
cm_id             978 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_accept_cr(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param);
cm_id             979 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len);
cm_id             201 drivers/infiniband/hw/cxgb4/restrack.c 	struct rdma_cm_id *cm_id = rdma_res_to_id(res);
cm_id             209 drivers/infiniband/hw/cxgb4/restrack.c 	iw_cm_id = rdma_iw_cm_id(cm_id);
cm_id             233 drivers/infiniband/hw/i40iw/i40iw_cm.c 					  struct iw_cm_id *cm_id,
cm_id             236 drivers/infiniband/hw/i40iw/i40iw_cm.c 	memcpy(&event->local_addr, &cm_id->m_local_addr,
cm_id             238 drivers/infiniband/hw/i40iw/i40iw_cm.c 	memcpy(&event->remote_addr, &cm_id->m_remote_addr,
cm_id             256 drivers/infiniband/hw/i40iw/i40iw_cm.c 			       struct iw_cm_id *cm_id,
cm_id             277 drivers/infiniband/hw/i40iw/i40iw_cm.c 		i40iw_get_cmevent_info(cm_node, cm_id, &event);
cm_id             291 drivers/infiniband/hw/i40iw/i40iw_cm.c 	return cm_id->event_handler(cm_id, &event);
cm_id             304 drivers/infiniband/hw/i40iw/i40iw_cm.c 	if (!cm_node->cm_id)
cm_id             318 drivers/infiniband/hw/i40iw/i40iw_cm.c 	event->cm_info.cm_id = cm_node->cm_id;
cm_id             610 drivers/infiniband/hw/i40iw/i40iw_cm.c 	struct iw_cm_id *cm_id;
cm_id             612 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id = event->cm_node->cm_id;
cm_id             613 drivers/infiniband/hw/i40iw/i40iw_cm.c 	if (!cm_id)
cm_id             616 drivers/infiniband/hw/i40iw/i40iw_cm.c 	iwqp = cm_id->provider_data;
cm_id             621 drivers/infiniband/hw/i40iw/i40iw_cm.c 	iwqp->cm_id = NULL;
cm_id             622 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id->provider_data = NULL;
cm_id             623 drivers/infiniband/hw/i40iw/i40iw_cm.c 	i40iw_send_cm_event(event->cm_node, cm_id,
cm_id             626 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id->rem_ref(cm_id);
cm_id            1126 drivers/infiniband/hw/i40iw/i40iw_cm.c 	struct iw_cm_id *cm_id = cm_node->cm_id;
cm_id            1137 drivers/infiniband/hw/i40iw/i40iw_cm.c 		if (cm_node->cm_id)
cm_id            1138 drivers/infiniband/hw/i40iw/i40iw_cm.c 			cm_id->rem_ref(cm_id);
cm_id            1157 drivers/infiniband/hw/i40iw/i40iw_cm.c 	struct iw_cm_id *cm_id = cm_node->cm_id;
cm_id            1166 drivers/infiniband/hw/i40iw/i40iw_cm.c 		if (iwqp->cm_id) {
cm_id            1180 drivers/infiniband/hw/i40iw/i40iw_cm.c 	if (cm_id)
cm_id            1181 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_id->rem_ref(cm_id);
cm_id            1899 drivers/infiniband/hw/i40iw/i40iw_cm.c 				event.cm_info.cm_id = loopback->cm_id;
cm_id            1971 drivers/infiniband/hw/i40iw/i40iw_cm.c 	listener->cm_id = NULL;	/* going to be destroyed pretty soon */
cm_id            2200 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_node->cm_id = cm_info->cm_id;
cm_id            2445 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_node->cm_id->rem_ref(cm_node->cm_id);
cm_id            2781 drivers/infiniband/hw/i40iw/i40iw_cm.c 			cm_node->cm_id->rem_ref(cm_node->cm_id);
cm_id            2892 drivers/infiniband/hw/i40iw/i40iw_cm.c 	listener->cm_id = cm_info->cm_id;
cm_id            2956 drivers/infiniband/hw/i40iw/i40iw_cm.c 			loopback_cm_info.cm_id = loopback_remotelistener->cm_id;
cm_id            3015 drivers/infiniband/hw/i40iw/i40iw_cm.c 	struct iw_cm_id *cm_id = cm_node->cm_id;
cm_id            3038 drivers/infiniband/hw/i40iw/i40iw_cm.c 					cm_id->add_ref(cm_id);
cm_id            3043 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_node->cm_id = NULL;
cm_id            3049 drivers/infiniband/hw/i40iw/i40iw_cm.c 						  loopback->cm_id,
cm_id            3055 drivers/infiniband/hw/i40iw/i40iw_cm.c 			cm_id = loopback->cm_id;
cm_id            3057 drivers/infiniband/hw/i40iw/i40iw_cm.c 			cm_id->rem_ref(cm_id);
cm_id            3198 drivers/infiniband/hw/i40iw/i40iw_cm.c 			cm_info.cm_id = NULL;
cm_id            3205 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_info.cm_id = listener->cm_id;
cm_id            3507 drivers/infiniband/hw/i40iw/i40iw_cm.c 	struct iw_cm_id *cm_id;
cm_id            3527 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id = iwqp->cm_id;
cm_id            3529 drivers/infiniband/hw/i40iw/i40iw_cm.c 	if (!cm_id) {
cm_id            3543 drivers/infiniband/hw/i40iw/i40iw_cm.c 		iwqp->cm_id = NULL;
cm_id            3567 drivers/infiniband/hw/i40iw/i40iw_cm.c 		iwqp->cm_id = NULL;
cm_id            3588 drivers/infiniband/hw/i40iw/i40iw_cm.c 	if (cm_id && cm_id->event_handler) {
cm_id            3591 drivers/infiniband/hw/i40iw/i40iw_cm.c 						  cm_id,
cm_id            3599 drivers/infiniband/hw/i40iw/i40iw_cm.c 					    __func__, cm_id);
cm_id            3603 drivers/infiniband/hw/i40iw/i40iw_cm.c 			cm_id->provider_data = iwqp;
cm_id            3604 drivers/infiniband/hw/i40iw/i40iw_cm.c 			ret = i40iw_send_cm_event(NULL, cm_id, IW_CM_EVENT_CLOSE, 0);
cm_id            3609 drivers/infiniband/hw/i40iw/i40iw_cm.c 					    __func__, cm_id);
cm_id            3610 drivers/infiniband/hw/i40iw/i40iw_cm.c 			cm_id->rem_ref(cm_id);
cm_id            3634 drivers/infiniband/hw/i40iw/i40iw_cm.c int i40iw_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
cm_id            3653 drivers/infiniband/hw/i40iw/i40iw_cm.c 	ibqp = i40iw_get_qp(cm_id->device, conn_param->qpn);
cm_id            3661 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_node = (struct i40iw_cm_node *)cm_id->provider_data;
cm_id            3663 drivers/infiniband/hw/i40iw/i40iw_cm.c 	if (((struct sockaddr_in *)&cm_id->local_addr)->sin_family == AF_INET) {
cm_id            3739 drivers/infiniband/hw/i40iw/i40iw_cm.c 	iwqp->cm_id = cm_id;
cm_id            3740 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_node->cm_id = cm_id;
cm_id            3742 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id->provider_data = (void *)iwqp;
cm_id            3747 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id->add_ref(cm_id);
cm_id            3760 drivers/infiniband/hw/i40iw/i40iw_cm.c 		i40iw_send_cm_event(cm_node, cm_id, IW_CM_EVENT_ESTABLISHED, 0);
cm_id            3787 drivers/infiniband/hw/i40iw/i40iw_cm.c int i40iw_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len)
cm_id            3793 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_node = (struct i40iw_cm_node *)cm_id->provider_data;
cm_id            3795 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_node->cm_id = cm_id;
cm_id            3798 drivers/infiniband/hw/i40iw/i40iw_cm.c 	iwdev = to_iwdev(cm_id->device);
cm_id            3819 drivers/infiniband/hw/i40iw/i40iw_cm.c int i40iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
cm_id            3832 drivers/infiniband/hw/i40iw/i40iw_cm.c 	ibqp = i40iw_get_qp(cm_id->device, conn_param->qpn);
cm_id            3842 drivers/infiniband/hw/i40iw/i40iw_cm.c 	laddr = (struct sockaddr_in *)&cm_id->m_local_addr;
cm_id            3843 drivers/infiniband/hw/i40iw/i40iw_cm.c 	raddr = (struct sockaddr_in *)&cm_id->m_remote_addr;
cm_id            3844 drivers/infiniband/hw/i40iw/i40iw_cm.c 	laddr6 = (struct sockaddr_in6 *)&cm_id->m_local_addr;
cm_id            3845 drivers/infiniband/hw/i40iw/i40iw_cm.c 	raddr6 = (struct sockaddr_in6 *)&cm_id->m_remote_addr;
cm_id            3851 drivers/infiniband/hw/i40iw/i40iw_cm.c 	iwqp->cm_id = NULL;
cm_id            3852 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id->provider_data = iwqp;
cm_id            3855 drivers/infiniband/hw/i40iw/i40iw_cm.c 	if (cm_id->remote_addr.ss_family == AF_INET) {
cm_id            3874 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_info.cm_id = cm_id;
cm_id            3875 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_info.tos = cm_id->tos;
cm_id            3876 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_info.user_pri = rt_tos2priority(cm_id->tos);
cm_id            3878 drivers/infiniband/hw/i40iw/i40iw_cm.c 		    __func__, cm_id->tos, cm_info.user_pri);
cm_id            3879 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id->add_ref(cm_id);
cm_id            3885 drivers/infiniband/hw/i40iw/i40iw_cm.c 		cm_id->rem_ref(cm_id);
cm_id            3910 drivers/infiniband/hw/i40iw/i40iw_cm.c 	iwqp->cm_id = cm_id;
cm_id            3931 drivers/infiniband/hw/i40iw/i40iw_cm.c 		    cm_node->cm_id);
cm_id            3948 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id->rem_ref(cm_id);
cm_id            3958 drivers/infiniband/hw/i40iw/i40iw_cm.c int i40iw_create_listen(struct iw_cm_id *cm_id, int backlog)
cm_id            3968 drivers/infiniband/hw/i40iw/i40iw_cm.c 	iwdev = to_iwdev(cm_id->device);
cm_id            3972 drivers/infiniband/hw/i40iw/i40iw_cm.c 	laddr = (struct sockaddr_in *)&cm_id->m_local_addr;
cm_id            3973 drivers/infiniband/hw/i40iw/i40iw_cm.c 	laddr6 = (struct sockaddr_in6 *)&cm_id->m_local_addr;
cm_id            3997 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_info.cm_id = cm_id;
cm_id            4005 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id->provider_data = cm_listen_node;
cm_id            4007 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_listen_node->tos = cm_id->tos;
cm_id            4008 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_listen_node->user_pri = rt_tos2priority(cm_id->tos);
cm_id            4047 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id->add_ref(cm_id);
cm_id            4059 drivers/infiniband/hw/i40iw/i40iw_cm.c int i40iw_destroy_listen(struct iw_cm_id *cm_id)
cm_id            4063 drivers/infiniband/hw/i40iw/i40iw_cm.c 	iwdev = to_iwdev(cm_id->device);
cm_id            4064 drivers/infiniband/hw/i40iw/i40iw_cm.c 	if (cm_id->provider_data)
cm_id            4065 drivers/infiniband/hw/i40iw/i40iw_cm.c 		i40iw_cm_del_listen(&iwdev->cm_core, cm_id->provider_data, true);
cm_id            4069 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id->rem_ref(cm_id);
cm_id            4086 drivers/infiniband/hw/i40iw/i40iw_cm.c 	struct iw_cm_id *cm_id;
cm_id            4092 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id = cm_node->cm_id;
cm_id            4093 drivers/infiniband/hw/i40iw/i40iw_cm.c 	iwqp = (struct i40iw_qp *)cm_id->provider_data;
cm_id            4119 drivers/infiniband/hw/i40iw/i40iw_cm.c 	status = i40iw_send_cm_event(cm_node, cm_id, IW_CM_EVENT_CONNECT_REPLY,
cm_id            4127 drivers/infiniband/hw/i40iw/i40iw_cm.c 	iwqp->cm_id = NULL;
cm_id            4128 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id->provider_data = NULL;
cm_id            4130 drivers/infiniband/hw/i40iw/i40iw_cm.c 			    cm_id,
cm_id            4133 drivers/infiniband/hw/i40iw/i40iw_cm.c 	cm_id->rem_ref(cm_id);
cm_id            4144 drivers/infiniband/hw/i40iw/i40iw_cm.c 	struct iw_cm_id   *cm_id = cm_node->cm_id;
cm_id            4147 drivers/infiniband/hw/i40iw/i40iw_cm.c 	if (!cm_id)
cm_id            4150 drivers/infiniband/hw/i40iw/i40iw_cm.c 	iwqp = cm_id->provider_data;
cm_id            4157 drivers/infiniband/hw/i40iw/i40iw_cm.c 		     event->cm_node, cm_id);
cm_id            4158 drivers/infiniband/hw/i40iw/i40iw_cm.c 	iwqp->cm_id = NULL;
cm_id            4160 drivers/infiniband/hw/i40iw/i40iw_cm.c 	i40iw_send_cm_event(cm_node, cm_node->cm_id, IW_CM_EVENT_DISCONNECT, -ECONNRESET);
cm_id            4161 drivers/infiniband/hw/i40iw/i40iw_cm.c 	i40iw_send_cm_event(cm_node, cm_node->cm_id, IW_CM_EVENT_CLOSE, 0);
cm_id            4183 drivers/infiniband/hw/i40iw/i40iw_cm.c 				    cm_node->cm_id,
cm_id            4191 drivers/infiniband/hw/i40iw/i40iw_cm.c 		if (!event->cm_node->cm_id ||
cm_id            4197 drivers/infiniband/hw/i40iw/i40iw_cm.c 		if (!event->cm_node->cm_id ||
cm_id            4201 drivers/infiniband/hw/i40iw/i40iw_cm.c 				    cm_node->cm_id,
cm_id            4206 drivers/infiniband/hw/i40iw/i40iw_cm.c 		if (!event->cm_node->cm_id ||
cm_id            4216 drivers/infiniband/hw/i40iw/i40iw_cm.c 	event->cm_info.cm_id->rem_ref(event->cm_info.cm_id);
cm_id            4228 drivers/infiniband/hw/i40iw/i40iw_cm.c 	event->cm_info.cm_id->add_ref(event->cm_info.cm_id);
cm_id             293 drivers/infiniband/hw/i40iw/i40iw_cm.h 	struct iw_cm_id *cm_id;
cm_id             336 drivers/infiniband/hw/i40iw/i40iw_cm.h 	struct iw_cm_id *cm_id;
cm_id             367 drivers/infiniband/hw/i40iw/i40iw_cm.h 	struct iw_cm_id *cm_id;
cm_id             343 drivers/infiniband/hw/i40iw/i40iw_hw.c 				iwqp->cm_id->add_ref(iwqp->cm_id);
cm_id             876 drivers/infiniband/hw/i40iw/i40iw_verbs.c 			    (!iwqp->cm_id)) {
cm_id             987 drivers/infiniband/hw/i40iw/i40iw_verbs.c 			if (iwqp->cm_id && iwqp->hw_tcp_state) {
cm_id             996 drivers/infiniband/hw/i40iw/i40iw_verbs.c 			if (iwqp->cm_id) {
cm_id             998 drivers/infiniband/hw/i40iw/i40iw_verbs.c 					iwqp->cm_id->add_ref(iwqp->cm_id);
cm_id             144 drivers/infiniband/hw/i40iw/i40iw_verbs.h 	struct iw_cm_id *cm_id;
cm_id              75 drivers/infiniband/hw/mlx4/cm.c static void set_local_comm_id(struct ib_mad *mad, u32 cm_id)
cm_id              80 drivers/infiniband/hw/mlx4/cm.c 		msg->request_id = cpu_to_be32(cm_id);
cm_id              86 drivers/infiniband/hw/mlx4/cm.c 		msg->local_comm_id = cpu_to_be32(cm_id);
cm_id             105 drivers/infiniband/hw/mlx4/cm.c static void set_remote_comm_id(struct ib_mad *mad, u32 cm_id)
cm_id             110 drivers/infiniband/hw/mlx4/cm.c 		msg->request_id = cpu_to_be32(cm_id);
cm_id             116 drivers/infiniband/hw/mlx4/cm.c 		msg->remote_comm_id = cpu_to_be32(cm_id);
cm_id             539 drivers/infiniband/hw/qedr/qedr.h 	struct iw_cm_id *cm_id;
cm_id             546 drivers/infiniband/hw/qedr/qedr.h 	struct iw_cm_id	*cm_id;
cm_id              97 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	if (ep->cm_id)
cm_id              98 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		ep->cm_id->rem_ref(ep->cm_id);
cm_id             135 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	listener->cm_id->event_handler(listener->cm_id, &event);
cm_id             157 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	if (ep->cm_id)
cm_id             158 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		ep->cm_id->event_handler(ep->cm_id, &event);
cm_id             166 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	if (ep->cm_id)
cm_id             230 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	if (ep->cm_id)
cm_id             231 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		ep->cm_id->event_handler(ep->cm_id, &event);
cm_id             522 drivers/infiniband/hw/qedr/qedr_iw_cm.c int qedr_iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
cm_id             524 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	struct qedr_dev *dev = get_qedr_dev(cm_id->device);
cm_id             537 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	laddr = (struct sockaddr_in *)&cm_id->m_local_addr;
cm_id             538 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	raddr = (struct sockaddr_in *)&cm_id->m_remote_addr;
cm_id             539 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	laddr6 = (struct sockaddr_in6 *)&cm_id->m_local_addr;
cm_id             540 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	raddr6 = (struct sockaddr_in6 *)&cm_id->m_remote_addr;
cm_id             543 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		 ntohs(((struct sockaddr_in *)&cm_id->remote_addr)->sin_port),
cm_id             548 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		 &cm_id->local_addr, &cm_id->remote_addr);
cm_id             567 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	cm_id->add_ref(cm_id);
cm_id             568 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	ep->cm_id = cm_id;
cm_id             578 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	    cm_id->remote_addr.ss_family == AF_INET) {
cm_id             646 drivers/infiniband/hw/qedr/qedr_iw_cm.c int qedr_iw_create_listen(struct iw_cm_id *cm_id, int backlog)
cm_id             648 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	struct qedr_dev *dev = get_qedr_dev(cm_id->device);
cm_id             657 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	laddr = (struct sockaddr_in *)&cm_id->m_local_addr;
cm_id             658 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	laddr6 = (struct sockaddr_in6 *)&cm_id->m_local_addr;
cm_id             661 drivers/infiniband/hw/qedr/qedr_iw_cm.c 		 "Create Listener address: %pISpc\n", &cm_id->local_addr);
cm_id             668 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	cm_id->add_ref(cm_id);
cm_id             669 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	listener->cm_id = cm_id;
cm_id             677 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	    cm_id->local_addr.ss_family == AF_INET) {
cm_id             701 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	cm_id->provider_data = listener;
cm_id             705 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	cm_id->rem_ref(cm_id);
cm_id             710 drivers/infiniband/hw/qedr/qedr_iw_cm.c int qedr_iw_destroy_listen(struct iw_cm_id *cm_id)
cm_id             712 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	struct qedr_iw_listener *listener = cm_id->provider_data;
cm_id             713 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	struct qedr_dev *dev = get_qedr_dev(cm_id->device);
cm_id             720 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	cm_id->rem_ref(cm_id);
cm_id             724 drivers/infiniband/hw/qedr/qedr_iw_cm.c int qedr_iw_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
cm_id             726 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	struct qedr_iw_ep *ep = (struct qedr_iw_ep *)cm_id->provider_data;
cm_id             741 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	cm_id->add_ref(cm_id);
cm_id             742 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	ep->cm_id = cm_id;
cm_id             770 drivers/infiniband/hw/qedr/qedr_iw_cm.c int qedr_iw_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len)
cm_id             772 drivers/infiniband/hw/qedr/qedr_iw_cm.c 	struct qedr_iw_ep *ep = (struct qedr_iw_ep *)cm_id->provider_data;
cm_id              34 drivers/infiniband/hw/qedr/qedr_iw_cm.h int qedr_iw_connect(struct iw_cm_id *cm_id,
cm_id              37 drivers/infiniband/hw/qedr/qedr_iw_cm.h int qedr_iw_create_listen(struct iw_cm_id *cm_id, int backlog);
cm_id              39 drivers/infiniband/hw/qedr/qedr_iw_cm.h int qedr_iw_destroy_listen(struct iw_cm_id *cm_id);
cm_id              41 drivers/infiniband/hw/qedr/qedr_iw_cm.h int qedr_iw_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param);
cm_id              43 drivers/infiniband/hw/qedr/qedr_iw_cm.h int qedr_iw_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len);
cm_id             321 drivers/infiniband/sw/siw/siw_cm.c 		id = cep->listen_cep->cm_id;
cm_id             323 drivers/infiniband/sw/siw/siw_cm.c 		id = cep->cm_id;
cm_id             396 drivers/infiniband/sw/siw/siw_cm.c 		if (cep->cm_id) {
cm_id             416 drivers/infiniband/sw/siw/siw_cm.c 			cep->cm_id->rem_ref(cep->cm_id);
cm_id             417 drivers/infiniband/sw/siw/siw_cm.c 			cep->cm_id = NULL;
cm_id            1069 drivers/infiniband/sw/siw/siw_cm.c 		if (cep->cm_id)
cm_id            1076 drivers/infiniband/sw/siw/siw_cm.c 		if (cep->cm_id) {
cm_id            1125 drivers/infiniband/sw/siw/siw_cm.c 			if (cep->cm_id)
cm_id            1176 drivers/infiniband/sw/siw/siw_cm.c 		if (cep->cm_id) {
cm_id            1177 drivers/infiniband/sw/siw/siw_cm.c 			cep->cm_id->rem_ref(cep->cm_id);
cm_id            1178 drivers/infiniband/sw/siw/siw_cm.c 			cep->cm_id = NULL;
cm_id            1431 drivers/infiniband/sw/siw/siw_cm.c 	cep->cm_id = id;
cm_id            1524 drivers/infiniband/sw/siw/siw_cm.c 		cep->cm_id = NULL;
cm_id            1669 drivers/infiniband/sw/siw/siw_cm.c 	cep->cm_id = id;
cm_id            1727 drivers/infiniband/sw/siw/siw_cm.c 	if (cep->cm_id) {
cm_id            1728 drivers/infiniband/sw/siw/siw_cm.c 		cep->cm_id->rem_ref(id);
cm_id            1729 drivers/infiniband/sw/siw/siw_cm.c 		cep->cm_id = NULL;
cm_id            1859 drivers/infiniband/sw/siw/siw_cm.c 	cep->cm_id = id;
cm_id            1904 drivers/infiniband/sw/siw/siw_cm.c 		if (cep->cm_id) {
cm_id            1905 drivers/infiniband/sw/siw/siw_cm.c 			cep->cm_id->rem_ref(cep->cm_id);
cm_id            1906 drivers/infiniband/sw/siw/siw_cm.c 			cep->cm_id = NULL;
cm_id            1937 drivers/infiniband/sw/siw/siw_cm.c 		if (cep->cm_id) {
cm_id            1938 drivers/infiniband/sw/siw/siw_cm.c 			cep->cm_id->rem_ref(cep->cm_id);
cm_id            1939 drivers/infiniband/sw/siw/siw_cm.c 			cep->cm_id = NULL;
cm_id              38 drivers/infiniband/sw/siw/siw_cm.h 	struct iw_cm_id *cm_id;
cm_id              80 drivers/infiniband/ulp/ipoib/ipoib_cm.c static int ipoib_cm_tx_handler(struct ib_cm_id *cm_id,
cm_id             274 drivers/infiniband/ulp/ipoib/ipoib_cm.c 				 struct ib_cm_id *cm_id, struct ib_qp *qp,
cm_id             282 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask);
cm_id             293 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask);
cm_id             314 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask);
cm_id             347 drivers/infiniband/ulp/ipoib/ipoib_cm.c static int ipoib_cm_nonsrq_init_rx(struct net_device *dev, struct ib_cm_id *cm_id,
cm_id             375 drivers/infiniband/ulp/ipoib/ipoib_cm.c 		ib_send_cm_rej(cm_id, IB_CM_REJ_NO_QP, NULL, 0, NULL, 0);
cm_id             420 drivers/infiniband/ulp/ipoib/ipoib_cm.c static int ipoib_cm_send_rep(struct net_device *dev, struct ib_cm_id *cm_id,
cm_id             439 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	return ib_send_cm_rep(cm_id, &rep);
cm_id             442 drivers/infiniband/ulp/ipoib/ipoib_cm.c static int ipoib_cm_req_handler(struct ib_cm_id *cm_id,
cm_id             445 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	struct net_device *dev = cm_id->context;
cm_id             456 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	p->id = cm_id;
cm_id             457 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	cm_id->context = p;
cm_id             469 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	ret = ipoib_cm_modify_rx_qp(dev, cm_id, p->qp, psn);
cm_id             474 drivers/infiniband/ulp/ipoib/ipoib_cm.c 		ret = ipoib_cm_nonsrq_init_rx(dev, cm_id, p);
cm_id             489 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	ret = ipoib_cm_send_rep(dev, cm_id, p->qp, &event->param.req_rcvd, psn);
cm_id             504 drivers/infiniband/ulp/ipoib/ipoib_cm.c static int ipoib_cm_rx_handler(struct ib_cm_id *cm_id,
cm_id             512 drivers/infiniband/ulp/ipoib/ipoib_cm.c 		return ipoib_cm_req_handler(cm_id, event);
cm_id             514 drivers/infiniband/ulp/ipoib/ipoib_cm.c 		ib_send_cm_drep(cm_id, NULL, 0);
cm_id             517 drivers/infiniband/ulp/ipoib/ipoib_cm.c 		p = cm_id->context;
cm_id             985 drivers/infiniband/ulp/ipoib/ipoib_cm.c static int ipoib_cm_rep_handler(struct ib_cm_id *cm_id,
cm_id             988 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	struct ipoib_cm_tx *p = cm_id->context;
cm_id            1005 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask);
cm_id            1019 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask);
cm_id            1049 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	ret = ib_send_cm_rtu(cm_id, NULL, 0);
cm_id            1120 drivers/infiniband/ulp/ipoib/ipoib_cm.c 				  struct ib_cm_id *cm_id, struct ib_qp *qp)
cm_id            1253 drivers/infiniband/ulp/ipoib/ipoib_cm.c static int ipoib_cm_tx_handler(struct ib_cm_id *cm_id,
cm_id            1256 drivers/infiniband/ulp/ipoib/ipoib_cm.c 	struct ipoib_cm_tx *tx = cm_id->context;
cm_id            1266 drivers/infiniband/ulp/ipoib/ipoib_cm.c 		ib_send_cm_drep(cm_id, NULL, 0);
cm_id            1270 drivers/infiniband/ulp/ipoib/ipoib_cm.c 		ret = ipoib_cm_rep_handler(cm_id, event);
cm_id            1272 drivers/infiniband/ulp/ipoib/ipoib_cm.c 			ib_send_cm_rej(cm_id, IB_CM_REJ_CONSUMER_DEFINED,
cm_id              74 drivers/infiniband/ulp/isert/ib_isert.c 		rdma_notify(isert_conn->cm_id, IB_EVENT_COMM_EST);
cm_id             517 drivers/infiniband/ulp/isert/ib_isert.c 	isert_conn->cm_id = cma_id;
cm_id             570 drivers/infiniband/ulp/isert/ib_isert.c 	if (isert_conn->cm_id &&
cm_id             572 drivers/infiniband/ulp/isert/ib_isert.c 		rdma_destroy_id(isert_conn->cm_id);
cm_id             634 drivers/infiniband/ulp/isert/ib_isert.c 	struct isert_np *isert_np = isert_conn->cm_id->context;
cm_id             672 drivers/infiniband/ulp/isert/ib_isert.c 	err = rdma_disconnect(isert_conn->cm_id);
cm_id             687 drivers/infiniband/ulp/isert/ib_isert.c 		isert_np->cm_id = NULL;
cm_id             690 drivers/infiniband/ulp/isert/ib_isert.c 		isert_np->cm_id = isert_setup_id(isert_np);
cm_id             691 drivers/infiniband/ulp/isert/ib_isert.c 		if (IS_ERR(isert_np->cm_id)) {
cm_id             693 drivers/infiniband/ulp/isert/ib_isert.c 				  isert_np, PTR_ERR(isert_np->cm_id));
cm_id             694 drivers/infiniband/ulp/isert/ib_isert.c 			isert_np->cm_id = NULL;
cm_id             740 drivers/infiniband/ulp/isert/ib_isert.c 	isert_conn->cm_id = NULL;
cm_id             757 drivers/infiniband/ulp/isert/ib_isert.c 	if (isert_np->cm_id == cma_id)
cm_id             858 drivers/infiniband/ulp/isert/ib_isert.c 	struct ib_device *ib_dev = isert_conn->cm_id->device;
cm_id            1399 drivers/infiniband/ulp/isert/ib_isert.c 	struct ib_device *ib_dev = isert_conn->cm_id->device;
cm_id            1496 drivers/infiniband/ulp/isert/ib_isert.c 				conn->cm_id->port_num, se_cmd->t_data_sg,
cm_id            1500 drivers/infiniband/ulp/isert/ib_isert.c 		rdma_rw_ctx_destroy(&cmd->rw, conn->qp, conn->cm_id->port_num,
cm_id            1745 drivers/infiniband/ulp/isert/ib_isert.c 	struct ib_device *ib_dev = isert_conn->cm_id->device;
cm_id            1774 drivers/infiniband/ulp/isert/ib_isert.c 	struct ib_device *ib_dev = isert_conn->cm_id->device;
cm_id            1790 drivers/infiniband/ulp/isert/ib_isert.c 	struct ib_device *ib_dev = isert_conn->cm_id->device;
cm_id            2123 drivers/infiniband/ulp/isert/ib_isert.c 	u8 port_num = conn->cm_id->port_num;
cm_id            2369 drivers/infiniband/ulp/isert/ib_isert.c 	isert_np->cm_id = isert_lid;
cm_id            2383 drivers/infiniband/ulp/isert/ib_isert.c 	struct rdma_cm_id *cm_id = isert_conn->cm_id;
cm_id            2400 drivers/infiniband/ulp/isert/ib_isert.c 	ret = rdma_accept(cm_id, &cp);
cm_id            2449 drivers/infiniband/ulp/isert/ib_isert.c 	struct rdma_cm_id *cm_id = isert_conn->cm_id;
cm_id            2450 drivers/infiniband/ulp/isert/ib_isert.c 	struct rdma_route *cm_route = &cm_id->route;
cm_id            2510 drivers/infiniband/ulp/isert/ib_isert.c 	if (isert_np->cm_id)
cm_id            2511 drivers/infiniband/ulp/isert/ib_isert.c 		rdma_destroy_id(isert_np->cm_id);
cm_id             156 drivers/infiniband/ulp/isert/ib_isert.h 	struct rdma_cm_id	*cm_id;
cm_id             197 drivers/infiniband/ulp/isert/ib_isert.h 	struct rdma_cm_id	*cm_id;
cm_id             155 drivers/infiniband/ulp/srp/ib_srp.c static int srp_ib_cm_handler(struct ib_cm_id *cm_id,
cm_id             157 drivers/infiniband/ulp/srp/ib_srp.c static int srp_rdma_cm_handler(struct rdma_cm_id *cm_id,
cm_id             323 drivers/infiniband/ulp/srp/ib_srp.c 	if (ch->ib_cm.cm_id)
cm_id             324 drivers/infiniband/ulp/srp/ib_srp.c 		ib_destroy_cm_id(ch->ib_cm.cm_id);
cm_id             325 drivers/infiniband/ulp/srp/ib_srp.c 	ch->ib_cm.cm_id = new_cm_id;
cm_id             374 drivers/infiniband/ulp/srp/ib_srp.c 	swap(ch->rdma_cm.cm_id, new_cm_id);
cm_id             593 drivers/infiniband/ulp/srp/ib_srp.c 		ret = rdma_create_qp(ch->rdma_cm.cm_id, dev->pd, init_attr);
cm_id             594 drivers/infiniband/ulp/srp/ib_srp.c 		qp = ch->rdma_cm.cm_id->qp;
cm_id             655 drivers/infiniband/ulp/srp/ib_srp.c 		rdma_destroy_qp(ch->rdma_cm.cm_id);
cm_id             684 drivers/infiniband/ulp/srp/ib_srp.c 		if (ch->rdma_cm.cm_id) {
cm_id             685 drivers/infiniband/ulp/srp/ib_srp.c 			rdma_destroy_id(ch->rdma_cm.cm_id);
cm_id             686 drivers/infiniband/ulp/srp/ib_srp.c 			ch->rdma_cm.cm_id = NULL;
cm_id             689 drivers/infiniband/ulp/srp/ib_srp.c 		if (ch->ib_cm.cm_id) {
cm_id             690 drivers/infiniband/ulp/srp/ib_srp.c 			ib_destroy_cm_id(ch->ib_cm.cm_id);
cm_id             691 drivers/infiniband/ulp/srp/ib_srp.c 			ch->ib_cm.cm_id = NULL;
cm_id             798 drivers/infiniband/ulp/srp/ib_srp.c 	ret = rdma_resolve_route(ch->rdma_cm.cm_id, SRP_PATH_REC_TIMEOUT_MS);
cm_id             952 drivers/infiniband/ulp/srp/ib_srp.c 		status = rdma_connect(ch->rdma_cm.cm_id, &req->rdma_param);
cm_id             954 drivers/infiniband/ulp/srp/ib_srp.c 		status = ib_send_cm_req(ch->ib_cm.cm_id, &req->ib_param);
cm_id             990 drivers/infiniband/ulp/srp/ib_srp.c 			if (ch->rdma_cm.cm_id)
cm_id             991 drivers/infiniband/ulp/srp/ib_srp.c 				rdma_disconnect(ch->rdma_cm.cm_id);
cm_id             993 drivers/infiniband/ulp/srp/ib_srp.c 			if (ch->ib_cm.cm_id)
cm_id             994 drivers/infiniband/ulp/srp/ib_srp.c 				ret = ib_send_cm_dreq(ch->ib_cm.cm_id,
cm_id            2526 drivers/infiniband/ulp/srp/ib_srp.c static void srp_cm_rep_handler(struct ib_cm_id *cm_id,
cm_id            2588 drivers/infiniband/ulp/srp/ib_srp.c 		ret = ib_cm_init_qp_attr(cm_id, qp_attr, &attr_mask);
cm_id            2597 drivers/infiniband/ulp/srp/ib_srp.c 		ret = ib_cm_init_qp_attr(cm_id, qp_attr, &attr_mask);
cm_id            2607 drivers/infiniband/ulp/srp/ib_srp.c 		ret = ib_send_cm_rtu(cm_id, NULL, 0);
cm_id            2617 drivers/infiniband/ulp/srp/ib_srp.c static void srp_ib_cm_rej_handler(struct ib_cm_id *cm_id,
cm_id            2633 drivers/infiniband/ulp/srp/ib_srp.c 		cm_id->remote_cm_qpn = be32_to_cpu(cpi->redirect_qp) & 0x00ffffff;
cm_id            2703 drivers/infiniband/ulp/srp/ib_srp.c static int srp_ib_cm_handler(struct ib_cm_id *cm_id,
cm_id            2706 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch = cm_id->context;
cm_id            2720 drivers/infiniband/ulp/srp/ib_srp.c 		srp_cm_rep_handler(cm_id, event->private_data, ch);
cm_id            2727 drivers/infiniband/ulp/srp/ib_srp.c 		srp_ib_cm_rej_handler(cm_id, event, ch);
cm_id            2734 drivers/infiniband/ulp/srp/ib_srp.c 		if (ib_send_cm_drep(cm_id, NULL, 0))
cm_id            2815 drivers/infiniband/ulp/srp/ib_srp.c static int srp_rdma_cm_handler(struct rdma_cm_id *cm_id,
cm_id            2818 drivers/infiniband/ulp/srp/ib_srp.c 	struct srp_rdma_ch *ch = cm_id->context;
cm_id            2867 drivers/infiniband/ulp/srp/ib_srp.c 			rdma_disconnect(ch->rdma_cm.cm_id);
cm_id             178 drivers/infiniband/ulp/srp/ib_srp.h 			struct ib_cm_id		*cm_id;
cm_id             181 drivers/infiniband/ulp/srp/ib_srp.h 			struct rdma_cm_id	*cm_id;
cm_id             226 drivers/infiniband/ulp/srpt/ib_srpt.c 			rdma_notify(ch->rdma_cm.cm_id, event->event);
cm_id             228 drivers/infiniband/ulp/srpt/ib_srpt.c 			ib_cm_notify(ch->ib_cm.cm_id, event->event);
cm_id            1159 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = ib_cm_init_qp_attr(ch->ib_cm.cm_id, &qp_attr, &attr_mask);
cm_id            1189 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = ib_cm_init_qp_attr(ch->ib_cm.cm_id, &qp_attr, &attr_mask);
cm_id            1833 drivers/infiniband/ulp/srpt/ib_srpt.c 		ret = rdma_create_qp(ch->rdma_cm.cm_id, sdev->pd, qp_init);
cm_id            1834 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->qp = ch->rdma_cm.cm_id->qp;
cm_id            1945 drivers/infiniband/ulp/srpt/ib_srpt.c 		ret = rdma_disconnect(ch->rdma_cm.cm_id);
cm_id            1947 drivers/infiniband/ulp/srpt/ib_srpt.c 		ret = ib_send_cm_dreq(ch->ib_cm.cm_id, NULL, 0);
cm_id            1949 drivers/infiniband/ulp/srpt/ib_srpt.c 			ret = ib_send_cm_drep(ch->ib_cm.cm_id, NULL, 0);
cm_id            2110 drivers/infiniband/ulp/srpt/ib_srpt.c 		rdma_destroy_id(ch->rdma_cm.cm_id);
cm_id            2112 drivers/infiniband/ulp/srpt/ib_srpt.c 		ib_destroy_cm_id(ch->ib_cm.cm_id);
cm_id            2237 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->ib_cm.cm_id = ib_cm_id;
cm_id            2241 drivers/infiniband/ulp/srpt/ib_srpt.c 		ch->rdma_cm.cm_id = rdma_cm_id;
cm_id            2512 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_ib_cm_req_recv(struct ib_cm_id *cm_id,
cm_id            2521 drivers/infiniband/ulp/srpt/ib_srpt.c 	return srpt_cm_req_recv(cm_id->context, cm_id, NULL, param->port,
cm_id            2526 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_rdma_cm_req_recv(struct rdma_cm_id *cm_id,
cm_id            2534 drivers/infiniband/ulp/srpt/ib_srpt.c 	sdev = ib_get_client_data(cm_id->device, &srpt_client);
cm_id            2554 drivers/infiniband/ulp/srpt/ib_srpt.c 		 &cm_id->route.addr.src_addr);
cm_id            2556 drivers/infiniband/ulp/srpt/ib_srpt.c 	return srpt_cm_req_recv(sdev, NULL, cm_id, cm_id->port_num,
cm_id            2557 drivers/infiniband/ulp/srpt/ib_srpt.c 				cm_id->route.path_rec->pkey, &req, src_addr);
cm_id            2626 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_cm_handler(struct ib_cm_id *cm_id,
cm_id            2629 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = cm_id->context;
cm_id            2635 drivers/infiniband/ulp/srpt/ib_srpt.c 		ret = srpt_ib_cm_req_recv(cm_id, &event->param.req_rcvd,
cm_id            2678 drivers/infiniband/ulp/srpt/ib_srpt.c static int srpt_rdma_cm_handler(struct rdma_cm_id *cm_id,
cm_id            2681 drivers/infiniband/ulp/srpt/ib_srpt.c 	struct srpt_rdma_ch *ch = cm_id->context;
cm_id            2686 drivers/infiniband/ulp/srpt/ib_srpt.c 		ret = srpt_rdma_cm_req_recv(cm_id, event);
cm_id            3139 drivers/infiniband/ulp/srpt/ib_srpt.c 		sdev->cm_id = ib_create_cm_id(device, srpt_cm_handler, sdev);
cm_id            3140 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (IS_ERR(sdev->cm_id)) {
cm_id            3142 drivers/infiniband/ulp/srpt/ib_srpt.c 			PTR_ERR(sdev->cm_id));
cm_id            3143 drivers/infiniband/ulp/srpt/ib_srpt.c 		sdev->cm_id = NULL;
cm_id            3158 drivers/infiniband/ulp/srpt/ib_srpt.c 	ret = sdev->cm_id ?
cm_id            3159 drivers/infiniband/ulp/srpt/ib_srpt.c 		ib_cm_listen(sdev->cm_id, cpu_to_be64(srpt_service_guid), 0) :
cm_id            3163 drivers/infiniband/ulp/srpt/ib_srpt.c 		       sdev->cm_id->state);
cm_id            3203 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (sdev->cm_id)
cm_id            3204 drivers/infiniband/ulp/srpt/ib_srpt.c 		ib_destroy_cm_id(sdev->cm_id);
cm_id            3240 drivers/infiniband/ulp/srpt/ib_srpt.c 	if (sdev->cm_id)
cm_id            3241 drivers/infiniband/ulp/srpt/ib_srpt.c 		ib_destroy_cm_id(sdev->cm_id);
cm_id             299 drivers/infiniband/ulp/srpt/ib_srpt.h 			struct ib_cm_id		*cm_id;
cm_id             302 drivers/infiniband/ulp/srpt/ib_srpt.h 			struct rdma_cm_id	*cm_id;
cm_id             427 drivers/infiniband/ulp/srpt/ib_srpt.h 	struct ib_cm_id		*cm_id;
cm_id              85 drivers/nvme/host/rdma.c 	struct rdma_cm_id	*cm_id;
cm_id             138 drivers/nvme/host/rdma.c static int nvme_rdma_cm_handler(struct rdma_cm_id *cm_id,
cm_id             273 drivers/nvme/host/rdma.c 	ret = rdma_create_qp(queue->cm_id, dev->pd, &init_attr);
cm_id             275 drivers/nvme/host/rdma.c 	queue->qp = queue->cm_id->qp;
cm_id             354 drivers/nvme/host/rdma.c nvme_rdma_find_get_device(struct rdma_cm_id *cm_id)
cm_id             360 drivers/nvme/host/rdma.c 		if (ndev->dev->node_guid == cm_id->device->node_guid &&
cm_id             369 drivers/nvme/host/rdma.c 	ndev->dev = cm_id->device;
cm_id             442 drivers/nvme/host/rdma.c 	queue->device = nvme_rdma_find_get_device(queue->cm_id);
cm_id             444 drivers/nvme/host/rdma.c 		dev_err(queue->cm_id->device->dev.parent,
cm_id             507 drivers/nvme/host/rdma.c 	rdma_destroy_qp(queue->cm_id);
cm_id             533 drivers/nvme/host/rdma.c 	queue->cm_id = rdma_create_id(&init_net, nvme_rdma_cm_handler, queue,
cm_id             535 drivers/nvme/host/rdma.c 	if (IS_ERR(queue->cm_id)) {
cm_id             537 drivers/nvme/host/rdma.c 			"failed to create CM ID: %ld\n", PTR_ERR(queue->cm_id));
cm_id             538 drivers/nvme/host/rdma.c 		return PTR_ERR(queue->cm_id);
cm_id             545 drivers/nvme/host/rdma.c 	ret = rdma_resolve_addr(queue->cm_id, src_addr,
cm_id             566 drivers/nvme/host/rdma.c 	rdma_destroy_id(queue->cm_id);
cm_id             573 drivers/nvme/host/rdma.c 	rdma_disconnect(queue->cm_id);
cm_id             590 drivers/nvme/host/rdma.c 	rdma_destroy_id(queue->cm_id);
cm_id            1537 drivers/nvme/host/rdma.c 	struct rdma_cm_id *cm_id = queue->cm_id;
cm_id            1543 drivers/nvme/host/rdma.c 	rej_msg = rdma_reject_msg(cm_id, status);
cm_id            1544 drivers/nvme/host/rdma.c 	rej_data = rdma_consumer_reject_data(cm_id, ev, &rej_data_len);
cm_id            1570 drivers/nvme/host/rdma.c 		rdma_set_service_type(queue->cm_id, ctrl->opts->tos);
cm_id            1571 drivers/nvme/host/rdma.c 	ret = rdma_resolve_route(queue->cm_id, NVME_RDMA_CONNECT_TIMEOUT_MS);
cm_id            1621 drivers/nvme/host/rdma.c 	ret = rdma_connect(queue->cm_id, &param);
cm_id            1635 drivers/nvme/host/rdma.c static int nvme_rdma_cm_handler(struct rdma_cm_id *cm_id,
cm_id            1638 drivers/nvme/host/rdma.c 	struct nvme_rdma_queue *queue = cm_id->context;
cm_id            1643 drivers/nvme/host/rdma.c 		ev->status, cm_id);
cm_id              77 drivers/nvme/target/rdma.c 	struct rdma_cm_id	*cm_id;
cm_id             467 drivers/nvme/target/rdma.c 		ret = ib_post_recv(cmd->queue->cm_id->qp, &cmd->wr, NULL);
cm_id             506 drivers/nvme/target/rdma.c 		rdma_rw_ctx_destroy(&rsp->rw, queue->cm_id->qp,
cm_id             507 drivers/nvme/target/rdma.c 				queue->cm_id->port_num, rsp->req.sg,
cm_id             554 drivers/nvme/target/rdma.c 	struct rdma_cm_id *cm_id = rsp->queue->cm_id;
cm_id             565 drivers/nvme/target/rdma.c 		first_wr = rdma_rw_ctx_wrs(&rsp->rw, cm_id->qp,
cm_id             566 drivers/nvme/target/rdma.c 				cm_id->port_num, NULL, &rsp->send_wr);
cm_id             576 drivers/nvme/target/rdma.c 	if (unlikely(ib_post_send(cm_id->qp, first_wr, NULL))) {
cm_id             590 drivers/nvme/target/rdma.c 	rdma_rw_ctx_destroy(&rsp->rw, queue->cm_id->qp,
cm_id             591 drivers/nvme/target/rdma.c 			queue->cm_id->port_num, rsp->req.sg,
cm_id             663 drivers/nvme/target/rdma.c 	struct rdma_cm_id *cm_id = rsp->queue->cm_id;
cm_id             678 drivers/nvme/target/rdma.c 	ret = rdma_rw_ctx_init(&rsp->rw, cm_id->qp, cm_id->port_num,
cm_id             745 drivers/nvme/target/rdma.c 		if (rdma_rw_ctx_post(&rsp->rw, queue->cm_id->qp,
cm_id             746 drivers/nvme/target/rdma.c 				queue->cm_id->port_num, &rsp->read_cqe, NULL))
cm_id             915 drivers/nvme/target/rdma.c nvmet_rdma_find_get_device(struct rdma_cm_id *cm_id)
cm_id             917 drivers/nvme/target/rdma.c 	struct nvmet_port *port = cm_id->context;
cm_id             925 drivers/nvme/target/rdma.c 		if (ndev->device->node_guid == cm_id->device->node_guid &&
cm_id             935 drivers/nvme/target/rdma.c 	inline_sge_count = max(cm_id->device->attrs.max_sge_rd,
cm_id             936 drivers/nvme/target/rdma.c 				cm_id->device->attrs.max_recv_sge) - 1;
cm_id             939 drivers/nvme/target/rdma.c 			port->inline_data_size, cm_id->device->name,
cm_id             946 drivers/nvme/target/rdma.c 	ndev->device = cm_id->device;
cm_id            1023 drivers/nvme/target/rdma.c 	ret = rdma_create_qp(queue->cm_id, ndev->pd, &qp_attr);
cm_id            1033 drivers/nvme/target/rdma.c 		 qp_attr.cap.max_send_wr, queue->cm_id);
cm_id            1048 drivers/nvme/target/rdma.c 	rdma_destroy_qp(queue->cm_id);
cm_id            1056 drivers/nvme/target/rdma.c 	struct ib_qp *qp = queue->cm_id->qp;
cm_id            1059 drivers/nvme/target/rdma.c 	rdma_destroy_id(queue->cm_id);
cm_id            1122 drivers/nvme/target/rdma.c static int nvmet_rdma_cm_reject(struct rdma_cm_id *cm_id,
cm_id            1133 drivers/nvme/target/rdma.c 	return rdma_reject(cm_id, (void *)&rej, sizeof(rej));
cm_id            1138 drivers/nvme/target/rdma.c 		struct rdma_cm_id *cm_id,
cm_id            1166 drivers/nvme/target/rdma.c 	queue->cm_id = cm_id;
cm_id            1224 drivers/nvme/target/rdma.c 	nvmet_rdma_cm_reject(cm_id, ret);
cm_id            1234 drivers/nvme/target/rdma.c 		rdma_notify(queue->cm_id, event->event);
cm_id            1243 drivers/nvme/target/rdma.c static int nvmet_rdma_cm_accept(struct rdma_cm_id *cm_id,
cm_id            1260 drivers/nvme/target/rdma.c 	ret = rdma_accept(cm_id, &param);
cm_id            1267 drivers/nvme/target/rdma.c static int nvmet_rdma_queue_connect(struct rdma_cm_id *cm_id,
cm_id            1274 drivers/nvme/target/rdma.c 	ndev = nvmet_rdma_find_get_device(cm_id);
cm_id            1276 drivers/nvme/target/rdma.c 		nvmet_rdma_cm_reject(cm_id, NVME_RDMA_CM_NO_RSC);
cm_id            1280 drivers/nvme/target/rdma.c 	queue = nvmet_rdma_alloc_queue(ndev, cm_id, event);
cm_id            1285 drivers/nvme/target/rdma.c 	queue->port = cm_id->context;
cm_id            1292 drivers/nvme/target/rdma.c 	ret = nvmet_rdma_cm_accept(cm_id, queue, &event->param.conn);
cm_id            1343 drivers/nvme/target/rdma.c 	pr_debug("cm_id= %p queue->state= %d\n", queue->cm_id, queue->state);
cm_id            1358 drivers/nvme/target/rdma.c 		rdma_disconnect(queue->cm_id);
cm_id            1378 drivers/nvme/target/rdma.c static void nvmet_rdma_queue_connect_fail(struct rdma_cm_id *cm_id,
cm_id            1407 drivers/nvme/target/rdma.c static int nvmet_rdma_device_removal(struct rdma_cm_id *cm_id,
cm_id            1421 drivers/nvme/target/rdma.c 	port = cm_id->context;
cm_id            1429 drivers/nvme/target/rdma.c 	if (xchg(&port->priv, NULL) != cm_id)
cm_id            1439 drivers/nvme/target/rdma.c static int nvmet_rdma_cm_handler(struct rdma_cm_id *cm_id,
cm_id            1445 drivers/nvme/target/rdma.c 	if (cm_id->qp)
cm_id            1446 drivers/nvme/target/rdma.c 		queue = cm_id->qp->qp_context;
cm_id            1450 drivers/nvme/target/rdma.c 		event->status, cm_id);
cm_id            1454 drivers/nvme/target/rdma.c 		ret = nvmet_rdma_queue_connect(cm_id, event);
cm_id            1465 drivers/nvme/target/rdma.c 		ret = nvmet_rdma_device_removal(cm_id, queue);
cm_id            1469 drivers/nvme/target/rdma.c 			 rdma_reject_msg(cm_id, event->status));
cm_id            1473 drivers/nvme/target/rdma.c 		nvmet_rdma_queue_connect_fail(cm_id, queue);
cm_id            1504 drivers/nvme/target/rdma.c 	struct rdma_cm_id *cm_id;
cm_id            1539 drivers/nvme/target/rdma.c 	cm_id = rdma_create_id(&init_net, nvmet_rdma_cm_handler, port,
cm_id            1541 drivers/nvme/target/rdma.c 	if (IS_ERR(cm_id)) {
cm_id            1543 drivers/nvme/target/rdma.c 		return PTR_ERR(cm_id);
cm_id            1550 drivers/nvme/target/rdma.c 	ret = rdma_set_afonly(cm_id, 1);
cm_id            1556 drivers/nvme/target/rdma.c 	ret = rdma_bind_addr(cm_id, (struct sockaddr *)&addr);
cm_id            1563 drivers/nvme/target/rdma.c 	ret = rdma_listen(cm_id, 128);
cm_id            1572 drivers/nvme/target/rdma.c 	port->priv = cm_id;
cm_id            1576 drivers/nvme/target/rdma.c 	rdma_destroy_id(cm_id);
cm_id            1582 drivers/nvme/target/rdma.c 	struct rdma_cm_id *cm_id = xchg(&port->priv, NULL);
cm_id            1584 drivers/nvme/target/rdma.c 	if (cm_id)
cm_id            1585 drivers/nvme/target/rdma.c 		rdma_destroy_id(cm_id);
cm_id            1591 drivers/nvme/target/rdma.c 	struct rdma_cm_id *cm_id = port->priv;
cm_id            1593 drivers/nvme/target/rdma.c 	if (inet_addr_is_any((struct sockaddr *)&cm_id->route.addr.src_addr)) {
cm_id            1596 drivers/nvme/target/rdma.c 		struct rdma_cm_id *req_cm_id = rsp->queue->cm_id;
cm_id             313 include/rdma/ib_cm.h typedef int (*ib_cm_handler)(struct ib_cm_id *cm_id,
cm_id             350 include/rdma/ib_cm.h void ib_destroy_cm_id(struct ib_cm_id *cm_id);
cm_id             372 include/rdma/ib_cm.h int ib_cm_listen(struct ib_cm_id *cm_id, __be64 service_id,
cm_id             408 include/rdma/ib_cm.h int ib_send_cm_req(struct ib_cm_id *cm_id,
cm_id             432 include/rdma/ib_cm.h int ib_send_cm_rep(struct ib_cm_id *cm_id,
cm_id             443 include/rdma/ib_cm.h int ib_send_cm_rtu(struct ib_cm_id *cm_id,
cm_id             456 include/rdma/ib_cm.h int ib_send_cm_dreq(struct ib_cm_id *cm_id,
cm_id             471 include/rdma/ib_cm.h int ib_send_cm_drep(struct ib_cm_id *cm_id,
cm_id             489 include/rdma/ib_cm.h int ib_cm_notify(struct ib_cm_id *cm_id, enum ib_event_type event);
cm_id             503 include/rdma/ib_cm.h int ib_send_cm_rej(struct ib_cm_id *cm_id,
cm_id             523 include/rdma/ib_cm.h int ib_send_cm_mra(struct ib_cm_id *cm_id,
cm_id             538 include/rdma/ib_cm.h int ib_send_cm_lap(struct ib_cm_id *cm_id,
cm_id             559 include/rdma/ib_cm.h int ib_cm_init_qp_attr(struct ib_cm_id *cm_id,
cm_id             575 include/rdma/ib_cm.h int ib_send_cm_apr(struct ib_cm_id *cm_id,
cm_id             599 include/rdma/ib_cm.h int ib_send_cm_sidr_req(struct ib_cm_id *cm_id,
cm_id             619 include/rdma/ib_cm.h int ib_send_cm_sidr_rep(struct ib_cm_id *cm_id,
cm_id            2531 include/rdma/ib_verbs.h 	int (*iw_connect)(struct iw_cm_id *cm_id,
cm_id            2533 include/rdma/ib_verbs.h 	int (*iw_accept)(struct iw_cm_id *cm_id,
cm_id            2535 include/rdma/ib_verbs.h 	int (*iw_reject)(struct iw_cm_id *cm_id, const void *pdata,
cm_id            2537 include/rdma/ib_verbs.h 	int (*iw_create_listen)(struct iw_cm_id *cm_id, int backlog);
cm_id            2538 include/rdma/ib_verbs.h 	int (*iw_destroy_listen)(struct iw_cm_id *cm_id);
cm_id              68 include/rdma/iw_cm.h typedef int (*iw_cm_handler)(struct iw_cm_id *cm_id,
cm_id              79 include/rdma/iw_cm.h typedef int (*iw_event_handler)(struct iw_cm_id *cm_id,
cm_id             140 include/rdma/iw_cm.h void iw_destroy_cm_id(struct iw_cm_id *cm_id);
cm_id             153 include/rdma/iw_cm.h void iw_cm_unbind_qp(struct iw_cm_id *cm_id, struct ib_qp *qp);
cm_id             174 include/rdma/iw_cm.h int iw_cm_listen(struct iw_cm_id *cm_id, int backlog);
cm_id             190 include/rdma/iw_cm.h int iw_cm_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *iw_param);
cm_id             204 include/rdma/iw_cm.h int iw_cm_reject(struct iw_cm_id *cm_id, const void *private_data,
cm_id             219 include/rdma/iw_cm.h int iw_cm_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *iw_param);
cm_id             231 include/rdma/iw_cm.h int iw_cm_disconnect(struct iw_cm_id *cm_id, int abrupt);
cm_id             242 include/rdma/iw_cm.h int iw_cm_init_qp_attr(struct iw_cm_id *cm_id, struct ib_qp_attr *qp_attr,
cm_id             426 include/rdma/rdma_cm.h void rdma_read_gids(struct rdma_cm_id *cm_id, union ib_gid *sgid,
cm_id             429 include/rdma/rdma_cm.h struct iw_cm_id *rdma_iw_cm_id(struct rdma_cm_id *cm_id);
cm_id              79 net/9p/trans_rdma.c 	struct rdma_cm_id *cm_id;
cm_id             280 net/9p/trans_rdma.c 		rdma_disconnect(rdma->cm_id);
cm_id             301 net/9p/trans_rdma.c 	ib_dma_unmap_single(rdma->cm_id->device, c->busa, client->msize,
cm_id             348 net/9p/trans_rdma.c 	ib_dma_unmap_single(rdma->cm_id->device,
cm_id             376 net/9p/trans_rdma.c 	if (rdma->cm_id && !IS_ERR(rdma->cm_id))
cm_id             377 net/9p/trans_rdma.c 		rdma_destroy_id(rdma->cm_id);
cm_id             389 net/9p/trans_rdma.c 	c->busa = ib_dma_map_single(rdma->cm_id->device,
cm_id             392 net/9p/trans_rdma.c 	if (ib_dma_mapping_error(rdma->cm_id->device, c->busa))
cm_id             479 net/9p/trans_rdma.c 	c->busa = ib_dma_map_single(rdma->cm_id->device,
cm_id             482 net/9p/trans_rdma.c 	if (ib_dma_mapping_error(rdma->cm_id->device, c->busa)) {
cm_id             536 net/9p/trans_rdma.c 		rdma_disconnect(rdma->cm_id);
cm_id             554 net/9p/trans_rdma.c 	rdma_disconnect(rdma->cm_id);
cm_id             612 net/9p/trans_rdma.c 		err = rdma_bind_addr(rdma->cm_id, (struct sockaddr *)&cl);
cm_id             648 net/9p/trans_rdma.c 	rdma->cm_id = rdma_create_id(&init_net, p9_cm_event_handler, client,
cm_id             650 net/9p/trans_rdma.c 	if (IS_ERR(rdma->cm_id))
cm_id             670 net/9p/trans_rdma.c 	err = rdma_resolve_addr(rdma->cm_id, NULL,
cm_id             680 net/9p/trans_rdma.c 	err = rdma_resolve_route(rdma->cm_id, rdma->timeout);
cm_id             688 net/9p/trans_rdma.c 	rdma->cq = ib_alloc_cq_any(rdma->cm_id->device, client,
cm_id             695 net/9p/trans_rdma.c 	rdma->pd = ib_alloc_pd(rdma->cm_id->device, 0);
cm_id             711 net/9p/trans_rdma.c 	err = rdma_create_qp(rdma->cm_id, rdma->pd, &qp_attr);
cm_id             714 net/9p/trans_rdma.c 	rdma->qp = rdma->cm_id->qp;
cm_id             722 net/9p/trans_rdma.c 	err = rdma_connect(rdma->cm_id, &conn_param);
cm_id             406 net/rds/ib.c   	struct rdma_cm_id *cm_id;
cm_id             418 net/rds/ib.c   	cm_id = rdma_create_id(&init_net, rds_rdma_cm_event_handler,
cm_id             420 net/rds/ib.c   	if (IS_ERR(cm_id))
cm_id             421 net/rds/ib.c   		return PTR_ERR(cm_id);
cm_id             471 net/rds/ib.c   	ret = rdma_bind_addr(cm_id, sa);
cm_id             474 net/rds/ib.c   	if (ret || !cm_id->device ||
cm_id             475 net/rds/ib.c   	    cm_id->device->node_type != RDMA_NODE_IB_CA)
cm_id             480 net/rds/ib.c   		 cm_id->device ? cm_id->device->node_type : -1);
cm_id             483 net/rds/ib.c   	rdma_destroy_id(cm_id);
cm_id             379 net/rds/ib.h   int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
cm_id             381 net/rds/ib.h   int rds_ib_cm_initiate_connect(struct rdma_cm_id *cm_id, bool isv6);
cm_id             721 net/rds/ib_cm.c int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id,
cm_id             724 net/rds/ib_cm.c 	__be64 lguid = cm_id->route.path_rec->sgid.global.interface_id;
cm_id             725 net/rds/ib_cm.c 	__be64 fguid = cm_id->route.path_rec->dgid.global.interface_id;
cm_id             835 net/rds/ib_cm.c 	BUG_ON(cm_id->context);
cm_id             838 net/rds/ib_cm.c 	ic->i_cm_id = cm_id;
cm_id             839 net/rds/ib_cm.c 	cm_id->context = conn;
cm_id             856 net/rds/ib_cm.c 	if (rdma_accept(cm_id, &conn_param))
cm_id             863 net/rds/ib_cm.c 		rdma_reject(cm_id, &err, sizeof(int));
cm_id             868 net/rds/ib_cm.c int rds_ib_cm_initiate_connect(struct rdma_cm_id *cm_id, bool isv6)
cm_id             870 net/rds/ib_cm.c 	struct rds_connection *conn = cm_id->context;
cm_id             890 net/rds/ib_cm.c 	ret = rdma_connect(cm_id, &conn_param);
cm_id             899 net/rds/ib_cm.c 		if (ic->i_cm_id == cm_id)
cm_id              49 net/rds/rdma_transport.c static int rds_rdma_cm_event_handler_cmn(struct rdma_cm_id *cm_id,
cm_id              54 net/rds/rdma_transport.c 	struct rds_connection *conn = cm_id->context;
cm_id              60 net/rds/rdma_transport.c 	rdsdebug("conn %p id %p handling event %u (%s)\n", conn, cm_id,
cm_id              63 net/rds/rdma_transport.c 	if (cm_id->device->node_type == RDMA_NODE_IB_CA)
cm_id              85 net/rds/rdma_transport.c 		ret = trans->cm_handle_connect(cm_id, event, isv6);
cm_id              89 net/rds/rdma_transport.c 		rdma_set_service_type(cm_id, conn->c_tos);
cm_id              91 net/rds/rdma_transport.c 		ret = rdma_resolve_route(cm_id,
cm_id             103 net/rds/rdma_transport.c 			if (ibic && ibic->i_cm_id == cm_id) {
cm_id             104 net/rds/rdma_transport.c 				cm_id->route.path_rec[0].sl =
cm_id             106 net/rds/rdma_transport.c 				ret = trans->cm_initiate_connect(cm_id, isv6);
cm_id             121 net/rds/rdma_transport.c 		err = (int *)rdma_consumer_reject_data(cm_id, event, &len);
cm_id             134 net/rds/rdma_transport.c 			 rdma_reject_msg(cm_id, event->status));
cm_id             174 net/rds/rdma_transport.c 	rdsdebug("id %p event %u (%s) handling ret %d\n", cm_id, event->event,
cm_id             180 net/rds/rdma_transport.c int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
cm_id             183 net/rds/rdma_transport.c 	return rds_rdma_cm_event_handler_cmn(cm_id, event, false);
cm_id             187 net/rds/rdma_transport.c int rds6_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
cm_id             190 net/rds/rdma_transport.c 	return rds_rdma_cm_event_handler_cmn(cm_id, event, true);
cm_id             198 net/rds/rdma_transport.c 	struct rdma_cm_id *cm_id;
cm_id             201 net/rds/rdma_transport.c 	cm_id = rdma_create_id(&init_net, handler, NULL,
cm_id             203 net/rds/rdma_transport.c 	if (IS_ERR(cm_id)) {
cm_id             204 net/rds/rdma_transport.c 		ret = PTR_ERR(cm_id);
cm_id             214 net/rds/rdma_transport.c 	ret = rdma_bind_addr(cm_id, sa);
cm_id             221 net/rds/rdma_transport.c 	ret = rdma_listen(cm_id, 128);
cm_id             228 net/rds/rdma_transport.c 	rdsdebug("cm %p listening on port %u\n", cm_id, RDS_PORT);
cm_id             230 net/rds/rdma_transport.c 	*ret_cm_id = cm_id;
cm_id             231 net/rds/rdma_transport.c 	cm_id = NULL;
cm_id             233 net/rds/rdma_transport.c 	if (cm_id)
cm_id             234 net/rds/rdma_transport.c 		rdma_destroy_id(cm_id);
cm_id              21 net/rds/rdma_transport.h int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
cm_id              23 net/rds/rdma_transport.h int rds6_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
cm_id             565 net/rds/rds.h  	int (*cm_handle_connect)(struct rdma_cm_id *cm_id,
cm_id             567 net/rds/rds.h  	int (*cm_initiate_connect)(struct rdma_cm_id *cm_id, bool isv6);