/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_lid_mgr.c | 135 uint16_t lid; in lid_mgr_validate_db() local 187 for (lid = min_lid; lid <= max_lid; lid++) { in lid_mgr_validate_db() 188 if (p_mgr->used_lids[lid]) { in lid_mgr_validate_db() 195 lid, p_item->guid); in lid_mgr_validate_db() 203 for (lid = min_lid; lid <= max_lid; lid++) { in lid_mgr_validate_db() 204 if (lid < min_lid + lmc_num_lids) in lid_mgr_validate_db() 205 p_mgr->used_lids[lid] = 1; in lid_mgr_validate_db() 277 static uint16_t trim_lid(IN uint16_t lid) in trim_lid() argument 279 if (lid > IB_LID_UCAST_END_HO || lid < IB_LID_UCAST_START_HO) in trim_lid() 281 return lid; in trim_lid() [all …]
|
H A D | osm_ucast_file.c | 58 static uint16_t remap_lid(osm_opensm_t * p_osm, uint16_t lid, ib_net64_t guid) in remap_lid() argument 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() 81 osm_switch_t * p_sw, uint16_t lid, uint8_t port_num, in add_path() argument 87 new_lid = port_guid ? remap_lid(p_osm, lid, port_guid) : lid; in add_path() 105 new_lid, lid, port_num, cl_ntoh64(port_guid), 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() [all …]
|
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 89 osm_port_t *p_port = osm_get_port_by_lid(sm->p_subn, lid); in get_physp_by_lid_and_num() 103 ib_net16_t lid; in aging_tracker_callback() local 113 lid = (ib_net16_t) ((key & 0x0000FFFF00000000ULL) >> 32); in aging_tracker_callback() 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() 189 static uint64_t trap_get_key(IN uint16_t lid, IN uint8_t port_num, in trap_get_key() argument 193 return ((uint64_t) port_num << 48) | ((uint64_t) lid << 32) | crc; in trap_get_key() 256 pi->base_lid = p_port->lid; in disable_port() [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_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 | 144 uint16_t lid; /* lid of the current node */ member 172 uint16_t lid; member 387 static ftree_port_group_t *port_group_create(IN uint16_t lid, in port_group_create() argument 406 p_group->lid = lid; in port_group_create() 514 p_group->lid, cl_ntoh64(p_group->remote_port_guid), in port_group_dump() 564 p_sw->lid = in sw_create() 720 IN uint8_t remote_port_num, IN uint16_t lid, in sw_add_port() argument 732 p_group = port_group_create(lid, remote_lid, in sw_add_port() 757 static inline cl_status_t sw_set_hops(IN ftree_sw_t * p_sw, IN uint16_t lid, in sw_set_hops() argument 762 p_sw->hops[lid] = hops; in sw_set_hops() [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 166 mad_decode_field(pi, IB_PORT_LID_F, &port->lid); in get_node() 175 static int switch_lookup(Switch * sw, ib_portid_t * portid, int lid) in switch_lookup() argument 188 if (lid >= sw->linearcap && lid > sw->linearFDBtop) in switch_lookup() 192 if (!smp_query_via(fdb, portid, IB_ATTR_LINEARFORWTBL, lid / 64, 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() 235 node->type == IB_NODE_SWITCH ? 0 : port->portnum, port->lid, in dump_endnode() 236 port->lid + (1 << port->lmc) - 1, nodename); in dump_endnode() [all …]
|
H A D | saquery.c | 140 printf("%6d \"%s\"\n", cl_ntoh16(node_record->lid), name); in print_node_desc() 169 cl_ntoh16(nr->lid), cl_ntoh16(nr->resv), in dump_node_record() 191 printf("%u\n", cl_ntoh16(node_record->lid)); in print_node_record() 292 cl_ntoh16(p_pir->lid), p_pir->port_num, in dump_portinfo_record() 308 cl_ntoh16(pir->lid), pir->port_num, pir->options); in dump_one_portinfo_record() 514 cl_ntoh16(p_smr->lid), in dump_sm_info_record() 541 cl_ntoh16(p_sir->lid), in dump_switch_info_record() 667 cl_ntoh16(slvl->lid), slvl->in_port_num, slvl->out_port_num, in dump_one_slvl_record() 687 cl_ntoh16(vlarb->lid), vlarb->port_num, vlarb->block_num); in dump_one_vlarb_record() 715 cl_ntoh16(pktr->lid), pktr->port_num, pktr->block_num); in dump_one_pkey_tbl_record() [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/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()
|
/freebsd/contrib/bmake/filemon/ |
H A D | filemon_ktrace.c | 122 lwpid_t lid; member 144 if (Sa->key.lid < Sb->key.lid) in compare_filemon_states() 146 if (Sa->key.lid > Sb->key.lid) in compare_filemon_states() 162 if (S->key.lid < key->lid) in compare_filemon_key() 164 if (S->key.lid > key->lid) in compare_filemon_key() 412 .lid = F->hdr.ktr_lid, in filemon_dispatch()
|