/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | minimal.c | 35 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 D | core.c | 86 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 D | spectrum_buffers.c | 627 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 D | spectrum.c | 1877 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 D | spectrum_fid.c | 1121 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 D | spectrum_ptp.c | 571 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 D | spectrum_switchdev.c | 2532 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 D | core.c | 134 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 D | hub.c | 544 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 D | vhub.h | 404 u32 max_ports; member
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
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)"
|
/linux/drivers/net/dsa/ |
A D | lantiq_gswip.c | 243 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 D | sdio.h | 122 (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 D | sdio.c | 330 .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 D | sh_css_mipi.c | 44 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 D | xhci-hub.c | 1182 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 D | xhci-ring.c | 1905 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 D | xhci.h | 1776 u8 max_ports; member
|
/linux/drivers/net/wwan/ |
A D | wwan_core.c | 316 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 D | hdac_hdmi.c | 1335 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 D | libata-core.c | 5489 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 D | libata.h | 1099 extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports);
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A D | qed_mfw_hsi.h | 502 u32 max_ports; member
|
A D | qed_dev.c | 4504 addr = global_addr + offsetof(struct public_global, max_ports); in qed_hw_info_port_num()
|