/linux-6.12.1/drivers/usb/gadget/udc/aspeed-vhub/ |
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()
|
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()
|
D | vhub.h | 404 u32 max_ports; member
|
/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/ |
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-6.12.1/drivers/net/dsa/ |
D | lantiq_gswip.c | 255 int max_ports; member 817 for (i = 0; i < priv->hw_info->max_ports; i++) { in gswip_setup() 858 for (i = 0; i < priv->hw_info->max_ports; i++) in gswip_setup() 906 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_active_create() local 912 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_active_create() 964 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_unaware() local 972 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_unaware() 1026 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_aware() local 1035 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_aware() 1101 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_remove() local [all …]
|
/linux-6.12.1/drivers/net/wireless/marvell/mwifiex/ |
D | sdio.h | 112 (a->max_ports - \ 236 u8 max_ports; member 272 u8 max_ports; member 318 if (((card->max_ports - card->mpa_rx.start_port) + in mp_rx_aggr_port_limit_reached() 344 if (((card->max_ports - card->mpa_tx.start_port) + in mp_tx_aggr_port_limit_reached()
|
D | sdio.c | 324 .max_ports = 16, 341 .max_ports = 16, 358 .max_ports = 16, 375 .max_ports = 32, 392 .max_ports = 32, 410 .max_ports = 32, 429 .max_ports = 32, 447 .max_ports = 32, 464 .max_ports = 32, 482 .max_ports = 16, [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | minimal.c | 39 u8 max_ports; member 337 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_port_module_map() local 358 if (WARN_ON_ONCE(module >= max_ports)) in mlxsw_m_port_module_map() 378 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_linecards_init() local 401 mlxsw_m->ports = kcalloc(max_ports, sizeof(*mlxsw_m->ports), in mlxsw_m_linecards_init() 518 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_ports_module_map() local 519 u8 last_module = max_ports; in mlxsw_m_ports_module_map() 522 for (i = 1; i < max_ports; i++) { in mlxsw_m_ports_module_map()
|
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 …]
|
D | spectrum_fid.c | 398 unsigned int max_ports; in mlxsw_sp_fid_rfid_pgt_size_cff() local 403 max_ports = mlxsw_core_max_ports(core); in mlxsw_sp_fid_rfid_pgt_size_cff() 409 pgt_size = (mlxsw_sp_fid_rfid_port_offset_cff(max_ports) + max_lags) * in mlxsw_sp_fid_rfid_pgt_size_cff() 571 u16 max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_fid_rfid_fid_offset_cff() local 574 return mlxsw_sp_fid_rfid_port_offset_cff(max_ports) + in mlxsw_sp_fid_rfid_fid_offset_cff() 2294 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_fids_init() local 2311 fid_core->port_fid_mappings = kcalloc(max_ports, sizeof(unsigned int), in mlxsw_sp_fids_init()
|
D | spectrum.c | 2061 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_ports_remove() local 2064 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove() 2069 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove() 2083 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_core); in mlxsw_sp_ports_remove_selected() local 2086 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove_selected() 2093 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_ports_create() local 2100 alloc_size = sizeof(struct mlxsw_sp_port *) * max_ports; in mlxsw_sp_ports_create() 2110 for (i = 1; i < max_ports; i++) { in mlxsw_sp_ports_create() 2120 for (i = 1; i < max_ports; i++) { in mlxsw_sp_ports_create() 2134 i = max_ports; in mlxsw_sp_ports_create() [all …]
|
D | spectrum_buffers.c | 646 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_sb_ports_init() local 651 mlxsw_sp->sb->ports = kcalloc(max_ports, in mlxsw_sp_sb_ports_init() 665 for (i = 0; i < max_ports; i++) { in mlxsw_sp_sb_ports_init() 684 int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_sb_ports_fini() local 687 for (i = max_ports - 1; i >= 0; i--) in mlxsw_sp_sb_ports_fini()
|
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()
|
/linux-6.12.1/drivers/usb/host/ |
D | xhci-hub.c | 1202 int max_ports; in xhci_hub_control() local 1218 max_ports = rhub->num_ports; in xhci_hub_control() 1254 if (!portnum1 || portnum1 > max_ports) in xhci_hub_control() 1300 if (!portnum1 || portnum1 > max_ports) in xhci_hub_control() 1546 if (!portnum1 || portnum1 > max_ports) in xhci_hub_control() 1640 int max_ports; in xhci_hub_status_data() local 1648 max_ports = rhub->num_ports; in xhci_hub_status_data() 1652 retval = (max_ports + 8) / 8; in xhci_hub_status_data() 1677 for (i = 0; i < max_ports; i++) { in xhci_hub_status_data() 1712 int max_ports, port_index; in xhci_bus_suspend() local [all …]
|
D | xhci-ring.c | 1899 int max_ports; in handle_port_status() local 1911 max_ports = HCS_MAX_PORTS(xhci->hcs_params1); in handle_port_status() 1913 if ((port_id <= 0) || (port_id > max_ports)) { in handle_port_status()
|
/linux-6.12.1/drivers/net/wwan/ |
D | wwan_core.c | 398 const unsigned int max_ports = PAGE_SIZE * 8; in __wwan_port_dev_assign_name() local 405 idmap = bitmap_zalloc(max_ports, GFP_KERNEL); in __wwan_port_dev_assign_name() 416 if (id < 0 || id >= max_ports) in __wwan_port_dev_assign_name() 423 id = find_first_zero_bit(idmap, max_ports); in __wwan_port_dev_assign_name()
|
/linux-6.12.1/tools/testing/selftests/net/forwarding/ |
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
|
/linux-6.12.1/sound/soc/codecs/ |
D | hdac_hdmi.c | 1343 int max_ports = HDA_MAX_PORTS; in hdac_hdmi_add_ports() local 1352 ports = devm_kcalloc(&hdev->dev, max_ports, sizeof(*ports), GFP_KERNEL); in hdac_hdmi_add_ports() 1356 for (i = 0; i < max_ports; i++) { in hdac_hdmi_add_ports() 1362 pin->num_ports = max_ports; in hdac_hdmi_add_ports()
|
/linux-6.12.1/drivers/net/ethernet/qlogic/qed/ |
D | qed_mfw_hsi.h | 502 u32 max_ports; member
|
D | qed_dev.c | 4507 addr = global_addr + offsetof(struct public_global, max_ports); in qed_hw_info_port_num()
|