Home
last modified time | relevance | path

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

/drivers/infiniband/core/
Dcm_msgs.h435 static inline u8 cm_mra_get_msg_mraed(struct cm_mra_msg *mra_msg) in cm_mra_get_msg_mraed() argument
437 return (u8) (mra_msg->offset8 >> 6); in cm_mra_get_msg_mraed()
440 static inline void cm_mra_set_msg_mraed(struct cm_mra_msg *mra_msg, u8 msg) in cm_mra_set_msg_mraed() argument
442 mra_msg->offset8 = (u8) ((mra_msg->offset8 & 0x3F) | (msg << 6)); in cm_mra_set_msg_mraed()
445 static inline u8 cm_mra_get_service_timeout(struct cm_mra_msg *mra_msg) in cm_mra_get_service_timeout() argument
447 return (u8) (mra_msg->offset9 >> 3); in cm_mra_get_service_timeout()
450 static inline void cm_mra_set_service_timeout(struct cm_mra_msg *mra_msg, in cm_mra_set_service_timeout() argument
453 mra_msg->offset9 = (u8) ((mra_msg->offset9 & 0x07) | in cm_mra_set_service_timeout()
Dcm.c1336 static void cm_format_mra(struct cm_mra_msg *mra_msg, in cm_format_mra() argument
1341 cm_format_mad_hdr(&mra_msg->hdr, CM_MRA_ATTR_ID, cm_id_priv->tid); in cm_format_mra()
1342 cm_mra_set_msg_mraed(mra_msg, msg_mraed); in cm_format_mra()
1343 mra_msg->local_comm_id = cm_id_priv->id.local_id; in cm_format_mra()
1344 mra_msg->remote_comm_id = cm_id_priv->id.remote_id; in cm_format_mra()
1345 cm_mra_set_service_timeout(mra_msg, service_timeout); in cm_format_mra()
1348 memcpy(mra_msg->private_data, private_data, private_data_len); in cm_format_mra()
2485 static struct cm_id_private * cm_acquire_mraed_id(struct cm_mra_msg *mra_msg) in cm_acquire_mraed_id() argument
2487 switch (cm_mra_get_msg_mraed(mra_msg)) { in cm_acquire_mraed_id()
2489 return cm_acquire_id(mra_msg->remote_comm_id, 0); in cm_acquire_mraed_id()
[all …]