/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_switch.c | 57 uint8_t port_num; member 65 IN uint8_t port_num, IN uint8_t num_hops) in osm_switch_set_hops() argument 69 if (port_num >= p_sw->num_ports) in osm_switch_set_hops() 78 p_sw->hops[lid_ho][port_num] = num_hops; in osm_switch_set_hops() 116 uint32_t port_num; in osm_switch_new() local 150 for (port_num = 0; port_num < num_ports; port_num++) in osm_switch_new() 151 osm_port_prof_construct(&p_sw->p_prof[port_num]); in osm_switch_new() 179 IN uint8_t port_num, IN int find_sys_guid, in switch_find_guid_common() argument 195 p_physp = osm_node_get_physp_ptr(p_sw->p_node, port_num); in switch_find_guid_common() 221 IN uint8_t port_num) in switch_find_sys_guid_count() argument [all …]
|
H A D | osm_node.c | 54 void osm_node_init_physp(IN osm_node_t * p_node, uint8_t port_num, in osm_node_init_physp() argument 66 CL_ASSERT(port_num < p_node->physp_tbl_size); in osm_node_init_physp() 68 osm_physp_init(&p_node->physp_table[port_num], in osm_node_init_physp() 69 port_guid, port_num, p_node, in osm_node_init_physp() 158 void osm_node_link(IN osm_node_t * p_node, IN uint8_t port_num, in osm_node_link() argument 164 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_node_link() 175 void osm_node_unlink(IN osm_node_t * p_node, IN uint8_t port_num, in osm_node_unlink() argument 181 CL_ASSERT(port_num < p_node->physp_tbl_size); in osm_node_unlink() 184 if (osm_node_link_exists(p_node, port_num, in osm_node_unlink() 187 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_node_unlink() [all …]
|
H A D | osm_ucast_cache.c | 152 if (!lid_ho || !remote_lid_ho || !p->port_num) in cache_add_sw_link() 157 lid_ho, p->port_num, remote_lid_ho, (is_ca) ? "CA/RTR" : "SW"); in cache_add_sw_link() 172 if (p->port_num >= p_cache_sw->num_ports) { in cache_add_sw_link() 182 if (p_cache_sw->ports[p->port_num].remote_lid_ho == 0) { in cache_add_sw_link() 184 p_cache_sw->ports[p->port_num].remote_lid_ho = remote_lid_ho; in cache_add_sw_link() 185 p_cache_sw->ports[p->port_num].is_leaf = is_ca; in cache_add_sw_link() 195 unsigned port_num; in cache_cleanup_switches() local 208 for (port_num = 1; port_num < p_sw->num_ports; port_num++) in cache_cleanup_switches() 209 if (p_sw->ports[port_num].remote_lid_ho) in cache_cleanup_switches() 250 uint8_t port_num, uint16_t remote_lid_ho, in cache_remove_port() argument [all …]
|
H A D | osm_node_info_rcv.c | 70 const uint8_t port_num) in report_duplicated_guid() argument 76 p_new = osm_node_get_physp_ptr(p_neighbor_node, port_num); in report_duplicated_guid() 84 p_physp->port_num, in report_duplicated_guid() 86 p_old ? p_old->port_num : 0, in report_duplicated_guid() 88 p_new ? p_new->port_num : 0); in report_duplicated_guid() 94 if (osm_dr_path_extend(&path, port_num)) in report_duplicated_guid() 115 if (osm_dr_path_extend(&path, p_physp->p_remote_physp->port_num)) { in requery_dup_node_info() 124 context.ni_context.port_num = p_physp->p_remote_physp->port_num; in requery_dup_node_info() 126 context.ni_context.dup_port_num = p_physp->port_num; in requery_dup_node_info() 142 const uint8_t port_num, in ni_rcv_set_links() argument [all …]
|
H A D | osm_sa_link_record.c | 210 uint8_t port_num; in lr_rcv_get_port_links() local 228 for (port_num = 1; port_num < num_ports; port_num++) { in lr_rcv_get_port_links() 231 port_num); in lr_rcv_get_port_links() 252 port_num = p_lr->from_port_num; in lr_rcv_get_port_links() 255 if (port_num < in lr_rcv_get_port_links() 260 port_num); in lr_rcv_get_port_links() 270 for (port_num = 1; port_num < num_ports; in lr_rcv_get_port_links() 271 port_num++) { in lr_rcv_get_port_links() 275 port_num); in lr_rcv_get_port_links() 290 port_num = p_lr->to_port_num; in lr_rcv_get_port_links() [all …]
|
H A D | osm_drop_mgr.c | 110 p_remote_physp->port_num); in drop_mgr_clean_physp() 126 p_remote_physp->port_num); in drop_mgr_clean_physp() 135 p_physp->port_num, in drop_mgr_clean_physp() 138 p_remote_physp->port_num); in drop_mgr_clean_physp() 149 p_physp->p_node->physp_discovered[p_physp->port_num] = 0; in drop_mgr_clean_physp() 154 p_physp->port_num); in drop_mgr_clean_physp() 335 uint32_t port_num; in drop_mgr_process_node() local 354 for (port_num = 0; port_num < max_ports; port_num++) { in drop_mgr_process_node() 355 p_physp = osm_node_get_physp_ptr(p_node, port_num); in drop_mgr_process_node() 396 uint8_t port_num, remote_port_num; in drop_mgr_check_switch_node() local [all …]
|
H A D | osm_sa_vlarb_record.c | 104 p_rec_item->resp.vlarb_rec.port_num = osm_physp_get_port_num(p_physp); in sa_vl_arb_create() 138 uint8_t port_num; in sa_vl_arb_by_comp_mask() local 146 port_num = p_rcvd_rec->port_num; in sa_vl_arb_by_comp_mask() 153 port_num = p_port->p_physp->port_num; in sa_vl_arb_by_comp_mask() 156 port_num); in sa_vl_arb_by_comp_mask() 161 if (port_num < osm_node_get_num_physp(p_port->p_node)) { in sa_vl_arb_by_comp_mask() 163 osm_node_get_physp_ptr(p_port->p_node, port_num); in sa_vl_arb_by_comp_mask() 173 port_num, in sa_vl_arb_by_comp_mask() 179 for (port_num = 0; port_num < num_ports; port_num++) { in sa_vl_arb_by_comp_mask() 181 osm_node_get_physp_ptr(p_port->p_node, port_num); in sa_vl_arb_by_comp_mask() [all …]
|
H A D | osm_sa_pkey_record.c | 99 p_rec_item->resp.pkey_rec.port_num = osm_physp_get_port_num(p_physp); in sa_pkey_create() 144 uint8_t port_num; in sa_pkey_by_comp_mask() local 152 port_num = p_rcvd_rec->port_num; in sa_pkey_by_comp_mask() 159 port_num = p_port->p_physp->port_num; in sa_pkey_by_comp_mask() 162 port_num); in sa_pkey_by_comp_mask() 167 if (port_num < osm_node_get_num_physp(p_port->p_node)) { in sa_pkey_by_comp_mask() 169 osm_node_get_physp_ptr(p_port->p_node, port_num); in sa_pkey_by_comp_mask() 179 port_num, in sa_pkey_by_comp_mask() 185 for (port_num = 0; port_num < num_ports; port_num++) { in sa_pkey_by_comp_mask() 187 osm_node_get_physp_ptr(p_port->p_node, port_num); in sa_pkey_by_comp_mask() [all …]
|
H A D | osm_pkey_rcv.c | 68 uint8_t port_num; in osm_pkey_rcv_process() local 111 port_num = in osm_pkey_rcv_process() 114 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_pkey_rcv_process() 117 port_num = p_physp->port_num; in osm_pkey_rcv_process() 127 PRIx64 "\n", block_num, port_num, cl_ntoh64(port_guid), in osm_pkey_rcv_process() 136 "Got invalid port number %u\n", port_num); in osm_pkey_rcv_process() 140 osm_dump_pkey_block_v2(sm->p_log, port_guid, block_num, port_num, in osm_pkey_rcv_process()
|
H A D | osm_vl_arb_rcv.c | 77 uint8_t port_num, block_num; in osm_vla_rcv_process() local 119 port_num = (uint8_t) (cl_ntoh32(p_smp->attr_mod) & 0x000000FF); in osm_vla_rcv_process() 120 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_vla_rcv_process() 123 port_num = p_physp->port_num; in osm_vla_rcv_process() 133 PRIx64 "\n", block_num, port_num, cl_ntoh64(port_guid), in osm_vla_rcv_process() 142 "Got invalid port number %u\n", port_num); in osm_vla_rcv_process() 152 osm_dump_vl_arb_table_v2(sm->p_log, port_guid, block_num, port_num, in osm_vla_rcv_process()
|
H A D | osm_port_info_rcv.c | 270 uint8_t port_num; in pi_rcv_process_switch_ext_port() local 282 port_num = osm_physp_get_port_num(p_physp); in pi_rcv_process_switch_ext_port() 307 (p_node)), port_num, in pi_rcv_process_switch_ext_port() 317 osm_node_unlink(p_node, (uint8_t) port_num, in pi_rcv_process_switch_ext_port() 340 cl_hton32(port_num), FALSE, m_key, in pi_rcv_process_switch_ext_port() 375 context.ni_context.port_num = in pi_rcv_process_switch_ext_port() 435 port_num); in pi_rcv_process_switch_ext_port() 473 uint8_t port_num; in get_pkey_table() local 485 port_num = p_physp->port_num; in get_pkey_table() 487 if (!p_node->sw || port_num == 0) in get_pkey_table() [all …]
|
/freebsd/contrib/ofed/opensm/include/opensm/ |
H A D | osm_node.h | 218 IN uint32_t port_num) in osm_node_get_physp_ptr() argument 221 CL_ASSERT(port_num < p_node->physp_tbl_size); in osm_node_get_physp_ptr() 222 return osm_physp_is_valid(&p_node->physp_table[port_num]) ? in osm_node_get_physp_ptr() 223 &p_node->physp_table[port_num] : NULL; in osm_node_get_physp_ptr() 316 IN uint8_t port_num, 352 IN uint32_t port_num) in osm_node_get_base_lid() argument 354 CL_ASSERT(port_num < p_node->physp_tbl_size); in osm_node_get_base_lid() 355 return osm_physp_get_base_lid(&p_node->physp_table[port_num]); in osm_node_get_base_lid() 388 IN uint32_t port_num); 418 IN uint32_t port_num) in osm_node_get_lmc() argument [all …]
|
H A D | osm_switch.h | 268 IN uint8_t port_num) in osm_switch_get_hop_count() argument 271 OSM_NO_PATH : p_sw->hops[lid_ho][port_num]; in osm_switch_get_hop_count() 302 IN uint8_t port_num, IN uint8_t num_hops); 475 uint8_t port_num; in osm_switch_get_route_by_lid() local 480 port_num = osm_switch_get_port_by_lid(p_sw, cl_ntoh16(lid), in osm_switch_get_route_by_lid() 490 if (port_num != OSM_NO_PATH) in osm_switch_get_route_by_lid() 491 return (osm_node_get_physp_ptr(p_sw->p_node, port_num)); in osm_switch_get_route_by_lid() 906 IN uint8_t port_num) in osm_switch_get_dimn_port() argument 910 return port_num; in osm_switch_get_dimn_port() 911 return p_sw->search_ordering_ports[port_num]; in osm_switch_get_dimn_port() [all …]
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_mad.c | 50 static int mthca_update_rate(struct mthca_dev *dev, u8 port_num) in mthca_update_rate() argument 59 ret = ib_query_port(&dev->ib_dev, port_num, tprops); in mthca_update_rate() 62 ret, dev->ib_dev.name, port_num); in mthca_update_rate() 66 dev->rate[port_num - 1] = tprops->active_speed * in mthca_update_rate() 75 u8 port_num, u16 lid, u8 sl) in update_sm_ah() argument 81 if (!dev->send_agent[port_num - 1][0]) in update_sm_ah() 87 ah_attr.port_num = port_num; in update_sm_ah() 89 new_ah = ib_create_ah(dev->send_agent[port_num - 1][0]->qp->pd, in update_sm_ah() 95 if (dev->sm_ah[port_num - 1]) in update_sm_ah() 96 ib_destroy_ah(dev->sm_ah[port_num - 1], 0); in update_sm_ah() [all …]
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_agent.c | 59 __ib_get_agent_port(const struct ib_device *device, int port_num) in __ib_get_agent_port() argument 65 entry->agent[1]->port_num == port_num) in __ib_get_agent_port() 72 ib_get_agent_port(const struct ib_device *device, int port_num) in ib_get_agent_port() argument 78 entry = __ib_get_agent_port(device, port_num); in ib_get_agent_port() 85 int port_num, int qpn, size_t resp_mad_len, bool opa) in agent_send_response() argument 96 port_priv = ib_get_agent_port(device, port_num); in agent_send_response() 104 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); in agent_send_response() 131 mad_send_wr->send_wr.port_num = port_num; in agent_send_response() 152 int ib_agent_port_open(struct ib_device *device, int port_num) in ib_agent_port_open() argument 166 if (rdma_cap_ib_smi(device, port_num)) { in ib_agent_port_open() [all …]
|
H A D | ib_smi.c | 46 static enum smi_action __smi_handle_dr_smp_send(bool is_switch, int port_num, in __smi_handle_dr_smp_send() argument 64 port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD); in __smi_handle_dr_smp_send() 75 port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD); in __smi_handle_dr_smp_send() 96 port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD); in __smi_handle_dr_smp_send() 106 port_num ? IB_SMI_HANDLE : IB_SMI_DISCARD); in __smi_handle_dr_smp_send() 132 bool is_switch, int port_num) in smi_handle_dr_smp_send() argument 134 return __smi_handle_dr_smp_send(is_switch, port_num, in smi_handle_dr_smp_send() 144 bool is_switch, int port_num) in opa_smi_handle_dr_smp_send() argument 146 return __smi_handle_dr_smp_send(is_switch, port_num, in opa_smi_handle_dr_smp_send() 157 static enum smi_action __smi_handle_dr_smp_recv(bool is_switch, int port_num, in __smi_handle_dr_smp_recv() argument [all …]
|
H A D | ib_sysfs.c | 67 u8 port_num; member 99 u8 port_num; member 166 ret = ib_query_port(p->ibdev, p->port_num, &attr); in state_show() 181 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_show() 195 ret = ib_query_port(p->ibdev, p->port_num, &attr); in lid_mask_count_show() 208 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_lid_show() 221 ret = ib_query_port(p->ibdev, p->port_num, &attr); in sm_sl_show() 234 ret = ib_query_port(p->ibdev, p->port_num, &attr); in cap_mask_show() 249 ret = ib_query_port(p->ibdev, p->port_num, &attr); in rate_show() 323 ret = ib_query_port(p->ibdev, p->port_num, &attr); in phys_state_show() [all …]
|
/freebsd/contrib/ofed/opensm/libvendor/ |
H A D | osm_vendor_mlx_hca_sim.c | 306 IN uint8_t port_num, OUT sim_port_info_t * sim_port_info) in __parse_port_info_file() argument 322 port_num); in __parse_port_info_file() 326 hca_idx, port_num); in __parse_port_info_file() 332 hca_idx, port_num, file_name); in __parse_port_info_file() 440 port_num, sim_port_info->state, sim_port_info->lid, in __parse_port_info_file() 458 IN uint8_t port_num, OUT uint64_t * port_guid) in __get_port_guid_from_port_gid_tbl() argument 473 hca_idx, port_num); in __get_port_guid_from_port_gid_tbl() 477 __get_simulator_dir(), hca_idx, port_num); in __get_port_guid_from_port_gid_tbl() 483 hca_idx, port_num, file_name); in __get_port_guid_from_port_gid_tbl() 530 uint8_t port_num; in __osm_ca_info_init() local [all …]
|
H A D | osm_vendor_mlx_hca_pfs.c | 260 IN uint8_t port_num, OUT pfs_port_info_t * pfs_port_info) in __parse_port_info_file() argument 276 port_num); in __parse_port_info_file() 280 port_num); in __parse_port_info_file() 286 hca_idx, port_num, file_name); in __parse_port_info_file() 394 port_num, pfs_port_info->state, pfs_port_info->lid, in __parse_port_info_file() 412 IN uint8_t port_num, OUT uint64_t * port_guid) in __get_port_guid_from_port_gid_tbl() argument 427 hca_idx, port_num); in __get_port_guid_from_port_gid_tbl() 431 hca_idx, port_num); in __get_port_guid_from_port_gid_tbl() 437 hca_idx, port_num, file_name); in __get_port_guid_from_port_gid_tbl() 484 uint8_t port_num; in __osm_ca_info_init() local [all …]
|
H A D | osm_vendor_mlx_hca.c | 176 uint8_t port_num; in __osm_ca_info_init() local 218 for (port_num = 0; port_num < p_ca_info->p_attr->num_ports; port_num++) { in __osm_ca_info_init() 222 VAPI_query_hca_port_prop(hca_hndl, port_num + 1, &hca_port); in __osm_ca_info_init() 233 VAPI_query_hca_gid_tbl(hca_hndl, port_num + 1, 0, in __osm_ca_info_init() 238 VAPI_query_hca_gid_tbl(hca_hndl, port_num + 1, maxNumGids, in __osm_ca_info_init() 249 p_port_attr[port_num].port_guid); in __osm_ca_info_init() 250 p_ca_info->p_attr->p_port_attr[port_num].lid = hca_port.lid; in __osm_ca_info_init() 251 p_ca_info->p_attr->p_port_attr[port_num].link_state = in __osm_ca_info_init() 253 p_ca_info->p_attr->p_port_attr[port_num].sm_lid = in __osm_ca_info_init() 307 uint8_t port_num; in osm_vendor_get_all_port_attr() local [all …]
|
H A D | osm_vendor_mtl_hca_guid.c | 196 uint8_t port_num; in __osm_ca_info_init() local 238 for (port_num = 0; port_num < p_ca_info->p_attr->num_ports; port_num++) { in __osm_ca_info_init() 242 VAPI_query_hca_port_prop(hca_hndl, port_num + 1, &hca_port); in __osm_ca_info_init() 253 VAPI_query_hca_gid_tbl(hca_hndl, port_num + 1, 0, in __osm_ca_info_init() 258 VAPI_query_hca_gid_tbl(hca_hndl, port_num + 1, maxNumGids, in __osm_ca_info_init() 269 p_port_attr[port_num].port_guid); in __osm_ca_info_init() 270 p_ca_info->p_attr->p_port_attr[port_num].lid = hca_port.lid; in __osm_ca_info_init() 271 p_ca_info->p_attr->p_port_attr[port_num].link_state = in __osm_ca_info_init() 273 p_ca_info->p_attr->p_port_attr[port_num].sm_lid = in __osm_ca_info_init() 319 uint8_t port_num; in osm_vendor_get_all_port_attr() local [all …]
|
/freebsd/sys/ofed/include/rdma/ |
H A D | ib_cache.h | 55 u8 port_num, 78 u8 *port_num, 99 u8 port_num, 105 u8 port_num, 121 u8 port_num, 137 u8 port_num, 153 u8 port_num, 167 u8 port_num,
|
/freebsd/contrib/ofed/libibnetdisc/ |
H A D | ibnetdisc.c | 62 int port_num; member 231 uint8_t port_num, local_port; in mlnx_ext_port_info_err() local 233 port_num = (uint8_t) mad_get_field(mad, 0, IB_MAD_ATTRMOD_F); in mlnx_ext_port_info_err() 234 port = node->ports[port_num]; in mlnx_ext_port_info_err() 237 node->guid, port_num); in mlnx_ext_port_info_err() 244 if (port_num && mad_get_field(port->info, 0, IB_PORT_PHYS_STATE_F) in mlnx_ext_port_info_err() 246 && ((node->type == IB_NODE_SWITCH && port_num != local_port) || in mlnx_ext_port_info_err() 247 (node == f_int->fabric.from_node && port_num == f_int->fabric.from_portnum))) { in mlnx_ext_port_info_err() 258 rc = extend_dpath(engine, &path, port_num); in mlnx_ext_port_info_err() 264 cbdata->port_num = port_num; in mlnx_ext_port_info_err() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_gsi.c | 41 u8 port_num; member 117 const u8 port_num = init_attr->port_num; in mlx5_ib_gsi_create_qp() local 124 if (port_num > ARRAY_SIZE(dev->devr.ports) || port_num < 1) { in mlx5_ib_gsi_create_qp() 127 port_num); in mlx5_ib_gsi_create_qp() 153 if (dev->devr.ports[port_num - 1].gsi) { in mlx5_ib_gsi_create_qp() 155 port_num); in mlx5_ib_gsi_create_qp() 165 gsi->port_num = port_num; in mlx5_ib_gsi_create_qp() 191 dev->devr.ports[init_attr->port_num - 1].gsi = gsi; in mlx5_ib_gsi_create_qp() 213 const int port_num = gsi->port_num; in mlx5_ib_gsi_destroy_qp() local 227 dev->devr.ports[port_num - 1].gsi = NULL; in mlx5_ib_gsi_destroy_qp() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_sysfs.c | 200 int add_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, in add_sysfs_port_mcg_attr() argument 203 struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1]; in add_sysfs_port_mcg_attr() 213 void del_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, in del_sysfs_port_mcg_attr() argument 216 struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1]; in del_sysfs_port_mcg_attr() 221 static int add_port_entries(struct mlx4_ib_dev *device, int port_num) in add_port_entries() argument 230 ret = __mlx4_ib_query_port(&device->ib_dev, port_num, &attr, 1); in add_port_entries() 234 port = &device->iov_ports[port_num - 1]; in add_port_entries() 236 port->num = port_num; in add_port_entries() 250 sprintf(buff, "%d", port_num); in add_port_entries() 349 port_num, ret); in add_port_entries() [all …]
|