Lines Matching refs:rep_msg
2250 static void cm_format_rep(struct cm_rep_msg *rep_msg, in cm_format_rep() argument
2254 cm_format_mad_ece_hdr(&rep_msg->hdr, CM_REP_ATTR_ID, cm_id_priv->tid, in cm_format_rep()
2256 IBA_SET(CM_REP_LOCAL_COMM_ID, rep_msg, in cm_format_rep()
2258 IBA_SET(CM_REP_REMOTE_COMM_ID, rep_msg, in cm_format_rep()
2260 IBA_SET(CM_REP_STARTING_PSN, rep_msg, param->starting_psn); in cm_format_rep()
2261 IBA_SET(CM_REP_RESPONDER_RESOURCES, rep_msg, in cm_format_rep()
2263 IBA_SET(CM_REP_TARGET_ACK_DELAY, rep_msg, in cm_format_rep()
2265 IBA_SET(CM_REP_FAILOVER_ACCEPTED, rep_msg, param->failover_accepted); in cm_format_rep()
2266 IBA_SET(CM_REP_RNR_RETRY_COUNT, rep_msg, param->rnr_retry_count); in cm_format_rep()
2267 IBA_SET(CM_REP_LOCAL_CA_GUID, rep_msg, in cm_format_rep()
2271 IBA_SET(CM_REP_INITIATOR_DEPTH, rep_msg, in cm_format_rep()
2273 IBA_SET(CM_REP_END_TO_END_FLOW_CONTROL, rep_msg, in cm_format_rep()
2275 IBA_SET(CM_REP_SRQ, rep_msg, param->srq); in cm_format_rep()
2276 IBA_SET(CM_REP_LOCAL_QPN, rep_msg, param->qp_num); in cm_format_rep()
2278 IBA_SET(CM_REP_SRQ, rep_msg, 1); in cm_format_rep()
2279 IBA_SET(CM_REP_LOCAL_EE_CONTEXT_NUMBER, rep_msg, param->qp_num); in cm_format_rep()
2282 IBA_SET(CM_REP_VENDOR_ID_L, rep_msg, param->ece.vendor_id); in cm_format_rep()
2283 IBA_SET(CM_REP_VENDOR_ID_M, rep_msg, param->ece.vendor_id >> 8); in cm_format_rep()
2284 IBA_SET(CM_REP_VENDOR_ID_H, rep_msg, param->ece.vendor_id >> 16); in cm_format_rep()
2287 IBA_SET_MEM(CM_REP_PRIVATE_DATA, rep_msg, param->private_data, in cm_format_rep()
2296 struct cm_rep_msg *rep_msg; in ib_send_cm_rep() local
2319 rep_msg = (struct cm_rep_msg *) msg->mad; in ib_send_cm_rep()
2320 cm_format_rep(rep_msg, cm_id_priv, param); in ib_send_cm_rep()
2330 cm_id_priv->rq_psn = cpu_to_be32(IBA_GET(CM_REP_STARTING_PSN, rep_msg)); in ib_send_cm_rep()
2419 struct cm_rep_msg *rep_msg; in cm_format_rep_event() local
2422 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_format_rep_event()
2425 cpu_to_be64(IBA_GET(CM_REP_LOCAL_CA_GUID, rep_msg)); in cm_format_rep_event()
2426 param->remote_qkey = IBA_GET(CM_REP_LOCAL_Q_KEY, rep_msg); in cm_format_rep_event()
2427 param->remote_qpn = be32_to_cpu(cm_rep_get_qpn(rep_msg, qp_type)); in cm_format_rep_event()
2428 param->starting_psn = IBA_GET(CM_REP_STARTING_PSN, rep_msg); in cm_format_rep_event()
2429 param->responder_resources = IBA_GET(CM_REP_INITIATOR_DEPTH, rep_msg); in cm_format_rep_event()
2430 param->initiator_depth = IBA_GET(CM_REP_RESPONDER_RESOURCES, rep_msg); in cm_format_rep_event()
2431 param->target_ack_delay = IBA_GET(CM_REP_TARGET_ACK_DELAY, rep_msg); in cm_format_rep_event()
2432 param->failover_accepted = IBA_GET(CM_REP_FAILOVER_ACCEPTED, rep_msg); in cm_format_rep_event()
2433 param->flow_control = IBA_GET(CM_REP_END_TO_END_FLOW_CONTROL, rep_msg); in cm_format_rep_event()
2434 param->rnr_retry_count = IBA_GET(CM_REP_RNR_RETRY_COUNT, rep_msg); in cm_format_rep_event()
2435 param->srq = IBA_GET(CM_REP_SRQ, rep_msg); in cm_format_rep_event()
2436 param->ece.vendor_id = IBA_GET(CM_REP_VENDOR_ID_H, rep_msg) << 16; in cm_format_rep_event()
2437 param->ece.vendor_id |= IBA_GET(CM_REP_VENDOR_ID_M, rep_msg) << 8; in cm_format_rep_event()
2438 param->ece.vendor_id |= IBA_GET(CM_REP_VENDOR_ID_L, rep_msg); in cm_format_rep_event()
2439 param->ece.attr_mod = be32_to_cpu(rep_msg->hdr.attr_mod); in cm_format_rep_event()
2442 IBA_GET_MEM_PTR(CM_REP_PRIVATE_DATA, rep_msg); in cm_format_rep_event()
2448 struct cm_rep_msg *rep_msg; in cm_dup_rep_handler() local
2452 rep_msg = (struct cm_rep_msg *) work->mad_recv_wc->recv_buf.mad; in cm_dup_rep_handler()
2454 cpu_to_be32(IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)), in cm_dup_rep_handler()
2455 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg))); in cm_dup_rep_handler()
2493 struct cm_rep_msg *rep_msg; in cm_rep_handler() local
2498 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_rep_handler()
2500 cpu_to_be32(IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)), 0); in cm_rep_handler()
2504 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2518 IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg), in cm_rep_handler()
2519 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg), in cm_rep_handler()
2526 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg)); in cm_rep_handler()
2528 cpu_to_be64(IBA_GET(CM_REP_LOCAL_CA_GUID, rep_msg)); in cm_rep_handler()
2529 cm_id_priv->timewait_info->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); in cm_rep_handler()
2538 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2555 IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg), in cm_rep_handler()
2556 IBA_GET(CM_REP_REMOTE_COMM_ID, rep_msg)); in cm_rep_handler()
2569 cpu_to_be32(IBA_GET(CM_REP_LOCAL_COMM_ID, rep_msg)); in cm_rep_handler()
2570 cm_id_priv->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); in cm_rep_handler()
2572 IBA_GET(CM_REP_RESPONDER_RESOURCES, rep_msg); in cm_rep_handler()
2574 IBA_GET(CM_REP_INITIATOR_DEPTH, rep_msg); in cm_rep_handler()
2575 cm_id_priv->sq_psn = cpu_to_be32(IBA_GET(CM_REP_STARTING_PSN, rep_msg)); in cm_rep_handler()
2576 cm_id_priv->rnr_retry_count = IBA_GET(CM_REP_RNR_RETRY_COUNT, rep_msg); in cm_rep_handler()
2578 IBA_GET(CM_REP_TARGET_ACK_DELAY, rep_msg); in cm_rep_handler()