Lines Matching defs:port_attr
729 struct ibv_port_attr *port_attr, union ibv_gid **gid_table,
764 if (sol_ibv_query_port(&ctx, port_num, port_attr)) {
772 gids = malloc(sizeof (union ibv_gid) * port_attr->gid_tbl_len);
779 rv = sol_ibv_query_gid(&ctx, port_num, port_attr->gid_tbl_len,
790 pkeys = malloc(sizeof (uint16_t) * port_attr->pkey_tbl_len);
798 rv = sol_ibv_query_pkey(&ctx, port_num, port_attr->pkey_tbl_len,
972 struct ibv_port_attr port_attr;
979 if (get_port_info(dev_name, port_num, &port_attr, &gids, NULL))
984 if (gid_num < port_attr.gid_tbl_len) {
1005 if (get_port_info(dev_name, port_num, &port_attr, NULL, &pkeys))
1009 if (pkey_num < port_attr.pkey_tbl_len)
1016 if (get_port_info(dev_name, port_num, &port_attr, NULL, NULL))
1020 len = 1 + sprintf(buf, "%d", port_attr.lmc);
1022 len = 1 + sprintf(buf, "0x%x", port_attr.sm_lid);
1024 len = 1 + sprintf(buf, "%d", port_attr.sm_sl);
1026 len = 1 + sprintf(buf, "0x%x", port_attr.lid);
1028 switch (port_attr.state) {
1031 port_attr.state);
1035 port_attr.state);
1039 port_attr.state);
1043 port_attr.state);
1047 port_attr.state);
1052 port_attr.state);
1056 port_attr.state);
1060 switch (port_attr.phys_state) {
1063 port_attr.phys_state);
1067 port_attr.phys_state);
1071 port_attr.phys_state);
1076 port_attr.phys_state);
1080 port_attr.phys_state);
1085 port_attr.phys_state);
1090 port_attr.phys_state);
1094 port_attr.phys_state);
1099 switch (port_attr.active_speed) {
1120 switch (port_attr.active_width) {
1138 port_attr.port_cap_flags);
1140 switch (port_attr.link_layer) {