Home
last modified time | relevance | path

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

/drivers/infiniband/core/
Dcm_msgs.h518 static inline __be32 cm_rep_get_local_qpn(struct cm_rep_msg *rep_msg) in cm_rep_get_local_qpn() argument
520 return cpu_to_be32(be32_to_cpu(rep_msg->offset12) >> 8); in cm_rep_get_local_qpn()
523 static inline void cm_rep_set_local_qpn(struct cm_rep_msg *rep_msg, __be32 qpn) in cm_rep_set_local_qpn() argument
525 rep_msg->offset12 = cpu_to_be32((be32_to_cpu(qpn) << 8) | in cm_rep_set_local_qpn()
526 (be32_to_cpu(rep_msg->offset12) & 0x000000FF)); in cm_rep_set_local_qpn()
529 static inline __be32 cm_rep_get_local_eecn(struct cm_rep_msg *rep_msg) in cm_rep_get_local_eecn() argument
531 return cpu_to_be32(be32_to_cpu(rep_msg->offset16) >> 8); in cm_rep_get_local_eecn()
534 static inline void cm_rep_set_local_eecn(struct cm_rep_msg *rep_msg, __be32 eecn) in cm_rep_set_local_eecn() argument
536 rep_msg->offset16 = cpu_to_be32((be32_to_cpu(eecn) << 8) | in cm_rep_set_local_eecn()
537 (be32_to_cpu(rep_msg->offset16) & 0x000000FF)); in cm_rep_set_local_eecn()
[all …]
Dcm.c1605 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()
[all …]