| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H 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/wireless/marvell/mwifiex/ |
| H A 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()
|
| H A 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/drivers/net/ethernet/mellanox/mlxsw/ |
| H A 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()
|
| H A 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()
|
| H A D | spectrum.c | 1929 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_ports_remove() local 1932 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove() 1937 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove() 1951 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_core); in mlxsw_sp_ports_remove_selected() local 1954 for (i = 1; i < max_ports; i++) in mlxsw_sp_ports_remove_selected() 1961 unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); in mlxsw_sp_ports_create() local 1968 alloc_size = sizeof(struct mlxsw_sp_port *) * max_ports; in mlxsw_sp_ports_create() 1978 for (i = 1; i < max_ports; i++) { in mlxsw_sp_ports_create() 1988 for (i = 1; i < max_ports; i++) { in mlxsw_sp_ports_create() 2002 i = max_ports; in mlxsw_sp_ports_create() [all …]
|
| H A 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()
|
| /linux/drivers/usb/host/ |
| H A D | xhci-hub.c | 1209 int max_ports; in xhci_hub_control() local 1225 max_ports = rhub->num_ports; in xhci_hub_control() 1261 if (!portnum1 || portnum1 > max_ports) in xhci_hub_control() 1307 if (!portnum1 || portnum1 > max_ports) in xhci_hub_control() 1553 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 …]
|
| H A D | xhci-mem.c | 1920 for (i = 0; i < xhci->max_ports && xhci->rh_bw; i++) { in xhci_mem_cleanup() 1965 for (i = 0; i < xhci->max_ports; i++) { in xhci_mem_cleanup() 2166 for (i = 0; i < xhci->max_ports; i++) { in xhci_create_rhub_port_array() 2194 xhci->hw_ports = kcalloc_node(xhci->max_ports, sizeof(*xhci->hw_ports), in xhci_setup_port_arrays() 2199 for (i = 0; i < xhci->max_ports; i++) { in xhci_setup_port_arrays() 2207 xhci->rh_bw = kcalloc_node(xhci->max_ports, sizeof(*xhci->rh_bw), flags, dev_to_node(dev)); in xhci_setup_port_arrays() 2210 for (i = 0; i < xhci->max_ports; i++) { in xhci_setup_port_arrays() 2242 xhci_add_in_port(xhci, xhci->max_ports, base + offset, cap_count); in xhci_setup_port_arrays() 2243 if (xhci->usb2_rhub.num_ports + xhci->usb3_rhub.num_ports == xhci->max_ports) in xhci_setup_port_arrays()
|
| H A D | xhci-debugfs.c | 655 for (int i = 0; i < xhci->max_ports; i++) { in xhci_debugfs_create_ports() 691 for (i = 1; i <= xhci->max_ports; i++) in xhci_port_bw_show()
|
| H A D | xhci-pci.c | 899 for (i = 0; i < xhci->max_ports; i++) { in xhci_pci_poweroff_late()
|
| H A D | xhci.h | 1522 u8 max_ports; member
|
| H A D | xhci-ring.c | 2010 if ((port_id <= 0) || (port_id > xhci->max_ports)) { in handle_port_status()
|
| H A D | xhci.c | 5449 xhci->max_ports = min(HCS_MAX_PORTS(hcs_params1), MAX_HC_PORTS); in xhci_gen_setup()
|
| /linux/drivers/net/wwan/ |
| H A D | wwan_core.c | 406 const unsigned int max_ports = PAGE_SIZE * 8; in __wwan_port_dev_assign_name() local 413 idmap = bitmap_zalloc(max_ports, GFP_KERNEL); in __wwan_port_dev_assign_name() 424 if (id < 0 || id >= max_ports) in __wwan_port_dev_assign_name() 431 id = find_first_zero_bit(idmap, max_ports); in __wwan_port_dev_assign_name()
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | bridge_mdb.sh | 748 local max_ports=32 760 for j in $(seq 1 $max_ports); do 769 for j in $(seq 1 $max_ports); do 783 [[ $num_entries -eq $((max_grps * max_ports)) ]] 791 for j in $(seq $max_ports); do
|
| /linux/drivers/usb/gadget/udc/aspeed-vhub/ |
| H A D | vhub.h | 404 u32 max_ports; member
|
| /linux/sound/soc/codecs/ |
| H A D | hdac_hdmi.c | 1348 int max_ports = HDA_MAX_PORTS; in hdac_hdmi_add_ports() 1357 ports = devm_kcalloc(&hdev->dev, max_ports, sizeof(*ports), GFP_KERNEL); in hdac_hdmi_add_ports() 1361 for (i = 0; i < max_ports; i++) { in hdac_hdmi_add_ports() 1367 pin->num_ports = max_ports; in hdac_hdmi_add_pin() 1342 int max_ports = HDA_MAX_PORTS; hdac_hdmi_add_ports() local
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_mfw_hsi.h | 502 u32 max_ports; member
|
| H A D | qed_dev.c | 4488 addr = global_addr + offsetof(struct public_global, max_ports); in qed_hw_info_port_num()
|