Lines Matching defs:p_mad_addr

91 					  OUT osm_mad_addr_t * p_mad_addr)
93 /* p_mad_addr->dest_lid = p_osm->subn.sm_base_lid; - for resp we use the dest lid ... */
94 p_mad_addr->dest_lid = cl_hton16(p_rcv_desc->remote_lid);
95 p_mad_addr->static_rate = 0; /* HACK - we do not know the rate ! */
96 p_mad_addr->path_bits = p_rcv_desc->local_path_bits;
99 p_mad_addr->addr_type.smi.source_lid =
101 p_mad_addr->addr_type.smi.port_num = 99; /* HACK - if used - should fail */
106 p_mad_addr->addr_type.gsi.remote_qp = cl_hton32(p_rcv_desc->qp);
108 p_mad_addr->addr_type.gsi.remote_qkey = IB_QP1_WELL_KNOWN_Q_KEY;
109 /* we do have the p_mad_addr->pkey_ix but how to get the PKey by index ? */
115 p_mad_addr->addr_type.gsi.pkey_ix = 0;
116 p_mad_addr->addr_type.gsi.service_level = p_rcv_desc->sl;
118 p_mad_addr->addr_type.gsi.global_route = p_rcv_desc->grh_flag;
120 if (p_mad_addr->addr_type.gsi.global_route) {
121 p_mad_addr->addr_type.gsi.grh_info.ver_class_flow =
128 p_mad_addr->addr_type.gsi.grh_info.hop_limit =
130 memcpy(&p_mad_addr->addr_type.gsi.grh_info.src_gid.raw,
132 memcpy(&p_mad_addr->addr_type.gsi.grh_info.dest_gid.raw,
142 __osm_mtl_conv_osm_addr_to_ibmgt_addr(IN osm_mad_addr_t * p_mad_addr,
151 p_av->src_path_bits = p_mad_addr->path_bits;
152 p_av->static_rate = p_mad_addr->static_rate;
153 p_av->dlid = cl_ntoh16(p_mad_addr->dest_lid);
158 p_av->sl = p_mad_addr->addr_type.gsi.service_level;
159 p_av->grh_flag = p_mad_addr->addr_type.gsi.global_route;
161 if (p_mad_addr->addr_type.gsi.global_route) {
162 ib_grh_get_ver_class_flow(p_mad_addr->addr_type.gsi.
167 p_mad_addr->addr_type.gsi.grh_info.hop_limit;
170 &p_mad_addr->addr_type.gsi.grh_info.dest_gid.raw,
902 osm_mad_addr_t *const p_mad_addr = osm_madw_get_mad_addr_ptr(p_madw);
917 __osm_mtl_conv_osm_addr_to_ibmgt_addr(p_mad_addr,
959 cl_ntoh32(p_mad_addr->addr_type.gsi.remote_qp)
965 qpn = cl_ntoh32(p_mad_addr->addr_type.gsi.remote_qp);