/freebsd-12-stable/contrib/ofed/opensm/opensm/ |
H A D | osm_sa_portinfo_record.c | 81 ib_port_info_t *p_pi; local 113 p_pi = &p_physp0->port_info; 115 p_pi = (ib_port_info_t *) &p_physp->port_info; 116 if ((p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS) > 0) { 119 p_pi = &p_rec_item->resp.port_rec.port_info; 120 ib_port_info_set_link_speed_enabled(p_pi, 121 ib_port_info_get_link_speed_enabled(p_pi) | IB_LINK_SPEED_ACTIVE_10); 122 p_pi->state_info1 = 123 (uint8_t) ((p_pi->state_info1 & IB_PORT_STATE_MASK) | 124 (ib_port_info_get_link_speed_sup(p_pi) | IB_LINK_SPEED_ACTIVE_1 190 const ib_port_info_t *p_pi; local [all...] |
H A D | osm_link_mgr.c | 95 ib_port_info_t *p_pi = (ib_port_info_t *) payload; local 125 if (!p_pi->base_lid) { 128 p_pi->base_lid = p_port->lid; 134 p_pi->master_sm_base_lid = sm->p_subn->sm_base_lid; 135 if (p_pi->master_sm_base_lid != p_old_pi->master_sm_base_lid) 194 p_pi->state_info2 = 0x02; 195 ib_port_info_set_port_state(p_pi, port_state); 202 m_key = ib_port_info_get_m_key(p_pi); 206 ib_port_info_set_master_smsl(p_pi, smsl); 214 if (ib_port_info_get_link_down_def_state(p_pi) ! [all...] |
H A D | osm_helper.c | 594 IN const ib_port_info_t * p_pi) 602 if (p_pi->capability_mask & IB_PORT_CAP_RESV0) { 608 if (p_pi->capability_mask & IB_PORT_CAP_IS_SM) { 614 if (p_pi->capability_mask & IB_PORT_CAP_HAS_NOTICE) { 620 if (p_pi->capability_mask & IB_PORT_CAP_HAS_TRAP) { 626 if (p_pi->capability_mask & IB_PORT_CAP_HAS_IPD) { 632 if (p_pi->capability_mask & IB_PORT_CAP_HAS_AUTO_MIG) { 638 if (p_pi->capability_mask & IB_PORT_CAP_HAS_SL_MAP) { 644 if (p_pi->capability_mask & IB_PORT_CAP_HAS_NV_MKEY) { 650 if (p_pi 592 dbg_get_capabilities_str(IN char *p_buf, IN uint32_t buf_size, IN const char *p_prefix_str, IN const ib_port_info_t * p_pi) argument 796 dbg_get_capabilities2_str(IN char *p_buf, IN uint32_t buf_size, IN const char *p_prefix_str, IN const ib_port_info_t * p_pi) argument 838 osm_dump_port_info_to_buf(IN ib_net64_t node_guid, IN ib_net64_t port_guid, IN uint8_t port_num, IN const ib_port_info_t * p_pi, OUT char * buf) argument 925 osm_dump_port_info(IN osm_log_t * p_log, IN ib_net64_t node_guid, IN ib_net64_t port_guid, IN uint8_t port_num, IN const ib_port_info_t * p_pi, IN osm_log_level_t log_level) argument 953 osm_dump_port_info_v2(IN osm_log_t * p_log, IN ib_net64_t node_guid, IN ib_net64_t port_guid, IN uint8_t port_num, IN const ib_port_info_t * p_pi, IN const int file_id, IN osm_log_level_t log_level) argument 981 osm_dump_mlnx_ext_port_info_to_buf(IN ib_net64_t node_guid, IN ib_net64_t port_guid, IN uint8_t port_num, IN const ib_mlnx_ext_port_info_t * p_pi, OUT char * buf) argument 1004 osm_dump_mlnx_ext_port_info(IN osm_log_t * p_log, IN ib_net64_t node_guid, IN ib_net64_t port_guid, IN uint8_t port_num, IN const ib_mlnx_ext_port_info_t * p_pi, IN osm_log_level_t log_level) argument 1019 osm_dump_mlnx_ext_port_info_v2(IN osm_log_t * p_log, IN ib_net64_t node_guid, IN ib_net64_t port_guid, IN uint8_t port_num, IN const ib_mlnx_ext_port_info_t * p_pi, IN const int file_id, IN osm_log_level_t log_level) argument 1040 const ib_port_info_t *p_pi = &p_pir->port_info; local 1128 const ib_port_info_t *p_pi = &p_pir->port_info; local 1156 const ib_port_info_t *p_pi = &p_pir->port_info; local [all...] |
H A D | osm_port_info_rcv.c | 83 IN const ib_port_info_t * p_pi) 100 ib_port_info_get_port_state(p_pi) != IB_LINK_DOWN) { 102 mtu = ib_port_info_get_mtu_cap(p_pi); 110 extended = p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS; 111 rate = ib_port_info_compute_rate(p_pi, extended); 119 data_vls = 1U << (ib_port_info_get_vl_cap(p_pi) - 1); 133 mpb = ib_port_info_get_mpb(p_pi); 134 if (mpb > 0 && p_pi->m_key == 0) { 142 if (p_pi->capability_mask & IB_PORT_CAP_IS_SM) { 208 IN ib_port_info_t * p_pi) 82 pi_rcv_process_endport(IN osm_sm_t * sm, IN osm_physp_t * p_physp, IN const ib_port_info_t * p_pi) argument 205 pi_rcv_process_switch_port0(IN osm_sm_t * sm, IN osm_node_t * p_node, IN osm_physp_t * p_physp, IN ib_port_info_t * p_pi) argument 259 pi_rcv_process_switch_ext_port(IN osm_sm_t * sm, IN osm_node_t * p_node, IN osm_physp_t * p_physp, IN ib_port_info_t * p_pi) argument 445 pi_rcv_process_ca_or_router_port(IN osm_sm_t * sm, IN osm_node_t * p_node, IN osm_physp_t * p_physp, IN ib_port_info_t * p_pi) argument 550 osm_pi_rcv_update_self(IN osm_sm_t *sm, IN osm_physp_t *p_physp, IN ib_port_info_t *p_pi) argument 569 ib_port_info_t *p_pi; local 646 ib_port_info_t *p_pi; local [all...] |
H A D | osm_mlnx_ext_port_info_rcv.c | 67 ib_mlnx_ext_port_info_t *p_pi; local 83 p_pi = ib_smp_get_payload_ptr(p_smp); 93 p_pi, FILE_ID, OSM_LOG_DEBUG); 115 p_physp->ext_port_info = *p_pi; 127 p_physp->ext_port_info = *p_pi;
|
H A D | osm_lid_mgr.c | 807 ib_port_info_t *p_pi = (ib_port_info_t *) payload; local 868 p_pi->state_info2 = 0x02; 869 ib_port_info_set_port_state(p_pi, IB_LINK_NO_CHANGE); 871 if (ib_port_info_get_link_down_def_state(p_pi) != 879 p_pi->m_key = p_mgr->p_subn->opt.m_key; 880 if (memcmp(&p_pi->m_key, &p_old_pi->m_key, sizeof(p_pi->m_key))) { 885 p_pi->subnet_prefix = p_mgr->p_subn->opt.subnet_prefix; 886 if (memcmp(&p_pi->subnet_prefix, &p_old_pi->subnet_prefix, 887 sizeof(p_pi [all...] |
H A D | osm_dump.c | 557 const ib_port_info_t *p_pi; local 577 p_pi = &p_physp->port_info; 588 (ib_port_info_get_port_state(p_pi))); 593 if (ib_port_info_get_port_state(p_pi) != IB_LINK_DOWN 597 cl_ntoh16(p_pi->base_lid), 598 ib_port_info_get_lmc(p_pi)); 608 (ib_port_info_get_neighbor_mtu(p_pi)), 609 osm_get_lwa_str(p_pi->link_width_active), 611 (ib_port_info_get_link_speed_active(p_pi), 612 ib_port_info_get_link_speed_ext_active(p_pi), [all...] |
H A D | osm_qos.c | 205 ib_port_info_t *p_pi = &p->port_info; local 208 if (p_pi->vl_arb_low_cap > 0) { 209 len = p_pi->vl_arb_low_cap < IB_NUM_VL_ARB_ELEMENTS_IN_BLOCK ? 210 p_pi->vl_arb_low_cap : IB_NUM_VL_ARB_ELEMENTS_IN_BLOCK; 218 if (p_pi->vl_arb_low_cap > IB_NUM_VL_ARB_ELEMENTS_IN_BLOCK) { 219 len = p_pi->vl_arb_low_cap % IB_NUM_VL_ARB_ELEMENTS_IN_BLOCK; 227 if (p_pi->vl_arb_high_cap > 0) { 228 len = p_pi->vl_arb_high_cap < IB_NUM_VL_ARB_ELEMENTS_IN_BLOCK ? 229 p_pi->vl_arb_high_cap : IB_NUM_VL_ARB_ELEMENTS_IN_BLOCK; 237 if (p_pi [all...] |
H A D | osm_sa_multipath_record.c | 152 const ib_port_info_t *p_pi, *p_pi0; local 178 p_pi = &p_physp->port_info; 180 mtu = ib_port_info_get_mtu_cap(p_pi); 181 extended = p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS; 182 rate = ib_port_info_compute_rate(p_pi, extended); 350 p_pi = &p_physp->port_info; 352 if (mtu > ib_port_info_get_mtu_cap(p_pi)) 353 mtu = ib_port_info_get_mtu_cap(p_pi); 358 p0_extended_rate = ib_port_info_compute_rate(p_pi, p0_extended); 377 p_pi [all...] |
H A D | osm_port.c | 673 IN const ib_port_info_t * p_pi, 676 CL_ASSERT(p_pi); 679 if (ib_port_info_get_port_state(p_pi) == IB_LINK_DOWN) { 684 (ib_port_info_get_port_phys_state(p_pi), 687 p_physp->port_info = *p_pi; 689 /* The MKey in p_pi can only be considered valid if it's 695 (p_pi->m_key != 0 || ib_port_info_get_mpb(p_pi) == 0)) 698 cl_ntoh64(p_pi->m_key)); 672 osm_physp_set_port_info(IN osm_physp_t * p_physp, IN const ib_port_info_t * p_pi, IN const struct osm_sm * p_sm) argument
|
H A D | osm_sa_path_record.c | 162 const ib_port_info_t *p_pi, *p_pi0; local 188 p_pi = &p_physp->port_info; 192 mtu = ib_port_info_get_mtu_cap(p_pi); 193 extended = p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS; 194 rate = ib_port_info_compute_rate(p_pi, extended); 344 p_pi = &p_physp->port_info; 346 if (mtu > ib_port_info_get_mtu_cap(p_pi)) 347 mtu = ib_port_info_get_mtu_cap(p_pi); 352 p0_extended_rate = ib_port_info_compute_rate(p_pi, p0_extended); 371 p_pi [all...] |
H A D | osm_pkey_mgr.c | 260 ib_port_info_t *p_pi; local 266 p_pi = &p_physp->port_info; 275 if ((p_pi->vl_enforce & 0xc) == enforce_bits * 287 memcpy(payload, p_pi, sizeof(ib_port_info_t)); 289 p_pi = (ib_port_info_t *) payload; 290 p_pi->vl_enforce &= ~0xc; 292 p_pi->vl_enforce |= enforce_bits; 294 p_pi->state_info2 = 0; 295 ib_port_info_set_port_state(p_pi, IB_LINK_NO_CHANGE);
|
H A D | osm_sa_mcmember_record.c | 341 const ib_port_info_t *p_pi; local 357 p_pi = &p_physp->port_info; 358 extended = p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS; 359 rate_required = ib_port_info_compute_rate(p_pi, extended); 663 const ib_port_info_t *p_pi; local 682 p_pi = &p_physp->port_info; 683 port_mtu = p_physp ? ib_port_info_get_mtu_cap(p_pi) : 0; 730 extended = p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS; 731 port_rate = ib_port_info_compute_rate(p_pi, extended);
|
/freebsd-12-stable/contrib/ofed/opensm/include/iba/ |
H A D | ib_types.h | 4746 ib_port_info_get_port_state(IN const ib_port_info_t * const p_pi) 4748 return ((uint8_t) (p_pi->state_info1 & IB_PORT_STATE_MASK)); 4753 * p_pi 4774 ib_port_info_set_port_state(IN ib_port_info_t * const p_pi, 4777 p_pi->state_info1 = (uint8_t) ((p_pi->state_info1 & 0xF0) | port_state); 4782 * p_pi 4806 ib_port_info_get_vl_cap(IN const ib_port_info_t * const p_pi) 4808 return ((p_pi->vl_cap >> 4) & 0x0F); 4813 * p_pi [all...] |
/freebsd-12-stable/contrib/ofed/opensm/include/opensm/ |
H A D | osm_helper.h | 214 IN const ib_port_info_t * p_pi, 219 IN const ib_port_info_t * p_pi, 237 * p_pi 300 IN const ib_mlnx_ext_port_info_t * p_pi, 305 IN const ib_mlnx_ext_port_info_t * p_pi,
|
H A D | osm_port.h | 454 IN const ib_port_info_t * p_pi, 462 * p_pi
|
/freebsd-12-stable/contrib/ofed/infiniband-diags/src/ |
H A D | saquery.c | 284 const ib_port_info_t *const p_pi = &p_pir->port_info; local 293 cl_ntoh16(p_pi->base_lid), cl_ntoh16(p_pi->master_sm_base_lid), 294 cl_ntoh32(p_pi->capability_mask));
|