• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/core/

Lines Matching defs:req_msg

877 static void cm_format_req(struct cm_req_msg *req_msg,
881 cm_format_mad_hdr(&req_msg->hdr, CM_REQ_ATTR_ID,
884 req_msg->local_comm_id = cm_id_priv->id.local_id;
885 req_msg->service_id = param->service_id;
886 req_msg->local_ca_guid = cm_id_priv->id.device->node_guid;
887 cm_req_set_local_qpn(req_msg, cpu_to_be32(param->qp_num));
888 cm_req_set_resp_res(req_msg, param->responder_resources);
889 cm_req_set_init_depth(req_msg, param->initiator_depth);
890 cm_req_set_remote_resp_timeout(req_msg,
892 cm_req_set_qp_type(req_msg, param->qp_type);
893 cm_req_set_flow_ctrl(req_msg, param->flow_control);
894 cm_req_set_starting_psn(req_msg, cpu_to_be32(param->starting_psn));
895 cm_req_set_local_resp_timeout(req_msg,
897 cm_req_set_retry_count(req_msg, param->retry_count);
898 req_msg->pkey = param->primary_path->pkey;
899 cm_req_set_path_mtu(req_msg, param->primary_path->mtu);
900 cm_req_set_rnr_retry_count(req_msg, param->rnr_retry_count);
901 cm_req_set_max_cm_retries(req_msg, param->max_cm_retries);
902 cm_req_set_srq(req_msg, param->srq);
904 req_msg->primary_local_lid = param->primary_path->slid;
905 req_msg->primary_remote_lid = param->primary_path->dlid;
906 req_msg->primary_local_gid = param->primary_path->sgid;
907 req_msg->primary_remote_gid = param->primary_path->dgid;
908 cm_req_set_primary_flow_label(req_msg, param->primary_path->flow_label);
909 cm_req_set_primary_packet_rate(req_msg, param->primary_path->rate);
910 req_msg->primary_traffic_class = param->primary_path->traffic_class;
911 req_msg->primary_hop_limit = param->primary_path->hop_limit;
912 cm_req_set_primary_sl(req_msg, param->primary_path->sl);
913 cm_req_set_primary_subnet_local(req_msg, 1); /* local only... */
914 cm_req_set_primary_local_ack_timeout(req_msg,
918 req_msg->alt_local_lid = param->alternate_path->slid;
919 req_msg->alt_remote_lid = param->alternate_path->dlid;
920 req_msg->alt_local_gid = param->alternate_path->sgid;
921 req_msg->alt_remote_gid = param->alternate_path->dgid;
922 cm_req_set_alt_flow_label(req_msg,
924 cm_req_set_alt_packet_rate(req_msg, param->alternate_path->rate);
925 req_msg->alt_traffic_class = param->alternate_path->traffic_class;
926 req_msg->alt_hop_limit = param->alternate_path->hop_limit;
927 cm_req_set_alt_sl(req_msg, param->alternate_path->sl);
928 cm_req_set_alt_subnet_local(req_msg, 1); /* local only... */
929 cm_req_set_alt_local_ack_timeout(req_msg,
934 memcpy(req_msg->private_data, param->private_data,
966 struct cm_req_msg *req_msg;
1018 req_msg = (struct cm_req_msg *) cm_id_priv->msg->mad;
1019 cm_format_req(req_msg, cm_id_priv, param);
1020 cm_id_priv->tid = req_msg->hdr.tid;
1024 cm_id_priv->local_qpn = cm_req_get_local_qpn(req_msg);
1025 cm_id_priv->rq_psn = cm_req_get_starting_psn(req_msg);
1088 static void cm_format_paths_from_req(struct cm_req_msg *req_msg,
1093 primary_path->dgid = req_msg->primary_local_gid;
1094 primary_path->sgid = req_msg->primary_remote_gid;
1095 primary_path->dlid = req_msg->primary_local_lid;
1096 primary_path->slid = req_msg->primary_remote_lid;
1097 primary_path->flow_label = cm_req_get_primary_flow_label(req_msg);
1098 primary_path->hop_limit = req_msg->primary_hop_limit;
1099 primary_path->traffic_class = req_msg->primary_traffic_class;
1101 primary_path->pkey = req_msg->pkey;
1102 primary_path->sl = cm_req_get_primary_sl(req_msg);
1104 primary_path->mtu = cm_req_get_path_mtu(req_msg);
1106 primary_path->rate = cm_req_get_primary_packet_rate(req_msg);
1109 cm_req_get_primary_local_ack_timeout(req_msg);
1112 if (req_msg->alt_local_lid) {
1114 alt_path->dgid = req_msg->alt_local_gid;
1115 alt_path->sgid = req_msg->alt_remote_gid;
1116 alt_path->dlid = req_msg->alt_local_lid;
1117 alt_path->slid = req_msg->alt_remote_lid;
1118 alt_path->flow_label = cm_req_get_alt_flow_label(req_msg);
1119 alt_path->hop_limit = req_msg->alt_hop_limit;
1120 alt_path->traffic_class = req_msg->alt_traffic_class;
1122 alt_path->pkey = req_msg->pkey;
1123 alt_path->sl = cm_req_get_alt_sl(req_msg);
1125 alt_path->mtu = cm_req_get_path_mtu(req_msg);
1127 alt_path->rate = cm_req_get_alt_packet_rate(req_msg);
1130 cm_req_get_alt_local_ack_timeout(req_msg);
1139 struct cm_req_msg *req_msg;
1142 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad;
1147 if (req_msg->alt_local_lid)
1151 param->remote_ca_guid = req_msg->local_ca_guid;
1152 param->remote_qkey = be32_to_cpu(req_msg->local_qkey);
1153 param->remote_qpn = be32_to_cpu(cm_req_get_local_qpn(req_msg));
1154 param->qp_type = cm_req_get_qp_type(req_msg);
1155 param->starting_psn = be32_to_cpu(cm_req_get_starting_psn(req_msg));
1156 param->responder_resources = cm_req_get_init_depth(req_msg);
1157 param->initiator_depth = cm_req_get_resp_res(req_msg);
1159 cm_req_get_remote_resp_timeout(req_msg);
1160 param->flow_control = cm_req_get_flow_ctrl(req_msg);
1162 cm_req_get_local_resp_timeout(req_msg);
1163 param->retry_count = cm_req_get_retry_count(req_msg);
1164 param->rnr_retry_count = cm_req_get_rnr_retry_count(req_msg);
1165 param->srq = cm_req_get_srq(req_msg);
1166 work->cm_event.private_data = &req_msg->private_data;
1295 struct cm_req_msg *req_msg;
1298 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad;
1327 req_msg->service_id,
1328 req_msg->private_data);
1350 struct cm_req_msg *req_msg;
1353 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad;
1360 cm_id_priv->id.remote_id = req_msg->local_comm_id;
1370 cm_id_priv->timewait_info->work.remote_id = req_msg->local_comm_id;
1371 cm_id_priv->timewait_info->remote_ca_guid = req_msg->local_ca_guid;
1372 cm_id_priv->timewait_info->remote_qpn = cm_req_get_local_qpn(req_msg);
1383 cm_id_priv->id.service_id = req_msg->service_id;
1386 cm_format_paths_from_req(req_msg, &work->path[0], &work->path[1]);
1396 if (req_msg->alt_local_lid) {
1405 cm_id_priv->tid = req_msg->hdr.tid;
1407 cm_req_get_local_resp_timeout(req_msg));
1408 cm_id_priv->max_cm_retries = cm_req_get_max_cm_retries(req_msg);
1409 cm_id_priv->remote_qpn = cm_req_get_local_qpn(req_msg);
1410 cm_id_priv->initiator_depth = cm_req_get_resp_res(req_msg);
1411 cm_id_priv->responder_resources = cm_req_get_init_depth(req_msg);
1412 cm_id_priv->path_mtu = cm_req_get_path_mtu(req_msg);
1413 cm_id_priv->pkey = req_msg->pkey;
1414 cm_id_priv->sq_psn = cm_req_get_starting_psn(req_msg);
1415 cm_id_priv->retry_count = cm_req_get_retry_count(req_msg);
1416 cm_id_priv->rnr_retry_count = cm_req_get_rnr_retry_count(req_msg);
1417 cm_id_priv->qp_type = cm_req_get_qp_type(req_msg);