mra_msg 1741 drivers/infiniband/core/cm.c static void cm_format_mra(struct cm_mra_msg *mra_msg, mra_msg 1746 drivers/infiniband/core/cm.c cm_format_mad_hdr(&mra_msg->hdr, CM_MRA_ATTR_ID, cm_id_priv->tid); mra_msg 1747 drivers/infiniband/core/cm.c cm_mra_set_msg_mraed(mra_msg, msg_mraed); mra_msg 1748 drivers/infiniband/core/cm.c mra_msg->local_comm_id = cm_id_priv->id.local_id; mra_msg 1749 drivers/infiniband/core/cm.c mra_msg->remote_comm_id = cm_id_priv->id.remote_id; mra_msg 1750 drivers/infiniband/core/cm.c cm_mra_set_service_timeout(mra_msg, service_timeout); mra_msg 1753 drivers/infiniband/core/cm.c memcpy(mra_msg->private_data, private_data, private_data_len); mra_msg 2989 drivers/infiniband/core/cm.c static struct cm_id_private * cm_acquire_mraed_id(struct cm_mra_msg *mra_msg) mra_msg 2991 drivers/infiniband/core/cm.c switch (cm_mra_get_msg_mraed(mra_msg)) { mra_msg 2993 drivers/infiniband/core/cm.c return cm_acquire_id(mra_msg->remote_comm_id, 0); mra_msg 2996 drivers/infiniband/core/cm.c return cm_acquire_id(mra_msg->remote_comm_id, mra_msg 2997 drivers/infiniband/core/cm.c mra_msg->local_comm_id); mra_msg 3006 drivers/infiniband/core/cm.c struct cm_mra_msg *mra_msg; mra_msg 3009 drivers/infiniband/core/cm.c mra_msg = (struct cm_mra_msg *)work->mad_recv_wc->recv_buf.mad; mra_msg 3010 drivers/infiniband/core/cm.c cm_id_priv = cm_acquire_mraed_id(mra_msg); mra_msg 3014 drivers/infiniband/core/cm.c work->cm_event.private_data = &mra_msg->private_data; mra_msg 3016 drivers/infiniband/core/cm.c cm_mra_get_service_timeout(mra_msg); mra_msg 3017 drivers/infiniband/core/cm.c timeout = cm_convert_to_ms(cm_mra_get_service_timeout(mra_msg)) + mra_msg 3023 drivers/infiniband/core/cm.c if (cm_mra_get_msg_mraed(mra_msg) != CM_MSG_RESPONSE_REQ || mra_msg 3030 drivers/infiniband/core/cm.c if (cm_mra_get_msg_mraed(mra_msg) != CM_MSG_RESPONSE_REP || mra_msg 3037 drivers/infiniband/core/cm.c if (cm_mra_get_msg_mraed(mra_msg) != CM_MSG_RESPONSE_OTHER || mra_msg 428 drivers/infiniband/core/cm_msgs.h static inline u8 cm_mra_get_msg_mraed(struct cm_mra_msg *mra_msg) mra_msg 430 drivers/infiniband/core/cm_msgs.h return (u8) (mra_msg->offset8 >> 6); mra_msg 433 drivers/infiniband/core/cm_msgs.h static inline void cm_mra_set_msg_mraed(struct cm_mra_msg *mra_msg, u8 msg) mra_msg 435 drivers/infiniband/core/cm_msgs.h mra_msg->offset8 = (u8) ((mra_msg->offset8 & 0x3F) | (msg << 6)); mra_msg 438 drivers/infiniband/core/cm_msgs.h static inline u8 cm_mra_get_service_timeout(struct cm_mra_msg *mra_msg) mra_msg 440 drivers/infiniband/core/cm_msgs.h return (u8) (mra_msg->offset9 >> 3); mra_msg 443 drivers/infiniband/core/cm_msgs.h static inline void cm_mra_set_service_timeout(struct cm_mra_msg *mra_msg, mra_msg 446 drivers/infiniband/core/cm_msgs.h mra_msg->offset9 = (u8) ((mra_msg->offset9 & 0x07) |