/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_sa_portinfo_record.c | 81 ib_port_info_t *p_pi; in pir_rcv_new_pir() local 113 p_pi = &p_physp0->port_info; in pir_rcv_new_pir() 115 p_pi = (ib_port_info_t *) &p_physp->port_info; in pir_rcv_new_pir() 116 if ((p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS) > 0) { in pir_rcv_new_pir() 119 p_pi = &p_rec_item->resp.port_rec.port_info; in pir_rcv_new_pir() 120 ib_port_info_set_link_speed_enabled(p_pi, in pir_rcv_new_pir() 121 ib_port_info_get_link_speed_enabled(p_pi) | IB_LINK_SPEED_ACTIVE_10); in pir_rcv_new_pir() 122 p_pi->state_info1 = in pir_rcv_new_pir() 123 (uint8_t) ((p_pi->state_info1 & IB_PORT_STATE_MASK) | in pir_rcv_new_pir() 124 … (ib_port_info_get_link_speed_sup(p_pi) | IB_LINK_SPEED_ACTIVE_10) << IB_PORT_LINK_SPEED_SHIFT); in pir_rcv_new_pir() [all …]
|
H A D | osm_link_mgr.c | 95 ib_port_info_t *p_pi = (ib_port_info_t *) payload; in link_mgr_set_physp_pi() local 125 if (!p_pi->base_lid) { in link_mgr_set_physp_pi() 128 p_pi->base_lid = p_port->lid; in link_mgr_set_physp_pi() 134 p_pi->master_sm_base_lid = sm->p_subn->sm_base_lid; in link_mgr_set_physp_pi() 135 if (p_pi->master_sm_base_lid != p_old_pi->master_sm_base_lid) in link_mgr_set_physp_pi() 194 p_pi->state_info2 = 0x02; in link_mgr_set_physp_pi() 195 ib_port_info_set_port_state(p_pi, port_state); in link_mgr_set_physp_pi() 202 m_key = ib_port_info_get_m_key(p_pi); in link_mgr_set_physp_pi() 206 ib_port_info_set_master_smsl(p_pi, smsl); in link_mgr_set_physp_pi() 214 if (ib_port_info_get_link_down_def_state(p_pi) != in link_mgr_set_physp_pi() [all …]
|
H A D | osm_helper.c | 594 IN const ib_port_info_t * p_pi) in dbg_get_capabilities_str() argument 602 if (p_pi->capability_mask & IB_PORT_CAP_RESV0) { in dbg_get_capabilities_str() 608 if (p_pi->capability_mask & IB_PORT_CAP_IS_SM) { in dbg_get_capabilities_str() 614 if (p_pi->capability_mask & IB_PORT_CAP_HAS_NOTICE) { in dbg_get_capabilities_str() 620 if (p_pi->capability_mask & IB_PORT_CAP_HAS_TRAP) { in dbg_get_capabilities_str() 626 if (p_pi->capability_mask & IB_PORT_CAP_HAS_IPD) { in dbg_get_capabilities_str() 632 if (p_pi->capability_mask & IB_PORT_CAP_HAS_AUTO_MIG) { in dbg_get_capabilities_str() 638 if (p_pi->capability_mask & IB_PORT_CAP_HAS_SL_MAP) { in dbg_get_capabilities_str() 644 if (p_pi->capability_mask & IB_PORT_CAP_HAS_NV_MKEY) { in dbg_get_capabilities_str() 650 if (p_pi->capability_mask & IB_PORT_CAP_HAS_NV_PKEY) { in dbg_get_capabilities_str() [all …]
|
H A D | osm_port_info_rcv.c | 83 IN const ib_port_info_t * p_pi) in pi_rcv_process_endport() argument 100 ib_port_info_get_port_state(p_pi) != IB_LINK_DOWN) { in pi_rcv_process_endport() 102 mtu = ib_port_info_get_mtu_cap(p_pi); in pi_rcv_process_endport() 110 extended = p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS; in pi_rcv_process_endport() 111 rate = ib_port_info_compute_rate(p_pi, extended); in pi_rcv_process_endport() 119 data_vls = 1U << (ib_port_info_get_vl_cap(p_pi) - 1); in pi_rcv_process_endport() 133 mpb = ib_port_info_get_mpb(p_pi); in pi_rcv_process_endport() 134 if (mpb > 0 && p_pi->m_key == 0) { in pi_rcv_process_endport() 142 if (p_pi->capability_mask & IB_PORT_CAP_IS_SM) { in pi_rcv_process_endport() 208 IN ib_port_info_t * p_pi) in pi_rcv_process_switch_port0() argument [all …]
|
H A D | osm_lid_mgr.c | 807 ib_port_info_t *p_pi = (ib_port_info_t *) payload; in lid_mgr_set_physp_pi() local 868 p_pi->state_info2 = 0x02; in lid_mgr_set_physp_pi() 869 ib_port_info_set_port_state(p_pi, IB_LINK_NO_CHANGE); in lid_mgr_set_physp_pi() 871 if (ib_port_info_get_link_down_def_state(p_pi) != in lid_mgr_set_physp_pi() 879 p_pi->m_key = p_mgr->p_subn->opt.m_key; in lid_mgr_set_physp_pi() 880 if (memcmp(&p_pi->m_key, &p_old_pi->m_key, sizeof(p_pi->m_key))) { in lid_mgr_set_physp_pi() 885 p_pi->subnet_prefix = p_mgr->p_subn->opt.subnet_prefix; in lid_mgr_set_physp_pi() 886 if (memcmp(&p_pi->subnet_prefix, &p_old_pi->subnet_prefix, in lid_mgr_set_physp_pi() 887 sizeof(p_pi->subnet_prefix))) in lid_mgr_set_physp_pi() 891 p_pi->base_lid = lid; in lid_mgr_set_physp_pi() [all …]
|
H A D | osm_mlnx_ext_port_info_rcv.c | 67 ib_mlnx_ext_port_info_t *p_pi; in osm_mlnx_epi_rcv_process() local 83 p_pi = ib_smp_get_payload_ptr(p_smp); in osm_mlnx_epi_rcv_process() 93 p_pi, FILE_ID, OSM_LOG_DEBUG); in osm_mlnx_epi_rcv_process() 115 p_physp->ext_port_info = *p_pi; in osm_mlnx_epi_rcv_process() 127 p_physp->ext_port_info = *p_pi; in osm_mlnx_epi_rcv_process()
|
H A D | osm_qos.c | 205 ib_port_info_t *p_pi = &p->port_info; in vlarb_update() local 208 if (p_pi->vl_arb_low_cap > 0) { in vlarb_update() 209 len = p_pi->vl_arb_low_cap < IB_NUM_VL_ARB_ELEMENTS_IN_BLOCK ? in vlarb_update() 210 p_pi->vl_arb_low_cap : IB_NUM_VL_ARB_ELEMENTS_IN_BLOCK; in vlarb_update() 218 if (p_pi->vl_arb_low_cap > IB_NUM_VL_ARB_ELEMENTS_IN_BLOCK) { in vlarb_update() 219 len = p_pi->vl_arb_low_cap % IB_NUM_VL_ARB_ELEMENTS_IN_BLOCK; in vlarb_update() 227 if (p_pi->vl_arb_high_cap > 0) { in vlarb_update() 228 len = p_pi->vl_arb_high_cap < IB_NUM_VL_ARB_ELEMENTS_IN_BLOCK ? in vlarb_update() 229 p_pi->vl_arb_high_cap : IB_NUM_VL_ARB_ELEMENTS_IN_BLOCK; in vlarb_update() 237 if (p_pi->vl_arb_high_cap > IB_NUM_VL_ARB_ELEMENTS_IN_BLOCK) { in vlarb_update() [all …]
|
H A D | osm_dump.c | 557 const ib_port_info_t *p_pi; in print_node_report() local 577 p_pi = &p_physp->port_info; in print_node_report() 588 (ib_port_info_get_port_state(p_pi))); in print_node_report() 593 if (ib_port_info_get_port_state(p_pi) != IB_LINK_DOWN in print_node_report() 597 cl_ntoh16(p_pi->base_lid), in print_node_report() 598 ib_port_info_get_lmc(p_pi)); in print_node_report() 608 (ib_port_info_get_neighbor_mtu(p_pi)), in print_node_report() 609 osm_get_lwa_str(p_pi->link_width_active), in print_node_report() 611 (ib_port_info_get_link_speed_active(p_pi), in print_node_report() 612 ib_port_info_get_link_speed_ext_active(p_pi), in print_node_report() [all …]
|
H A D | osm_sa_multipath_record.c | 152 const ib_port_info_t *p_pi, *p_pi0; in mpr_rcv_get_path_parms() local 178 p_pi = &p_physp->port_info; in mpr_rcv_get_path_parms() 180 mtu = ib_port_info_get_mtu_cap(p_pi); in mpr_rcv_get_path_parms() 181 extended = p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS; in mpr_rcv_get_path_parms() 182 rate = ib_port_info_compute_rate(p_pi, extended); in mpr_rcv_get_path_parms() 350 p_pi = &p_physp->port_info; in mpr_rcv_get_path_parms() 352 if (mtu > ib_port_info_get_mtu_cap(p_pi)) in mpr_rcv_get_path_parms() 353 mtu = ib_port_info_get_mtu_cap(p_pi); in mpr_rcv_get_path_parms() 358 p0_extended_rate = ib_port_info_compute_rate(p_pi, p0_extended); in mpr_rcv_get_path_parms() 377 p_pi = &p_physp->port_info; in mpr_rcv_get_path_parms() [all …]
|
H A D | osm_port.c | 675 IN const ib_port_info_t * p_pi, in osm_physp_set_port_info() argument 678 CL_ASSERT(p_pi); in osm_physp_set_port_info() 681 if (ib_port_info_get_port_state(p_pi) == IB_LINK_DOWN) { in osm_physp_set_port_info() 686 (ib_port_info_get_port_phys_state(p_pi), in osm_physp_set_port_info() 689 p_physp->port_info = *p_pi; in osm_physp_set_port_info() 697 (p_pi->m_key != 0 || ib_port_info_get_mpb(p_pi) == 0)) in osm_physp_set_port_info() 700 cl_ntoh64(p_pi->m_key)); in osm_physp_set_port_info()
|
H A D | osm_sa_path_record.c | 162 const ib_port_info_t *p_pi, *p_pi0; in pr_rcv_get_path_parms() local 188 p_pi = &p_physp->port_info; in pr_rcv_get_path_parms() 192 mtu = ib_port_info_get_mtu_cap(p_pi); in pr_rcv_get_path_parms() 193 extended = p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS; in pr_rcv_get_path_parms() 194 rate = ib_port_info_compute_rate(p_pi, extended); in pr_rcv_get_path_parms() 344 p_pi = &p_physp->port_info; in pr_rcv_get_path_parms() 346 if (mtu > ib_port_info_get_mtu_cap(p_pi)) in pr_rcv_get_path_parms() 347 mtu = ib_port_info_get_mtu_cap(p_pi); in pr_rcv_get_path_parms() 352 p0_extended_rate = ib_port_info_compute_rate(p_pi, p0_extended); in pr_rcv_get_path_parms() 371 p_pi = &p_physp->port_info; in pr_rcv_get_path_parms() [all …]
|
H A D | osm_pkey_mgr.c | 260 ib_port_info_t *p_pi; in pkey_mgr_enforce_partition() local 266 p_pi = &p_physp->port_info; in pkey_mgr_enforce_partition() 275 if ((p_pi->vl_enforce & 0xc) == enforce_bits * in pkey_mgr_enforce_partition() 287 memcpy(payload, p_pi, sizeof(ib_port_info_t)); in pkey_mgr_enforce_partition() 289 p_pi = (ib_port_info_t *) payload; in pkey_mgr_enforce_partition() 290 p_pi->vl_enforce &= ~0xc; in pkey_mgr_enforce_partition() 292 p_pi->vl_enforce |= enforce_bits; in pkey_mgr_enforce_partition() 294 p_pi->state_info2 = 0; in pkey_mgr_enforce_partition() 295 ib_port_info_set_port_state(p_pi, IB_LINK_NO_CHANGE); in pkey_mgr_enforce_partition()
|
H A D | osm_sa_mcmember_record.c | 341 const ib_port_info_t *p_pi; in validate_port_caps() local 357 p_pi = &p_physp->port_info; in validate_port_caps() 358 extended = p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS; in validate_port_caps() 359 rate_required = ib_port_info_compute_rate(p_pi, extended); in validate_port_caps() 663 const ib_port_info_t *p_pi; in mgrp_request_is_realizable() local 682 p_pi = &p_physp->port_info; in mgrp_request_is_realizable() 683 port_mtu = p_physp ? ib_port_info_get_mtu_cap(p_pi) : 0; in mgrp_request_is_realizable() 730 extended = p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS; in mgrp_request_is_realizable() 731 port_rate = ib_port_info_compute_rate(p_pi, extended); in mgrp_request_is_realizable()
|
/freebsd/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) in ib_port_info_get_port_state() argument 4748 return ((uint8_t) (p_pi->state_info1 & IB_PORT_STATE_MASK)); in ib_port_info_get_port_state() 4774 ib_port_info_set_port_state(IN ib_port_info_t * const p_pi, in ib_port_info_set_port_state() argument 4777 p_pi->state_info1 = (uint8_t) ((p_pi->state_info1 & 0xF0) | port_state); in ib_port_info_set_port_state() 4806 ib_port_info_get_vl_cap(IN const ib_port_info_t * const p_pi) in ib_port_info_get_vl_cap() argument 4808 return ((p_pi->vl_cap >> 4) & 0x0F); in ib_port_info_get_vl_cap() 4834 ib_port_info_get_init_type(IN const ib_port_info_t * const p_pi) in ib_port_info_get_init_type() argument 4836 return (uint8_t) (p_pi->vl_cap & 0x0F); in ib_port_info_get_init_type() 4862 ib_port_info_get_op_vls(IN const ib_port_info_t * const p_pi) in ib_port_info_get_op_vls() argument 4864 return ((p_pi->vl_enforce >> 4) & 0x0F); in ib_port_info_get_op_vls() [all …]
|
/freebsd/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, 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,
|
/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | saquery.c | 284 const ib_port_info_t *const p_pi = &p_pir->port_info; in dump_portinfo_record() local 293 cl_ntoh16(p_pi->base_lid), cl_ntoh16(p_pi->master_sm_base_lid), in dump_portinfo_record() 294 cl_ntoh32(p_pi->capability_mask)); in dump_portinfo_record()
|