Lines Matching refs:rep_msg
2225 static void cm_format_rep(struct cm_rep_msg *rep_msg, in cm_format_rep() argument
2229 cm_format_mad_ece_hdr(&rep_msg->hdr, CM_REP_ATTR_ID, cm_id_priv->tid, in cm_format_rep()
2231 IBA_SET(CM_REP_LOCAL_COMM_ID, rep_msg, in cm_format_rep()
2233 IBA_SET(CM_REP_REMOTE_COMM_ID, rep_msg, in cm_format_rep()
2235 IBA_SET(CM_REP_STARTING_PSN, rep_msg, param->starting_psn); in cm_format_rep()
2236 IBA_SET(CM_REP_RESPONDER_RESOURCES, rep_msg, in cm_format_rep()
2238 IBA_SET(CM_REP_TARGET_ACK_DELAY, rep_msg, in cm_format_rep()
2240 IBA_SET(CM_REP_FAILOVER_ACCEPTED, rep_msg, param->failover_accepted); in cm_format_rep()
2241 IBA_SET(CM_REP_RNR_RETRY_COUNT, rep_msg, param->rnr_retry_count); in cm_format_rep()
2242 IBA_SET(CM_REP_LOCAL_CA_GUID, rep_msg, in cm_format_rep()
2246 IBA_SET(CM_REP_INITIATOR_DEPTH, rep_msg, in cm_format_rep()
2248 IBA_SET(CM_REP_END_TO_END_FLOW_CONTROL, rep_msg, in cm_format_rep()
2250 IBA_SET(CM_REP_SRQ, rep_msg, param->srq); in cm_format_rep()
2251 IBA_SET(CM_REP_LOCAL_QPN, rep_msg, param->qp_num); in cm_format_rep()
2253 IBA_SET(CM_REP_SRQ, rep_msg, 1); in cm_format_rep()
2254 IBA_SET(CM_REP_LOCAL_EE_CONTEXT_NUMBER, rep_msg, param->qp_num); in cm_format_rep()
2257 IBA_SET(CM_REP_VENDOR_ID_L, rep_msg, param->ece.vendor_id); in cm_format_rep()
2258 IBA_SET(CM_REP_VENDOR_ID_M, rep_msg, param->ece.vendor_id >> 8); in cm_format_rep()
2259 IBA_SET(CM_REP_VENDOR_ID_H, rep_msg, param->ece.vendor_id >> 16); in cm_format_rep()
2262 IBA_SET_MEM(CM_REP_PRIVATE_DATA, rep_msg, param->private_data, in cm_format_rep()
2271 struct cm_rep_msg *rep_msg; in ib_send_cm_rep() local
2292 rep_msg = (struct cm_rep_msg *) msg->mad; in ib_send_cm_rep()
2293 cm_format_rep(rep_msg, cm_id_priv, param); in ib_send_cm_rep()
2309 cm_id_priv->rq_psn = cpu_to_be32(IBA_GET(CM_REP_STARTING_PSN, rep_msg)); in ib_send_cm_rep()
2391 struct cm_rep_msg *rep_msg; in cm_format_rep_event() local
2394 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_format_rep_event()
2397 cpu_to_be64(IBA_GET(CM_REP_LOCAL_CA_GUID, rep_msg)); in cm_format_rep_event()
2398 param->remote_qkey = IBA_GET(CM_REP_LOCAL_Q_KEY, rep_msg); in cm_format_rep_event()
2399 param->remote_qpn = be32_to_cpu(cm_rep_get_qpn(rep_msg, qp_type)); in cm_format_rep_event()
2400 param->starting_psn = IBA_GET(CM_REP_STARTING_PSN, rep_msg); in cm_format_rep_event()
2401 param->responder_resources = IBA_GET(CM_REP_INITIATOR_DEPTH, rep_msg); in cm_format_rep_event()
2402 param->initiator_depth = IBA_GET(CM_REP_RESPONDER_RESOURCES, rep_msg); in cm_format_rep_event()
2403 param->target_ack_delay = IBA_GET(CM_REP_TARGET_ACK_DELAY, rep_msg); in cm_format_rep_event()
2404 param->failover_accepted = IBA_GET(CM_REP_FAILOVER_ACCEPTED, rep_msg); in cm_format_rep_event()
2405 param->flow_control = IBA_GET(CM_REP_END_TO_END_FLOW_CONTROL, rep_msg); in cm_format_rep_event()
2406 param->rnr_retry_count = IBA_GET(CM_REP_RNR_RETRY_COUNT, rep_msg); in cm_format_rep_event()
2407 param->srq = IBA_GET(CM_REP_SRQ, rep_msg); in cm_format_rep_event()
2408 param->ece.vendor_id = IBA_GET(CM_REP_VENDOR_ID_H, rep_msg) << 16; in cm_format_rep_event()
2409 param->ece.vendor_id |= IBA_GET(CM_REP_VENDOR_ID_M, rep_msg) << 8; in cm_format_rep_event()
2410 param->ece.vendor_id |= IBA_GET(CM_REP_VENDOR_ID_L, rep_msg); in cm_format_rep_event()
2411 param->ece.attr_mod = be32_to_cpu(rep_msg->hdr.attr_mod); in cm_format_rep_event()
2414 IBA_GET_MEM_PTR(CM_REP_PRIVATE_DATA, rep_msg); in cm_format_rep_event()
2420 struct cm_rep_msg *rep_msg; in cm_dup_rep_handler() local
2424 rep_msg = (struct cm_rep_msg *) work->mad_recv_wc->recv_buf.mad; in cm_dup_rep_handler()
2426 cpu_to_be32(IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)), in cm_dup_rep_handler()
2427 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg))); in cm_dup_rep_handler()
2465 struct cm_rep_msg *rep_msg; in cm_rep_handler() local
2470 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_rep_handler()
2472 cpu_to_be32(IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)), 0); in cm_rep_handler()
2476 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2490 IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg), in cm_rep_handler()
2491 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg), in cm_rep_handler()
2498 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg)); in cm_rep_handler()
2500 cpu_to_be64(IBA_GET(CM_REP_LOCAL_CA_GUID, rep_msg)); in cm_rep_handler()
2501 cm_id_priv->timewait_info->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); in cm_rep_handler()
2510 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2527 IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg), in cm_rep_handler()
2528 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2541 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg)); in cm_rep_handler()
2542 cm_id_priv->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); in cm_rep_handler()
2544 IBA_GET(CM_REP_RESPONDER_RESOURCES, rep_msg); in cm_rep_handler()
2546 IBA_GET(CM_REP_INITIATOR_DEPTH, rep_msg); in cm_rep_handler()
2547 cm_id_priv->sq_psn = cpu_to_be32(IBA_GET(CM_REP_STARTING_PSN, rep_msg)); in cm_rep_handler()
2548 cm_id_priv->rnr_retry_count = IBA_GET(CM_REP_RNR_RETRY_COUNT, rep_msg); in cm_rep_handler()
2550 IBA_GET(CM_REP_TARGET_ACK_DELAY, rep_msg); in cm_rep_handler()