/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | port_scale.sh | 51 local max_ports=$1; shift 59 [[ $occ -eq $max_ports ]] 60 check_err_fail $should_fail $? "Attempt to create $max_ports ports (actual result $occ)"
|
/openbmc/linux/drivers/usb/gadget/udc/aspeed-vhub/ |
H A D | core.c | 133 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_irq() 210 port_mask = GENMASK(vhub->max_ports, 1); in ast_vhub_init_hw() 266 for (i = 0; i < vhub->max_ports; i++) in ast_vhub_remove() 288 (vhub->max_ports + 1), in ast_vhub_remove() 307 &vhub->max_ports); in ast_vhub_probe() 309 vhub->max_ports = AST_VHUB_NUM_PORTS; in ast_vhub_probe() 311 vhub->ports = devm_kcalloc(&pdev->dev, vhub->max_ports, in ast_vhub_probe() 328 vhub->port_irq_mask = GENMASK(VHUB_IRQ_DEV1_BIT + vhub->max_ports - 1, in ast_vhub_probe() 379 (vhub->max_ports + 1), in ast_vhub_probe() 393 for (i = 0; i < vhub->max_ports && rc == 0; i++) in ast_vhub_probe()
|
H A D | hub.c | 574 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_wake_work() 657 if (port == 0 || port > vhub->max_ports) in ast_vhub_set_port_feature() 700 if (port == 0 || port > vhub->max_ports) in ast_vhub_clr_port_feature() 746 if (port == 0 || port > vhub->max_ports) in ast_vhub_get_port_stat() 827 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_hub_suspend() 850 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_hub_resume() 884 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_hub_reset() 1056 vhub->vhub_hub_desc.bNbrPorts = vhub->max_ports; in ast_vhub_init_desc()
|
H A D | vhub.h | 404 u32 max_ports; member
|
/openbmc/linux/drivers/net/dsa/ |
H A D | lantiq_gswip.c | 253 int max_ports; member 649 unsigned int max_ports = priv->hw_info->max_ports; in gswip_add_single_port_br() local 913 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_active_create() local 971 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_unaware() local 1033 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_aware() local 1108 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_remove() local 1205 unsigned int max_ports = priv->hw_info->max_ports; in gswip_port_vlan_prepare() local 1206 int pos = max_ports; in gswip_port_vlan_prepare() 1363 unsigned int max_ports = priv->hw_info->max_ports; in gswip_port_fdb() local 2248 .max_ports = 7, [all …]
|
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | sdio.h | 112 (a->max_ports - \ 239 u8 max_ports; member 274 u8 max_ports; member 319 if (((card->max_ports - card->mpa_rx.start_port) + in mp_rx_aggr_port_limit_reached() 345 if (((card->max_ports - card->mpa_tx.start_port) + in mp_tx_aggr_port_limit_reached()
|
H A D | sdio.c | 324 .max_ports = 16, 340 .max_ports = 16, 356 .max_ports = 16, 372 .max_ports = 32, 388 .max_ports = 32, 405 .max_ports = 32, 423 .max_ports = 32, 440 .max_ports = 32, 456 .max_ports = 32, 473 .max_ports = 16, [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | minimal.c | 39 u8 max_ports; member 322 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_port_module_map() local 343 if (WARN_ON_ONCE(module >= max_ports)) in mlxsw_m_port_module_map() 363 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_linecards_init() local 386 mlxsw_m->ports = kcalloc(max_ports, sizeof(*mlxsw_m->ports), in mlxsw_m_linecards_init() 503 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_ports_module_map() local 504 u8 last_module = max_ports; in mlxsw_m_ports_module_map() 507 for (i = 1; i < max_ports; i++) { in mlxsw_m_ports_module_map()
|
H A D | core.c | 91 unsigned int max_ports; member 126 u32 max_ports; in mlxsw_core_resources_ports_register() local 128 max_ports = mlxsw_core->max_ports - 1; in mlxsw_core_resources_ports_register() 129 devlink_resource_size_params_init(&ports_num_params, max_ports, in mlxsw_core_resources_ports_register() 130 max_ports, 1, in mlxsw_core_resources_ports_register() 135 max_ports, MLXSW_CORE_RESOURCE_PORTS, in mlxsw_core_resources_ports_register() 147 mlxsw_core->max_ports = MLXSW_CORE_RES_GET(mlxsw_core, in mlxsw_ports_init() 150 mlxsw_core->max_ports = MLXSW_PORT_MAX_PORTS_DEFAULT + 1; in mlxsw_ports_init() 152 mlxsw_core->ports = kcalloc(mlxsw_core->max_ports, in mlxsw_ports_init() 186 return mlxsw_core->max_ports; in mlxsw_core_max_ports() [all …]
|
H A D | spectrum.c | 2082 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_ports_remove() local 2085 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove() 2090 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove() 2104 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_core); in mlxsw_sp_ports_remove_selected() local 2107 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove_selected() 2121 alloc_size = sizeof(struct mlxsw_sp_port *) * max_ports; in mlxsw_sp_ports_create() 2131 for (i = 1; i < max_ports; i++) { in mlxsw_sp_ports_create() 2141 for (i = 1; i < max_ports; i++) { in mlxsw_sp_ports_create() 2155 i = max_ports; in mlxsw_sp_ports_create() 2175 mlxsw_sp->port_mapping = kcalloc(max_ports, in mlxsw_sp_port_module_info_init() [all …]
|
H A D | spectrum_buffers.c | 642 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_sb_ports_init() local 647 mlxsw_sp->sb->ports = kcalloc(max_ports, in mlxsw_sp_sb_ports_init() 661 for (i = 0; i < max_ports; i++) { in mlxsw_sp_sb_ports_init() 680 int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_sb_ports_fini() local 683 for (i = max_ports - 1; i >= 0; i--) in mlxsw_sp_sb_ports_fini()
|
H A D | spectrum.h | 523 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_local_port_is_valid() local 525 return local_port < max_ports && local_port; in mlxsw_sp_local_port_is_valid()
|
H A D | spectrum_fid.c | 1803 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_fids_init() local 1820 fid_core->port_fid_mappings = kcalloc(max_ports, sizeof(unsigned int), in mlxsw_sp_fids_init()
|
/openbmc/linux/drivers/usb/host/ |
H A D | xhci-hub.c | 1201 int max_ports; in xhci_hub_control() local 1218 max_ports = rhub->num_ports; in xhci_hub_control() 1646 int max_ports; in xhci_hub_status_data() local 1654 max_ports = rhub->num_ports; in xhci_hub_status_data() 1718 int max_ports, port_index; in xhci_bus_suspend() local 1728 max_ports = rhub->num_ports; in xhci_bus_suspend() 1748 port_index = max_ports; in xhci_bus_suspend() 1819 port_index = max_ports; in xhci_bus_suspend() 1879 int max_ports, port_index; in xhci_bus_resume() local 1889 max_ports = rhub->num_ports; in xhci_bus_resume() [all …]
|
H A D | xhci-ring.c | 1925 int max_ports; in handle_port_status() local 1938 max_ports = HCS_MAX_PORTS(xhci->hcs_params1); in handle_port_status() 1940 if ((port_id <= 0) || (port_id > max_ports)) { in handle_port_status()
|
H A D | xhci.h | 1535 u8 max_ports; member
|
/openbmc/linux/drivers/net/wwan/ |
H A D | wwan_core.c | 391 const unsigned int max_ports = PAGE_SIZE * 8; in __wwan_port_dev_assign_name() local 409 if (id < 0 || id >= max_ports) in __wwan_port_dev_assign_name() 416 id = find_first_zero_bit(idmap, max_ports); in __wwan_port_dev_assign_name()
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | bridge_mdb.sh | 744 local max_ports=32 756 for j in $(seq 1 $max_ports); do 765 for j in $(seq 1 $max_ports); do 779 [[ $num_entries -eq $((max_grps * max_ports)) ]] 787 for j in $(seq $max_ports); do
|
/openbmc/linux/tools/testing/selftests/drivers/net/dsa/ |
H A D | bridge_mdb.sh | 744 local max_ports=32 756 for j in $(seq 1 $max_ports); do 765 for j in $(seq 1 $max_ports); do 779 [[ $num_entries -eq $((max_grps * max_ports)) ]] 787 for j in $(seq $max_ports); do
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | ehci-hcd.c | 150 int max_ports = HCS_N_PORTS(ehci_readl(&ctrl->hccr->cr_hcsparams)); in ehci_get_portsc_register() local 152 if (port < 0 || port >= max_ports) { in ehci_get_portsc_register() 210 int max_ports = HCS_N_PORTS(ehci_readl(&ctrl->hccr->cr_hcsparams)); in ehci_shutdown() local 222 for (i = 0; i < max_ports; i++) { in ehci_shutdown()
|
H A D | xhci.c | 893 int max_ports = HCS_MAX_PORTS(xhci_readl(&hccr->cr_hcsparams1)); in xhci_submit_root() local 896 le16_to_cpu(req->index) > max_ports) { in xhci_submit_root()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | hdac_hdmi.c | 1340 int max_ports = HDA_MAX_PORTS; in hdac_hdmi_add_ports() local 1349 ports = devm_kcalloc(&hdev->dev, max_ports, sizeof(*ports), GFP_KERNEL); in hdac_hdmi_add_ports() 1353 for (i = 0; i < max_ports; i++) { in hdac_hdmi_add_ports() 1359 pin->num_ports = max_ports; in hdac_hdmi_add_ports()
|
/openbmc/linux/drivers/ata/ |
H A D | libata-core.c | 5577 struct ata_host *ata_host_alloc(struct device *dev, int max_ports) in ata_host_alloc() argument 5585 sz = sizeof(struct ata_host) + (max_ports + 1) * sizeof(void *); in ata_host_alloc() 5607 host->n_ports = max_ports; in ata_host_alloc() 5611 for (i = 0; i < max_ports; i++) { in ata_host_alloc()
|
/openbmc/linux/include/linux/ |
H A D | libata.h | 1072 extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports);
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_mfw_hsi.h | 502 u32 max_ports; member
|