Lines Matching full:portid

571  * Resolve the SM portid using the umad layer rather than using
598 int resolve_self(char *ca_name, uint8_t ca_port, ib_portid_t *portid, in resolve_self() argument
605 if (!(portid || portnum || gid)) in resolve_self()
611 if (portid) { in resolve_self()
612 memset(portid, 0, sizeof(*portid)); in resolve_self()
613 portid->lid = port.base_lid; in resolve_self()
614 portid->sl = port.sm_sl; in resolve_self()
631 int resolve_gid(char *ca_name, uint8_t ca_port, ib_portid_t * portid, in resolve_gid() argument
644 if ((portid->lid = in resolve_gid()
651 int resolve_guid(char *ca_name, uint8_t ca_port, ib_portid_t *portid, in resolve_guid() argument
669 memcpy(&prefix, portid->gid, sizeof(prefix)); in resolve_guid()
671 mad_set_field64(portid->gid, 0, IB_GID_PREFIX_F, in resolve_guid()
674 mad_set_field64(portid->gid, 0, IB_GID_GUID_F, *guid); in resolve_guid()
676 if ((portid->lid = in resolve_guid()
677 ib_path_query_via(srcport, selfgid, portid->gid, sm_id, buf)) < 0) in resolve_guid()
680 mad_decode_field(buf, IB_SA_PR_SL_F, &portid->sl); in resolve_guid()
688 int resolve_portid_str(char *ca_name, uint8_t ca_port, ib_portid_t * portid, in resolve_portid_str() argument
699 memset(portid, 0, sizeof *portid); in resolve_portid_str()
706 return ib_portid_set(portid, lid, 0, 0); in resolve_portid_str()
709 if (str2drpath(&portid->drpath, addr_str, 0, 0) < 0) in resolve_portid_str()
717 /* keep guid in portid? */ in resolve_portid_str()
718 return resolve_guid(ca_name, ca_port, portid, &guid, sm_id, in resolve_portid_str()
726 ib_portid_set(portid, lid, 0, 0); in resolve_portid_str()
732 if (str2drpath(&portid->drpath, routepath, selfportid.lid, 0) < in resolve_portid_str()
740 return resolve_gid(ca_name, ca_port, portid, gid, sm_id, in resolve_portid_str()