Home
last modified time | relevance | path

Searched refs:num_ports (Results 1 – 25 of 27) sorted by relevance

12

/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_agents.c349 uint_t num_ports, num_agents, num_agents_per_port; in tavor_agent_list_init() local
362 num_ports = state->ts_cfg_profile->cp_num_ports; in tavor_agent_list_init()
368 num_agents += (num_ports * TAVOR_NUM_QP0_AGENTS_PER_PORT); in tavor_agent_list_init()
370 num_sma_agents = num_ports; in tavor_agent_list_init()
373 num_agents += (num_ports * TAVOR_NUM_QP1_AGENTS_PER_PORT); in tavor_agent_list_init()
375 num_pma_agents = num_ports; in tavor_agent_list_init()
404 for (j = 0; j < num_ports; j++) { in tavor_agent_list_init()
H A Dtavor_cfg.c678 uint_t num_ports, nelementsp; in tavor_cfg_prop_lookup() local
690 num_ports = ddi_prop_get_int(DDI_DEV_T_ANY, state->ts_dip, in tavor_cfg_prop_lookup()
692 if ((num_ports > TAVOR_NUM_PORTS) || (num_ports == 0)) { in tavor_cfg_prop_lookup()
695 cp->cp_num_ports = num_ports; in tavor_cfg_prop_lookup()
737 if (num_ports == TAVOR_NUM_PORTS) { in tavor_cfg_prop_lookup()
H A Dtavor.c1436 uint_t num_ports; in tavor_hw_fini() local
1447 num_ports = state->ts_cfg_profile->cp_num_ports; in tavor_hw_fini()
1448 (void) tavor_hca_ports_shutdown(state, num_ports); in tavor_hw_fini()
1793 maxval = state->ts_devlim.num_ports; in tavor_soft_state_init()
2031 uint_t num_ports; in tavor_hca_port_init() local
2039 num_ports = cfgprof->cp_num_ports; in tavor_hca_port_init()
2042 portinits = (tavor_hw_initib_t *)kmem_zalloc(num_ports * in tavor_hca_port_init()
2046 for (i = 0; i < num_ports; i++) { in tavor_hca_port_init()
2134 kmem_free(portinits, num_ports * sizeof (tavor_hw_initib_t)); in tavor_hca_port_init()
2142 kmem_free(portinits, num_ports * sizeof (tavor_hw_initib_t)); in tavor_hca_port_init()
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_agents.c588 uint_t num_ports, num_agents, num_agents_per_port; in hermon_agent_list_init() local
601 num_ports = state->hs_cfg_profile->cp_num_ports; in hermon_agent_list_init()
607 num_agents += (num_ports * HERMON_NUM_QP0_AGENTS_PER_PORT); in hermon_agent_list_init()
609 num_sma_agents = num_ports; in hermon_agent_list_init()
612 num_agents += (num_ports * HERMON_NUM_QP1_AGENTS_PER_PORT); in hermon_agent_list_init()
614 num_pma_agents = num_ports; in hermon_agent_list_init()
643 for (j = 0; j < num_ports; j++) { in hermon_agent_list_init()
H A Dhermon.c2165 uint_t num_ports; in hermon_hw_fini() local
2184 num_ports = state->hs_cfg_profile->cp_num_ports; in hermon_hw_fini()
2185 (void) hermon_hca_ports_shutdown(state, num_ports); in hermon_hw_fini()
2704 maxval = state->hs_devlim.num_ports; in hermon_soft_state_init()
3456 uint_t num_ports; in hermon_hca_port_init() local
3465 num_ports = cfgprof->cp_num_ports; in hermon_hca_port_init()
3468 portinits = (hermon_hw_set_port_t *)kmem_zalloc(num_ports * in hermon_hca_port_init()
3485 for (i = 0; i < num_ports; i++) { in hermon_hca_port_init()
3605 for (i = 0; i < num_ports; i++) { in hermon_hca_port_init()
3616 kmem_free(portinits, num_ports * sizeof (hermon_hw_set_port_t)); in hermon_hca_port_init()
[all …]
H A Dhermon_cfg.c358 cp->cp_num_ports = devlim->num_ports; in hermon_cfg_profile_init_phase2()
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_virtual.c402 int num_ports = nxgep->nports; in nxge_update_rxdma_grp_properties() local
420 for (port = 0; port < num_ports; port++) { in nxge_update_rxdma_grp_properties()
422 (num_ports == 4) ? in nxge_update_rxdma_grp_properties()
432 for (port = 0; port < num_ports; port++) { in nxge_update_rxdma_grp_properties()
434 (num_ports == 4) ? in nxge_update_rxdma_grp_properties()
515 (num_ports == 4) ? in nxge_update_rxdma_grp_properties()
536 for (port = 0; port < num_ports; port++) { in nxge_update_rxdma_grp_properties()
576 int num_ports = nxgep->nports; in nxge_update_rxdma_properties() local
723 (num_ports == 4) ? in nxge_update_rxdma_properties()
745 for (port = 0; port < num_ports; port++) { in nxge_update_rxdma_properties()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvcc.c91 static int i_vcc_cons_tbl(vcc_t *vccp, uint_t num_ports,
1351 if (num_ports == 0) { in i_vcc_cons_tbl()
1383 num_ports--; in i_vcc_cons_tbl()
1387 if (num_ports == 0) { in i_vcc_cons_tbl()
1405 while (num_ports > 0) { in i_vcc_cons_tbl()
1414 num_ports--; in i_vcc_cons_tbl()
1697 static uint_t num_ports; in i_vcc_ctrl_ioctl() local
1705 num_ports = vccp->num_ports; in i_vcc_ctrl_ioctl()
1709 return (ddi_copyout((void *)&num_ports, arg, in i_vcc_ctrl_ioctl()
2241 vccp->num_ports--; in i_vcc_md_remove_port()
[all …]
H A Dvsw_ldc.c389 plist->num_ports++; in vsw_port_attach()
1224 plist->num_ports--; in vsw_plist_del_node()
4849 vswp->instance, plist->num_ports); in display_state()
/illumos-gate/usr/src/uts/sun4u/io/i2c/clients/
H A Dpca9556.c287 int i, num_ports; in pca9556_attach() local
309 num_ports = PCA9555_NUM_PORTS; in pca9556_attach()
312 num_ports = PCA9556_NUM_PORTS; in pca9556_attach()
317 for (i = 0; i < num_ports; i++) { in pca9556_attach()
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Decore_phy.c664 int num_ports = ecore_device_num_ports(p_hwfn->p_dev); in ecore_phy_mac_stat() local
666 if (port >= (u32)num_ports) { in ecore_phy_mac_stat()
668 "Port must be in range of 0..%d\n", num_ports); in ecore_phy_mac_stat()
712 u32 num_ports = ecore_device_num_ports(p_hwfn->p_dev); in ecore_validate_sfp_port() local
714 if (port >= num_ports) { in ecore_validate_sfp_port()
715 if (num_ports == 1) in ecore_validate_sfp_port()
721 num_ports-1); in ecore_validate_sfp_port()
H A Decore_dev.c375 u8 i, active_phys_tcs, num_ports = p_hwfn->p_dev->num_ports_in_engine; in ecore_init_qm_port_params() local
378 active_phys_tcs = num_ports == MAX_NUM_PORTS_K2 ? in ecore_init_qm_port_params()
381 for (i = 0; i < num_ports; i++) { in ecore_init_qm_port_params()
387 p_qm_port->num_pbf_cmd_lines = PBF_MAX_CMD_LINES / num_ports; in ecore_init_qm_port_params()
388 p_qm_port->num_btb_blocks = BTB_MAX_BLOCKS / num_ports; in ecore_init_qm_port_params()
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvldc_impl.h126 uint_t num_ports; member
H A Dvcc_impl.h291 uint_t num_ports; /* avail ports */ member
H A Dvsw_ldc.h445 int num_ports; /* number of ports in the list */ member
/illumos-gate/usr/src/uts/common/io/1394/adapters/
H A Dhci1394_ohci.c1281 int num_ports; in hci1394_ohci_phy_info() local
1316 num_ports = reg & 0x1F; in hci1394_ohci_phy_info()
1319 if (num_ports == 0) { in hci1394_ohci_phy_info()
1326 if (num_ports > 0) { in hci1394_ohci_phy_info()
1346 num_ports--; in hci1394_ohci_phy_info()
/illumos-gate/usr/src/uts/common/io/ib/clients/iser/
H A Diser_ib.c203 int num_ports = 0; in iser_ib_bind_service() local
220 num_ports++; in iser_ib_bind_service()
255 "(%d) of (%d) ports", num_binds, num_ports); in iser_ib_bind_service()
/illumos-gate/usr/src/uts/common/io/i40e/core/
H A Di40e_common.c4042 hw->num_ports = 0; in i40e_parse_discover_capabilities()
4053 hw->num_ports++; in i40e_parse_discover_capabilities()
4082 hw->num_ports = 4; in i40e_parse_discover_capabilities()
4083 if (hw->num_ports > num_functions) { in i40e_parse_discover_capabilities()
4084 hw->num_ports = num_functions; in i40e_parse_discover_capabilities()
4086 (int)hw->num_ports); in i40e_parse_discover_capabilities()
4092 hw->num_ports = 4; in i40e_parse_discover_capabilities()
4101 if (hw->num_ports != 0) { in i40e_parse_discover_capabilities()
4102 hw->partition_id = (hw->pf_id / hw->num_ports) + 1; in i40e_parse_discover_capabilities()
4103 hw->num_partitions = num_functions / hw->num_ports; in i40e_parse_discover_capabilities()
H A Di40e_type.h723 u16 num_ports; member
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_devinfo.c2780 u8_t num_ports = 2; in lm_init_cam_params() local
2789 pdev->params.cam_size = b_is_asic? MAX_MAC_CREDIT_E1 / num_ports : LM_CAM_SIZE_EMUL; in lm_init_cam_params()
2808 pdev->params.cam_size = b_is_asic? MAX_MAC_CREDIT_E1H / num_ports: LM_CAM_SIZE_EMUL; in lm_init_cam_params()
2825 num_ports = (CHIP_PORT_MODE(pdev) == LM_CHIP_PORT_MODE_4)? 2 : 1; in lm_init_cam_params()
2859 …pdev->params.base_offset_in_cam_table = ((num_ports == 2)? FUNC_ID(pdev) : VNIC_ID(pdev)) * LM_CAM… in lm_init_cam_params()
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/
H A Dsol_ib_cma.c2464 uint_t num_ports, p; in ibcma_get_devlist() local
2478 &num_ports, &port_size); in ibcma_get_devlist()
2485 for (p = 0, tmp = port_info; p < num_ports; p++, tmp++) { in ibcma_get_devlist()
/illumos-gate/usr/src/uts/common/rpc/
H A Drpcib.c3237 uint_t pki, i, num_ports, nbinds; in rib_register_service() local
3248 &num_ports, &port_size); in rib_register_service()
3259 int, num_ports); in rib_register_service()
3261 for (i = 0; i < num_ports; i++) { in rib_register_service()
3333 for (i = 0; i < num_ports; i++) { in rib_register_service()
/illumos-gate/usr/src/uts/common/sys/ib/adapters/tavor/
H A Dtavor_hw.h161 uint32_t num_ports :4; member
277 uint32_t num_ports :4; member
/illumos-gate/usr/src/uts/common/io/i40e/
H A Di40e_main.c510 ASSERT(hw->num_ports > 0); in i40e_device_find()
524 idp->id_nfuncs = hw->num_ports * hw->num_partitions; in i40e_device_find()
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_ti.c5670 uint8_t num_ports = 0; in ibt_gid_to_node_info() local
5700 num_ports = 1; in ibt_gid_to_node_info()
5728 num_ports = hcap->hca_num_ports; in ibt_gid_to_node_info()
5731 for (j = 0; j < num_ports; j++) { in ibt_gid_to_node_info()

12