/freebsd/sys/contrib/ncsw/Peripherals/FM/ |
H A D | fman_ncsw.c | 234 uint8_t port_id, in fman_set_num_of_riscs_per_port() argument 240 tmp = (uint32_t)(port_id << FPM_PORT_FM_CTL_PORTID_SHIFT); in fman_set_num_of_riscs_per_port() 251 uint8_t port_id, in fman_set_order_restoration_per_port() argument 257 tmp = (uint32_t)(port_id << FPM_PORT_FM_CTL_PORTID_SHIFT); in fman_set_order_restoration_per_port() 269 if (port_id % 2) in fman_set_order_restoration_per_port() 314 void fman_set_liodn_per_port(struct fman_rg *fman_rg, uint8_t port_id, in fman_set_liodn_per_port() argument 320 if ((port_id > 63) || (port_id < 1)) in fman_set_liodn_per_port() 324 tmp = ioread32be(&fman_rg->dma_rg->fmdmplr[port_id / 2]); in fman_set_liodn_per_port() 325 if (port_id % 2) { in fman_set_liodn_per_port() 332 iowrite32be(tmp, &fman_rg->dma_rg->fmdmplr[port_id / 2]); in fman_set_liodn_per_port() [all …]
|
/freebsd/contrib/ofed/opensm/include/opensm/ |
H A D | osm_event_plugin.h | 116 osm_epi_port_id_t port_id; member 138 osm_epi_port_id_t port_id; member 155 osm_epi_port_id_t port_id; member 197 osm_epi_create_port_id(osm_epi_port_id_t * port_id, uint64_t node_guid, in osm_epi_create_port_id() argument 200 port_id->node_guid = node_guid; in osm_epi_create_port_id() 201 port_id->port_num = port_num; in osm_epi_create_port_id() 202 strncpy(port_id->node_name, node_name, OSM_EPI_NODE_NAME_LEN); in osm_epi_create_port_id() 203 port_id->node_name[OSM_EPI_NODE_NAME_LEN - 1] = '\0'; in osm_epi_create_port_id()
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_fcp.h | 309 port_id:24; 377 port_id:24; 416 port_id:24; 470 uint32_t port_id; member 480 uint32_t port_id; member 493 uint32_t port_id; member 505 uint32_t port_id; member 520 uint32_t port_id; member 564 uint32_t port_id; member 573 uint32_t port_id; member [all …]
|
H A D | ocs_fabric.c | 1854 uint32_t port_id; in ocs_process_gidpt_payload() local 1893 port_id = n->rnode.fc_id; in ocs_process_gidpt_payload() 1894 switch (port_id) { in ocs_process_gidpt_payload() 1900 if (!FC_ADDR_IS_DOMAIN_CTRL(port_id)) { in ocs_process_gidpt_payload() 1909 port_id = fc_be24toh(gidpt->port_list[i].port_id); in ocs_process_gidpt_payload() 1912 if ((active_nodes[j] != NULL) && (port_id == active_nodes[j]->rnode.fc_id)) { in ocs_process_gidpt_payload() 1940 uint32_t port_id = fc_be24toh(gidpt->port_list[i].port_id); in ocs_process_gidpt_payload() local 1945 if (port_id != node->rnode.sport->fc_id && !ocs_sport_find(sport->domain, port_id)) { in ocs_process_gidpt_payload() 1946 newnode = ocs_node_find(sport, port_id); in ocs_process_gidpt_payload() 1955 newnode = ocs_node_alloc(sport, port_id, 0, 0); in ocs_process_gidpt_payload()
|
/freebsd/contrib/ofed/libibmad/ |
H A D | rpc.c | 113 return ibmp->port_id; in madrpc_portid() 118 return srcport->port_id; in mad_rpc_portid() 129 _do_madrpc(int port_id, void *sndbuf, void *rcvbuf, int agentid, int len, in _do_madrpc() argument 162 if (umad_send(port_id, agentid, sndbuf, length, timeout, 0) < 0) { in _do_madrpc() 171 if (umad_recv(port_id, rcvbuf, &length, timeout) < 0) { in _do_madrpc() 238 if ((len = _do_madrpc(port->port_id, sndbuf, rcvbuf, in mad_rpc() 303 if ((len = _do_madrpc(port->port_id, sndbuf, rcvbuf, in mad_rpc_rmpp() 379 ibmp->port_id = fd; in madrpc_init() 397 int port_id; in mad_rpc_open_port() local 418 if ((port_id = umad_open_port(dev_name, dev_port)) < 0) { in mad_rpc_open_port() [all …]
|
H A D | register.c | 85 int mad_register_port_client(int port_id, int mgmt, uint8_t rmpp_version) in mad_register_port_client() argument 94 agent = umad_register(port_id, mgmt, vers, rmpp_version, 0); in mad_register_port_client() 162 umad_register_oui(srcport->port_id, mgmt, rmpp_version, in mad_register_server_via() 169 umad_register(srcport->port_id, mgmt, vers, rmpp_version, in mad_register_server_via()
|
H A D | serv.c | 76 if (umad_send(srcport->port_id, srcport->class_agents[rpc->mgtclass & 0xff], in mad_send_via() 166 (srcport->port_id, srcport->class_agents[rpc.mgtclass], umad, in mad_respond_via() 186 if ((agent = umad_recv(srcport->port_id, mad, &length, in mad_receive_via()
|
H A D | mad_internal.h | 40 int port_id; /* file descriptor returned by umad_open() */ member
|
/freebsd/sys/contrib/alpine-hal/ |
H A D | al_hal_pcie.c | 184 pcie_port->port_id, link_params->max_payload_size); in al_pcie_port_link_config() 454 pcie_port->port_id); in al_pcie_ib_hcrd_os_ob_reads_config_default() 478 pcie_port->port_id, info_0, ltssm_state); in al_pcie_check_link() 497 pcie_port->port_id, in al_pcie_port_gen2_params_config() 548 pcie_port->port_id, in al_pcie_port_gen3_params_config() 567 al_dbg("PCIe %d: Set EQ (0x%08x) for lane %d, %d\n", pcie_port->port_id, eq_control, i, i + 1); in al_pcie_port_gen3_params_config() 709 pcie_port->port_id, bar_idx, in al_pcie_port_pf_params_config() 723 pcie_port->port_id, bar_idx, in al_pcie_port_pf_params_config() 734 pcie_port->port_id, bar_idx, (uintmax_t)size); in al_pcie_port_pf_params_config() 774 al_err("PCIe %d: Expansion BAR enable not supported\n", pcie_port->port_id); in al_pcie_port_pf_params_config() [all …]
|
/freebsd/sys/contrib/ncsw/inc/flib/ |
H A D | fsl_fman.h | 696 uint16_t fman_get_size_of_fifo(struct fman_bmi_regs *bmi_rg, uint8_t port_id); 699 uint8_t port_id); 700 uint8_t fman_get_num_of_tasks(struct fman_bmi_regs *bmi_rg, uint8_t port_id); 702 uint8_t port_id); 703 uint8_t fman_get_num_of_dmas(struct fman_bmi_regs *bmi_rg, uint8_t port_id); 705 uint8_t port_id); 721 uint8_t port_id, 725 uint8_t port_id, 731 uint8_t port_id, 735 uint8_t port_id, [all …]
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_sched.c | 337 tc0 = &sc->port[txq->eq.port_id]->sched_params->cl_rl[0]; in bind_txq_to_traffic_class() 495 t4_reserve_cl_rl_kbps(struct adapter *sc, int port_id, u_int maxrate, in t4_reserve_cl_rl_kbps() argument 503 MPASS(port_id >= 0 && port_id < sc->params.nports); in t4_reserve_cl_rl_kbps() 505 pi = sc->port[port_id]; in t4_reserve_cl_rl_kbps() 575 t4_release_cl_rl(struct adapter *sc, int port_id, int tc_idx) in t4_release_cl_rl() argument 579 MPASS(port_id >= 0 && port_id < sc->params.nports); in t4_release_cl_rl() 583 tc = &sc->port[port_id]->sched_params->cl_rl[tc_idx]; in t4_release_cl_rl() 619 int i, rc, port_id, mbp in sysctl_tc_params() local [all...] |
/freebsd/contrib/tcpdump/ |
H A D | print-ptp.c | 359 uint16_t msg_len, flags, port_id, seq_id; in ptp_print_2() local 398 len -= 8; bp += 8; port_id = GET_BE_U_2(bp); ND_PRINT(", port id : %u", port_id); in ptp_print_2() 511 uint16_t port_id; in ptp_print_timestamp_identity() local 534 port_id = GET_BE_U_2(bp); in ptp_print_timestamp_identity() 535 ND_PRINT(", port id : %u", port_id); in ptp_print_timestamp_identity() 620 uint16_t port_id; in ptp_print_port_id() local 630 port_id = GET_BE_U_2(bp); in ptp_print_port_id() 631 ND_PRINT(", port id : %u", port_id); in ptp_print_port_id()
|
H A D | print-stp.c | 35 nd_uint16_t port_id; member 111 GET_BE_U_2(stp_bpdu->port_id), length); in stp_print_config_bpdu() 266 ND_PRINT("CIST port-id %04x,", GET_BE_U_2(stp_bpdu->port_id)); in stp_print_mstp_bpdu()
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_init_fw_funcs.c | 183 u8 port_id, in ecore_get_ext_voq() argument 188 …urn NUM_OF_PHYS_TCS * (ECORE_IS_E5(p_hwfn->p_dev) ? MAX_NUM_PORTS_E5 : MAX_NUM_PORTS_BB) + port_id; in ecore_get_ext_voq() 190 return port_id * (ECORE_IS_E5(p_hwfn->p_dev) ? NUM_OF_PHYS_TCS : max_phys_tcs_per_port) + tc; in ecore_get_ext_voq() 279 u8 tc, ext_voq, port_id, num_tcs_in_port; in ecore_cmdq_lines_rt_init() local 286 for (port_id = 0; port_id < max_ports_per_engine; port_id++) { in ecore_cmdq_lines_rt_init() 289 if (!port_params[port_id].active) in ecore_cmdq_lines_rt_init() 296 phys_lines = port_params[port_id].num_pbf_cmd_lines; in ecore_cmdq_lines_rt_init() 304 if (((port_params[port_id].active_phys_tcs >> tc) & 0x1) == 1) in ecore_cmdq_lines_rt_init() 310 ext_voq = ecore_get_ext_voq(p_hwfn, port_id, tc, max_phys_tcs_per_port); in ecore_cmdq_lines_rt_init() 311 if (((port_params[port_id].active_phys_tcs >> tc) & 0x1) == 1) in ecore_cmdq_lines_rt_init() [all …]
|
H A D | ecore_iro.h | 36 #define TSTORM_PORT_STAT_OFFSET(port_id) (IRO[1].base + ((port_id) * IRO… argument 39 #define TSTORM_LL2_PORT_STAT_OFFSET(port_id) (IRO[2].base + ((port_id) * IRO… argument
|
/freebsd/sys/dev/qcom_ess_edma/ |
H A D | qcom_ess_edma_rx.c | 337 int num_rfds, port_id, priority, hash_type, hash_val, flow_cookie, vlan; in qcom_ess_edma_rx_ring_complete() local 376 port_id = (rrd->rrd1 >> EDMA_PORT_ID_SHIFT) in qcom_ess_edma_rx_ring_complete() 392 port_id, in qcom_ess_edma_rx_ring_complete() 421 if (sc->sc_gmac_port_map[port_id] != -1) { in qcom_ess_edma_rx_ring_complete() 423 gmac = &sc->sc_gmac[sc->sc_gmac_port_map[port_id]]; in qcom_ess_edma_rx_ring_complete() 426 port_id, gmac->id); in qcom_ess_edma_rx_ring_complete()
|
/freebsd/sys/contrib/dev/rtw88/ |
H A D | ps.c | 246 static void __rtw_enter_lps(struct rtw_dev *rtwdev, u8 port_id) in __rtw_enter_lps() 254 conf->port_id = port_id; in __rtw_enter_lps() 277 void rtw_enter_lps(struct rtw_dev *rtwdev, u8 port_id) in rtw_enter_lps() 284 __rtw_enter_lps(rtwdev, port_id); in rtw_enter_lps() 244 __rtw_enter_lps(struct rtw_dev * rtwdev,u8 port_id) __rtw_enter_lps() argument 275 rtw_enter_lps(struct rtw_dev * rtwdev,u8 port_id) rtw_enter_lps() argument
|
/freebsd/sys/dev/qat/qat_hw/qat_c4xxx/ |
H A D | adf_c4xxx_reset.h | 35 #define ADF_C4XXX_GET_PORT_CMD(port_id) \ argument 36 ((((port_id)&0xFF) << 24) | (ADF_C4XXX_PORTD_CMD_BE << 16) | \
|
/freebsd/sys/netlink/ |
H A D | netlink_domain.c | 129 nl_port_lookup(uint32_t port_id) in nl_port_lookup() argument 134 if (nlp->nl_port == port_id) in nl_port_lookup() 393 nl_assign_port(struct nlpcb *nlp, uint32_t port_id) in nl_assign_port() argument 396 .nl_pid = port_id, in nl_assign_port() 407 NL_LOG(LOG_DEBUG3, "socket %p, port assign: %d, error: %d", nlp->nl_socket, port_id, error); in nl_assign_port() 419 uint32_t port_id = candidate_id; in nl_autobind_port() local 425 NL_LOG(LOG_DEBUG3, "socket %p, trying to assign port %d", nlp->nl_socket, port_id); in nl_autobind_port() 427 exist = nl_port_lookup(port_id) != 0; in nl_autobind_port() 430 error = nl_assign_port(nlp, port_id); in nl_autobind_port() 434 port_id++; in nl_autobind_port() [all …]
|
/freebsd/sys/arm/mv/ |
H A D | mv_pci.c | 452 int err, bus, devfn, port_id; in mv_pcib_attach() local 460 if (OF_getencprop(node, "marvell,pcie-port", &(port_id), in mv_pcib_attach() 461 sizeof(port_id)) <= 0) { in mv_pcib_attach() 464 port_id = 0; in mv_pcib_attach() 469 sc->ap_segment = port_id; in mv_pcib_attach() 473 sc->sc_win_target = MV_WIN_PCIE_TARGET(port_id); in mv_pcib_attach() 474 sc->sc_mem_win_attr = MV_WIN_PCIE_MEM_ATTR(port_id); in mv_pcib_attach() 475 sc->sc_io_win_attr = MV_WIN_PCIE_IO_ATTR(port_id); in mv_pcib_attach() 479 sc->sc_win_target = MV_WIN_PCIE_TARGET_ARMADA38X(port_id); in mv_pcib_attach() 480 sc->sc_mem_win_attr = MV_WIN_PCIE_MEM_ATTR_ARMADA38X(port_id); in mv_pcib_attach() [all …]
|
/freebsd/sys/dev/ofw/ |
H A D | ofw_graph.c | 172 ofw_graph_get_device_by_port_ep(phandle_t node, uint32_t port_id, uint32_t ep_id) in ofw_graph_get_device_by_port_ep() argument 176 port = ofw_graph_get_port_by_idx(node, port_id); in ofw_graph_get_device_by_port_ep()
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_frontend_ioctl.c | 261 int port_id = -1; in cfi_ioctl_port_remove() local 265 port_id = strtol(val, NULL, 10); in cfi_ioctl_port_remove() 267 if (port_id == -1) { in cfi_ioctl_port_remove() 275 if (cfi->port.targ_port == port_id) in cfi_ioctl_port_remove() 282 "cannot find port %d", port_id); in cfi_ioctl_port_remove()
|
/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | iblinkinfo.c | 597 ib_portid_t port_id = { 0 }; in main() local 672 resolve_portid_str(ibd_ca, ibd_ca_port, &port_id, dr_path, in main() 678 resolve_portid_str(ibd_ca, ibd_ca_port, &port_id, in main() 685 if (!smp_query_via(ni, &port_id, IB_ATTR_NODE_INFO, 0, in main() 712 ibnd_discover_fabric(ibd_ca, ibd_ca_port, &port_id, &config))) in main()
|
/freebsd/contrib/wpa/src/common/ |
H A D | wpa_ctrl.c | 367 int port_id; in wpa_ctrl_open() local 386 port_id = atoi(&port[1]); in wpa_ctrl_open() 389 port_id = WPA_CTRL_IFACE_PORT; in wpa_ctrl_open() 412 ctrl->dest.sin6_port = htons(port_id); in wpa_ctrl_open() 415 ctrl->dest.sin_port = htons(port_id); in wpa_ctrl_open()
|
/freebsd/sys/dev/cxgb/ |
H A D | cxgb_main.c | 634 pi->port_id = i; in cxgb_controller_attach() 967 device_set_descf(dev, "Port %d %s", p->port_id, desc); in cxgb_port_probe() 1003 device_get_unit(device_get_parent(dev)), p->port_id); in cxgb_port_attach() 1172 t3_os_link_changed(adapter_t *adapter, int port_id, int link_status, int speed, in t3_os_link_changed() argument 1175 struct port_info *pi = &adapter->port[port_id]; in t3_os_link_changed() 1204 void t3_os_phymod_changed(struct adapter *adap, int port_id) in t3_os_phymod_changed() argument 1209 struct port_info *pi = &adap->port[port_id]; in t3_os_phymod_changed() 1666 if (isset(&sc->open_device_map, p->port_id) && in cxgb_init_locked() 1671 t3_port_intr_enable(sc, p->port_id); in cxgb_init_locked() 1689 setbit(&sc->open_device_map, p->port_id); in cxgb_init_locked() [all …]
|