Home
last modified time | relevance | path

Searched refs:max_ports (Results 1 – 22 of 22) sorted by relevance

/linux-6.1.9/drivers/usb/gadget/udc/aspeed-vhub/
Dcore.c134 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_irq()
211 port_mask = GENMASK(vhub->max_ports, 1); in ast_vhub_init_hw()
267 for (i = 0; i < vhub->max_ports; i++) in ast_vhub_remove()
289 (vhub->max_ports + 1), in ast_vhub_remove()
310 &vhub->max_ports); in ast_vhub_probe()
312 vhub->max_ports = AST_VHUB_NUM_PORTS; in ast_vhub_probe()
314 vhub->ports = devm_kcalloc(&pdev->dev, vhub->max_ports, in ast_vhub_probe()
331 vhub->port_irq_mask = GENMASK(VHUB_IRQ_DEV1_BIT + vhub->max_ports - 1, in ast_vhub_probe()
383 (vhub->max_ports + 1), in ast_vhub_probe()
397 for (i = 0; i < vhub->max_ports && rc == 0; i++) in ast_vhub_probe()
Dhub.c575 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_wake_work()
658 if (port == 0 || port > vhub->max_ports) in ast_vhub_set_port_feature()
701 if (port == 0 || port > vhub->max_ports) in ast_vhub_clr_port_feature()
747 if (port == 0 || port > vhub->max_ports) in ast_vhub_get_port_stat()
828 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_hub_suspend()
851 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_hub_resume()
885 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_hub_reset()
1057 vhub->vhub_hub_desc.bNbrPorts = vhub->max_ports; in ast_vhub_init_desc()
Dvhub.h404 u32 max_ports; member
/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/
Dport_scale.sh51 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)"
/linux-6.1.9/drivers/net/dsa/
Dlantiq_gswip.c253 int max_ports; member
649 unsigned int max_ports = priv->hw_info->max_ports; in gswip_add_single_port_br() local
652 if (port >= max_ports) { in gswip_add_single_port_br()
822 for (i = 0; i < priv->hw_info->max_ports; i++) { in gswip_setup()
863 for (i = 0; i < priv->hw_info->max_ports; i++) in gswip_setup()
913 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_active_create() local
919 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_active_create()
971 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_unaware() local
979 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_unaware()
1033 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_aware() local
[all …]
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/
Dsdio.h111 (a->max_ports - \
238 u8 max_ports; member
272 u8 max_ports; member
316 if (((card->max_ports - card->mpa_rx.start_port) + in mp_rx_aggr_port_limit_reached()
342 if (((card->max_ports - card->mpa_tx.start_port) + in mp_tx_aggr_port_limit_reached()
Dsdio.c324 .max_ports = 16,
339 .max_ports = 16,
354 .max_ports = 16,
369 .max_ports = 32,
384 .max_ports = 32,
401 .max_ports = 32,
417 .max_ports = 32,
432 .max_ports = 32,
448 .max_ports = 16,
536 card->max_ports = data->max_ports; in mwifiex_sdio_probe()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dminimal.c39 u8 max_ports; member
335 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_port_module_map() local
356 if (WARN_ON_ONCE(module >= max_ports)) in mlxsw_m_port_module_map()
376 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_linecards_init() local
399 mlxsw_m->ports = kcalloc(max_ports, sizeof(*mlxsw_m->ports), in mlxsw_m_linecards_init()
515 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_ports_module_map() local
516 u8 last_module = max_ports; in mlxsw_m_ports_module_map()
519 for (i = 1; i < max_ports; i++) { in mlxsw_m_ports_module_map()
Dcore.c90 unsigned int max_ports; member
125 u32 max_ports; in mlxsw_core_resources_ports_register() local
127 max_ports = mlxsw_core->max_ports - 1; in mlxsw_core_resources_ports_register()
128 devlink_resource_size_params_init(&ports_num_params, max_ports, in mlxsw_core_resources_ports_register()
129 max_ports, 1, in mlxsw_core_resources_ports_register()
134 max_ports, MLXSW_CORE_RESOURCE_PORTS, in mlxsw_core_resources_ports_register()
146 mlxsw_core->max_ports = MLXSW_CORE_RES_GET(mlxsw_core, in mlxsw_ports_init()
149 mlxsw_core->max_ports = MLXSW_PORT_MAX_PORTS_DEFAULT + 1; in mlxsw_ports_init()
151 mlxsw_core->ports = kcalloc(mlxsw_core->max_ports, in mlxsw_ports_init()
185 return mlxsw_core->max_ports; in mlxsw_core_max_ports()
[all …]
Dspectrum_buffers.c642 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()
Dspectrum.c2076 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_ports_remove() local
2079 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove()
2084 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove()
2098 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_core); in mlxsw_sp_ports_remove_selected() local
2101 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove_selected()
2108 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_ports_create() local
2115 alloc_size = sizeof(struct mlxsw_sp_port *) * max_ports; in mlxsw_sp_ports_create()
2125 for (i = 1; i < max_ports; i++) { in mlxsw_sp_ports_create()
2135 for (i = 1; i < max_ports; i++) { in mlxsw_sp_ports_create()
2149 i = max_ports; in mlxsw_sp_ports_create()
[all …]
Dspectrum.h520 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_local_port_is_valid() local
522 return local_port < max_ports && local_port; in mlxsw_sp_local_port_is_valid()
Dspectrum_fid.c1813 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_fids_init() local
1830 fid_core->port_fid_mappings = kcalloc(max_ports, sizeof(unsigned int), in mlxsw_sp_fids_init()
/linux-6.1.9/drivers/usb/host/
Dxhci-hub.c1186 int max_ports; in xhci_hub_control() local
1201 max_ports = rhub->num_ports; in xhci_hub_control()
1236 if (!wIndex || wIndex > max_ports) in xhci_hub_control()
1279 if (!wIndex || wIndex > max_ports) in xhci_hub_control()
1533 if (!wIndex || wIndex > max_ports) in xhci_hub_control()
1628 int max_ports; in xhci_hub_status_data() local
1636 max_ports = rhub->num_ports; in xhci_hub_status_data()
1640 retval = (max_ports + 8) / 8; in xhci_hub_status_data()
1665 for (i = 0; i < max_ports; i++) { in xhci_hub_status_data()
1700 int max_ports, port_index; in xhci_bus_suspend() local
[all …]
Dxhci-ring.c1842 int max_ports; in handle_port_status() local
1855 max_ports = HCS_MAX_PORTS(xhci->hcs_params1); in handle_port_status()
1857 if ((port_id <= 0) || (port_id > max_ports)) { in handle_port_status()
Dxhci.h1778 u8 max_ports; member
/linux-6.1.9/drivers/net/wwan/
Dwwan_core.c383 const unsigned int max_ports = PAGE_SIZE * 8; in __wwan_port_dev_assign_name() local
401 if (id < 0 || id >= max_ports) in __wwan_port_dev_assign_name()
408 id = find_first_zero_bit(idmap, max_ports); in __wwan_port_dev_assign_name()
/linux-6.1.9/sound/soc/codecs/
Dhdac_hdmi.c1335 int max_ports = HDA_MAX_PORTS; in hdac_hdmi_add_ports() local
1344 ports = devm_kcalloc(&hdev->dev, max_ports, sizeof(*ports), GFP_KERNEL); in hdac_hdmi_add_ports()
1348 for (i = 0; i < max_ports; i++) { in hdac_hdmi_add_ports()
1354 pin->num_ports = max_ports; in hdac_hdmi_add_ports()
/linux-6.1.9/drivers/ata/
Dlibata-core.c5400 struct ata_host *ata_host_alloc(struct device *dev, int max_ports) in ata_host_alloc() argument
5408 sz = sizeof(struct ata_host) + (max_ports + 1) * sizeof(void *); in ata_host_alloc()
5426 host->n_ports = max_ports; in ata_host_alloc()
5430 for (i = 0; i < max_ports; i++) { in ata_host_alloc()
/linux-6.1.9/include/linux/
Dlibata.h1053 extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports);
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_mfw_hsi.h502 u32 max_ports; member
Dqed_dev.c4507 addr = global_addr + offsetof(struct public_global, max_ports); in qed_hw_info_port_num()