Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/infiniband/core/
Dcm_msgs.h485 static inline u8 cm_rej_get_msg_rejected(struct cm_rej_msg *rej_msg) in cm_rej_get_msg_rejected() argument
487 return (u8) (rej_msg->offset8 >> 6); in cm_rej_get_msg_rejected()
490 static inline void cm_rej_set_msg_rejected(struct cm_rej_msg *rej_msg, u8 msg) in cm_rej_set_msg_rejected() argument
492 rej_msg->offset8 = (u8) ((rej_msg->offset8 & 0x3F) | (msg << 6)); in cm_rej_set_msg_rejected()
495 static inline u8 cm_rej_get_reject_info_len(struct cm_rej_msg *rej_msg) in cm_rej_get_reject_info_len() argument
497 return (u8) (rej_msg->offset9 >> 1); in cm_rej_get_reject_info_len()
500 static inline void cm_rej_set_reject_info_len(struct cm_rej_msg *rej_msg, in cm_rej_set_reject_info_len() argument
503 rej_msg->offset9 = (u8) ((rej_msg->offset9 & 0x1) | (len << 1)); in cm_rej_set_reject_info_len()
Dcm.c1194 struct cm_rej_msg *rej_msg, *rcv_msg; in cm_issue_rej() local
1203 rej_msg = (struct cm_rej_msg *) msg->mad; in cm_issue_rej()
1205 cm_format_mad_hdr(&rej_msg->hdr, CM_REJ_ATTR_ID, rcv_msg->hdr.tid); in cm_issue_rej()
1206 rej_msg->remote_comm_id = rcv_msg->local_comm_id; in cm_issue_rej()
1207 rej_msg->local_comm_id = rcv_msg->remote_comm_id; in cm_issue_rej()
1208 cm_rej_set_msg_rejected(rej_msg, msg_rejected); in cm_issue_rej()
1209 rej_msg->reason = cpu_to_be16(reason); in cm_issue_rej()
1212 cm_rej_set_reject_info_len(rej_msg, ari_length); in cm_issue_rej()
1213 memcpy(rej_msg->ari, ari, ari_length); in cm_issue_rej()
1350 static void cm_format_rej(struct cm_rej_msg *rej_msg, in cm_format_rej() argument
[all …]