/Linux-v6.6/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-v6.6/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-v6.6/drivers/net/dsa/ |
D | lantiq_gswip.c | 253 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-v6.6/drivers/net/wireless/marvell/mwifiex/ |
D | sdio.h | 112 (a->max_ports - \ 239 u8 max_ports; member 273 u8 max_ports; member 317 if (((card->max_ports - card->mpa_rx.start_port) + in mp_rx_aggr_port_limit_reached() 343 if (((card->max_ports - card->mpa_tx.start_port) + in mp_tx_aggr_port_limit_reached()
|
D | sdio.c | 324 .max_ports = 16, 339 .max_ports = 16, 354 .max_ports = 16, 369 .max_ports = 32, 384 .max_ports = 32, 400 .max_ports = 32, 417 .max_ports = 32, 433 .max_ports = 32, 448 .max_ports = 32, 464 .max_ports = 16, [all …]
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/ |
D | minimal.c | 39 u8 max_ports; member 322 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_port_module_map() local 343 if (WARN_ON_ONCE(module >= max_ports)) in mlxsw_m_port_module_map() 363 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_linecards_init() local 386 mlxsw_m->ports = kcalloc(max_ports, sizeof(*mlxsw_m->ports), in mlxsw_m_linecards_init() 503 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); in mlxsw_m_ports_module_map() local 504 u8 last_module = max_ports; in mlxsw_m_ports_module_map() 507 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_buffers.c | 642 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()
|
D | spectrum.c | 2082 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_ports_remove() local 2085 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove() 2090 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove() 2104 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_core); in mlxsw_sp_ports_remove_selected() local 2107 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove_selected() 2114 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_ports_create() local 2121 alloc_size = sizeof(struct mlxsw_sp_port *) * max_ports; in mlxsw_sp_ports_create() 2131 for (i = 1; i < max_ports; i++) { in mlxsw_sp_ports_create() 2141 for (i = 1; i < max_ports; i++) { in mlxsw_sp_ports_create() 2155 i = max_ports; in mlxsw_sp_ports_create() [all …]
|
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()
|
D | spectrum_fid.c | 1803 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_fids_init() local 1820 fid_core->port_fid_mappings = kcalloc(max_ports, sizeof(unsigned int), in mlxsw_sp_fids_init()
|
/Linux-v6.6/drivers/usb/host/ |
D | xhci-hub.c | 1201 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() 1550 if (!portnum1 || portnum1 > max_ports) in xhci_hub_control() 1646 int max_ports; in xhci_hub_status_data() local 1654 max_ports = rhub->num_ports; in xhci_hub_status_data() 1658 retval = (max_ports + 8) / 8; in xhci_hub_status_data() 1683 for (i = 0; i < max_ports; i++) { in xhci_hub_status_data() 1718 int max_ports, port_index; in xhci_bus_suspend() local [all …]
|
D | xhci-ring.c | 1864 int max_ports; in handle_port_status() local 1877 max_ports = HCS_MAX_PORTS(xhci->hcs_params1); in handle_port_status() 1879 if ((port_id <= 0) || (port_id > max_ports)) { in handle_port_status()
|
D | xhci.h | 1783 u8 max_ports; member
|
/Linux-v6.6/drivers/net/wwan/ |
D | wwan_core.c | 391 const unsigned int max_ports = PAGE_SIZE * 8; in __wwan_port_dev_assign_name() local 409 if (id < 0 || id >= max_ports) in __wwan_port_dev_assign_name() 416 id = find_first_zero_bit(idmap, max_ports); in __wwan_port_dev_assign_name()
|
/Linux-v6.6/tools/testing/selftests/net/forwarding/ |
D | bridge_mdb.sh | 781 local max_ports=32 793 for j in $(seq 1 $max_ports); do 802 for j in $(seq 1 $max_ports); do 816 [[ $num_entries -eq $((max_grps * max_ports)) ]] 824 for j in $(seq $max_ports); do
|
/Linux-v6.6/tools/testing/selftests/drivers/net/dsa/ |
D | bridge_mdb.sh | 781 local max_ports=32 793 for j in $(seq 1 $max_ports); do 802 for j in $(seq 1 $max_ports); do 816 [[ $num_entries -eq $((max_grps * max_ports)) ]] 824 for j in $(seq $max_ports); do
|
/Linux-v6.6/sound/soc/codecs/ |
D | hdac_hdmi.c | 1340 int max_ports = HDA_MAX_PORTS; in hdac_hdmi_add_ports() local 1349 ports = devm_kcalloc(&hdev->dev, max_ports, sizeof(*ports), GFP_KERNEL); in hdac_hdmi_add_ports() 1353 for (i = 0; i < max_ports; i++) { in hdac_hdmi_add_ports() 1359 pin->num_ports = max_ports; in hdac_hdmi_add_ports()
|
/Linux-v6.6/drivers/ata/ |
D | libata-core.c | 5566 struct ata_host *ata_host_alloc(struct device *dev, int max_ports) in ata_host_alloc() argument 5574 sz = sizeof(struct ata_host) + (max_ports + 1) * sizeof(void *); in ata_host_alloc() 5592 host->n_ports = max_ports; in ata_host_alloc() 5596 for (i = 0; i < max_ports; i++) { in ata_host_alloc()
|
/Linux-v6.6/include/linux/ |
D | libata.h | 1071 extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports);
|
/Linux-v6.6/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()
|