Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dminimal.c35 u8 max_ports; member
294 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_port_module_map() local
311 if (WARN_ON_ONCE(module >= max_ports)) in mlxsw_m_port_module_map()
314 mlxsw_m->module_to_port[module] = ++mlxsw_m->max_ports; in mlxsw_m_port_module_map()
328 u8 last_module = max_ports; in mlxsw_m_ports_create()
332 mlxsw_m->ports = kcalloc(max_ports, sizeof(*mlxsw_m->ports), in mlxsw_m_ports_create()
345 for (i = 0; i < max_ports; i++) in mlxsw_m_ports_create()
349 for (i = 1; i < max_ports; i++) { in mlxsw_m_ports_create()
356 for (i = 0; i < mlxsw_m->max_ports; i++) { in mlxsw_m_ports_create()
375 i = max_ports; in mlxsw_m_ports_create()
[all …]
A Dcore.c86 unsigned int max_ports; member
110 u32 max_ports; in mlxsw_core_resources_ports_register() local
112 max_ports = mlxsw_core->max_ports - 1; in mlxsw_core_resources_ports_register()
114 max_ports, 1, in mlxsw_core_resources_ports_register()
119 max_ports, MLXSW_CORE_RESOURCE_PORTS, in mlxsw_core_resources_ports_register()
131 mlxsw_core->max_ports = MLXSW_CORE_RES_GET(mlxsw_core, in mlxsw_ports_init()
136 mlxsw_core->ports = kcalloc(mlxsw_core->max_ports, in mlxsw_ports_init()
170 return mlxsw_core->max_ports; in mlxsw_core_max_ports()
1218 if (port_index >= mlxsw_core->max_ports) { in mlxsw_devlink_port_split()
1234 if (port_index >= mlxsw_core->max_ports) { in mlxsw_devlink_port_unsplit()
[all …]
A 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()
A Dspectrum.c1877 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_ports_create() local
1883 alloc_size = sizeof(struct mlxsw_sp_port *) * max_ports; in mlxsw_sp_ports_create()
1892 for (i = 1; i < max_ports; i++) { in mlxsw_sp_ports_create()
1915 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_port_module_info_init() local
1920 mlxsw_sp->port_mapping = kcalloc(max_ports, in mlxsw_sp_port_module_info_init()
1926 for (i = 1; i < max_ports; i++) { in mlxsw_sp_port_module_info_init()
2150 unsigned int max_ports; in mlxsw_sp_pude_event_func() local
2153 max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_pude_event_func()
2156 if (WARN_ON_ONCE(!local_port || local_port >= max_ports)) in mlxsw_sp_pude_event_func()
A 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()
A 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()
A Dspectrum_switchdev.c2532 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_fdb_notify_mac_process() local
2546 if (WARN_ON_ONCE(local_port >= max_ports)) in mlxsw_sp_fdb_notify_mac_process()
/linux/drivers/usb/gadget/udc/aspeed-vhub/
A 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()
A Dhub.c544 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_wake_work()
627 if (port == 0 || port > vhub->max_ports) in ast_vhub_set_port_feature()
670 if (port == 0 || port > vhub->max_ports) in ast_vhub_clr_port_feature()
716 if (port == 0 || port > vhub->max_ports) in ast_vhub_get_port_stat()
797 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_hub_suspend()
820 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_hub_resume()
854 for (i = 0; i < vhub->max_ports; i++) { in ast_vhub_hub_reset()
1026 vhub->vhub_hub_desc.bNbrPorts = vhub->max_ports; in ast_vhub_init_desc()
A Dvhub.h404 u32 max_ports; member
/linux/tools/testing/selftests/drivers/net/mlxsw/
A 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/drivers/net/dsa/
A Dlantiq_gswip.c243 int max_ports; member
634 unsigned int max_ports = priv->hw_info->max_ports; in gswip_add_single_port_br() local
637 if (port >= max_ports) { in gswip_add_single_port_br()
900 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_active_create() local
958 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_unaware() local
1020 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_aware() local
1095 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_remove() local
1188 unsigned int max_ports = priv->hw_info->max_ports; in gswip_port_vlan_prepare() local
1189 int pos = max_ports; in gswip_port_vlan_prepare()
2237 .max_ports = 7,
[all …]
/linux/drivers/net/wireless/marvell/mwifiex/
A Dsdio.h122 (a->max_ports - \
245 u8 max_ports; member
278 u8 max_ports; member
322 if (((card->max_ports - card->mpa_rx.start_port) + in mp_rx_aggr_port_limit_reached()
348 if (((card->max_ports - card->mpa_tx.start_port) + in mp_tx_aggr_port_limit_reached()
A 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 …]
/linux/drivers/staging/media/atomisp/pci/
A Dsh_css_mipi.c44 unsigned int max_ports = 0; in ia_css_mipi_is_source_port_valid() local
49 max_ports = N_CSI_PORTS; in ia_css_mipi_is_source_port_valid()
53 max_ports = N_CSS_TPG_IDS; in ia_css_mipi_is_source_port_valid()
57 max_ports = N_CSS_PRBS_IDS; in ia_css_mipi_is_source_port_valid()
66 assert(port < max_ports); in ia_css_mipi_is_source_port_valid()
68 if (port >= max_ports) in ia_css_mipi_is_source_port_valid()
/linux/drivers/usb/host/
A Dxhci-hub.c1182 int max_ports; in xhci_hub_control() local
1197 max_ports = rhub->num_ports; in xhci_hub_control()
1624 int max_ports; in xhci_hub_status_data() local
1632 max_ports = rhub->num_ports; in xhci_hub_status_data()
1685 int max_ports, port_index; in xhci_bus_suspend() local
1695 max_ports = rhub->num_ports; in xhci_bus_suspend()
1715 port_index = max_ports; in xhci_bus_suspend()
1786 port_index = max_ports; in xhci_bus_suspend()
1846 int max_ports, port_index; in xhci_bus_resume() local
1856 max_ports = rhub->num_ports; in xhci_bus_resume()
[all …]
A Dxhci-ring.c1905 int max_ports; in handle_port_status() local
1918 max_ports = HCS_MAX_PORTS(xhci->hcs_params1); in handle_port_status()
1920 if ((port_id <= 0) || (port_id > max_ports)) { in handle_port_status()
A Dxhci.h1776 u8 max_ports; member
/linux/drivers/net/wwan/
A Dwwan_core.c316 const unsigned int max_ports = PAGE_SIZE * 8; in __wwan_port_dev_assign_name() local
334 if (id < 0 || id >= max_ports) in __wwan_port_dev_assign_name()
341 id = find_first_zero_bit(idmap, max_ports); in __wwan_port_dev_assign_name()
/linux/sound/soc/codecs/
A 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/drivers/ata/
A Dlibata-core.c5489 struct ata_host *ata_host_alloc(struct device *dev, int max_ports) in ata_host_alloc() argument
5499 sz = sizeof(struct ata_host) + (max_ports + 1) * sizeof(void *); in ata_host_alloc()
5517 host->n_ports = max_ports; in ata_host_alloc()
5521 for (i = 0; i < max_ports; i++) { in ata_host_alloc()
/linux/include/linux/
A Dlibata.h1099 extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports);
/linux/drivers/net/ethernet/qlogic/qed/
A Dqed_mfw_hsi.h502 u32 max_ports; member
A Dqed_dev.c4504 addr = global_addr + offsetof(struct public_global, max_ports); in qed_hw_info_port_num()

Completed in 134 milliseconds