Home
last modified time | relevance | path

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

/drivers/infiniband/core/
Dcm_msgs.h473 static inline u8 cm_rej_get_msg_rejected(struct cm_rej_msg *rej_msg) in cm_rej_get_msg_rejected() argument
475 return (u8) (rej_msg->offset8 >> 6); in cm_rej_get_msg_rejected()
478 static inline void cm_rej_set_msg_rejected(struct cm_rej_msg *rej_msg, u8 msg) in cm_rej_set_msg_rejected() argument
480 rej_msg->offset8 = (u8) ((rej_msg->offset8 & 0x3F) | (msg << 6)); in cm_rej_set_msg_rejected()
483 static inline u8 cm_rej_get_reject_info_len(struct cm_rej_msg *rej_msg) in cm_rej_get_reject_info_len() argument
485 return (u8) (rej_msg->offset9 >> 1); in cm_rej_get_reject_info_len()
488 static inline void cm_rej_set_reject_info_len(struct cm_rej_msg *rej_msg, in cm_rej_set_reject_info_len() argument
491 rej_msg->offset9 = (u8) ((rej_msg->offset9 & 0x1) | (len << 1)); in cm_rej_set_reject_info_len()
Dcm.c1203 struct cm_rej_msg *rej_msg, *rcv_msg; in cm_issue_rej() local
1212 rej_msg = (struct cm_rej_msg *) msg->mad; in cm_issue_rej()
1214 cm_format_mad_hdr(&rej_msg->hdr, CM_REJ_ATTR_ID, rcv_msg->hdr.tid); in cm_issue_rej()
1215 rej_msg->remote_comm_id = rcv_msg->local_comm_id; in cm_issue_rej()
1216 rej_msg->local_comm_id = rcv_msg->remote_comm_id; in cm_issue_rej()
1217 cm_rej_set_msg_rejected(rej_msg, msg_rejected); in cm_issue_rej()
1218 rej_msg->reason = cpu_to_be16(reason); in cm_issue_rej()
1221 cm_rej_set_reject_info_len(rej_msg, ari_length); in cm_issue_rej()
1222 memcpy(rej_msg->ari, ari, ari_length); in cm_issue_rej()
1359 static void cm_format_rej(struct cm_rej_msg *rej_msg, in cm_format_rej() argument
[all …]