Lines Matching refs:rep_msg
1605 static void cm_format_rep(struct cm_rep_msg *rep_msg, in cm_format_rep() argument
1609 cm_format_mad_hdr(&rep_msg->hdr, CM_REP_ATTR_ID, cm_id_priv->tid); in cm_format_rep()
1610 rep_msg->local_comm_id = cm_id_priv->id.local_id; in cm_format_rep()
1611 rep_msg->remote_comm_id = cm_id_priv->id.remote_id; in cm_format_rep()
1612 cm_rep_set_starting_psn(rep_msg, cpu_to_be32(param->starting_psn)); in cm_format_rep()
1613 rep_msg->resp_resources = param->responder_resources; in cm_format_rep()
1614 cm_rep_set_target_ack_delay(rep_msg, in cm_format_rep()
1616 cm_rep_set_failover(rep_msg, param->failover_accepted); in cm_format_rep()
1617 cm_rep_set_rnr_retry_count(rep_msg, param->rnr_retry_count); in cm_format_rep()
1618 rep_msg->local_ca_guid = cm_id_priv->id.device->node_guid; in cm_format_rep()
1621 rep_msg->initiator_depth = param->initiator_depth; in cm_format_rep()
1622 cm_rep_set_flow_ctrl(rep_msg, param->flow_control); in cm_format_rep()
1623 cm_rep_set_srq(rep_msg, param->srq); in cm_format_rep()
1624 cm_rep_set_local_qpn(rep_msg, cpu_to_be32(param->qp_num)); in cm_format_rep()
1626 cm_rep_set_srq(rep_msg, 1); in cm_format_rep()
1627 cm_rep_set_local_eecn(rep_msg, cpu_to_be32(param->qp_num)); in cm_format_rep()
1631 memcpy(rep_msg->private_data, param->private_data, in cm_format_rep()
1640 struct cm_rep_msg *rep_msg; in ib_send_cm_rep() local
1660 rep_msg = (struct cm_rep_msg *) msg->mad; in ib_send_cm_rep()
1661 cm_format_rep(rep_msg, cm_id_priv, param); in ib_send_cm_rep()
1676 cm_id_priv->rq_psn = cm_rep_get_starting_psn(rep_msg); in ib_send_cm_rep()
1750 struct cm_rep_msg *rep_msg; in cm_format_rep_event() local
1753 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_format_rep_event()
1755 param->remote_ca_guid = rep_msg->local_ca_guid; in cm_format_rep_event()
1756 param->remote_qkey = be32_to_cpu(rep_msg->local_qkey); in cm_format_rep_event()
1757 param->remote_qpn = be32_to_cpu(cm_rep_get_qpn(rep_msg, qp_type)); in cm_format_rep_event()
1758 param->starting_psn = be32_to_cpu(cm_rep_get_starting_psn(rep_msg)); in cm_format_rep_event()
1759 param->responder_resources = rep_msg->initiator_depth; in cm_format_rep_event()
1760 param->initiator_depth = rep_msg->resp_resources; in cm_format_rep_event()
1761 param->target_ack_delay = cm_rep_get_target_ack_delay(rep_msg); in cm_format_rep_event()
1762 param->failover_accepted = cm_rep_get_failover(rep_msg); in cm_format_rep_event()
1763 param->flow_control = cm_rep_get_flow_ctrl(rep_msg); in cm_format_rep_event()
1764 param->rnr_retry_count = cm_rep_get_rnr_retry_count(rep_msg); in cm_format_rep_event()
1765 param->srq = cm_rep_get_srq(rep_msg); in cm_format_rep_event()
1766 work->cm_event.private_data = &rep_msg->private_data; in cm_format_rep_event()
1772 struct cm_rep_msg *rep_msg; in cm_dup_rep_handler() local
1776 rep_msg = (struct cm_rep_msg *) work->mad_recv_wc->recv_buf.mad; in cm_dup_rep_handler()
1777 cm_id_priv = cm_acquire_id(rep_msg->remote_comm_id, in cm_dup_rep_handler()
1778 rep_msg->local_comm_id); in cm_dup_rep_handler()
1815 struct cm_rep_msg *rep_msg; in cm_rep_handler() local
1818 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_rep_handler()
1819 cm_id_priv = cm_acquire_id(rep_msg->remote_comm_id, 0); in cm_rep_handler()
1838 cm_id_priv->timewait_info->work.remote_id = rep_msg->local_comm_id; in cm_rep_handler()
1839 cm_id_priv->timewait_info->remote_ca_guid = rep_msg->local_ca_guid; in cm_rep_handler()
1840 cm_id_priv->timewait_info->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); in cm_rep_handler()
1866 cm_id_priv->id.remote_id = rep_msg->local_comm_id; in cm_rep_handler()
1867 cm_id_priv->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); in cm_rep_handler()
1868 cm_id_priv->initiator_depth = rep_msg->resp_resources; in cm_rep_handler()
1869 cm_id_priv->responder_resources = rep_msg->initiator_depth; in cm_rep_handler()
1870 cm_id_priv->sq_psn = cm_rep_get_starting_psn(rep_msg); in cm_rep_handler()
1871 cm_id_priv->rnr_retry_count = cm_rep_get_rnr_retry_count(rep_msg); in cm_rep_handler()
1872 cm_id_priv->target_ack_delay = cm_rep_get_target_ack_delay(rep_msg); in cm_rep_handler()