Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/core/
Dcm_msgs.h680 static inline __be32 cm_lap_get_remote_qpn(struct cm_lap_msg *lap_msg) in cm_lap_get_remote_qpn() argument
682 return cpu_to_be32(be32_to_cpu(lap_msg->offset12) >> 8); in cm_lap_get_remote_qpn()
685 static inline void cm_lap_set_remote_qpn(struct cm_lap_msg *lap_msg, __be32 qpn) in cm_lap_set_remote_qpn() argument
687 lap_msg->offset12 = cpu_to_be32((be32_to_cpu(qpn) << 8) | in cm_lap_set_remote_qpn()
688 (be32_to_cpu(lap_msg->offset12) & in cm_lap_set_remote_qpn()
692 static inline u8 cm_lap_get_remote_resp_timeout(struct cm_lap_msg *lap_msg) in cm_lap_get_remote_resp_timeout() argument
694 return (u8) ((be32_to_cpu(lap_msg->offset12) & 0xF8) >> 3); in cm_lap_get_remote_resp_timeout()
697 static inline void cm_lap_set_remote_resp_timeout(struct cm_lap_msg *lap_msg, in cm_lap_set_remote_resp_timeout() argument
700 lap_msg->offset12 = cpu_to_be32((resp_timeout << 3) | in cm_lap_set_remote_resp_timeout()
701 (be32_to_cpu(lap_msg->offset12) & in cm_lap_set_remote_resp_timeout()
[all …]
Dcm.c3086 static void cm_format_lap(struct cm_lap_msg *lap_msg, in cm_format_lap() argument
3097 cm_format_mad_hdr(&lap_msg->hdr, CM_LAP_ATTR_ID, in cm_format_lap()
3099 lap_msg->local_comm_id = cm_id_priv->id.local_id; in cm_format_lap()
3100 lap_msg->remote_comm_id = cm_id_priv->id.remote_id; in cm_format_lap()
3101 cm_lap_set_remote_qpn(lap_msg, cm_id_priv->remote_qpn); in cm_format_lap()
3103 cm_lap_set_remote_resp_timeout(lap_msg, 0x1F); in cm_format_lap()
3104 lap_msg->alt_local_lid = in cm_format_lap()
3106 lap_msg->alt_remote_lid = in cm_format_lap()
3108 lap_msg->alt_local_gid = alternate_path->sgid; in cm_format_lap()
3109 lap_msg->alt_remote_gid = alternate_path->dgid; in cm_format_lap()
[all …]