max_ports 6124 drivers/ata/libata-core.c struct ata_host *ata_host_alloc(struct device *dev, int max_ports) max_ports 6134 drivers/ata/libata-core.c sz = sizeof(struct ata_host) + (max_ports + 1) * sizeof(void *); max_ports 6152 drivers/ata/libata-core.c host->n_ports = max_ports; max_ports 6156 drivers/ata/libata-core.c for (i = 0; i < max_ports; i++) { max_ports 222 drivers/net/dsa/lantiq_gswip.c int max_ports; max_ports 603 drivers/net/dsa/lantiq_gswip.c unsigned int max_ports = priv->hw_info->max_ports; max_ports 606 drivers/net/dsa/lantiq_gswip.c if (port >= max_ports) { max_ports 783 drivers/net/dsa/lantiq_gswip.c for (i = 0; i < priv->hw_info->max_ports; i++) { max_ports 854 drivers/net/dsa/lantiq_gswip.c unsigned int max_ports = priv->hw_info->max_ports; max_ports 860 drivers/net/dsa/lantiq_gswip.c for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { max_ports 912 drivers/net/dsa/lantiq_gswip.c unsigned int max_ports = priv->hw_info->max_ports; max_ports 920 drivers/net/dsa/lantiq_gswip.c for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { max_ports 974 drivers/net/dsa/lantiq_gswip.c unsigned int max_ports = priv->hw_info->max_ports; max_ports 983 drivers/net/dsa/lantiq_gswip.c for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { max_ports 1049 drivers/net/dsa/lantiq_gswip.c unsigned int max_ports = priv->hw_info->max_ports; max_ports 1056 drivers/net/dsa/lantiq_gswip.c for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { max_ports 1141 drivers/net/dsa/lantiq_gswip.c unsigned int max_ports = priv->hw_info->max_ports; max_ports 1144 drivers/net/dsa/lantiq_gswip.c int pos = max_ports; max_ports 1154 drivers/net/dsa/lantiq_gswip.c for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { max_ports 1857 drivers/net/dsa/lantiq_gswip.c priv->ds = dsa_switch_alloc(dev, priv->hw_info->max_ports); max_ports 1941 drivers/net/dsa/lantiq_gswip.c .max_ports = 7, max_ports 82 drivers/net/ethernet/mellanox/mlxsw/core.c unsigned int max_ports; max_ports 94 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_core->max_ports = MLXSW_CORE_RES_GET(mlxsw_core, max_ports 97 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_core->max_ports = MLXSW_PORT_MAX_PORTS_DEFAULT + 1; max_ports 99 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_core->ports = kcalloc(mlxsw_core->max_ports, max_ports 114 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_core->max_ports; max_ports 746 drivers/net/ethernet/mellanox/mlxsw/core.c if (port_index >= mlxsw_core->max_ports) { max_ports 762 drivers/net/ethernet/mellanox/mlxsw/core.c if (port_index >= mlxsw_core->max_ports) { max_ports 1791 drivers/net/ethernet/mellanox/mlxsw/core.c (local_port >= mlxsw_core->max_ports)) max_ports 27 drivers/net/ethernet/mellanox/mlxsw/minimal.c u8 max_ports; max_ports 243 drivers/net/ethernet/mellanox/mlxsw/minimal.c mlxsw_m->module_to_port[module] = ++mlxsw_m->max_ports; max_ports 255 drivers/net/ethernet/mellanox/mlxsw/minimal.c unsigned int max_ports = mlxsw_core_max_ports(mlxsw_m->core); max_ports 256 drivers/net/ethernet/mellanox/mlxsw/minimal.c u8 last_module = max_ports; max_ports 260 drivers/net/ethernet/mellanox/mlxsw/minimal.c mlxsw_m->ports = kcalloc(max_ports, sizeof(*mlxsw_m->ports), max_ports 265 drivers/net/ethernet/mellanox/mlxsw/minimal.c mlxsw_m->module_to_port = kmalloc_array(max_ports, sizeof(int), max_ports 273 drivers/net/ethernet/mellanox/mlxsw/minimal.c for (i = 0; i < max_ports; i++) max_ports 277 drivers/net/ethernet/mellanox/mlxsw/minimal.c for (i = 1; i < max_ports; i++) { max_ports 284 drivers/net/ethernet/mellanox/mlxsw/minimal.c for (i = 0; i < mlxsw_m->max_ports; i++) { max_ports 302 drivers/net/ethernet/mellanox/mlxsw/minimal.c i = max_ports; max_ports 316 drivers/net/ethernet/mellanox/mlxsw/minimal.c for (i = 0; i < mlxsw_m->max_ports; i++) { max_ports 3940 drivers/net/ethernet/mellanox/mlxsw/spectrum.c unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); max_ports 3946 drivers/net/ethernet/mellanox/mlxsw/spectrum.c alloc_size = sizeof(struct mlxsw_sp_port *) * max_ports; max_ports 3951 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp->port_to_module = kmalloc_array(max_ports, sizeof(int), max_ports 3962 drivers/net/ethernet/mellanox/mlxsw/spectrum.c for (i = 1; i < max_ports; i++) { max_ports 363 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); max_ports 368 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c mlxsw_sp->sb->ports = kcalloc(max_ports, max_ports 382 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c for (i = 0; i < max_ports; i++) { max_ports 401 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); max_ports 404 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c for (i = max_ports - 1; i >= 0; i--) max_ports 1256 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sp->core); max_ports 1273 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c fid_core->port_fid_mappings = kcalloc(max_ports, sizeof(unsigned int), max_ports 1266 drivers/net/ethernet/mellanox/mlxsw/switchx2.c unsigned int max_ports = mlxsw_core_max_ports(mlxsw_sx->core); max_ports 1272 drivers/net/ethernet/mellanox/mlxsw/switchx2.c alloc_size = sizeof(struct mlxsw_sx_port *) * max_ports; max_ports 1277 drivers/net/ethernet/mellanox/mlxsw/switchx2.c for (i = 1; i < max_ports; i++) { max_ports 4276 drivers/net/ethernet/qlogic/qed/qed_dev.c addr = global_addr + offsetof(struct public_global, max_ports); max_ports 12107 drivers/net/ethernet/qlogic/qed/qed_hsi.h u32 max_ports; max_ports 113 drivers/net/wireless/marvell/mwifiex/sdio.c card->max_ports = data->max_ports; max_ports 749 drivers/net/wireless/marvell/mwifiex/sdio.c if (++card->curr_rd_port == card->max_ports) max_ports 1390 drivers/net/wireless/marvell/mwifiex/sdio.c for (i = 0, port_count = 0; i < card->max_ports; i++) max_ports 1823 drivers/net/wireless/marvell/mwifiex/sdio.c for (i = 0, port_count = 0; i < card->max_ports; i++) max_ports 2208 drivers/net/wireless/marvell/mwifiex/sdio.c for (i = 1; i <= card->max_ports - card->mp_end_port; i++) max_ports 2210 drivers/net/wireless/marvell/mwifiex/sdio.c ~(1 << (card->max_ports - i)); max_ports 124 drivers/net/wireless/marvell/mwifiex/sdio.h (a->max_ports - \ max_ports 247 drivers/net/wireless/marvell/mwifiex/sdio.h u8 max_ports; max_ports 280 drivers/net/wireless/marvell/mwifiex/sdio.h u8 max_ports; max_ports 585 drivers/net/wireless/marvell/mwifiex/sdio.h .max_ports = 16, max_ports 600 drivers/net/wireless/marvell/mwifiex/sdio.h .max_ports = 16, max_ports 615 drivers/net/wireless/marvell/mwifiex/sdio.h .max_ports = 16, max_ports 630 drivers/net/wireless/marvell/mwifiex/sdio.h .max_ports = 32, max_ports 645 drivers/net/wireless/marvell/mwifiex/sdio.h .max_ports = 32, max_ports 661 drivers/net/wireless/marvell/mwifiex/sdio.h .max_ports = 32, max_ports 677 drivers/net/wireless/marvell/mwifiex/sdio.h .max_ports = 32, max_ports 692 drivers/net/wireless/marvell/mwifiex/sdio.h .max_ports = 32, max_ports 708 drivers/net/wireless/marvell/mwifiex/sdio.h .max_ports = 16, max_ports 751 drivers/net/wireless/marvell/mwifiex/sdio.h if (((card->max_ports - card->mpa_rx.start_port) + max_ports 777 drivers/net/wireless/marvell/mwifiex/sdio.h if (((card->max_ports - card->mpa_tx.start_port) + max_ports 1091 drivers/usb/host/xhci-hub.c int max_ports; max_ports 1106 drivers/usb/host/xhci-hub.c max_ports = rhub->num_ports; max_ports 1141 drivers/usb/host/xhci-hub.c if (!wIndex || wIndex > max_ports) max_ports 1184 drivers/usb/host/xhci-hub.c if (!wIndex || wIndex > max_ports) max_ports 1434 drivers/usb/host/xhci-hub.c if (!wIndex || wIndex > max_ports) max_ports 1529 drivers/usb/host/xhci-hub.c int max_ports; max_ports 1537 drivers/usb/host/xhci-hub.c max_ports = rhub->num_ports; max_ports 1541 drivers/usb/host/xhci-hub.c retval = (max_ports + 8) / 8; max_ports 1554 drivers/usb/host/xhci-hub.c for (i = 0; i < max_ports; i++) { max_ports 1588 drivers/usb/host/xhci-hub.c int max_ports, port_index; max_ports 1598 drivers/usb/host/xhci-hub.c max_ports = rhub->num_ports; max_ports 1617 drivers/usb/host/xhci-hub.c port_index = max_ports; max_ports 1687 drivers/usb/host/xhci-hub.c port_index = max_ports; max_ports 1743 drivers/usb/host/xhci-hub.c int max_ports, port_index; max_ports 1753 drivers/usb/host/xhci-hub.c max_ports = rhub->num_ports; max_ports 1776 drivers/usb/host/xhci-hub.c port_index = max_ports; max_ports 1588 drivers/usb/host/xhci-ring.c int max_ports; max_ports 1601 drivers/usb/host/xhci-ring.c max_ports = HCS_MAX_PORTS(xhci->hcs_params1); max_ports 1603 drivers/usb/host/xhci-ring.c if ((port_id <= 0) || (port_id > max_ports)) { max_ports 1759 drivers/usb/host/xhci.h u8 max_ports; max_ports 1094 include/linux/libata.h extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports); max_ports 1330 sound/soc/codecs/hdac_hdmi.c int max_ports = HDA_MAX_PORTS; max_ports 1339 sound/soc/codecs/hdac_hdmi.c ports = devm_kcalloc(&hdev->dev, max_ports, sizeof(*ports), GFP_KERNEL); max_ports 1343 sound/soc/codecs/hdac_hdmi.c for (i = 0; i < max_ports; i++) { max_ports 1349 sound/soc/codecs/hdac_hdmi.c pin->num_ports = max_ports;