Lines Matching refs:rej_msg

1255 	struct cm_rej_msg *rej_msg, *rcv_msg;  in cm_issue_rej()  local
1264 rej_msg = (struct cm_rej_msg *) msg->mad; in cm_issue_rej()
1266 cm_format_mad_hdr(&rej_msg->hdr, CM_REJ_ATTR_ID, rcv_msg->hdr.tid); in cm_issue_rej()
1267 rej_msg->remote_comm_id = rcv_msg->local_comm_id; in cm_issue_rej()
1268 rej_msg->local_comm_id = rcv_msg->remote_comm_id; in cm_issue_rej()
1269 cm_rej_set_msg_rejected(rej_msg, msg_rejected); in cm_issue_rej()
1270 rej_msg->reason = cpu_to_be16(reason); in cm_issue_rej()
1273 cm_rej_set_reject_info_len(rej_msg, ari_length); in cm_issue_rej()
1274 memcpy(rej_msg->ari, ari, ari_length); in cm_issue_rej()
1432 static void cm_format_rej(struct cm_rej_msg *rej_msg, in cm_format_rej() argument
1440 cm_format_mad_hdr(&rej_msg->hdr, CM_REJ_ATTR_ID, cm_id_priv->tid); in cm_format_rej()
1441 rej_msg->remote_comm_id = cm_id_priv->id.remote_id; in cm_format_rej()
1445 rej_msg->local_comm_id = 0; in cm_format_rej()
1446 cm_rej_set_msg_rejected(rej_msg, CM_MSG_RESPONSE_REQ); in cm_format_rej()
1449 rej_msg->local_comm_id = cm_id_priv->id.local_id; in cm_format_rej()
1450 cm_rej_set_msg_rejected(rej_msg, CM_MSG_RESPONSE_REQ); in cm_format_rej()
1454 rej_msg->local_comm_id = cm_id_priv->id.local_id; in cm_format_rej()
1455 cm_rej_set_msg_rejected(rej_msg, CM_MSG_RESPONSE_REP); in cm_format_rej()
1458 rej_msg->local_comm_id = cm_id_priv->id.local_id; in cm_format_rej()
1459 cm_rej_set_msg_rejected(rej_msg, CM_MSG_RESPONSE_OTHER); in cm_format_rej()
1463 rej_msg->reason = cpu_to_be16(reason); in cm_format_rej()
1465 cm_rej_set_reject_info_len(rej_msg, ari_length); in cm_format_rej()
1466 memcpy(rej_msg->ari, ari, ari_length); in cm_format_rej()
1470 memcpy(rej_msg->private_data, private_data, private_data_len); in cm_format_rej()
2379 struct cm_rej_msg *rej_msg; in cm_format_rej_event() local
2382 rej_msg = (struct cm_rej_msg *)work->mad_recv_wc->recv_buf.mad; in cm_format_rej_event()
2384 param->ari = rej_msg->ari; in cm_format_rej_event()
2385 param->ari_length = cm_rej_get_reject_info_len(rej_msg); in cm_format_rej_event()
2386 param->reason = __be16_to_cpu(rej_msg->reason); in cm_format_rej_event()
2387 work->cm_event.private_data = &rej_msg->private_data; in cm_format_rej_event()
2390 static struct cm_id_private * cm_acquire_rejected_id(struct cm_rej_msg *rej_msg) in cm_acquire_rejected_id() argument
2396 remote_id = rej_msg->local_comm_id; in cm_acquire_rejected_id()
2398 if (__be16_to_cpu(rej_msg->reason) == IB_CM_REJ_TIMEOUT) { in cm_acquire_rejected_id()
2400 timewait_info = cm_find_remote_id( *((__be64 *) rej_msg->ari), in cm_acquire_rejected_id()
2416 } else if (cm_rej_get_msg_rejected(rej_msg) == CM_MSG_RESPONSE_REQ) in cm_acquire_rejected_id()
2417 cm_id_priv = cm_acquire_id(rej_msg->remote_comm_id, 0); in cm_acquire_rejected_id()
2419 cm_id_priv = cm_acquire_id(rej_msg->remote_comm_id, remote_id); in cm_acquire_rejected_id()
2427 struct cm_rej_msg *rej_msg; in cm_rej_handler() local
2430 rej_msg = (struct cm_rej_msg *)work->mad_recv_wc->recv_buf.mad; in cm_rej_handler()
2431 cm_id_priv = cm_acquire_rejected_id(rej_msg); in cm_rej_handler()
2447 if (__be16_to_cpu(rej_msg->reason) == IB_CM_REJ_STALE_CONN) in cm_rej_handler()