Lines Matching defs:port_attr
683 struct ibv_port_attr *port_attr, union ibv_gid **gid_table,
718 if (sol_ibv_query_port(&ctx, port_num, port_attr)) {
726 gids = malloc(sizeof (union ibv_gid) * port_attr->gid_tbl_len);
733 rv = sol_ibv_query_gid(&ctx, port_num, port_attr->gid_tbl_len,
744 pkeys = malloc(sizeof (uint16_t) * port_attr->pkey_tbl_len);
752 rv = sol_ibv_query_pkey(&ctx, port_num, port_attr->pkey_tbl_len,
926 struct ibv_port_attr port_attr;
933 if (get_port_info(dev_name, port_num, &port_attr, &gids, NULL))
938 if (gid_num < port_attr.gid_tbl_len) {
959 if (get_port_info(dev_name, port_num, &port_attr, NULL, &pkeys))
963 if (pkey_num < port_attr.pkey_tbl_len)
970 if (get_port_info(dev_name, port_num, &port_attr, NULL, NULL))
974 len = 1 + sprintf(buf, "%d", port_attr.lmc);
976 len = 1 + sprintf(buf, "0x%x", port_attr.sm_lid);
978 len = 1 + sprintf(buf, "%d", port_attr.sm_sl);
980 len = 1 + sprintf(buf, "0x%x", port_attr.lid);
982 switch (port_attr.state) {
985 port_attr.state);
989 port_attr.state);
993 port_attr.state);
997 port_attr.state);
1001 port_attr.state);
1006 port_attr.state);
1010 port_attr.state);
1014 switch (port_attr.phys_state) {
1017 port_attr.phys_state);
1021 port_attr.phys_state);
1025 port_attr.phys_state);
1030 port_attr.phys_state);
1034 port_attr.phys_state);
1039 port_attr.phys_state);
1044 port_attr.phys_state);
1048 port_attr.phys_state);
1053 switch (port_attr.active_speed) {
1074 switch (port_attr.active_width) {
1092 port_attr.port_cap_flags);
1094 switch (port_attr.link_layer) {