/titanic_41/usr/src/uts/common/io/aggr/ |
H A D | aggr_ctl.c | 84 uint16_t nports; in aggr_ioc_create() local 95 nports = create_arg->lc_nports; in aggr_ioc_create() 96 if (nports > AGGR_MAX_PORTS) in aggr_ioc_create() 103 ports_size = nports * sizeof (laioc_port_t); in aggr_ioc_create() 116 rc = aggr_grp_create(create_arg->lc_linkid, create_arg->lc_key, nports, in aggr_ioc_create() 143 uint32_t nports, aggr_lacp_mode_t lacp_mode, aggr_lacp_timer_t lacp_timer) in aggr_ioc_info_new_grp() argument 157 grp.lg_nports = nports; in aggr_ioc_info_new_grp() 213 uint16_t nports; in aggr_ioc_add_remove() local 218 nports = add_rem_arg->la_nports; in aggr_ioc_add_remove() 219 if (nports > AGGR_MAX_PORTS) in aggr_ioc_add_remove() [all …]
|
H A D | aggr_grp.c | 1032 aggr_grp_add_ports(datalink_id_t linkid, uint_t nports, boolean_t force, in aggr_grp_add_ports() argument 1057 for (i = 0; i < nports; i++) { in aggr_grp_add_ports() 1258 aggr_grp_create(datalink_id_t linkid, uint32_t key, uint_t nports, in aggr_grp_create() argument 1273 if (nports == 0) in aggr_grp_create() 1327 for (i = 0; i < nports; i++) { in aggr_grp_create() 1588 aggr_grp_rem_ports(datalink_id_t linkid, uint_t nports, laioc_port_t *ports) in aggr_grp_rem_ports() argument 1613 if (nports >= grp->lg_nports) { in aggr_grp_rem_ports() 1619 for (i = 0; i < nports; i++) { in aggr_grp_rem_ports() 1628 for (i = 0; i < nports && rc == 0; i++) { in aggr_grp_rem_ports() 1638 for (i = 0; i < nports; i++) { in aggr_grp_rem_ports() [all …]
|
/titanic_41/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 …]
|
/titanic_41/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 …]
|
H A D | libdlbridge.c | 1322 dladm_bridge_get_portlist(const char *instname, uint_t *nports) in dladm_bridge_get_portlist() argument 1340 *nports = *rbuf; in dladm_bridge_get_portlist()
|
/titanic_41/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()
|
/titanic_41/usr/src/uts/common/io/chxge/com/ |
H A D | espi.c | 238 static void espi_setup_for_ixf1010(adapter_t *adapter, int nports) in espi_setup_for_ixf1010() argument 241 if (nports == 4) { in espi_setup_for_ixf1010() 260 V_RX_NPORTS(nports) | V_TX_NPORTS(nports)); in espi_setup_for_ixf1010() 263 int t1_espi_init(struct peespi *espi, int mac_type, int nports) in t1_espi_init() argument 276 nports == 4 ? 0x200040 : 0x1000080); in t1_espi_init() 286 espi_setup_for_ixf1010(adapter, nports); in t1_espi_init() 302 if (adapter->params.nports == 1) in t1_espi_init() 376 u8 i, nport = (u8)adapter->params.nports; in t1_espi_get_mon_t204()
|
H A D | tp.c | 143 if (tp->adapter->params.nports > 1) in t1_tp_set_coalescing_size() 199 if (is_T2(ap) && ap->params.nports > 1) { in tp_init() 215 if (ap->params.nports == 1) in tp_init() 229 if (ap->params.nports == 1) in tp_init() 253 if (ap->params.nports > 1) { in tp_init() 304 if (adapter->params.nports == 1) in t1_tp_create()
|
H A D | common.h | 136 unsigned int nports; /* # of ethernet ports */ member 228 for (iter = 0; iter < (adapter)->params.nports; ++iter)
|
H A D | espi.h | 46 int t1_espi_init(struct peespi *espi, int mac_type, int nports);
|
H A D | ch_subr.c | 945 if (adapter->params.nports == 1) { in elmer0_ext_intr_handler() 1379 adapter->params.nports = bi->port_number; in t1_init_sw_modules()
|
/titanic_41/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() 1050 for (i = 0; i < nxgep->nports; i++) { in nxge_cfg_verify_set_classify_prop() 1062 for (i = 0; i < nxgep->nports; i++) { in nxge_cfg_verify_set_classify_prop() 1110 for (i = 0; i < nxgep->nports; i++) { in nxge_cfg_verify_set_classify_prop() 1631 nxgep->nports = nxge_get_nports(nxgep); in nxge_get_config_properties() 1632 if (nxgep->nports <= 0) { in nxge_get_config_properties() 1642 if (nxgep->function_num >= nxgep->nports) { in nxge_get_config_properties() 2085 p_cfgp->max_rdc_grpids = NXGE_MAX_RDC_GROUPS / nxgep->nports; in nxge_use_default_dma_config_n2() [all …]
|
/titanic_41/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()
|
/titanic_41/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_element.c | 596 int nports; in elem_parse_aes_fc() local 607 nports = MIN(fp->sadfi_n_ports, in elem_parse_aes_fc() 611 if (nports == 0) in elem_parse_aes_fc() 614 nva = ses_zalloc(nports * sizeof (nvlist_t *)); in elem_parse_aes_fc() 618 for (i = 0; i < nports; i++) { in elem_parse_aes_fc() 637 nva, nports)) != 0) in elem_parse_aes_fc() 640 for (i = 0; i < nports && nva[i] != NULL; i++) in elem_parse_aes_fc() 646 for (i = 0; i < nports && nva[i] != NULL; i++) in elem_parse_aes_fc()
|
/titanic_41/usr/src/uts/common/sys/ib/clients/of/sol_uverbs/ |
H A D | sol_uverbs_hca.h | 73 uint32_t nports; member
|
/titanic_41/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()
|
/titanic_41/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 …]
|
/titanic_41/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()
|
/titanic_41/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_nexus.c | 484 s->neq += sc->params.nports + 1; in t4_devo_attach() 501 s->ctrlq = kmem_zalloc(sc->params.nports * in t4_devo_attach() 728 sc->params.nports * sizeof (struct sge_wrq)); in t4_devo_detach() 1263 sc->params.nports = 0; in get_params__pre_init() 1265 sc->params.nports++; in get_params__pre_init() 1797 if (idx < 0 || idx >= sc->params.nports) in add_child_node() 1830 if (idx < 0 || idx >= sc->params.nports) in remove_child_node() 1933 KS_U_SET(port_cnt, sc->params.nports); in setup_kstats()
|
/titanic_41/usr/src/uts/common/io/cxgbe/common/ |
H A D | common.h | 259 unsigned int nports; /* # of ethernet ports */ member 302 for (iter = 0; iter < (adapter)->params.nports; ++iter)
|
/titanic_41/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 …]
|
/titanic_41/usr/src/uts/common/io/usb/usba/ |
H A D | hubdi.c | 3651 uint16_t nports; in hubd_hotplug_thread() local 3746 nports = hubd->h_hub_descr.bNbrPorts; in hubd_hotplug_thread() 3774 for (port = 1; port <= nports; port++) { in hubd_hotplug_thread() 4005 for (port = 1; port <= nports; port++) { in hubd_hotplug_thread() 6832 usb_port_t port, nports; in hubd_disconnect_event_cb() local 6858 nports = hubd->h_hub_descr.bNbrPorts; in hubd_disconnect_event_cb() 6859 for (port = 1; port <= nports; port++) { in hubd_disconnect_event_cb() 6973 usb_port_t port, nports; in hubd_cpr_suspend() local 6995 nports = hubd->h_hub_descr.bNbrPorts; in hubd_cpr_suspend() 6996 for (port = 1; (no_cpr == 0) && (port <= nports); port++) { in hubd_cpr_suspend() [all …]
|