Lines Matching refs:rep_msg

2234 static void cm_format_rep(struct cm_rep_msg *rep_msg,  in cm_format_rep()  argument
2238 cm_format_mad_ece_hdr(&rep_msg->hdr, CM_REP_ATTR_ID, cm_id_priv->tid, in cm_format_rep()
2240 IBA_SET(CM_REP_LOCAL_COMM_ID, rep_msg, in cm_format_rep()
2242 IBA_SET(CM_REP_REMOTE_COMM_ID, rep_msg, in cm_format_rep()
2244 IBA_SET(CM_REP_STARTING_PSN, rep_msg, param->starting_psn); in cm_format_rep()
2245 IBA_SET(CM_REP_RESPONDER_RESOURCES, rep_msg, in cm_format_rep()
2247 IBA_SET(CM_REP_TARGET_ACK_DELAY, rep_msg, in cm_format_rep()
2249 IBA_SET(CM_REP_FAILOVER_ACCEPTED, rep_msg, param->failover_accepted); in cm_format_rep()
2250 IBA_SET(CM_REP_RNR_RETRY_COUNT, rep_msg, param->rnr_retry_count); in cm_format_rep()
2251 IBA_SET(CM_REP_LOCAL_CA_GUID, rep_msg, in cm_format_rep()
2255 IBA_SET(CM_REP_INITIATOR_DEPTH, rep_msg, in cm_format_rep()
2257 IBA_SET(CM_REP_END_TO_END_FLOW_CONTROL, rep_msg, in cm_format_rep()
2259 IBA_SET(CM_REP_SRQ, rep_msg, param->srq); in cm_format_rep()
2260 IBA_SET(CM_REP_LOCAL_QPN, rep_msg, param->qp_num); in cm_format_rep()
2262 IBA_SET(CM_REP_SRQ, rep_msg, 1); in cm_format_rep()
2263 IBA_SET(CM_REP_LOCAL_EE_CONTEXT_NUMBER, rep_msg, param->qp_num); in cm_format_rep()
2266 IBA_SET(CM_REP_VENDOR_ID_L, rep_msg, param->ece.vendor_id); in cm_format_rep()
2267 IBA_SET(CM_REP_VENDOR_ID_M, rep_msg, param->ece.vendor_id >> 8); in cm_format_rep()
2268 IBA_SET(CM_REP_VENDOR_ID_H, rep_msg, param->ece.vendor_id >> 16); in cm_format_rep()
2271 IBA_SET_MEM(CM_REP_PRIVATE_DATA, rep_msg, param->private_data, in cm_format_rep()
2280 struct cm_rep_msg *rep_msg; in ib_send_cm_rep() local
2303 rep_msg = (struct cm_rep_msg *) msg->mad; in ib_send_cm_rep()
2304 cm_format_rep(rep_msg, cm_id_priv, param); in ib_send_cm_rep()
2316 cm_id_priv->rq_psn = cpu_to_be32(IBA_GET(CM_REP_STARTING_PSN, rep_msg)); in ib_send_cm_rep()
2405 struct cm_rep_msg *rep_msg; in cm_format_rep_event() local
2408 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_format_rep_event()
2411 cpu_to_be64(IBA_GET(CM_REP_LOCAL_CA_GUID, rep_msg)); in cm_format_rep_event()
2412 param->remote_qkey = IBA_GET(CM_REP_LOCAL_Q_KEY, rep_msg); in cm_format_rep_event()
2413 param->remote_qpn = be32_to_cpu(cm_rep_get_qpn(rep_msg, qp_type)); in cm_format_rep_event()
2414 param->starting_psn = IBA_GET(CM_REP_STARTING_PSN, rep_msg); in cm_format_rep_event()
2415 param->responder_resources = IBA_GET(CM_REP_INITIATOR_DEPTH, rep_msg); in cm_format_rep_event()
2416 param->initiator_depth = IBA_GET(CM_REP_RESPONDER_RESOURCES, rep_msg); in cm_format_rep_event()
2417 param->target_ack_delay = IBA_GET(CM_REP_TARGET_ACK_DELAY, rep_msg); in cm_format_rep_event()
2418 param->failover_accepted = IBA_GET(CM_REP_FAILOVER_ACCEPTED, rep_msg); in cm_format_rep_event()
2419 param->flow_control = IBA_GET(CM_REP_END_TO_END_FLOW_CONTROL, rep_msg); in cm_format_rep_event()
2420 param->rnr_retry_count = IBA_GET(CM_REP_RNR_RETRY_COUNT, rep_msg); in cm_format_rep_event()
2421 param->srq = IBA_GET(CM_REP_SRQ, rep_msg); in cm_format_rep_event()
2422 param->ece.vendor_id = IBA_GET(CM_REP_VENDOR_ID_H, rep_msg) << 16; in cm_format_rep_event()
2423 param->ece.vendor_id |= IBA_GET(CM_REP_VENDOR_ID_M, rep_msg) << 8; in cm_format_rep_event()
2424 param->ece.vendor_id |= IBA_GET(CM_REP_VENDOR_ID_L, rep_msg); in cm_format_rep_event()
2425 param->ece.attr_mod = be32_to_cpu(rep_msg->hdr.attr_mod); in cm_format_rep_event()
2428 IBA_GET_MEM_PTR(CM_REP_PRIVATE_DATA, rep_msg); in cm_format_rep_event()
2434 struct cm_rep_msg *rep_msg; in cm_dup_rep_handler() local
2438 rep_msg = (struct cm_rep_msg *) work->mad_recv_wc->recv_buf.mad; in cm_dup_rep_handler()
2440 cpu_to_be32(IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)), in cm_dup_rep_handler()
2441 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg))); in cm_dup_rep_handler()
2479 struct cm_rep_msg *rep_msg; in cm_rep_handler() local
2484 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_rep_handler()
2486 cpu_to_be32(IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)), 0); in cm_rep_handler()
2490 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2504 IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg), in cm_rep_handler()
2505 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg), in cm_rep_handler()
2512 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg)); in cm_rep_handler()
2514 cpu_to_be64(IBA_GET(CM_REP_LOCAL_CA_GUID, rep_msg)); in cm_rep_handler()
2515 cm_id_priv->timewait_info->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); in cm_rep_handler()
2524 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2541 IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg), in cm_rep_handler()
2542 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2555 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg)); in cm_rep_handler()
2556 cm_id_priv->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); in cm_rep_handler()
2558 IBA_GET(CM_REP_RESPONDER_RESOURCES, rep_msg); in cm_rep_handler()
2560 IBA_GET(CM_REP_INITIATOR_DEPTH, rep_msg); in cm_rep_handler()
2561 cm_id_priv->sq_psn = cpu_to_be32(IBA_GET(CM_REP_STARTING_PSN, rep_msg)); in cm_rep_handler()
2562 cm_id_priv->rnr_retry_count = IBA_GET(CM_REP_RNR_RETRY_COUNT, rep_msg); in cm_rep_handler()
2564 IBA_GET(CM_REP_TARGET_ACK_DELAY, rep_msg); in cm_rep_handler()