dreq_msg         2455 drivers/infiniband/core/cm.c static void cm_format_dreq(struct cm_dreq_msg *dreq_msg,
dreq_msg         2460 drivers/infiniband/core/cm.c 	cm_format_mad_hdr(&dreq_msg->hdr, CM_DREQ_ATTR_ID,
dreq_msg         2462 drivers/infiniband/core/cm.c 	dreq_msg->local_comm_id = cm_id_priv->id.local_id;
dreq_msg         2463 drivers/infiniband/core/cm.c 	dreq_msg->remote_comm_id = cm_id_priv->id.remote_id;
dreq_msg         2464 drivers/infiniband/core/cm.c 	cm_dreq_set_remote_qpn(dreq_msg, cm_id_priv->remote_qpn);
dreq_msg         2467 drivers/infiniband/core/cm.c 		memcpy(dreq_msg->private_data, private_data, private_data_len);
dreq_msg         2587 drivers/infiniband/core/cm.c 	struct cm_dreq_msg *dreq_msg;
dreq_msg         2595 drivers/infiniband/core/cm.c 	dreq_msg = (struct cm_dreq_msg *) mad_recv_wc->recv_buf.mad;
dreq_msg         2598 drivers/infiniband/core/cm.c 	cm_format_mad_hdr(&drep_msg->hdr, CM_DREP_ATTR_ID, dreq_msg->hdr.tid);
dreq_msg         2599 drivers/infiniband/core/cm.c 	drep_msg->remote_comm_id = dreq_msg->local_comm_id;
dreq_msg         2600 drivers/infiniband/core/cm.c 	drep_msg->local_comm_id = dreq_msg->remote_comm_id;
dreq_msg         2612 drivers/infiniband/core/cm.c 	struct cm_dreq_msg *dreq_msg;
dreq_msg         2616 drivers/infiniband/core/cm.c 	dreq_msg = (struct cm_dreq_msg *)work->mad_recv_wc->recv_buf.mad;
dreq_msg         2617 drivers/infiniband/core/cm.c 	cm_id_priv = cm_acquire_id(dreq_msg->remote_comm_id,
dreq_msg         2618 drivers/infiniband/core/cm.c 				   dreq_msg->local_comm_id);
dreq_msg         2624 drivers/infiniband/core/cm.c 			 __func__, be32_to_cpu(dreq_msg->local_comm_id),
dreq_msg         2625 drivers/infiniband/core/cm.c 			 be32_to_cpu(dreq_msg->remote_comm_id));
dreq_msg         2629 drivers/infiniband/core/cm.c 	work->cm_event.private_data = &dreq_msg->private_data;
dreq_msg         2632 drivers/infiniband/core/cm.c 	if (cm_id_priv->local_qpn != cm_dreq_get_remote_qpn(dreq_msg))
dreq_msg         2674 drivers/infiniband/core/cm.c 	cm_id_priv->tid = dreq_msg->hdr.tid;
dreq_msg          631 drivers/infiniband/core/cm_msgs.h static inline __be32 cm_dreq_get_remote_qpn(struct cm_dreq_msg *dreq_msg)
dreq_msg          633 drivers/infiniband/core/cm_msgs.h 	return cpu_to_be32(be32_to_cpu(dreq_msg->offset8) >> 8);
dreq_msg          636 drivers/infiniband/core/cm_msgs.h static inline void cm_dreq_set_remote_qpn(struct cm_dreq_msg *dreq_msg, __be32 qpn)
dreq_msg          638 drivers/infiniband/core/cm_msgs.h 	dreq_msg->offset8 = cpu_to_be32((be32_to_cpu(qpn) << 8) |
dreq_msg          639 drivers/infiniband/core/cm_msgs.h 			    (be32_to_cpu(dreq_msg->offset8) & 0x000000FF));