/illumos-gate/usr/src/uts/common/io/aggr/ |
H A D | aggr_ctl.c | 89 uint16_t nports; in aggr_ioc_create() local 100 nports = create_arg->lc_nports; in aggr_ioc_create() 101 if (nports > AGGR_MAX_PORTS) in aggr_ioc_create() 108 ports_size = nports * sizeof (laioc_port_t); in aggr_ioc_create() 121 rc = aggr_grp_create(create_arg->lc_linkid, create_arg->lc_key, nports, in aggr_ioc_create() 148 uint32_t nports, aggr_lacp_mode_t lacp_mode, aggr_lacp_timer_t lacp_timer) in aggr_ioc_info_new_grp() argument 162 grp.lg_nports = nports; in aggr_ioc_info_new_grp() 218 uint16_t nports; in aggr_ioc_add_remove() local 223 nports = add_rem_arg->la_nports; in aggr_ioc_add_remove() 224 if (nports > AGGR_MAX_PORTS) in aggr_ioc_add_remove() [all …]
|
H A D | aggr_grp.c | 1168 aggr_grp_add_ports(datalink_id_t linkid, uint_t nports, boolean_t force, in aggr_grp_add_ports() argument 1200 nports_high = MAX(grp->lg_nports_high, grp->lg_nports + nports); in aggr_grp_add_ports() 1214 for (uint_t i = 0; i < nports; i++) { in aggr_grp_add_ports() 1441 aggr_grp_create(datalink_id_t linkid, uint32_t key, uint_t nports, in aggr_grp_create() argument 1460 if (nports == 0) in aggr_grp_create() 1515 for (i = 0; i < nports; i++) { in aggr_grp_create() 1642 tx_ring_limit = MAX_RINGS_PER_GROUP / MAX(4, nports); in aggr_grp_create() 1902 aggr_grp_rem_ports(datalink_id_t linkid, uint_t nports, laioc_port_t *ports) in aggr_grp_rem_ports() argument 1928 if (nports >= grp->lg_nports) { in aggr_grp_rem_ports() 1934 for (i = 0; i < nports; i++) { in aggr_grp_rem_ports() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | tunables.c | 356 uint_t i, nports; in mod_set_extra_privports() local 378 nports = tcps->tcps_g_num_epriv_ports; in mod_set_extra_privports() 384 nports = us->us_num_epriv_ports; in mod_set_extra_privports() 390 nports = sctps->sctps_g_num_epriv_ports; in mod_set_extra_privports() 400 for (i = 0; i < nports; i++) in mod_set_extra_privports() 409 for (i = 0; i < nports; i++) { in mod_set_extra_privports() 415 if (i == nports) { in mod_set_extra_privports() 422 if (i != nports) { in mod_set_extra_privports() 428 for (i = 0; i < nports; i++) { in mod_set_extra_privports() 432 if (i == nports) { in mod_set_extra_privports() [all …]
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlaggr.c | 270 uint32_t nports, i; in i_dladm_aggr_info_persist() local 332 nports = (uint32_t)u64; in i_dladm_aggr_info_persist() 333 attrp->lg_nports = nports; in i_dladm_aggr_info_persist() 335 size = nports * (MAXLINKNAMELEN + 1) + 1; in i_dladm_aggr_info_persist() 345 if ((attrp->lg_ports = malloc(nports * in i_dladm_aggr_info_persist() 351 for (next = portstr, i = 0; i < nports; i++) { in i_dladm_aggr_info_persist() 379 uint32_t nports, dladm_aggr_port_attr_db_t *ports, uint32_t flags, int cmd) in i_dladm_aggr_add_rmv() argument 392 if (nports == 0) in i_dladm_aggr_add_rmv() 399 for (i = 0; i < nports; i++) { in i_dladm_aggr_add_rmv() 431 if ((cmd == LAIOC_REMOVE) && (orig_nports <= nports)) { in i_dladm_aggr_add_rmv() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/ |
H A D | door.c | 95 int i, nports; in bridge_door_server() local 105 for (i = nports = 0; i < nextport; i++) { in bridge_door_server() 107 dlp[nports++] = allports[i]->linkid; in bridge_door_server() 109 rbuf[0] = nports; in bridge_door_server() 110 rlen = sizeof (int) + nports * sizeof (datalink_id_t); in bridge_door_server()
|
/illumos-gate/usr/src/uts/common/io/chxge/com/ |
H A D | espi.c | 236 static void espi_setup_for_ixf1010(adapter_t *adapter, int nports) in espi_setup_for_ixf1010() argument 239 if (nports == 4) { in espi_setup_for_ixf1010() 258 V_RX_NPORTS(nports) | V_TX_NPORTS(nports)); in espi_setup_for_ixf1010() 261 int t1_espi_init(struct peespi *espi, int mac_type, int nports) in t1_espi_init() argument 274 nports == 4 ? 0x200040 : 0x1000080); in t1_espi_init() 284 espi_setup_for_ixf1010(adapter, nports); in t1_espi_init() 300 if (adapter->params.nports == 1) in t1_espi_init() 374 u8 i, nport = (u8)adapter->params.nports; in t1_espi_get_mon_t204()
|
H A D | tp.c | 141 if (tp->adapter->params.nports > 1) in t1_tp_set_coalescing_size() 197 if (is_T2(ap) && ap->params.nports > 1) { in tp_init() 213 if (ap->params.nports == 1) in tp_init() 227 if (ap->params.nports == 1) in tp_init() 251 if (ap->params.nports > 1) { in tp_init() 302 if (adapter->params.nports == 1) in t1_tp_create()
|
H A D | common.h | 134 unsigned int nports; /* # of ethernet ports */ member 226 for (iter = 0; iter < (adapter)->params.nports; ++iter)
|
H A D | espi.h | 44 int t1_espi_init(struct peespi *espi, int mac_type, int nports);
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_espc.c | 114 uint8_t nports = 0; in nxge_espc_num_ports_get() local 117 npi_status = npi_espc_num_ports_get(handle, &nports); in nxge_espc_num_ports_get() 121 nxgep->nports = nports; in nxge_espc_num_ports_get() 123 "ports [0x%x]", nports)); in nxge_espc_num_ports_get()
|
H A D | nxge_virtual.c | 402 int num_ports = nxgep->nports; in nxge_update_rxdma_grp_properties() 576 int num_ports = nxgep->nports; in nxge_update_rxdma_properties() 791 int num_ports = nxgep->nports; in nxge_update_txdma_properties() 1051 for (i = 0; i < nxgep->nports; i++) { in nxge_cfg_verify_set_classify_prop() 1063 for (i = 0; i < nxgep->nports; i++) { in nxge_cfg_verify_set_classify_prop() 1111 for (i = 0; i < nxgep->nports; i++) { in nxge_cfg_verify_set_classify_prop() 1632 nxgep->nports = nxge_get_nports(nxgep); in nxge_get_config_properties() 1633 if (nxgep->nports <= 0) { in nxge_get_config_properties() 1643 if (nxgep->function_num >= nxgep->nports) { in nxge_get_config_properties() 2086 p_cfgp->max_rdc_grpids = NXGE_MAX_RDC_GROUPS / nxgep->nports; in nxge_use_default_dma_config_n2() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/ibtl/ |
H A D | ibtl_impl.c | 529 uint_t nports; in ibc_attach() local 547 nports = info_p->hca_attr->hca_nports; in ibc_attach() 548 if (nports == 0) { in ibc_attach() 586 (nports - 1) * sizeof (ibtl_async_port_event_t), KM_SLEEP); in ibc_attach() 602 (nports - 1) * sizeof (ibtl_async_port_event_t)); in ibc_attach() 611 (nports - 1) * sizeof (ibtl_async_port_event_t)); in ibc_attach() 1130 uint_t nports = hca_devp->hd_hca_attr->hca_nports; in ibtl_kstat_init() local 1137 sizeof (ibtl_hca_port_kstat_t) * nports; in ibtl_kstat_init() 1141 for (i = 0; i < nports; i++, pks++) { in ibtl_kstat_init()
|
H A D | ibtl_hca.c | 815 uint_t i, nports; in ibtl_query_hca_ports() local 832 nports = hca_devp->hd_hca_attr->hca_nports; in ibtl_query_hca_ports() 833 *ports_p = nports; in ibtl_query_hca_ports() 837 for (i = 0; i < nports; i++) in ibtl_query_hca_ports() 851 nports; in ibtl_query_hca_ports() 860 p2 = (caddr_t)(p1 + nports); in ibtl_query_hca_ports() 863 for (i = 0; i < nports; i++) { in ibtl_query_hca_ports() 1015 uint_t i, nports; in ibtl_init_hca_portinfo() local 1027 nports = hca_devp->hd_hca_attr->hca_nports; in ibtl_init_hca_portinfo() 1040 nports; in ibtl_init_hca_portinfo() [all …]
|
H A D | ibtl_handlers.c | 628 uint8_t nports; in ibtl_do_hca_asyncs() local 676 nports = hca_devp->hd_hca_attr->hca_nports; in ibtl_do_hca_asyncs() 677 for (port_minus1 = 0; port_minus1 < nports; in ibtl_do_hca_asyncs() 686 if (port_minus1 >= nports) { in ibtl_do_hca_asyncs()
|
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_element.c | 598 int nports; in elem_parse_aes_fc() local 609 nports = MIN(fp->sadfi_n_ports, in elem_parse_aes_fc() 613 if (nports == 0) in elem_parse_aes_fc() 616 nva = ses_zalloc(nports * sizeof (nvlist_t *)); in elem_parse_aes_fc() 620 for (i = 0; i < nports; i++) { in elem_parse_aes_fc() 639 nva, nports)) != 0) in elem_parse_aes_fc() 642 for (i = 0; i < nports && nva[i] != NULL; i++) in elem_parse_aes_fc() 648 for (i = 0; i < nports && nva[i] != NULL; i++) in elem_parse_aes_fc()
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/of/sol_uverbs/ |
H A D | sol_uverbs_hca.h | 73 uint32_t nports; member
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_impl.c | 75 static ibcm_hca_info_t *ibcm_add_hca_entry(ib_guid_t hcaguid, uint_t nports); 828 uint8_t nports = 0; in ibcm_hca_attach() local 844 nports = hca_attrs.hca_nports; in ibcm_hca_attach() 846 IBTF_DPRINTF_L4(cmlog, "ibcm_hca_attach: num ports = %x", nports); in ibcm_hca_attach() 848 if ((hcap = ibcm_add_hca_entry(hcaguid, nports)) == NULL) in ibcm_hca_attach() 852 hcap->hca_num_ports = nports; /* Set number of ports */ in ibcm_hca_attach() 1125 ibcm_add_hca_entry(ib_guid_t hcaguid, uint_t nports) in ibcm_add_hca_entry() argument 1155 (nports - 1) * sizeof (ibcm_port_info_t), KM_SLEEP); in ibcm_add_hca_entry()
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/ |
H A D | ibmf_saa_impl.c | 1988 uint_t nports, size; in ibmf_saa_impl_new_smlid_retry() local 2002 saa_portp->saa_pt_port_num, &ibt_portinfop, &nports, &size); in ibmf_saa_impl_new_smlid_retry() 2134 uint_t nports, size; in ibmf_saa_impl_revert_to_qp1() local 2148 saa_portp->saa_pt_port_num, &ibt_portinfop, &nports, &size); in ibmf_saa_impl_revert_to_qp1() 2316 uint_t nports, size; in ibmf_saa_impl_port_chg() local 2362 &ibt_portinfop, &nports, &size); in ibmf_saa_impl_port_chg() 2414 uint_t nports, size; in ibmf_saa_impl_client_rereg() local 2461 &ibt_portinfop, &nports, &size); in ibmf_saa_impl_client_rereg() 2533 uint_t nports, size; in ibmf_saa_impl_port_up() local 2580 &ibt_portinfop, &nports, &size); in ibmf_saa_impl_port_up() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rdsib_cm.c | 793 uint_t jx, nbinds = 0, nports = 0; in rds_bind_service() local 816 nports++; in rds_bind_service() 854 nbinds, nports); in rds_bind_service()
|
/illumos-gate/usr/src/uts/common/sys/usb/usba/ |
H A D | hcdi.h | 231 uint8_t nports,
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/usb/ |
H A D | topo_usb.c | 417 uint_t *nports, topo_usb_controller_t *tuc, di_node_t portinfo) in topo_usb_gather_acpi_port() argument 681 int *vend, *reg, *nports; in topo_usb_gather_devcfg_port() local 721 &nports) == 1 && *nports >= 1) { in topo_usb_gather_devcfg_port() 731 l->tul_nhubd_ports = (uint_t)*nports; in topo_usb_gather_devcfg_port()
|
/illumos-gate/usr/src/uts/common/io/cxgbe/common/ |
H A D | t4_hw.c | 6509 unsigned int chip_version, nports; in compute_mps_bg_map() local 6512 nports = 1 << G_NUMPORTS(t4_read_reg(adapter, A_MPS_CMN_CTL)); in compute_mps_bg_map() 6517 switch (nports) { in compute_mps_bg_map() 6525 switch (nports) { in compute_mps_bg_map() 6532 chip_version, nports); in compute_mps_bg_map() 6549 unsigned int nports; in t4_get_mps_bg_map() local 6551 nports = 1 << G_NUMPORTS(t4_read_reg(adapter, A_MPS_CMN_CTL)); in t4_get_mps_bg_map() 6552 if (pidx >= nports) { in t4_get_mps_bg_map() 6553 CH_WARN(adapter, "MPS Port Index %d >= Nports %d\n", pidx, nports); in t4_get_mps_bg_map() 6609 unsigned int nports = 1 << G_NUMPORTS(t4_read_reg(adapter, A_MPS_CMN_CTL)); in t4_get_tp_e2c_map() local [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibdm/ |
H A D | ibdm.c | 638 uint_t nports, size; in ibdm_update_port_pkeys() local 655 &pinfop, &nports, &size) != IBT_SUCCESS) { in ibdm_update_port_pkeys() 728 uint_t nports, size; in ibdm_initialize_port() local 747 &pinfop, &nports, &size) != IBT_SUCCESS) { in ibdm_initialize_port() 890 uint_t nports, size; in ibdm_update_port_attr() local 896 port->pa_port_num, &portinfop, &nports, &size) != IBT_SUCCESS) { in ibdm_update_port_attr() 936 uint_t ii, nports; in ibdm_handle_hca_attach() local 964 if ((status = ibt_query_hca_ports(hca_hdl, 0, &portinfop, &nports, in ibdm_handle_hca_attach() 1002 for (ii = 0; ii < nports; ii++) { in ibdm_handle_hca_attach() 5364 uint_t nports; in ibdm_ibnex_update_pkey_tbls() local [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | hubdi.c | 3811 uint16_t nports; in hubd_hotplug_thread() local 3906 nports = hubd->h_nports; in hubd_hotplug_thread() 3934 for (port = 1; port <= nports; port++) { in hubd_hotplug_thread() 4165 for (port = 1; port <= nports; port++) { in hubd_hotplug_thread() 7154 usb_port_t port, nports; in hubd_disconnect_event_cb() local 7179 nports = hubd->h_nports; in hubd_disconnect_event_cb() 7180 for (port = 1; port <= nports; port++) { in hubd_disconnect_event_cb() 7292 usb_port_t port, nports; in hubd_cpr_suspend() local 7314 nports = hubd->h_nports; in hubd_cpr_suspend() 7315 for (port = 1; (no_cpr == 0) && (port <= nports); port++) { in hubd_cpr_suspend() [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_nexus.c | 1505 sc->params.nports = 0; in get_params__pre_init() 1507 sc->params.nports++; in get_params__pre_init() 2177 if (idx < 0 || idx >= sc->params.nports) in add_child_node() 2210 if (idx < 0 || idx >= sc->params.nports) in remove_child_node() 2334 KS_U_SET(port_cnt, sc->params.nports); in setup_kstats()
|