Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dminimal.c35 u8 max_ports; member
237 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_port_module_map() local
254 if (WARN_ON_ONCE(module >= max_ports)) in mlxsw_m_port_module_map()
256 mlxsw_m->module_to_port[module] = ++mlxsw_m->max_ports; in mlxsw_m_port_module_map()
268 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_ports_create() local
269 u8 last_module = max_ports; in mlxsw_m_ports_create()
273 mlxsw_m->ports = kcalloc(max_ports, sizeof(*mlxsw_m->ports), in mlxsw_m_ports_create()
278 mlxsw_m->module_to_port = kmalloc_array(max_ports, sizeof(int), in mlxsw_m_ports_create()
286 for (i = 0; i < max_ports; i++) in mlxsw_m_ports_create()
290 for (i = 1; i < max_ports; i++) { in mlxsw_m_ports_create()
[all …]
Dcore.c86 unsigned int max_ports; member
103 mlxsw_core->max_ports = MLXSW_CORE_RES_GET(mlxsw_core, in mlxsw_ports_init()
106 mlxsw_core->max_ports = MLXSW_PORT_MAX_PORTS_DEFAULT + 1; in mlxsw_ports_init()
108 mlxsw_core->ports = kcalloc(mlxsw_core->max_ports, in mlxsw_ports_init()
123 return mlxsw_core->max_ports; in mlxsw_core_max_ports()
1179 if (port_index >= mlxsw_core->max_ports) { in mlxsw_devlink_port_split()
1195 if (port_index >= mlxsw_core->max_ports) { in mlxsw_devlink_port_unsplit()
2627 (local_port >= mlxsw_core->max_ports)) in mlxsw_core_skb_receive()
Dspectrum_buffers.c627 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_sb_ports_init() local
632 mlxsw_sp->sb->ports = kcalloc(max_ports, in mlxsw_sp_sb_ports_init()
646 for (i = 0; i < max_ports; i++) { in mlxsw_sp_sb_ports_init()
665 int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_sb_ports_fini() local
668 for (i = max_ports - 1; i >= 0; i--) in mlxsw_sp_sb_ports_fini()
Dspectrum.c1741 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_ports_create() local
1747 alloc_size = sizeof(struct mlxsw_sp_port *) * max_ports; in mlxsw_sp_ports_create()
1756 for (i = 1; i < max_ports; i++) { in mlxsw_sp_ports_create()
1779 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_port_module_info_init() local
1784 mlxsw_sp->port_mapping = kcalloc(max_ports, in mlxsw_sp_port_module_info_init()
1790 for (i = 1; i < max_ports; i++) { in mlxsw_sp_port_module_info_init()
2055 unsigned int max_ports; in mlxsw_sp_pude_event_func() local
2058 max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_pude_event_func()
2061 if (WARN_ON_ONCE(!local_port || local_port >= max_ports)) in mlxsw_sp_pude_event_func()
Dswitchx2.c1245 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sx->core); in mlxsw_sx_ports_create() local
1251 alloc_size = sizeof(struct mlxsw_sx_port *) * max_ports; in mlxsw_sx_ports_create()
1256 for (i = 1; i < max_ports; i++) { in mlxsw_sx_ports_create()
Dspectrum_ptp.c571 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp1_ptp_got_timestamp() local
576 if (WARN_ON_ONCE(local_port >= max_ports)) in mlxsw_sp1_ptp_got_timestamp()
Dspectrum_fid.c1121 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_fids_init() local
1138 fid_core->port_fid_mappings = kcalloc(max_ports, sizeof(unsigned int), in mlxsw_sp_fids_init()
Dspectrum_switchdev.c2413 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_fdb_notify_mac_process() local
2427 if (WARN_ON_ONCE(local_port >= max_ports)) in mlxsw_sp_fdb_notify_mac_process()
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/aspeed-vhub/
Dcore.c139 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_irq()
216 port_mask = GENMASK(vhub->max_ports, 1); in ast_vhub_init_hw()
272 for (i = 0; i < vhub->max_ports; i++) in ast_vhub_remove()
294 (vhub->max_ports + 1), in ast_vhub_remove()
315 &vhub->max_ports); in ast_vhub_probe()
317 vhub->max_ports = AST_VHUB_NUM_PORTS; in ast_vhub_probe()
319 vhub->ports = devm_kcalloc(&pdev->dev, vhub->max_ports, in ast_vhub_probe()
336 vhub->port_irq_mask = GENMASK(VHUB_IRQ_DEV1_BIT + vhub->max_ports - 1, in ast_vhub_probe()
388 (vhub->max_ports + 1), in ast_vhub_probe()
402 for (i = 0; i < vhub->max_ports && rc == 0; i++) in ast_vhub_probe()
Dhub.c549 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_wake_work()
632 if (port == 0 || port > vhub->max_ports) in ast_vhub_set_port_feature()
675 if (port == 0 || port > vhub->max_ports) in ast_vhub_clr_port_feature()
721 if (port == 0 || port > vhub->max_ports) in ast_vhub_get_port_stat()
802 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_hub_suspend()
825 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_hub_resume()
859 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_hub_reset()
1031 vhub->vhub_hub_desc.bNbrPorts = vhub->max_ports; in ast_vhub_init_desc()
Dvhub.h404 u32 max_ports; member
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
Dsdio.h124 (a->max_ports - \
247 u8 max_ports; member
280 u8 max_ports; member
324 if (((card->max_ports - card->mpa_rx.start_port) + in mp_rx_aggr_port_limit_reached()
350 if (((card->max_ports - card->mpa_tx.start_port) + in mp_tx_aggr_port_limit_reached()
Dsdio.c330 .max_ports = 16,
345 .max_ports = 16,
360 .max_ports = 16,
375 .max_ports = 32,
390 .max_ports = 32,
406 .max_ports = 32,
422 .max_ports = 32,
437 .max_ports = 32,
453 .max_ports = 16,
540 card->max_ports = data->max_ports; in mwifiex_sdio_probe()
[all …]
/kernel/linux/linux-5.10/drivers/net/dsa/
Dlantiq_gswip.c242 int max_ports; member
615 unsigned int max_ports = priv->hw_info->max_ports; in gswip_add_single_port_br() local
618 if (port >= max_ports) { in gswip_add_single_port_br()
793 for (i = 0; i < priv->hw_info->max_ports; i++) { in gswip_setup()
841 for (i = 0; i < priv->hw_info->max_ports; i++) in gswip_setup()
890 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_active_create() local
896 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_active_create()
948 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_unaware() local
956 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_unaware()
1010 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_aware() local
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
Dsh_css_mipi.c55 unsigned int max_ports = 0; in ia_css_mipi_is_source_port_valid() local
60 max_ports = N_CSI_PORTS; in ia_css_mipi_is_source_port_valid()
64 max_ports = N_CSS_TPG_IDS; in ia_css_mipi_is_source_port_valid()
68 max_ports = N_CSS_PRBS_IDS; in ia_css_mipi_is_source_port_valid()
77 assert(port < max_ports); in ia_css_mipi_is_source_port_valid()
79 if (port >= max_ports) in ia_css_mipi_is_source_port_valid()
/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci-hub.c1096 int max_ports; in xhci_hub_control() local
1111 max_ports = rhub->num_ports; in xhci_hub_control()
1146 if (!wIndex || wIndex > max_ports) in xhci_hub_control()
1189 if (!wIndex || wIndex > max_ports) in xhci_hub_control()
1443 if (!wIndex || wIndex > max_ports) in xhci_hub_control()
1538 int max_ports; in xhci_hub_status_data() local
1546 max_ports = rhub->num_ports; in xhci_hub_status_data()
1550 retval = (max_ports + 8) / 8; in xhci_hub_status_data()
1564 for (i = 0; i < max_ports; i++) { in xhci_hub_status_data()
1598 int max_ports, port_index; in xhci_bus_suspend() local
[all …]
Dxhci-ring.c1671 int max_ports; in handle_port_status() local
1684 max_ports = HCS_MAX_PORTS(xhci->hcs_params1); in handle_port_status()
1686 if ((port_id <= 0) || (port_id > max_ports)) { in handle_port_status()
Dxhci.h1763 u8 max_ports; member
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/ata/
Dlibata-core.c5400 struct ata_host *ata_host_alloc(struct device *dev, int max_ports) in ata_host_alloc() argument
5410 sz = sizeof(struct ata_host) + (max_ports + 1) * sizeof(void *); in ata_host_alloc()
5428 host->n_ports = max_ports; in ata_host_alloc()
5432 for (i = 0; i < max_ports; i++) { in ata_host_alloc()
/kernel/linux/linux-5.10/include/linux/
Dlibata.h1078 extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports);
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_dev.c4410 addr = global_addr + offsetof(struct public_global, max_ports); in qed_hw_info_port_num()
Dqed_hsi.h11922 u32 max_ports; member