Lines Matching refs:rep_msg

2249 static void cm_format_rep(struct cm_rep_msg *rep_msg,  in cm_format_rep()  argument
2253 cm_format_mad_ece_hdr(&rep_msg->hdr, CM_REP_ATTR_ID, cm_id_priv->tid, in cm_format_rep()
2255 IBA_SET(CM_REP_LOCAL_COMM_ID, rep_msg, in cm_format_rep()
2257 IBA_SET(CM_REP_REMOTE_COMM_ID, rep_msg, in cm_format_rep()
2259 IBA_SET(CM_REP_STARTING_PSN, rep_msg, param->starting_psn); in cm_format_rep()
2260 IBA_SET(CM_REP_RESPONDER_RESOURCES, rep_msg, in cm_format_rep()
2262 IBA_SET(CM_REP_TARGET_ACK_DELAY, rep_msg, in cm_format_rep()
2264 IBA_SET(CM_REP_FAILOVER_ACCEPTED, rep_msg, param->failover_accepted); in cm_format_rep()
2265 IBA_SET(CM_REP_RNR_RETRY_COUNT, rep_msg, param->rnr_retry_count); in cm_format_rep()
2266 IBA_SET(CM_REP_LOCAL_CA_GUID, rep_msg, in cm_format_rep()
2270 IBA_SET(CM_REP_INITIATOR_DEPTH, rep_msg, in cm_format_rep()
2272 IBA_SET(CM_REP_END_TO_END_FLOW_CONTROL, rep_msg, in cm_format_rep()
2274 IBA_SET(CM_REP_SRQ, rep_msg, param->srq); in cm_format_rep()
2275 IBA_SET(CM_REP_LOCAL_QPN, rep_msg, param->qp_num); in cm_format_rep()
2277 IBA_SET(CM_REP_SRQ, rep_msg, 1); in cm_format_rep()
2278 IBA_SET(CM_REP_LOCAL_EE_CONTEXT_NUMBER, rep_msg, param->qp_num); in cm_format_rep()
2281 IBA_SET(CM_REP_VENDOR_ID_L, rep_msg, param->ece.vendor_id); in cm_format_rep()
2282 IBA_SET(CM_REP_VENDOR_ID_M, rep_msg, param->ece.vendor_id >> 8); in cm_format_rep()
2283 IBA_SET(CM_REP_VENDOR_ID_H, rep_msg, param->ece.vendor_id >> 16); in cm_format_rep()
2286 IBA_SET_MEM(CM_REP_PRIVATE_DATA, rep_msg, param->private_data, in cm_format_rep()
2295 struct cm_rep_msg *rep_msg; in ib_send_cm_rep() local
2318 rep_msg = (struct cm_rep_msg *) msg->mad; in ib_send_cm_rep()
2319 cm_format_rep(rep_msg, cm_id_priv, param); in ib_send_cm_rep()
2329 cm_id_priv->rq_psn = cpu_to_be32(IBA_GET(CM_REP_STARTING_PSN, rep_msg)); in ib_send_cm_rep()
2418 struct cm_rep_msg *rep_msg; in cm_format_rep_event() local
2421 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_format_rep_event()
2424 cpu_to_be64(IBA_GET(CM_REP_LOCAL_CA_GUID, rep_msg)); in cm_format_rep_event()
2425 param->remote_qkey = IBA_GET(CM_REP_LOCAL_Q_KEY, rep_msg); in cm_format_rep_event()
2426 param->remote_qpn = be32_to_cpu(cm_rep_get_qpn(rep_msg, qp_type)); in cm_format_rep_event()
2427 param->starting_psn = IBA_GET(CM_REP_STARTING_PSN, rep_msg); in cm_format_rep_event()
2428 param->responder_resources = IBA_GET(CM_REP_INITIATOR_DEPTH, rep_msg); in cm_format_rep_event()
2429 param->initiator_depth = IBA_GET(CM_REP_RESPONDER_RESOURCES, rep_msg); in cm_format_rep_event()
2430 param->target_ack_delay = IBA_GET(CM_REP_TARGET_ACK_DELAY, rep_msg); in cm_format_rep_event()
2431 param->failover_accepted = IBA_GET(CM_REP_FAILOVER_ACCEPTED, rep_msg); in cm_format_rep_event()
2432 param->flow_control = IBA_GET(CM_REP_END_TO_END_FLOW_CONTROL, rep_msg); in cm_format_rep_event()
2433 param->rnr_retry_count = IBA_GET(CM_REP_RNR_RETRY_COUNT, rep_msg); in cm_format_rep_event()
2434 param->srq = IBA_GET(CM_REP_SRQ, rep_msg); in cm_format_rep_event()
2435 param->ece.vendor_id = IBA_GET(CM_REP_VENDOR_ID_H, rep_msg) << 16; in cm_format_rep_event()
2436 param->ece.vendor_id |= IBA_GET(CM_REP_VENDOR_ID_M, rep_msg) << 8; in cm_format_rep_event()
2437 param->ece.vendor_id |= IBA_GET(CM_REP_VENDOR_ID_L, rep_msg); in cm_format_rep_event()
2438 param->ece.attr_mod = be32_to_cpu(rep_msg->hdr.attr_mod); in cm_format_rep_event()
2441 IBA_GET_MEM_PTR(CM_REP_PRIVATE_DATA, rep_msg); in cm_format_rep_event()
2447 struct cm_rep_msg *rep_msg; in cm_dup_rep_handler() local
2451 rep_msg = (struct cm_rep_msg *) work->mad_recv_wc->recv_buf.mad; in cm_dup_rep_handler()
2453 cpu_to_be32(IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)), in cm_dup_rep_handler()
2454 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg))); in cm_dup_rep_handler()
2492 struct cm_rep_msg *rep_msg; in cm_rep_handler() local
2497 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_rep_handler()
2499 cpu_to_be32(IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)), 0); in cm_rep_handler()
2503 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2517 IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg), in cm_rep_handler()
2518 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg), in cm_rep_handler()
2525 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg)); in cm_rep_handler()
2527 cpu_to_be64(IBA_GET(CM_REP_LOCAL_CA_GUID, rep_msg)); in cm_rep_handler()
2528 cm_id_priv->timewait_info->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); in cm_rep_handler()
2537 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2554 IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg), in cm_rep_handler()
2555 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2568 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg)); in cm_rep_handler()
2569 cm_id_priv->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); in cm_rep_handler()
2571 IBA_GET(CM_REP_RESPONDER_RESOURCES, rep_msg); in cm_rep_handler()
2573 IBA_GET(CM_REP_INITIATOR_DEPTH, rep_msg); in cm_rep_handler()
2574 cm_id_priv->sq_psn = cpu_to_be32(IBA_GET(CM_REP_STARTING_PSN, rep_msg)); in cm_rep_handler()
2575 cm_id_priv->rnr_retry_count = IBA_GET(CM_REP_RNR_RETRY_COUNT, rep_msg); in cm_rep_handler()
2577 IBA_GET(CM_REP_TARGET_ACK_DELAY, rep_msg); in cm_rep_handler()