/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_lid_mgr.c | 187 for (lid = min_lid; lid <= max_lid; lid++) { in lid_mgr_validate_db() 203 for (lid = min_lid; lid <= max_lid; lid++) { in lid_mgr_validate_db() 343 for (lid = 0; lid < cl_ptr_vector_get_size(p_discovered_vec); lid++) in lid_mgr_init_sweep() 368 for (lid = disc_min_lid; lid <= disc_max_lid; lid++) { in lid_mgr_init_sweep() 399 for (lid = db_min_lid; lid <= db_max_lid; lid++) in lid_mgr_init_sweep() 435 for (lid = 1; lid <= max_defined_lid; lid++) { in lid_mgr_init_sweep() 622 if ((lid & lmc_mask) != lid) in lid_mgr_find_free_lid_range() 666 for (lid = min_lid; lid <= max_lid; lid++) in lid_mgr_cleanup_discovered_port_lid_range() 776 for (lid = *p_min_lid; lid <= *p_max_lid; lid++) in lid_mgr_get_port_lid() 780 for (lid = *p_min_lid; lid <= *p_max_lid; lid++) in lid_mgr_get_port_lid() [all …]
|
H A D | osm_ucast_file.c | 69 return lid; in remap_lid() 73 if (min_lid <= lid && lid <= max_lid) in remap_lid() 74 return lid; in remap_lid() 77 return min_lid + (lid & ((1 << lmc) - 1)); in remap_lid() 87 new_lid = port_guid ? remap_lid(p_osm, lid, port_guid) : lid; in add_path() 110 uint16_t lid, ib_net64_t guid, in add_lid_hops() argument 119 osm_switch_set_hops(p_sw, lid, i, hops[i]); in add_lid_hops() 130 uint16_t lid; in do_ucast_file_load() local 200 lid = (uint16_t) strtoul(p, &q, 16); in do_ucast_file_load() 273 uint16_t lid; in do_lid_matrix_file_load() local [all …]
|
H A D | osm_sa_slvl_record.c | 79 uint16_t lid; in sa_slvl_create() local 91 lid = p_physp->port_info.base_lid; in sa_slvl_create() 93 lid = osm_node_get_base_lid(p_physp->p_node, 0); in sa_slvl_create() 99 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), in_port_idx); in sa_slvl_create() 103 p_rec_item->resp.slvl_rec.lid = lid; in sa_slvl_create() 262 cl_ntoh16(p_rcvd_rec->lid), in osm_slvl_rec_rcv_process() 274 p_port = osm_get_port_by_lid(sa->p_subn, p_rcvd_rec->lid); in osm_slvl_rec_rcv_process() 279 cl_ntoh16(p_rcvd_rec->lid)); in osm_slvl_rec_rcv_process()
|
H A D | osm_sa_vlarb_record.c | 79 uint16_t lid; in sa_vl_arb_create() local 91 lid = p_physp->port_info.base_lid; in sa_vl_arb_create() 93 lid = osm_node_get_base_lid(p_physp->p_node, 0); in sa_vl_arb_create() 99 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), block); in sa_vl_arb_create() 103 p_rec_item->resp.vlarb_rec.lid = lid; in sa_vl_arb_create() 269 cl_ntoh16(p_rcvd_rec->lid), in osm_vlarb_rec_rcv_process() 280 p_port = osm_get_port_by_lid(sa->p_subn, p_rcvd_rec->lid); in osm_vlarb_rec_rcv_process() 285 cl_ntoh16(p_rcvd_rec->lid)); in osm_vlarb_rec_rcv_process()
|
H A D | osm_trap_rcv.c | 87 IN ib_net16_t lid, IN uint8_t num) in get_physp_by_lid_and_num() argument 103 ib_net16_t lid; in aging_tracker_callback() local 118 p_physp = get_physp_by_lid_and_num(sm, lid, port_num); in aging_tracker_callback() 122 port_num, cl_ntoh16(lid)); in aging_tracker_callback() 128 port_num, cl_ntoh16(lid)); in aging_tracker_callback() 256 pi->base_lid = p_port->lid; in disable_port() 327 cl_ntoh16(lid), port); in shutup_noisy_port() 338 cl_ntoh16(lid), port); in shutup_noisy_port() 344 cl_ntoh16(lid), port); in shutup_noisy_port() 354 cl_ntoh16(lid), port); in shutup_noisy_port() [all …]
|
H A D | osm_sa_pkey_record.c | 72 uint16_t lid; in sa_pkey_create() local 85 lid = p_physp->port_info.base_lid; in sa_pkey_create() 87 lid = osm_node_get_base_lid(p_physp->p_node, 0); in sa_pkey_create() 93 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), block); in sa_pkey_create() 97 p_rec_item->resp.pkey_rec.lid = lid; in sa_pkey_create() 289 cl_ntoh16(p_rcvd_rec->lid), in osm_pkey_rec_rcv_process() 299 p_port = osm_get_port_by_lid(sa->p_subn, p_rcvd_rec->lid); in osm_pkey_rec_rcv_process() 303 cl_ntoh16(p_rcvd_rec->lid)); in osm_pkey_rec_rcv_process()
|
H A D | osm_sa_lft_record.c | 73 IN ib_net16_t lid, IN uint16_t block) in lftr_rcv_new_lftr() argument 92 block, cl_ntoh16(lid)); in lftr_rcv_new_lftr() 96 p_rec_item->resp.lft_rec.lid = lid; in lftr_rcv_new_lftr() 153 cl_ntoh16(p_rcvd_rec->lid), min_lid_ho, max_lid_ho); in lftr_rcv_by_comp_mask() 155 if (min_lid_ho > cl_ntoh16(p_rcvd_rec->lid) || in lftr_rcv_by_comp_mask() 156 max_lid_ho < cl_ntoh16(p_rcvd_rec->lid)) in lftr_rcv_by_comp_mask()
|
H A D | osm_sa_mft_record.c | 73 IN ib_net16_t lid, IN uint16_t block, in mftr_rcv_new_mftr() argument 94 block, position, cl_ntoh16(lid)); in mftr_rcv_new_mftr() 101 p_rec_item->resp.mft_rec.lid = lid; in mftr_rcv_new_mftr() 160 cl_ntoh16(p_rcvd_rec->lid), min_lid_ho, max_lid_ho); in mftr_rcv_by_comp_mask() 162 if (min_lid_ho > cl_ntoh16(p_rcvd_rec->lid) || in mftr_rcv_by_comp_mask() 163 max_lid_ho < cl_ntoh16(p_rcvd_rec->lid)) in mftr_rcv_by_comp_mask()
|
H A D | osm_dump.c | 310 uint16_t lid; in dump_lid_matrix() local 315 for (lid = 1; lid <= max_lid; lid++) { in dump_lid_matrix() 317 if (osm_switch_get_least_hops(p_sw, lid) == OSM_NO_PATH) in dump_lid_matrix() 319 fprintf(file, "0x%04x:", lid); in dump_lid_matrix() 322 osm_switch_get_hop_count(p_sw, lid, port)); in dump_lid_matrix() 323 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid); in dump_lid_matrix() 338 uint16_t lid; in dump_ucast_lfts() local 345 for (lid = 0; lid <= max_lid; lid++) { in dump_ucast_lfts() 347 port = osm_switch_get_port_by_lid(p_sw, lid, OSM_NEW_LFT); in dump_ucast_lfts() 352 fprintf(file, "0x%04x %03u # ", lid, port); in dump_ucast_lfts() [all …]
|
H A D | osm_ucast_dnup.c | 111 uint16_t lid; in dnup_bfs_by_node() local 117 lid = osm_node_get_base_lid(p_sw->p_node, 0); in dnup_bfs_by_node() 118 lid = cl_ntoh16(lid); in dnup_bfs_by_node() 119 osm_switch_set_hops(p_sw, lid, 0, 0); in dnup_bfs_by_node() 123 cl_ntoh64(p_sw->p_node->node_info.port_guid), lid); in dnup_bfs_by_node() 159 current_min_hop = osm_switch_get_least_hops(u->sw, lid); in dnup_bfs_by_node() 163 osm_switch_get_hop_count(p_remote_sw, lid, pn_rem); in dnup_bfs_by_node() 182 osm_switch_set_hops(p_remote_sw, lid, in dnup_bfs_by_node() 191 osm_switch_set_hops(p_remote_sw, lid, in dnup_bfs_by_node()
|
H A D | osm_ucast_ftree.c | 172 uint16_t lid; member 406 p_group->lid = lid; in port_group_create() 564 p_sw->lid = in sw_create() 899 lid) in hca_get_port_group_by_lid() argument 903 if (lid == in hca_get_port_group_by_lid() 1264 p_sw->lid, in fabric_dump_general_info() 1945 lid, in fabric_validate_topology() 1988 lid, in fabric_validate_topology() 3053 uint16_t lid; in fabric_route_roots() local 3090 for (lid = 1; lid <= p_leaf_sw->p_osm_sw->max_lid_ho; lid ++) { in fabric_route_roots() [all …]
|
H A D | osm_sa_sw_info_record.c | 73 IN ib_net16_t lid) in sir_rcv_new_sir() argument 89 "New SwitchInfoRecord: lid %u\n", cl_ntoh16(lid)); in sir_rcv_new_sir() 93 p_rec_item->resp.swinfo_rec.lid = lid; in sir_rcv_new_sir() 182 match_lid = p_rcvd_rec->lid; in sir_rcv_by_comp_mask()
|
/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | ibtracert.c | 83 int lid; member 188 if (lid >= sw->linearcap && lid > sw->linearFDBtop) in switch_lookup() 197 portid2str(portid), lid, sw->fdb[lid % 64]); in switch_lookup() 198 return sw->fdb[lid % 64]; in switch_lookup() 203 return a->portguid == b->portguid || (force && a->lid == b->lid); in sameport() 287 if (to->lid > 0) in find_route() 288 toport.lid = to->lid; in find_route() 341 port->lid); in find_route() 475 port->portnum, port->lid); in new_node() 744 uint16_t lid; in resolve_lid() local [all …]
|
H A D | saquery.c | 886 *lid = cl_ntoh16(node_record->lid); in get_lid_from_name() 945 if (lid) in parse_lid_and_ports() 1187 CHECK_AND_SET_VAL(lid, 16, 0, nr.lid, NR, LID); in query_node_records() 1205 CHECK_AND_SET_VAL(lid, 16, 0, pir.lid, PIR, LID); in query_portinfo_records() 1266 CHECK_AND_SET_VAL(lid, 16, 0, smir.lid, SMIR, LID); in query_sm_info_records() 1285 CHECK_AND_SET_VAL(lid, 16, 0, swir.lid, SWIR, LID); in query_switchinfo_records() 1346 CHECK_AND_SET_VAL(lid, 16, 0, slvl.lid, SLVL, LID); in query_sl2vl_records() 1366 CHECK_AND_SET_VAL(lid, 16, 0, vlarb.lid, VLA, LID); in query_vlarb_records() 1387 CHECK_AND_SET_VAL(lid, 16, 0, pktr.lid, PKEY, LID); in query_pkey_tbl_records() 1407 CHECK_AND_SET_VAL(lid, 16, 0, lftr.lid, LFTR, LID); in query_lft_records() [all …]
|
H A D | ibmirror.c | 185 mad_set_field(buf, 0, IB_PMR_LRH_SLID_F, portid->lid); in port_mirror_route() 266 peerportid.drpath.drslid = (uint16_t) selfportid.lid; in get_peer() 312 get_peer(portid, outport, &peerportid.lid, &peerport); in lossy_config() 314 printf("local lid %d / port %d\n", portid->lid, outport); in lossy_config() 315 printf("peer lid %d / port %d\n", peerportid.lid, peerport); in lossy_config() 322 portid->lid, outport); in lossy_config() 328 peerportid.lid, peerport); in lossy_config() 333 portid->lid, outport, in lossy_config() 336 peerportid.lid, peerport, in lossy_config() 358 IBEXIT("%s lossy config on lid %d failed\n", clear?"clear":"set", p_portid->lid); in lossy_config() [all …]
|
H A D | ibaddr.c | 69 mad_decode_field(portinfo, IB_PORT_LID_F, &portid->lid); in ib_resolve_addr() 83 printf("LID start 0x%x end 0x%x", portid->lid, in ib_resolve_addr() 84 portid->lid + (1 << lmc) - 1); in ib_resolve_addr() 86 printf("LID start %u end %u", portid->lid, in ib_resolve_addr() 87 portid->lid + (1 << lmc) - 1); in ib_resolve_addr()
|
H A D | ibsendtrap.c | 82 n->issuer_lid = cl_hton16((uint16_t) port->lid); in build_trap145() 91 n->issuer_lid = cl_hton16((uint16_t) port->lid); in build_trap144_local() 92 n->data_details.ntc_144.lid = n->issuer_lid; in build_trap144_local() 118 n->issuer_lid = cl_hton16((uint16_t) port->lid); in build_trap129() 119 n->data_details.ntc_129_131.lid = n->issuer_lid; in build_trap129() 129 n->issuer_lid = cl_hton16((uint16_t) port->lid); in build_trap256_local() 130 n->data_details.ntc_256.lid = n->issuer_lid; in build_trap256_local() 160 n->issuer_lid = cl_hton16((uint16_t) port->lid); in build_trap257_258()
|
H A D | ibdiag_common.c | 586 sm_id->lid = port.sm_lid; in resolve_sm_portid() 613 portid->lid = port.base_lid; in resolve_self() 644 if ((portid->lid = in resolve_gid() 676 if ((portid->lid = in resolve_guid() 694 int lid; in resolve_portid_str() local 703 lid = strtol(addr_str, 0, 0); in resolve_portid_str() 704 if (!IB_LID_VALID(lid)) in resolve_portid_str() 706 return ib_portid_set(portid, lid, 0, 0); in resolve_portid_str() 722 lid = strtol(addr_str, &routepath, 0); in resolve_portid_str() 724 if (!IB_LID_VALID(lid)) in resolve_portid_str() [all …]
|
/freebsd/contrib/ofed/libibmad/ |
H A D | resolve.c | 90 if (!IB_LID_VALID(sm_id->lid)) { in ib_resolve_gid_via() 95 if ((portid->lid = in ib_resolve_gid_via() 115 if (!IB_LID_VALID(sm_id->lid)) { in ib_resolve_guid_via() 134 if ((portid->lid = in ib_resolve_guid_via() 148 int lid; in ib_resolve_portid_str_via() local 157 lid = strtol(addr_str, 0, 0); in ib_resolve_portid_str_via() 158 if (!IB_LID_VALID(lid)) { in ib_resolve_portid_str_via() 162 return ib_portid_set(portid, lid, 0, 0); in ib_resolve_portid_str_via() 181 lid = strtol(addr_str, &routepath, 0); in ib_resolve_portid_str_via() 183 if (!IB_LID_VALID(lid)) { in ib_resolve_portid_str_via() [all …]
|
H A D | gs.c | 56 int lid = dest->lid; in pma_query_via() local 59 DEBUG("lid %u port %d", lid, port); in pma_query_via() 61 if (lid == -1) { in pma_query_via() 94 int lid = dest->lid; in performance_reset_via() local 97 DEBUG("lid %u port %d mask 0x%x", lid, port, mask); in performance_reset_via() 99 if (lid == -1) { in performance_reset_via()
|
/freebsd/contrib/elftoolchain/libelf/ |
H A D | gelf_symshndx.c | 43 struct _Libelf_Data *ld, *lid; in gelf_getsymshndx() local 46 lid = (struct _Libelf_Data *) id; in gelf_getsymshndx() 51 if (lid == NULL || (scn = lid->d_scn) == NULL || in gelf_getsymshndx() 96 struct _Libelf_Data *ld, *lid; in gelf_update_symshndx() local 99 lid = (struct _Libelf_Data *) id; in gelf_update_symshndx() 104 if (lid == NULL || (scn = lid->d_scn) == NULL || in gelf_update_symshndx()
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_lwp_create.c | 82 lwpid_t lid; \ 89 error = _lwp_create(&uc, 0, &lid); \ 106 lwpid_t lid; in ATF_TC_BODY() local 114 error = _lwp_create(&uc, 0, &lid); in ATF_TC_BODY() 117 error = _lwp_wait(lid, NULL); in ATF_TC_BODY() 119 ATF_REQUIRE(lid == the_lwp_id); in ATF_TC_BODY()
|
/freebsd/sys/ofed/include/rdma/ |
H A D | opa_smi.h | 69 } lid; member 136 return smp->route.lid.data; in opa_get_smp_data() 144 return sizeof(smp->route.lid.data); in opa_get_smp_data_size() 152 return sizeof(*smp) - sizeof(smp->route.lid.data); in opa_get_smp_header_size()
|
/freebsd/contrib/bc/tests/dc/errors/ |
H A D | 25.txt | 2 0si[lid:rli1;rd:rli1;rpRli1+sili10>x]dsxx0sx0si 4 si[lid:rli1;rd:rli1;rpRli1+sili10>x]dsxx0sx0si
|
/freebsd/contrib/ofed/libibverbs/examples/ |
H A D | uc_pingpong.c | 73 int lid; member 90 .dlid = dest->lid, in pp_connect_ctx() 170 sprintf(msg, "%04x:%06x:%06x:%s", my_dest->lid, my_dest->qpn, in pp_client_exch_dest() 189 sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn, in pp_client_exch_dest() 273 sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn, in pp_server_exch_dest() 287 sprintf(msg, "%04x:%06x:%06x:%s", my_dest->lid, my_dest->qpn, in pp_server_exch_dest() 695 my_dest.lid = ctx->portinfo.lid; in main() 697 !my_dest.lid) { in main() 714 my_dest.lid, my_dest.qpn, my_dest.psn, gid); in main() 728 rem_dest->lid, rem_dest->qpn, rem_dest->psn, gid); in main()
|