Searched refs:lap_msg (Results 1 – 2 of 2) sorted by relevance
687 static inline __be32 cm_lap_get_remote_qpn(struct cm_lap_msg *lap_msg) in cm_lap_get_remote_qpn() argument689 return cpu_to_be32(be32_to_cpu(lap_msg->offset12) >> 8); in cm_lap_get_remote_qpn()692 static inline void cm_lap_set_remote_qpn(struct cm_lap_msg *lap_msg, __be32 qpn) in cm_lap_set_remote_qpn() argument694 lap_msg->offset12 = cpu_to_be32((be32_to_cpu(qpn) << 8) | in cm_lap_set_remote_qpn()695 (be32_to_cpu(lap_msg->offset12) & in cm_lap_set_remote_qpn()699 static inline u8 cm_lap_get_remote_resp_timeout(struct cm_lap_msg *lap_msg) in cm_lap_get_remote_resp_timeout() argument701 return (u8) ((be32_to_cpu(lap_msg->offset12) & 0xF8) >> 3); in cm_lap_get_remote_resp_timeout()704 static inline void cm_lap_set_remote_resp_timeout(struct cm_lap_msg *lap_msg, in cm_lap_set_remote_resp_timeout() argument707 lap_msg->offset12 = cpu_to_be32((resp_timeout << 3) | in cm_lap_set_remote_resp_timeout()708 (be32_to_cpu(lap_msg->offset12) & in cm_lap_set_remote_resp_timeout()[all …]
2572 static void cm_format_lap(struct cm_lap_msg *lap_msg, in cm_format_lap() argument2578 cm_format_mad_hdr(&lap_msg->hdr, CM_LAP_ATTR_ID, in cm_format_lap()2580 lap_msg->local_comm_id = cm_id_priv->id.local_id; in cm_format_lap()2581 lap_msg->remote_comm_id = cm_id_priv->id.remote_id; in cm_format_lap()2582 cm_lap_set_remote_qpn(lap_msg, cm_id_priv->remote_qpn); in cm_format_lap()2584 cm_lap_set_remote_resp_timeout(lap_msg, 0x1F); in cm_format_lap()2585 lap_msg->alt_local_lid = alternate_path->slid; in cm_format_lap()2586 lap_msg->alt_remote_lid = alternate_path->dlid; in cm_format_lap()2587 lap_msg->alt_local_gid = alternate_path->sgid; in cm_format_lap()2588 lap_msg->alt_remote_gid = alternate_path->dgid; in cm_format_lap()[all …]