Home
last modified time | relevance | path

Searched refs:rep_msg (Results 1 – 2 of 2) sorted by relevance

/linux-3.4.99/drivers/infiniband/core/
Dcm_msgs.h530 static inline __be32 cm_rep_get_local_qpn(struct cm_rep_msg *rep_msg) in cm_rep_get_local_qpn() argument
532 return cpu_to_be32(be32_to_cpu(rep_msg->offset12) >> 8); in cm_rep_get_local_qpn()
535 static inline void cm_rep_set_local_qpn(struct cm_rep_msg *rep_msg, __be32 qpn) in cm_rep_set_local_qpn() argument
537 rep_msg->offset12 = cpu_to_be32((be32_to_cpu(qpn) << 8) | in cm_rep_set_local_qpn()
538 (be32_to_cpu(rep_msg->offset12) & 0x000000FF)); in cm_rep_set_local_qpn()
541 static inline __be32 cm_rep_get_local_eecn(struct cm_rep_msg *rep_msg) in cm_rep_get_local_eecn() argument
543 return cpu_to_be32(be32_to_cpu(rep_msg->offset16) >> 8); in cm_rep_get_local_eecn()
546 static inline void cm_rep_set_local_eecn(struct cm_rep_msg *rep_msg, __be32 eecn) in cm_rep_set_local_eecn() argument
548 rep_msg->offset16 = cpu_to_be32((be32_to_cpu(eecn) << 8) | in cm_rep_set_local_eecn()
549 (be32_to_cpu(rep_msg->offset16) & 0x000000FF)); in cm_rep_set_local_eecn()
[all …]
Dcm.c1604 static void cm_format_rep(struct cm_rep_msg *rep_msg, in cm_format_rep() argument
1608 cm_format_mad_hdr(&rep_msg->hdr, CM_REP_ATTR_ID, cm_id_priv->tid); in cm_format_rep()
1609 rep_msg->local_comm_id = cm_id_priv->id.local_id; in cm_format_rep()
1610 rep_msg->remote_comm_id = cm_id_priv->id.remote_id; in cm_format_rep()
1611 cm_rep_set_starting_psn(rep_msg, cpu_to_be32(param->starting_psn)); in cm_format_rep()
1612 rep_msg->resp_resources = param->responder_resources; in cm_format_rep()
1613 cm_rep_set_target_ack_delay(rep_msg, in cm_format_rep()
1615 cm_rep_set_failover(rep_msg, param->failover_accepted); in cm_format_rep()
1616 cm_rep_set_rnr_retry_count(rep_msg, param->rnr_retry_count); in cm_format_rep()
1617 rep_msg->local_ca_guid = cm_id_priv->id.device->node_guid; in cm_format_rep()
[all …]