Home
last modified time | relevance | path

Searched refs:port_info (Results 1 – 25 of 84) sorted by relevance

1234

/freebsd/contrib/ofed/opensm/libvendor/
H A Dosm_vendor_mlx_hca_anafa.c89 osm_ts_get_port_info_ioctl port_info; in __osm_ca_info_init() local
112 port_info.port = 1; in __osm_ca_info_init()
114 ioctl(p_tpot_info->device_fd, TS_IB_IOCGPORTINFO, &port_info); in __osm_ca_info_init()
135 p_ca_info->attr.p_port_attr[0].lid = port_info.port_info.lid; in __osm_ca_info_init()
137 port_info.port_info.port_state; in __osm_ca_info_init()
138 p_ca_info->attr.p_port_attr[0].sm_lid = port_info.port_info.sm_lid; in __osm_ca_info_init()
H A Dosm_vendor_mlx_anafa.c592 osm_ts_set_port_info_ioctl port_info; in osm_vendor_set_sm() local
596 port_info.port = 0; /* anafa has only 1 port */ in osm_vendor_set_sm()
597 port_info.port_info.valid_fields = IB_PORT_IS_SM; in osm_vendor_set_sm()
598 port_info.port_info.is_sm = is_sm_val; in osm_vendor_set_sm()
601 ioctl_ret = ioctl(p_mgr->device_fd, TS_IB_IOCSPORTINFO, &port_info); in osm_vendor_set_sm()
H A Dosm_vendor_mlx_ts.c382 ts_mad.dlid = port_data.port_info.lid; in __osm_transport_gen_dummy_mad()
492 set_port_data.port_info.valid_fields = IB_PORT_IS_SM; in osm_vendor_set_sm()
493 set_port_data.port_info.is_sm = is_sm_val; in osm_vendor_set_sm()
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_dump.c405 p_default_physp->port_info.base_lid == in dump_topology_node()
406 p_default_physp->port_info. in dump_topology_node()
417 cl_ntoh16(p_default_physp->port_info.base_lid), cPort); in dump_topology_node()
434 p_default_physp->port_info.base_lid == in dump_topology_node()
435 p_default_physp->port_info. in dump_topology_node()
446 cl_ntoh16(p_default_physp->port_info.base_lid), in dump_topology_node()
449 port_state = ib_port_info_get_port_state(&p_physp->port_info); in dump_topology_node()
451 ib_port_info_get_link_speed_active(&p_physp->port_info); in dump_topology_node()
464 if (p_default_physp->port_info.capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS) { in dump_topology_node()
466 ib_port_info_get_link_speed_ext_active(&p_physp->port_info); in dump_topology_node()
[all …]
H A Dosm_qos.c102 m_key = ib_port_info_get_m_key(&physp0->port_info); in osm_qos_mad_create()
104 m_key = ib_port_info_get_m_key(&p->port_info); in osm_qos_mad_create()
162 vl_mask = (1 << (ib_port_info_get_op_vls(&p->port_info) - 1)) - 1; in vlarb_update_table_block()
205 ib_port_info_t *p_pi = &p->port_info; in vlarb_update()
262 vl_mask = (1 << (ib_port_info_get_op_vls(&p->port_info) - 1)) - 1; in sl2vl_update_table()
318 if (ib_port_info_get_port_state(&p->port_info) == IB_LINK_DOWN) in qos_extports_setup()
328 if (!(p0->port_info.capability_mask & IB_PORT_CAP_HAS_SL_MAP)) in qos_extports_setup()
342 if (ib_port_info_get_port_state(&p->port_info) == in qos_extports_setup()
345 op_vl = ib_port_info_get_op_vls(&p->port_info); in qos_extports_setup()
369 if (ib_port_info_get_port_state(&p->port_info) == in qos_extports_setup()
[all …]
H A Dosm_sa_portinfo_record.c104 p_rec_item->resp.port_rec.port_info = p_physp->port_info; in pir_rcv_new_pir()
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()
117 if (ib_port_info_get_link_speed_ext_active(&p_physp->port_info)) { in pir_rcv_new_pir()
119 p_pi = &p_rec_item->resp.port_rec.port_info; in pir_rcv_new_pir()
198 p_comp_pi = &p_rcvd_rec->port_info; in sa_pir_check_physp()
199 p_pi = &p_physp->port_info; in sa_pir_check_physp()
203 &p_physp->port_info, FILE_ID, OSM_LOG_DEBUG); in sa_pir_check_physp()
422 cap_mask = p_physp0->port_info.capability_mask; in sa_pir_check_physp()
601 item->resp.port_rec.port_info.m_key = 0; in osm_pir_rcv_process()
H A Dosm_port.c198 mtu = ib_port_info_get_mtu_cap(&p_physp->port_info); in osm_physp_calc_link_mtu()
201 ib_port_info_get_mtu_cap(&p_remote_physp->port_info); in osm_physp_calc_link_mtu()
226 mtu = ib_port_info_get_neighbor_mtu(&p_physp->port_info); in osm_physp_calc_link_mtu()
252 op_vls = ib_port_info_get_vl_cap(&p_physp->port_info); in osm_physp_calc_link_op_vls()
255 ib_port_info_get_vl_cap(&p_remote_physp->port_info); in osm_physp_calc_link_op_vls()
280 op_vls = ib_port_info_get_op_vls(&p_physp->port_info); in osm_physp_calc_link_op_vls()
684 ib_port_info_set_port_state(&p_physp->port_info, IB_LINK_DOWN); in osm_physp_set_port_info()
687 &p_physp->port_info); in osm_physp_set_port_info()
689 p_physp->port_info = *p_pi; in osm_physp_set_port_info()
H A Dosm_sa_guidinfo_record.c179 if (p_physp->port_info.guid_cap == 0) in sa_gir_create_gir()
182 num_blocks = p_physp->port_info.guid_cap / 8; in sa_gir_create_gir()
183 if (p_physp->port_info.guid_cap % 8) in sa_gir_create_gir()
396 max_block = (p_port->p_physp->port_info.guid_cap + GUID_TABLE_MAX_ENTRIES - 1) / in del_guidinfo()
417 …ENTRIES < p_port->p_physp->port_info.guid_cap ? i < (block_num + 1) * GUID_TABLE_MAX_ENTRIES : i <… in del_guidinfo()
451 …ENTRIES < p_port->p_physp->port_info.guid_cap ? i < (block_num + 1) * GUID_TABLE_MAX_ENTRIES : i <… in del_guidinfo()
504 max_block = (p_port->p_physp->port_info.guid_cap + GUID_TABLE_MAX_ENTRIES - 1) / in set_guidinfo()
544 …ENTRIES < p_port->p_physp->port_info.guid_cap ? i < (block_num + 1) * GUID_TABLE_MAX_ENTRIES : i <… in set_guidinfo()
H A Dosm_port_info_rcv.c77 cl_ntoh16(p->port_info.base_lid)); in pi_rcv_check_and_fix_lid()
78 pi->base_lid = p->port_info.base_lid; in pi_rcv_check_and_fix_lid()
178 ib_port_info_get_m_key(&p_physp->port_info), in pi_rcv_process_endport()
228 p_physp->port_info = *p_pi; in pi_rcv_process_switch_port0()
244 ib_port_info_get_m_key(&p_physp->port_info), in pi_rcv_process_switch_port0()
329 m_key = ib_port_info_get_m_key(&physp0->port_info); in pi_rcv_process_switch_ext_port()
517 m_key = ib_port_info_get_m_key(&p_physp->port_info); in get_pkey_table()
521 m_key = ib_port_info_get_m_key(&physp0->port_info); in get_pkey_table()
H A Dosm_link_mgr.c116 p_old_pi = &p_physp->port_info; in link_mgr_set_physp_pi()
200 m_key = ib_port_info_get_m_key(&physp0->port_info); in link_mgr_set_physp_pi()
379 cap_mask = physp0->port_info.capability_mask; in link_mgr_set_physp_pi()
394 rem_cap_mask = rphysp0->port_info.capability_mask; in link_mgr_set_physp_pi()
396 rem_cap_mask = p_remote_physp->port_info.capability_mask; in link_mgr_set_physp_pi()
H A Dosm_trap_rcv.c232 memcpy(payload, &p->port_info, sizeof(ib_port_info_t)); in disable_port()
248 m_key = ib_port_info_get_m_key(&physp0->port_info); in disable_port()
250 m_key = ib_port_info_get_m_key(&p->port_info); in disable_port()
455 p_smp->m_key = ib_port_info_get_m_key(&p_physp->port_info); in trap_rcv_process_request()
551 p_ntci->data_details.ntc_144.new_cap_mask == p_physp->port_info.capability_mask) in trap_rcv_process_request()
H A Dosm_pkey_mgr.c243 m_key = ib_port_info_get_m_key(&physp0->port_info); in pkey_mgr_update_pkey_entry()
245 m_key = ib_port_info_get_m_key(&p_physp->port_info); in pkey_mgr_update_pkey_entry()
266 p_pi = &p_physp->port_info; in pkey_mgr_enforce_partition()
298 m_key = ib_port_info_get_m_key(&physp0->port_info); in pkey_mgr_enforce_partition()
878 if(! (p_physp->port_info.vl_enforce & 0xc )) in osm_pkey_mgr_process()
/freebsd/sys/dev/cxgb/
H A Dcxgb_adapter.h89 struct port_info { struct
282 struct port_info *port;
371 struct port_info port[MAX_NPORTS];
404 struct port_info *port;
465 t3_init_rx_mode(struct t3_rx_mode *rm, struct port_info *port) in t3_init_rx_mode()
471 static __inline struct port_info *
480 void t3_os_link_intr(struct port_info *);
495 int, struct port_info *);
505 int t3_sge_init_port(struct port_info *);
553 void cxgb_refresh_stats(struct port_info *);
H A Dcxgb_main.c88 static int cxgb_init_locked(struct port_info *);
89 static int cxgb_uninit_locked(struct port_info *);
90 static int cxgb_uninit_synchronized(struct port_info *);
94 static void cxgb_build_medialist(struct port_info *);
127 static void cxgb_update_mac_settings(struct port_info *p);
129 static int toe_capability(struct port_info *, int);
305 static int set_eeprom(struct port_info *pi, const uint8_t *data, int len, int offset);
623 struct port_info *pi; in cxgb_controller_attach()
832 struct port_info *pi = &sc->port[i]; in setup_sge_qsets()
962 struct port_info *p; in cxgb_port_probe()
[all …]
/freebsd/contrib/ofed/opensm/include/opensm/
H A Dosm_port.h107 ib_port_info_t port_info; member
491 p_physp->port_info.base_lid = base_lid; in osm_physp_set_base_lid()
812 return p_physp->port_info.subnet_prefix; in osm_physp_get_subnet_prefix()
1045 return ib_port_info_get_port_state(&p_physp->port_info); in osm_physp_get_port_state()
1074 return p_physp->port_info.base_lid; in osm_physp_get_base_lid()
1103 return ib_port_info_get_lmc(&p_physp->port_info); in osm_physp_get_lmc()
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dcm.c262 struct listen_port_info *port_info = NULL; in add_ep_to_listenlist() local
271 list_for_each_entry(port_info, &listen_port_list, list) in add_ep_to_listenlist()
272 if (port_info->port_num == port) in add_ep_to_listenlist()
275 port_info = malloc(sizeof(*port_info), M_CXGBE, M_WAITOK); in add_ep_to_listenlist()
276 port_info->port_num = port; in add_ep_to_listenlist()
277 port_info->refcnt = 0; in add_ep_to_listenlist()
279 list_add_tail(&port_info->list, &listen_port_list); in add_ep_to_listenlist()
280 INIT_LIST_HEAD(&port_info->lep_list); in add_ep_to_listenlist()
283 port_info->refcnt++; in add_ep_to_listenlist()
284 list_add_tail(&lep->listen_ep_list, &port_info->lep_list); in add_ep_to_listenlist()
[all …]
/freebsd/sys/dev/ice/
H A Dice_lib.c752 ctx.info.sw_id = hw->port_info->sw_id; in ice_initialize_vsi()
777 status = ice_cfg_vsi_lan(hw->port_info, vsi->idx,
814 status = ice_rm_vsi_lan_cfg(hw->port_info, vsi->idx);
1288 struct ice_port_info *pi = sc->hw.port_info; in ice_add_media_types()
1593 tlan_ctx->port_num = hw->port_info->lport; in ice_cfg_vsi_for_tx()
1673 status = ice_ena_vsi_txq(hw->port_info, vsi->idx, txq->tc, in ice_setup_rx_ctx()
2034 err = ice_add_vsi_mac_filter(vsi, hw->port_info->mac.lan_addr);
2104 err = ice_remove_vsi_mac_filter(vsi, hw->port_info->mac.lan_addr); in ice_check_ctrlq_errors()
2187 struct ice_port_info *pi = sc->hw.port_info;
2633 MPASS(hw->port_info); in ice_update_pf_stats()
[all...]
H A Dice_rdma.c245 dcbx_cfg = &hw->port_info->qos_cfg.local_dcbx_cfg; in ice_rdma_qset_register_request()
249 status = ice_cfg_vsi_rdma(hw->port_info, vsi->idx, ena_tc, in ice_rdma_qset_register_request()
261 status = ice_ena_vsi_rdma_qset(hw->port_info, vsi->idx, in ice_rdma_qset_register_request()
273 status = ice_dis_vsi_rdma_qset(hw->port_info, count, qset_teid, qs_handle); in ice_rdma_qset_register_request()
531 ice_rdma_cp_qos_info(&sc->hw, &sc->hw.port_info->qos_cfg.local_dcbx_cfg, in ice_rdma_register()
655 ice_rdma_cp_qos_info(&sc->hw, &sc->hw.port_info->qos_cfg.local_dcbx_cfg, in ice_rdma_pf_attach_locked()
H A Dice_common.c405 ice_memcpy(hw->port_info->mac.lan_addr, in ice_set_media_type()
408 ice_memcpy(hw->port_info->mac.perm_addr, in ice_set_media_type()
1074 if (!hw->port_info) in ice_init_hw()
1075 hw->port_info = (struct ice_port_info *) in ice_init_hw()
1076 ice_malloc(hw, sizeof(*hw->port_info)); in ice_init_hw()
1077 if (!hw->port_info) { in ice_init_hw()
1082 hw->port_info->loopback_mode = ICE_AQC_SET_P_PARAMS_LOOPBACK_MODE_NORMAL; in ice_init_hw()
1085 hw->port_info->hw = hw; in ice_init_hw()
1087 /* Initialize port_info struct with switch configuration data */ in ice_init_hw()
1101 /* Initialize port_info struc in ice_init_hw()
[all...]
/freebsd/sys/dev/cxgbe/
H A Dt4_vf.c627 struct port_info *pi; in t4vf_attach()
725 struct port_info *pi = sc->port[i]; in t4vf_attach()
857 struct port_info *pi; in t4vf_ioctl()
962 sizeof(struct port_info)
968 sizeof(struct port_info)
974 sizeof(struct port_info)
H A Dt4_sched.c77 struct port_info *pi; in set_sched_class_params()
253 struct port_info *pi; in update_tx_sched()
405 struct port_info *pi = NULL; in t4_set_sched_queue()
456 struct port_info *pi; in t4_init_tx_sched()
501 struct port_info *pi; in t4_reserve_cl_rl_kbps()
804 struct port_info *pi = vi->pi; in cxgbe_rate_tag_alloc()
H A Dadapter.h196 struct port_info *pi;
302 struct port_info { struct
935 struct port_info *port[MAX_NPORTS];
1290 static inline struct port_info *
1298 t4_os_set_hw_addr(struct port_info *pi, uint8_t hw_addr[]) in t4_os_set_hw_addr()
1368 void t4_os_portmod_changed(struct port_info *);
1369 void t4_os_link_changed(struct port_info *);
H A Dt4_main.c139 sizeof(struct port_info)
195 sizeof(struct port_info)
234 sizeof(struct port_info)
767 static bool fixed_ifmedia(struct port_info *);
768 static void build_medialist(struct port_info *);
769 static void init_link_config(struct port_info *);
770 static int fixup_link_config(struct port_info *);
771 static int apply_link_config(struct port_info *);
778 static int alloc_extra_vi(struct adapter *, struct port_info *, struct vi_info *);
795 static void cxgbe_sysctls(struct port_info *);
[all …]
/freebsd/sys/dev/cxgbe/tom/
H A Dt4_tom_l2t.h36 struct l2t_entry *t4_l2t_get(struct port_info *, if_t,
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dsmpquery.c57 static op_fn_t node_desc, node_info, port_info, switch_info, pkey_table, variable
63 {"PortInfo", "PI", port_info, 1, ""},
149 static char *port_info(ib_portid_t * dest, char **argv, int argc) in port_info() function

1234