Home
last modified time | relevance | path

Searched refs:port_id (Results 1 – 25 of 43) sorted by relevance

12

/trueos/contrib/ofed/management/libibmad/src/
HDrpc.c52 int port_id; /* file descriptor returned by umad_open() */ member
113 _do_madrpc(int port_id, void *sndbuf, void *rcvbuf, int agentid, int len, in _do_madrpc() argument
142 if (umad_send(port_id, agentid, sndbuf, length, timeout, 0) < 0) { in _do_madrpc()
150 if (umad_recv(port_id, rcvbuf, &length, timeout) < 0) { in _do_madrpc()
173 mad_rpc(const void *port_id, ib_rpc_t *rpc, ib_portid_t *dport, void *payload, in mad_rpc() argument
176 const struct ibmad_port *p = port_id; in mad_rpc()
186 if ((len = _do_madrpc(p->port_id, sndbuf, rcvbuf, in mad_rpc()
213 mad_rpc_rmpp(const void *port_id, ib_rpc_t *rpc, ib_portid_t *dport, in mad_rpc_rmpp() argument
216 const struct ibmad_port *p = port_id; in mad_rpc_rmpp()
227 if ((len = _do_madrpc(p->port_id, sndbuf, rcvbuf, in mad_rpc_rmpp()
[all …]
HDregister.c124 mad_register_port_client(int port_id, int mgmt, uint8_t rmpp_version) in mad_register_port_client() argument
132 if ((agent = umad_register(port_id, mgmt, in mad_register_port_client()
/trueos/contrib/ofed/management/opensm/osmeventplugin/src/
HDosmeventplugin.c110 " (%s) port %d\n", pc->port_id.node_guid, in handle_port_counter()
111 pc->port_id.node_name, pc->port_id.port_num); in handle_port_counter()
122 epc->port_id.node_guid, in handle_port_counter_ext()
123 epc->port_id.node_name, epc->port_id.port_num); in handle_port_counter_ext()
133 " (%s) port %d\n", ps->port_id.node_guid, in handle_port_select()
134 ps->port_id.node_name, ps->port_id.port_num); in handle_port_select()
145 trap->port_id.node_guid, in handle_trap_event()
146 trap->port_id.node_name, trap->port_id.port_num); in handle_trap_event()
/trueos/contrib/ofed/management/opensm/include/opensm/
HDosm_event_plugin.h90 osm_epi_port_id_t port_id; member
111 osm_epi_port_id_t port_id; member
128 osm_epi_port_id_t port_id; member
137 osm_epi_port_id_t port_id; member
182 osm_epi_create_port_id(osm_epi_port_id_t * port_id, uint64_t node_guid, in osm_epi_create_port_id() argument
185 port_id->node_guid = node_guid; in osm_epi_create_port_id()
186 port_id->port_num = port_num; in osm_epi_create_port_id()
187 strncpy(port_id->node_name, node_name, OSM_EPI_NODE_NAME_LEN); in osm_epi_create_port_id()
188 port_id->node_name[OSM_EPI_NODE_NAME_LEN - 1] = '\0'; in osm_epi_create_port_id()
/trueos/contrib/ofed/management/opensm/osmtest/include/
HDosmtest_subnet.h142 uint64_t port_id; member
203 p_obj->port_id = port_gen_id(lid, port_num); in port_set_id()
209 port_ext_id(p_obj->port_id, p_lid, p_port_num); in port_get_id()
/trueos/contrib/tcpdump/
HDprint-stp.c44 u_int8_t port_id[2]; member
114 EXTRACT_16BITS(&stp_bpdu->port_id), length); in stp_print_config_bpdu()
268 printf("CIST port-id %04x, ", EXTRACT_16BITS(&stp_bpdu->port_id)); in stp_print_mstp_bpdu()
/trueos/usr.sbin/ctld/
HDkernel.c123 uint32_t port_id; member
295 cur_port->port_id = strtoul(attr[i+1], NULL, 0); in cctl_start_pelement()
507 port->port_id, port->port_name); in conf_new_from_kernel()
512 port->port_id, port->port_name); in conf_new_from_kernel()
514 pp = pport_new(conf, port->port_name, port->port_id); in conf_new_from_kernel()
524 (uintmax_t)port->port_id, port->cfiscsi_state); in conf_new_from_kernel()
532 port->cfiscsi_target, port->port_id); in conf_new_from_kernel()
547 port->ctld_portal_group_name, port->port_id); in conf_new_from_kernel()
561 cp->p_ctl_port = port->port_id; in conf_new_from_kernel()
/trueos/contrib/wpa/src/common/
HDwpa_ctrl.c290 int port_id; in wpa_ctrl_open() local
301 port_id = atoi(&port[1]); in wpa_ctrl_open()
304 port_id = WPA_CTRL_IFACE_PORT; in wpa_ctrl_open()
316 ctrl->dest.sin_port = htons(port_id); in wpa_ctrl_open()
/trueos/sys/dev/cxgb/
HDcxgb_main.c638 pi->port_id = i; in cxgb_controller_attach()
972 snprintf(buf, sizeof(buf), "Port %d %s", p->port_id, desc); in cxgb_port_probe()
1009 device_get_unit(device_get_parent(dev)), p->port_id); in cxgb_port_attach()
1219 t3_os_link_changed(adapter_t *adapter, int port_id, int link_status, int speed, in t3_os_link_changed() argument
1222 struct port_info *pi = &adapter->port[port_id]; in t3_os_link_changed()
1251 void t3_os_phymod_changed(struct adapter *adap, int port_id) in t3_os_phymod_changed() argument
1256 struct port_info *pi = &adap->port[port_id]; in t3_os_phymod_changed()
1713 if (isset(&sc->open_device_map, p->port_id) && in cxgb_init_locked()
1718 t3_port_intr_enable(sc, p->port_id); in cxgb_init_locked()
1737 setbit(&sc->open_device_map, p->port_id); in cxgb_init_locked()
[all …]
HDcxgb_adapter.h101 uint32_t port_id; member
504 void t3_os_link_changed(adapter_t *adapter, int port_id, int link_status,
506 void t3_os_phymod_changed(struct adapter *adap, int port_id);
/trueos/usr.sbin/bsnmpd/modules/snmp_bridge/
HDbridge_snmp.h36 typedef uint8_t port_id[2]; typedef
119 port_id design_port;
/trueos/sys/dev/vxge/vxgehal/
HDvxgehal-mrpcim.c3785 u32 i, port_id; in __hal_mrpcim_mac_configure() local
3800 port_id = mac_config->wire_port_config[i].port_id; in __hal_mrpcim_mac_configure()
3806 &hldev->mrpcim_reg->txmac_cfg0_port[port_id]); in __hal_mrpcim_mac_configure()
3822 &hldev->mrpcim_reg->rxmac_cfg0_port[port_id]); in __hal_mrpcim_mac_configure()
3843 &hldev->mrpcim_reg->xgmac_main_cfg_port[port_id]); in __hal_mrpcim_mac_configure()
3850 &hldev->mrpcim_reg->rxmac_cfg0_port[port_id]); in __hal_mrpcim_mac_configure()
3887 &hldev->mrpcim_reg->rxmac_cfg0_port[port_id]); in __hal_mrpcim_mac_configure()
3891 &hldev->mrpcim_reg->rxmac_cfg2_port[port_id]); in __hal_mrpcim_mac_configure()
3904 &hldev->mrpcim_reg->rxmac_cfg2_port[port_id]); in __hal_mrpcim_mac_configure()
3908 &hldev->mrpcim_reg->rxmac_pause_cfg_port[port_id]); in __hal_mrpcim_mac_configure()
[all …]
HDvxgehal-config.c66 if (port_config->port_id > VXGE_HAL_WIRE_PORT_MAX_PORTS) in __hal_device_wire_port_config_check()
606 if ((port_config->port_id != VXGE_HAL_LAG_PORT_PORT_ID_0) && in __hal_device_lag_port_config_check()
607 (port_config->port_id != VXGE_HAL_LAG_PORT_PORT_ID_1)) in __hal_device_lag_port_config_check()
2012 wire_port_config->port_id = i; in vxge_hal_device_config_default_get()
2305 port_config->port_id = i; in vxge_hal_device_config_default_get()
/trueos/sys/dev/cxgb/common/
HDcxgb_t3_hw.c1474 static int t3_detect_link_fault(adapter_t *adapter, int port_id) in t3_detect_link_fault() argument
1476 struct port_info *pi = adap2pinfo(adapter, port_id); in t3_detect_link_fault()
1487 t3_xgm_intr_enable(adapter, port_id); in t3_detect_link_fault()
1497 static void t3_clear_faults(adapter_t *adapter, int port_id) in t3_clear_faults() argument
1499 struct port_info *pi = adap2pinfo(adapter, port_id); in t3_clear_faults()
1503 t3_xgm_intr_disable(adapter, pi->port_id); in t3_clear_faults()
1508 t3_xgm_intr_enable(adapter, pi->port_id); in t3_clear_faults()
1521 void t3_link_changed(adapter_t *adapter, int port_id) in t3_link_changed() argument
1524 struct port_info *pi = adap2pinfo(adapter, port_id); in t3_link_changed()
1565 link_fault = t3_detect_link_fault(adapter, port_id); in t3_link_changed()
[all …]
/trueos/sys/dev/cxgbe/
HDt4_ioctl.h81 uint8_t port_id; member
HDt4_main.c715 pi->port_id = i; in t4_attach()
1042 snprintf(buf, sizeof(buf), "port %d", pi->port_id); in cxgbe_probe()
3123 if (isset(&sc->open_device_map, pi->port_id)) { in cxgbe_init_synchronized()
3170 setbit(&sc->open_device_map, pi->port_id); in cxgbe_init_synchronized()
3215 clrbit(&sc->open_device_map, pi->port_id); in cxgbe_uninit_synchronized()
3223 t4_os_link_changed(sc, pi->port_id, 0, -1); in cxgbe_uninit_synchronized()
3447 quiesce_wrq(sc, &sc->sge.ctrlq[pi->port_id]); in port_full_uninit()
7599 if (i2cd->len == 0 || i2cd->port_id >= sc->params.nports) in read_i2c()
7608 rc = -t4_i2c_rd(sc, sc->mbox, i2cd->port_id, i2cd->dev_addr, in read_i2c()
8033 u_int port_id = *(uint32_t *)data; in t4_ioctl() local
[all …]
/trueos/sys/dev/oce/
HDoce_sysctl.c169 oce_mbox_cmd_set_loopback(sc, sc->port_id, loopback_type, 1); in oce_loopback_test()
170 status = oce_mbox_cmd_test_loopback(sc, sc->port_id, loopback_type, in oce_loopback_test()
172 oce_mbox_cmd_set_loopback(sc, sc->port_id, OCE_NO_LOOPBACK, 1); in oce_loopback_test()
1311 uint32_t port = sc->port_id; in copy_stats_to_sc_be2()
1376 uint32_t port = sc->port_id; in copy_stats_to_sc_be3()
HDoce_if.c1493 int port_id = 0; in oce_cqe_portid_valid() local
1497 port_id = cqe_v1->u0.s.port; in oce_cqe_portid_valid()
1498 if (sc->port_id != port_id) in oce_cqe_portid_valid()
/trueos/sys/mips/rmi/dev/nlge/
HDif_nlge.c228 static void dump_na_registers(xlr_reg_t *base, int port_id);
2289 dump_na_registers(xlr_reg_t *base_addr, int port_id) in dump_na_registers() argument
2291 PDEBUG("Register dump for NA (of port=%d)\n", port_id); in dump_na_registers()
2318 int port_id = sc->instance; in dump_gmac_registers() local
2320 PDEBUG("Register dump for port=%d\n", port_id); in dump_gmac_registers()
2394 dump_na_registers(base_addr, port_id); in dump_gmac_registers()
/trueos/contrib/ofed/management/opensm/libvendor/
HDosm_vendor_ibumad.c84 int port_id; member
810 p_bind->port_id = umad_port_id; in osm_vendor_bind()
1081 if ((ret = umad_send(p_bind->port_id, p_bind->agent_id, p_vw->umad,
/trueos/tools/tools/cxgbetool/
HDcxgbetool.c1620 i2cd.port_id = l; in read_i2c()
1876 modinfo_raw(int port_id) in modinfo_raw() argument
1884 i2cd.port_id = port_id; in modinfo_raw()
1946 i2cd.port_id = port; in modinfo()
/trueos/sys/dev/vxge/include/
HDvxgehal-config.h170 u32 port_id; member
899 u32 port_id; member
/trueos/sys/dev/cxgbe/tom/
HDt4_tom_l2t.c378 u_int hash, smt_idx = pi->port_id; in t4_l2t_get()
/trueos/contrib/ofed/management/opensm/opensm/
HDosm_perfmgr_db.c266 osm_epi_create_port_id(&(epi_pe_data.port_id), guid, port, in perfmgr_db_add_err_reading()
408 osm_epi_create_port_id(&(epi_dc_data.port_id), guid, port, in perfmgr_db_add_dc_reading()
/trueos/sys/dev/cxgb/ulp/tom/
HDcxgb_l2t.c334 unsigned int smt_idx = pi->port_id; in t3_l2t_get()

12