Lines Matching defs:p_mad_addr
76 OUT osm_mad_addr_t * p_mad_addr);
79 __osmv_IBMGT_osm_addr_to_ibmgt_addr(IN const osm_mad_addr_t * p_mad_addr,
366 IN void *p_ib_mad, IN const osm_mad_addr_t * p_mad_addr)
387 __osmv_IBMGT_osm_addr_to_ibmgt_addr(p_mad_addr,
424 cl_ntoh32(p_mad_addr->addr_type.gsi.remote_qp)
432 cl_ntoh32(p_mad_addr->addr_type.gsi.
695 OUT osm_mad_addr_t * p_mad_addr)
697 /* p_mad_addr->dest_lid = p_osm->subn.sm_base_lid; - for resp we use the dest lid ... */
698 p_mad_addr->dest_lid = cl_hton16(p_rcv_desc->remote_lid);
699 p_mad_addr->static_rate = 0; /* HACK - we do not know the rate ! */
700 p_mad_addr->path_bits = p_rcv_desc->local_path_bits;
702 memset(&p_mad_addr->addr_type.gsi.grh_info, 0,
703 sizeof(p_mad_addr->addr_type.gsi.grh_info));
707 p_mad_addr->addr_type.smi.source_lid =
709 p_mad_addr->addr_type.smi.port_num = 99; /* HACK - if used - should fail */
714 p_mad_addr->addr_type.gsi.remote_qp = cl_hton32(p_rcv_desc->qp);
716 p_mad_addr->addr_type.gsi.remote_qkey = IB_QP1_WELL_KNOWN_Q_KEY;
717 /* we do have the p_mad_addr->pkey_ix but how to get the PKey by index ? */
723 p_mad_addr->addr_type.gsi.pkey_ix = 0;
724 p_mad_addr->addr_type.gsi.service_level = p_rcv_desc->sl;
726 p_mad_addr->addr_type.gsi.global_route = p_rcv_desc->grh_flag;
728 if (p_mad_addr->addr_type.gsi.global_route) {
729 p_mad_addr->addr_type.gsi.grh_info.ver_class_flow =
736 p_mad_addr->addr_type.gsi.grh_info.hop_limit =
738 memcpy(&p_mad_addr->addr_type.gsi.grh_info.src_gid.raw,
740 memcpy(&p_mad_addr->addr_type.gsi.grh_info.dest_gid.raw,
750 __osmv_IBMGT_osm_addr_to_ibmgt_addr(IN const osm_mad_addr_t * p_mad_addr,
759 p_av->src_path_bits = p_mad_addr->path_bits;
760 p_av->static_rate = p_mad_addr->static_rate;
761 p_av->dlid = cl_ntoh16(p_mad_addr->dest_lid);
766 p_av->sl = p_mad_addr->addr_type.gsi.service_level;
767 p_av->grh_flag = p_mad_addr->addr_type.gsi.global_route;
769 if (p_mad_addr->addr_type.gsi.global_route) {
770 ib_grh_get_ver_class_flow(p_mad_addr->addr_type.gsi.
775 p_mad_addr->addr_type.gsi.grh_info.hop_limit;
778 &p_mad_addr->addr_type.gsi.grh_info.dest_gid.raw,