Lines Matching refs:rep_msg

2213 static void cm_format_rep(struct cm_rep_msg *rep_msg,  in cm_format_rep()  argument
2217 cm_format_mad_ece_hdr(&rep_msg->hdr, CM_REP_ATTR_ID, cm_id_priv->tid, in cm_format_rep()
2219 IBA_SET(CM_REP_LOCAL_COMM_ID, rep_msg, in cm_format_rep()
2221 IBA_SET(CM_REP_REMOTE_COMM_ID, rep_msg, in cm_format_rep()
2223 IBA_SET(CM_REP_STARTING_PSN, rep_msg, param->starting_psn); in cm_format_rep()
2224 IBA_SET(CM_REP_RESPONDER_RESOURCES, rep_msg, in cm_format_rep()
2226 IBA_SET(CM_REP_TARGET_ACK_DELAY, rep_msg, in cm_format_rep()
2228 IBA_SET(CM_REP_FAILOVER_ACCEPTED, rep_msg, param->failover_accepted); in cm_format_rep()
2229 IBA_SET(CM_REP_RNR_RETRY_COUNT, rep_msg, param->rnr_retry_count); in cm_format_rep()
2230 IBA_SET(CM_REP_LOCAL_CA_GUID, rep_msg, in cm_format_rep()
2234 IBA_SET(CM_REP_INITIATOR_DEPTH, rep_msg, in cm_format_rep()
2236 IBA_SET(CM_REP_END_TO_END_FLOW_CONTROL, rep_msg, in cm_format_rep()
2238 IBA_SET(CM_REP_SRQ, rep_msg, param->srq); in cm_format_rep()
2239 IBA_SET(CM_REP_LOCAL_QPN, rep_msg, param->qp_num); in cm_format_rep()
2241 IBA_SET(CM_REP_SRQ, rep_msg, 1); in cm_format_rep()
2242 IBA_SET(CM_REP_LOCAL_EE_CONTEXT_NUMBER, rep_msg, param->qp_num); in cm_format_rep()
2245 IBA_SET(CM_REP_VENDOR_ID_L, rep_msg, param->ece.vendor_id); in cm_format_rep()
2246 IBA_SET(CM_REP_VENDOR_ID_M, rep_msg, param->ece.vendor_id >> 8); in cm_format_rep()
2247 IBA_SET(CM_REP_VENDOR_ID_H, rep_msg, param->ece.vendor_id >> 16); in cm_format_rep()
2250 IBA_SET_MEM(CM_REP_PRIVATE_DATA, rep_msg, param->private_data, in cm_format_rep()
2259 struct cm_rep_msg *rep_msg; in ib_send_cm_rep() local
2282 rep_msg = (struct cm_rep_msg *) msg->mad; in ib_send_cm_rep()
2283 cm_format_rep(rep_msg, cm_id_priv, param); in ib_send_cm_rep()
2295 cm_id_priv->rq_psn = cpu_to_be32(IBA_GET(CM_REP_STARTING_PSN, rep_msg)); in ib_send_cm_rep()
2384 struct cm_rep_msg *rep_msg; in cm_format_rep_event() local
2387 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_format_rep_event()
2390 cpu_to_be64(IBA_GET(CM_REP_LOCAL_CA_GUID, rep_msg)); in cm_format_rep_event()
2391 param->remote_qkey = IBA_GET(CM_REP_LOCAL_Q_KEY, rep_msg); in cm_format_rep_event()
2392 param->remote_qpn = be32_to_cpu(cm_rep_get_qpn(rep_msg, qp_type)); in cm_format_rep_event()
2393 param->starting_psn = IBA_GET(CM_REP_STARTING_PSN, rep_msg); in cm_format_rep_event()
2394 param->responder_resources = IBA_GET(CM_REP_INITIATOR_DEPTH, rep_msg); in cm_format_rep_event()
2395 param->initiator_depth = IBA_GET(CM_REP_RESPONDER_RESOURCES, rep_msg); in cm_format_rep_event()
2396 param->target_ack_delay = IBA_GET(CM_REP_TARGET_ACK_DELAY, rep_msg); in cm_format_rep_event()
2397 param->failover_accepted = IBA_GET(CM_REP_FAILOVER_ACCEPTED, rep_msg); in cm_format_rep_event()
2398 param->flow_control = IBA_GET(CM_REP_END_TO_END_FLOW_CONTROL, rep_msg); in cm_format_rep_event()
2399 param->rnr_retry_count = IBA_GET(CM_REP_RNR_RETRY_COUNT, rep_msg); in cm_format_rep_event()
2400 param->srq = IBA_GET(CM_REP_SRQ, rep_msg); in cm_format_rep_event()
2401 param->ece.vendor_id = IBA_GET(CM_REP_VENDOR_ID_H, rep_msg) << 16; in cm_format_rep_event()
2402 param->ece.vendor_id |= IBA_GET(CM_REP_VENDOR_ID_M, rep_msg) << 8; in cm_format_rep_event()
2403 param->ece.vendor_id |= IBA_GET(CM_REP_VENDOR_ID_L, rep_msg); in cm_format_rep_event()
2404 param->ece.attr_mod = be32_to_cpu(rep_msg->hdr.attr_mod); in cm_format_rep_event()
2407 IBA_GET_MEM_PTR(CM_REP_PRIVATE_DATA, rep_msg); in cm_format_rep_event()
2413 struct cm_rep_msg *rep_msg; in cm_dup_rep_handler() local
2417 rep_msg = (struct cm_rep_msg *) work->mad_recv_wc->recv_buf.mad; in cm_dup_rep_handler()
2419 cpu_to_be32(IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)), in cm_dup_rep_handler()
2420 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg))); in cm_dup_rep_handler()
2458 struct cm_rep_msg *rep_msg; in cm_rep_handler() local
2463 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_rep_handler()
2465 cpu_to_be32(IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)), 0); in cm_rep_handler()
2469 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2483 IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg), in cm_rep_handler()
2484 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg), in cm_rep_handler()
2491 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg)); in cm_rep_handler()
2493 cpu_to_be64(IBA_GET(CM_REP_LOCAL_CA_GUID, rep_msg)); in cm_rep_handler()
2494 cm_id_priv->timewait_info->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); in cm_rep_handler()
2503 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2520 IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg), in cm_rep_handler()
2521 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2534 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg)); in cm_rep_handler()
2535 cm_id_priv->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); in cm_rep_handler()
2537 IBA_GET(CM_REP_RESPONDER_RESOURCES, rep_msg); in cm_rep_handler()
2539 IBA_GET(CM_REP_INITIATOR_DEPTH, rep_msg); in cm_rep_handler()
2540 cm_id_priv->sq_psn = cpu_to_be32(IBA_GET(CM_REP_STARTING_PSN, rep_msg)); in cm_rep_handler()
2541 cm_id_priv->rnr_retry_count = IBA_GET(CM_REP_RNR_RETRY_COUNT, rep_msg); in cm_rep_handler()
2543 IBA_GET(CM_REP_TARGET_ACK_DELAY, rep_msg); in cm_rep_handler()