rep_msg 2060 drivers/infiniband/core/cm.c static void cm_format_rep(struct cm_rep_msg *rep_msg, rep_msg 2064 drivers/infiniband/core/cm.c cm_format_mad_hdr(&rep_msg->hdr, CM_REP_ATTR_ID, cm_id_priv->tid); rep_msg 2065 drivers/infiniband/core/cm.c rep_msg->local_comm_id = cm_id_priv->id.local_id; rep_msg 2066 drivers/infiniband/core/cm.c rep_msg->remote_comm_id = cm_id_priv->id.remote_id; rep_msg 2067 drivers/infiniband/core/cm.c cm_rep_set_starting_psn(rep_msg, cpu_to_be32(param->starting_psn)); rep_msg 2068 drivers/infiniband/core/cm.c rep_msg->resp_resources = param->responder_resources; rep_msg 2069 drivers/infiniband/core/cm.c cm_rep_set_target_ack_delay(rep_msg, rep_msg 2071 drivers/infiniband/core/cm.c cm_rep_set_failover(rep_msg, param->failover_accepted); rep_msg 2072 drivers/infiniband/core/cm.c cm_rep_set_rnr_retry_count(rep_msg, param->rnr_retry_count); rep_msg 2073 drivers/infiniband/core/cm.c rep_msg->local_ca_guid = cm_id_priv->id.device->node_guid; rep_msg 2076 drivers/infiniband/core/cm.c rep_msg->initiator_depth = param->initiator_depth; rep_msg 2077 drivers/infiniband/core/cm.c cm_rep_set_flow_ctrl(rep_msg, param->flow_control); rep_msg 2078 drivers/infiniband/core/cm.c cm_rep_set_srq(rep_msg, param->srq); rep_msg 2079 drivers/infiniband/core/cm.c cm_rep_set_local_qpn(rep_msg, cpu_to_be32(param->qp_num)); rep_msg 2081 drivers/infiniband/core/cm.c cm_rep_set_srq(rep_msg, 1); rep_msg 2082 drivers/infiniband/core/cm.c cm_rep_set_local_eecn(rep_msg, cpu_to_be32(param->qp_num)); rep_msg 2086 drivers/infiniband/core/cm.c memcpy(rep_msg->private_data, param->private_data, rep_msg 2095 drivers/infiniband/core/cm.c struct cm_rep_msg *rep_msg; rep_msg 2117 drivers/infiniband/core/cm.c rep_msg = (struct cm_rep_msg *) msg->mad; rep_msg 2118 drivers/infiniband/core/cm.c cm_format_rep(rep_msg, cm_id_priv, param); rep_msg 2133 drivers/infiniband/core/cm.c cm_id_priv->rq_psn = cm_rep_get_starting_psn(rep_msg); rep_msg 2209 drivers/infiniband/core/cm.c struct cm_rep_msg *rep_msg; rep_msg 2212 drivers/infiniband/core/cm.c rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; rep_msg 2214 drivers/infiniband/core/cm.c param->remote_ca_guid = rep_msg->local_ca_guid; rep_msg 2215 drivers/infiniband/core/cm.c param->remote_qkey = be32_to_cpu(rep_msg->local_qkey); rep_msg 2216 drivers/infiniband/core/cm.c param->remote_qpn = be32_to_cpu(cm_rep_get_qpn(rep_msg, qp_type)); rep_msg 2217 drivers/infiniband/core/cm.c param->starting_psn = be32_to_cpu(cm_rep_get_starting_psn(rep_msg)); rep_msg 2218 drivers/infiniband/core/cm.c param->responder_resources = rep_msg->initiator_depth; rep_msg 2219 drivers/infiniband/core/cm.c param->initiator_depth = rep_msg->resp_resources; rep_msg 2220 drivers/infiniband/core/cm.c param->target_ack_delay = cm_rep_get_target_ack_delay(rep_msg); rep_msg 2221 drivers/infiniband/core/cm.c param->failover_accepted = cm_rep_get_failover(rep_msg); rep_msg 2222 drivers/infiniband/core/cm.c param->flow_control = cm_rep_get_flow_ctrl(rep_msg); rep_msg 2223 drivers/infiniband/core/cm.c param->rnr_retry_count = cm_rep_get_rnr_retry_count(rep_msg); rep_msg 2224 drivers/infiniband/core/cm.c param->srq = cm_rep_get_srq(rep_msg); rep_msg 2225 drivers/infiniband/core/cm.c work->cm_event.private_data = &rep_msg->private_data; rep_msg 2231 drivers/infiniband/core/cm.c struct cm_rep_msg *rep_msg; rep_msg 2235 drivers/infiniband/core/cm.c rep_msg = (struct cm_rep_msg *) work->mad_recv_wc->recv_buf.mad; rep_msg 2236 drivers/infiniband/core/cm.c cm_id_priv = cm_acquire_id(rep_msg->remote_comm_id, rep_msg 2237 drivers/infiniband/core/cm.c rep_msg->local_comm_id); rep_msg 2274 drivers/infiniband/core/cm.c struct cm_rep_msg *rep_msg; rep_msg 2280 drivers/infiniband/core/cm.c rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; rep_msg 2281 drivers/infiniband/core/cm.c cm_id_priv = cm_acquire_id(rep_msg->remote_comm_id, 0); rep_msg 2285 drivers/infiniband/core/cm.c be32_to_cpu(rep_msg->remote_comm_id)); rep_msg 2301 drivers/infiniband/core/cm.c be32_to_cpu(rep_msg->local_comm_id), rep_msg 2302 drivers/infiniband/core/cm.c be32_to_cpu(rep_msg->remote_comm_id)); rep_msg 2306 drivers/infiniband/core/cm.c cm_id_priv->timewait_info->work.remote_id = rep_msg->local_comm_id; rep_msg 2307 drivers/infiniband/core/cm.c cm_id_priv->timewait_info->remote_ca_guid = rep_msg->local_ca_guid; rep_msg 2308 drivers/infiniband/core/cm.c cm_id_priv->timewait_info->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); rep_msg 2317 drivers/infiniband/core/cm.c be32_to_cpu(rep_msg->remote_comm_id)); rep_msg 2336 drivers/infiniband/core/cm.c __func__, be32_to_cpu(rep_msg->local_comm_id), rep_msg 2337 drivers/infiniband/core/cm.c be32_to_cpu(rep_msg->remote_comm_id)); rep_msg 2350 drivers/infiniband/core/cm.c cm_id_priv->id.remote_id = rep_msg->local_comm_id; rep_msg 2351 drivers/infiniband/core/cm.c cm_id_priv->remote_qpn = cm_rep_get_qpn(rep_msg, cm_id_priv->qp_type); rep_msg 2352 drivers/infiniband/core/cm.c cm_id_priv->initiator_depth = rep_msg->resp_resources; rep_msg 2353 drivers/infiniband/core/cm.c cm_id_priv->responder_resources = rep_msg->initiator_depth; rep_msg 2354 drivers/infiniband/core/cm.c cm_id_priv->sq_psn = cm_rep_get_starting_psn(rep_msg); rep_msg 2355 drivers/infiniband/core/cm.c cm_id_priv->rnr_retry_count = cm_rep_get_rnr_retry_count(rep_msg); rep_msg 2356 drivers/infiniband/core/cm.c cm_id_priv->target_ack_delay = cm_rep_get_target_ack_delay(rep_msg); rep_msg 511 drivers/infiniband/core/cm_msgs.h static inline __be32 cm_rep_get_local_qpn(struct cm_rep_msg *rep_msg) rep_msg 513 drivers/infiniband/core/cm_msgs.h return cpu_to_be32(be32_to_cpu(rep_msg->offset12) >> 8); rep_msg 516 drivers/infiniband/core/cm_msgs.h static inline void cm_rep_set_local_qpn(struct cm_rep_msg *rep_msg, __be32 qpn) rep_msg 518 drivers/infiniband/core/cm_msgs.h rep_msg->offset12 = cpu_to_be32((be32_to_cpu(qpn) << 8) | rep_msg 519 drivers/infiniband/core/cm_msgs.h (be32_to_cpu(rep_msg->offset12) & 0x000000FF)); rep_msg 522 drivers/infiniband/core/cm_msgs.h static inline __be32 cm_rep_get_local_eecn(struct cm_rep_msg *rep_msg) rep_msg 524 drivers/infiniband/core/cm_msgs.h return cpu_to_be32(be32_to_cpu(rep_msg->offset16) >> 8); rep_msg 527 drivers/infiniband/core/cm_msgs.h static inline void cm_rep_set_local_eecn(struct cm_rep_msg *rep_msg, __be32 eecn) rep_msg 529 drivers/infiniband/core/cm_msgs.h rep_msg->offset16 = cpu_to_be32((be32_to_cpu(eecn) << 8) | rep_msg 530 drivers/infiniband/core/cm_msgs.h (be32_to_cpu(rep_msg->offset16) & 0x000000FF)); rep_msg 533 drivers/infiniband/core/cm_msgs.h static inline __be32 cm_rep_get_qpn(struct cm_rep_msg *rep_msg, enum ib_qp_type qp_type) rep_msg 536 drivers/infiniband/core/cm_msgs.h cm_rep_get_local_eecn(rep_msg) : cm_rep_get_local_qpn(rep_msg); rep_msg 539 drivers/infiniband/core/cm_msgs.h static inline __be32 cm_rep_get_starting_psn(struct cm_rep_msg *rep_msg) rep_msg 541 drivers/infiniband/core/cm_msgs.h return cpu_to_be32(be32_to_cpu(rep_msg->offset20) >> 8); rep_msg 544 drivers/infiniband/core/cm_msgs.h static inline void cm_rep_set_starting_psn(struct cm_rep_msg *rep_msg, rep_msg 547 drivers/infiniband/core/cm_msgs.h rep_msg->offset20 = cpu_to_be32((be32_to_cpu(starting_psn) << 8) | rep_msg 548 drivers/infiniband/core/cm_msgs.h (be32_to_cpu(rep_msg->offset20) & 0x000000FF)); rep_msg 551 drivers/infiniband/core/cm_msgs.h static inline u8 cm_rep_get_target_ack_delay(struct cm_rep_msg *rep_msg) rep_msg 553 drivers/infiniband/core/cm_msgs.h return (u8) (rep_msg->offset26 >> 3); rep_msg 556 drivers/infiniband/core/cm_msgs.h static inline void cm_rep_set_target_ack_delay(struct cm_rep_msg *rep_msg, rep_msg 559 drivers/infiniband/core/cm_msgs.h rep_msg->offset26 = (u8) ((rep_msg->offset26 & 0x07) | rep_msg 563 drivers/infiniband/core/cm_msgs.h static inline u8 cm_rep_get_failover(struct cm_rep_msg *rep_msg) rep_msg 565 drivers/infiniband/core/cm_msgs.h return (u8) ((rep_msg->offset26 & 0x06) >> 1); rep_msg 568 drivers/infiniband/core/cm_msgs.h static inline void cm_rep_set_failover(struct cm_rep_msg *rep_msg, u8 failover) rep_msg 570 drivers/infiniband/core/cm_msgs.h rep_msg->offset26 = (u8) ((rep_msg->offset26 & 0xF9) | rep_msg 574 drivers/infiniband/core/cm_msgs.h static inline u8 cm_rep_get_flow_ctrl(struct cm_rep_msg *rep_msg) rep_msg 576 drivers/infiniband/core/cm_msgs.h return (u8) (rep_msg->offset26 & 0x01); rep_msg 579 drivers/infiniband/core/cm_msgs.h static inline void cm_rep_set_flow_ctrl(struct cm_rep_msg *rep_msg, rep_msg 582 drivers/infiniband/core/cm_msgs.h rep_msg->offset26 = (u8) ((rep_msg->offset26 & 0xFE) | rep_msg 586 drivers/infiniband/core/cm_msgs.h static inline u8 cm_rep_get_rnr_retry_count(struct cm_rep_msg *rep_msg) rep_msg 588 drivers/infiniband/core/cm_msgs.h return (u8) (rep_msg->offset27 >> 5); rep_msg 591 drivers/infiniband/core/cm_msgs.h static inline void cm_rep_set_rnr_retry_count(struct cm_rep_msg *rep_msg, rep_msg 594 drivers/infiniband/core/cm_msgs.h rep_msg->offset27 = (u8) ((rep_msg->offset27 & 0x1F) | rep_msg 598 drivers/infiniband/core/cm_msgs.h static inline u8 cm_rep_get_srq(struct cm_rep_msg *rep_msg) rep_msg 600 drivers/infiniband/core/cm_msgs.h return (u8) ((rep_msg->offset27 >> 4) & 0x1); rep_msg 603 drivers/infiniband/core/cm_msgs.h static inline void cm_rep_set_srq(struct cm_rep_msg *rep_msg, u8 srq) rep_msg 605 drivers/infiniband/core/cm_msgs.h rep_msg->offset27 = (u8) ((rep_msg->offset27 & 0xEF) |