num_ports 190 arch/arm/mach-cns3xxx/cns3420vb.c .num_ports = 1, num_ports 341 arch/arm/mach-cns3xxx/core.c .num_ports = 1, num_ports 313 arch/mips/bcm63xx/dev-enet.c enetsw_pd.num_ports = ENETSW_PORTS_6328; num_ports 315 arch/mips/bcm63xx/dev-enet.c enetsw_pd.num_ports = ENETSW_PORTS_6368; num_ports 51 arch/mips/cavium-octeon/executive/cvmx-helper-loop.c int num_ports = 4; num_ports 56 arch/mips/cavium-octeon/executive/cvmx-helper-loop.c for (port = 0; port < num_ports; port++) { num_ports 69 arch/mips/cavium-octeon/executive/cvmx-helper-loop.c return num_ports; num_ports 96 arch/mips/cavium-octeon/executive/cvmx-helper-npi.c int num_ports = cvmx_helper_ports_on_interface(interface); num_ports 98 arch/mips/cavium-octeon/executive/cvmx-helper-npi.c for (port = 0; port < num_ports; port++) { num_ports 54 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c int num_ports = 0; num_ports 70 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c num_ports = 2; num_ports 78 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c num_ports = 4; num_ports 82 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c num_ports = 3; num_ports 88 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c return num_ports; num_ports 161 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c int num_ports = cvmx_helper_ports_on_interface(interface); num_ports 179 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c asx_tx.s.prt_en = cvmx_build_mask(num_ports); num_ports 183 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c asx_rx.s.prt_en = cvmx_build_mask(num_ports); num_ports 187 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c for (port = 0; port < num_ports; port++) { num_ports 236 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c __cvmx_helper_setup_gmx(interface, num_ports); num_ports 239 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c for (port = 0; port < num_ports; port++) { num_ports 307 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c static int __cvmx_helper_sgmii_hardware_init(int interface, int num_ports) num_ports 311 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c __cvmx_helper_setup_gmx(interface, num_ports); num_ports 313 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c for (index = 0; index < num_ports; index++) { num_ports 368 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c int num_ports = cvmx_helper_ports_on_interface(interface); num_ports 371 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c __cvmx_helper_sgmii_hardware_init(interface, num_ports); num_ports 373 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c for (index = 0; index < num_ports; index++) { num_ports 73 arch/mips/cavium-octeon/executive/cvmx-helper-spi.c int num_ports = 0; num_ports 77 arch/mips/cavium-octeon/executive/cvmx-helper-spi.c num_ports = 10; num_ports 80 arch/mips/cavium-octeon/executive/cvmx-helper-spi.c num_ports = 16; num_ports 91 arch/mips/cavium-octeon/executive/cvmx-helper-spi.c __cvmx_helper_setup_gmx(interface, num_ports); num_ports 92 arch/mips/cavium-octeon/executive/cvmx-helper-spi.c return num_ports; num_ports 111 arch/mips/cavium-octeon/executive/cvmx-helper-spi.c int num_ports = cvmx_helper_ports_on_interface(interface); num_ports 113 arch/mips/cavium-octeon/executive/cvmx-helper-spi.c for (ipd_port = interface * 16; ipd_port < interface * 16 + num_ports; num_ports 123 arch/mips/cavium-octeon/executive/cvmx-helper-spi.c CVMX_HELPER_SPI_TIMEOUT, num_ports); num_ports 180 arch/mips/cavium-octeon/executive/cvmx-helper-util.c int __cvmx_helper_setup_gmx(int interface, int num_ports) num_ports 190 arch/mips/cavium-octeon/executive/cvmx-helper-util.c gmx_tx_prts.s.prts = num_ports; num_ports 203 arch/mips/cavium-octeon/executive/cvmx-helper-util.c if (num_ports > 4) { num_ports 210 arch/mips/cavium-octeon/executive/cvmx-helper-util.c gmx_rx_prts.s.prts = num_ports; num_ports 220 arch/mips/cavium-octeon/executive/cvmx-helper-util.c if (num_ports == 1) num_ports 222 arch/mips/cavium-octeon/executive/cvmx-helper-util.c else if (num_ports == 2) num_ports 224 arch/mips/cavium-octeon/executive/cvmx-helper-util.c else if (num_ports <= 4) num_ports 226 arch/mips/cavium-octeon/executive/cvmx-helper-util.c else if (num_ports <= 8) num_ports 231 arch/mips/cavium-octeon/executive/cvmx-helper-util.c if (num_ports == 1) num_ports 233 arch/mips/cavium-octeon/executive/cvmx-helper-util.c else if (num_ports == 2) num_ports 235 arch/mips/cavium-octeon/executive/cvmx-helper-util.c else if (num_ports <= 4) num_ports 237 arch/mips/cavium-octeon/executive/cvmx-helper-util.c else if (num_ports <= 8) num_ports 259 arch/mips/cavium-octeon/executive/cvmx-helper-util.c if (num_ports <= 1) num_ports 261 arch/mips/cavium-octeon/executive/cvmx-helper-util.c else if (num_ports == 2) num_ports 270 arch/mips/cavium-octeon/executive/cvmx-helper-util.c if (num_ports > 4) num_ports 271 arch/mips/cavium-octeon/executive/cvmx-helper-util.c num_ports = 4; num_ports 272 arch/mips/cavium-octeon/executive/cvmx-helper-util.c for (index = 0; index < num_ports; index++) num_ports 562 arch/mips/cavium-octeon/executive/cvmx-helper.c int num_ports = interface_port_count[interface]; num_ports 564 arch/mips/cavium-octeon/executive/cvmx-helper.c while (num_ports--) { num_ports 625 arch/mips/cavium-octeon/executive/cvmx-helper.c int num_ports = interface_port_count[interface]; num_ports 626 arch/mips/cavium-octeon/executive/cvmx-helper.c while (num_ports--) { num_ports 80 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c int num_ports; num_ports 89 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c num_ports = 1; num_ports 93 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c num_ports = 4; num_ports 96 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c num_ports = 0; num_ports 100 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c num_ports = 0; num_ports 111 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c num_ports = 1; num_ports 113 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c num_ports = 4; num_ports 121 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c num_ports = 2; num_ports 123 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c num_ports = 3; num_ports 126 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c num_ports = 0; num_ports 130 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c if (num_ports) { num_ports 136 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c gmx_tx_int_en.s.undflw = (1 << num_ports) - 1; num_ports 138 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c for (index = 0; index < num_ports; index++) num_ports 106 arch/mips/cavium-octeon/executive/cvmx-spi.c int num_ports) num_ports 118 arch/mips/cavium-octeon/executive/cvmx-spi.c num_ports); num_ports 312 arch/mips/cavium-octeon/executive/cvmx-spi.c int num_ports) num_ports 322 arch/mips/cavium-octeon/executive/cvmx-spi.c srxx_com_ctl.s.prts = num_ports - 1; num_ports 330 arch/mips/cavium-octeon/executive/cvmx-spi.c while (port < num_ports) { num_ports 344 arch/mips/cavium-octeon/executive/cvmx-spi.c srxx_spi4_stat.s.len = num_ports; num_ports 393 arch/mips/cavium-octeon/executive/cvmx-spi.c while (port < num_ports) { num_ports 407 arch/mips/cavium-octeon/executive/cvmx-spi.c stxx_spi4_stat.s.len = num_ports; num_ports 86 arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h int num_ports; num_ports 78 arch/mips/include/asm/octeon/cvmx-helper-util.h extern int __cvmx_helper_setup_gmx(int interface, int num_ports); num_ports 2060 arch/mips/include/asm/octeon/cvmx-pko-defs.h uint64_t num_ports:4; num_ports 2062 arch/mips/include/asm/octeon/cvmx-pko-defs.h uint64_t num_ports:4; num_ports 53 arch/mips/include/asm/octeon/cvmx-spi.h int num_ports); num_ports 98 arch/mips/include/asm/octeon/cvmx-spi.h int timeout, int num_ports); num_ports 201 arch/mips/include/asm/octeon/cvmx-spi.h int num_ports); num_ports 1287 drivers/ata/sata_mv.c int start_port, num_ports, p, start_hc, num_hcs, hc; num_ports 1291 drivers/ata/sata_mv.c num_ports = 8; /* shld be benign for 4 port devs */ num_ports 1296 drivers/ata/sata_mv.c num_ports = num_hcs = 1; num_ports 1299 drivers/ata/sata_mv.c num_ports > 1 ? num_ports - 1 : start_port); num_ports 1315 drivers/ata/sata_mv.c for (p = start_port; p < start_port + num_ports; p++) { num_ports 22 drivers/char/ipmi/ipmi_si_hardcode.c static unsigned int num_ports; num_ports 44 drivers/char/ipmi/ipmi_si_hardcode.c module_param_hw_array(ports, uint, ioport, &num_ports, 0); num_ports 140 drivers/char/ipmi/ipmi_si_hardcode.c if (i < num_ports && ports[i]) num_ports 164 drivers/char/ipmi/ipmi_si_hardcode.c for (i = 0; i < num_ports; i++) { num_ports 185 drivers/extcon/extcon-usbc-cros-ec.c return resp.num_ports; num_ports 107 drivers/firewire/init_ohci1394_dma.c int num_ports, i; num_ports 156 drivers/firewire/init_ohci1394_dma.c num_ports = get_phy_reg(ohci, 2) & 0xf; num_ports 157 drivers/firewire/init_ohci1394_dma.c for (i = 0; i < num_ports; i++) { num_ports 90 drivers/gpio/gpio-ml-ioh.c static const int num_ports[] = {6, 12, 16, 16, 15, 16, 16, 12}; num_ports 126 drivers/gpio/gpio-ml-ioh.c ((1 << num_ports[chip->ch]) - 1); num_ports 150 drivers/gpio/gpio-ml-ioh.c ((1 << num_ports[chip->ch]) - 1); num_ports 359 drivers/gpio/gpio-ml-ioh.c for (j = 0; j < num_ports[i]; j++) { num_ports 445 drivers/gpio/gpio-ml-ioh.c ioh_gpio_setup(chip, num_ports[i]); num_ports 456 drivers/gpio/gpio-ml-ioh.c num_ports[j], NUMA_NO_NODE); num_ports 466 drivers/gpio/gpio-ml-ioh.c irq_base, num_ports[j]); num_ports 54 drivers/gpio/gpio-tegra186.c unsigned int num_ports; num_ports 74 drivers/gpio/gpio-tegra186.c for (i = 0; i < gpio->soc->num_ports; i++) { num_ports 223 drivers/gpio/gpio-tegra186.c if (port >= gpio->soc->num_ports) { num_ports 343 drivers/gpio/gpio-tegra186.c for (i = 0; i < gpio->soc->num_ports; i++) { num_ports 385 drivers/gpio/gpio-tegra186.c if (port >= gpio->soc->num_ports) { num_ports 455 drivers/gpio/gpio-tegra186.c for (i = 0; i < gpio->soc->num_ports; i++) num_ports 463 drivers/gpio/gpio-tegra186.c for (i = 0, offset = 0; i < gpio->soc->num_ports; i++) { num_ports 506 drivers/gpio/gpio-tegra186.c for (i = 0, offset = 0; i < gpio->soc->num_ports; i++) { num_ports 564 drivers/gpio/gpio-tegra186.c .num_ports = ARRAY_SIZE(tegra186_main_ports), num_ports 589 drivers/gpio/gpio-tegra186.c .num_ports = ARRAY_SIZE(tegra186_aon_ports), num_ports 634 drivers/gpio/gpio-tegra186.c .num_ports = ARRAY_SIZE(tegra194_main_ports), num_ports 656 drivers/gpio/gpio-tegra186.c .num_ports = ARRAY_SIZE(tegra194_aon_ports), num_ports 131 drivers/gpio/gpio-ws16c48.c const size_t num_ports = chip->ngpio / gpio_reg_size; num_ports 143 drivers/gpio/gpio-ws16c48.c for (i = 0; i < num_ports; i++) { num_ports 3619 drivers/gpu/drm/drm_dp_mst_topology.c seq_printf(m, "%smst: %p, %d\n", prefix, mstb, mstb->num_ports); num_ports 118 drivers/gpu/drm/i915/display/intel_lpe_audio.c pdata->num_ports = IS_CHERRYVIEW(dev_priv) ? 3 : 2; /* B,C,D or B,C */ num_ports 542 drivers/gpu/drm/i915/i915_gpu_error.c for (n = 0; n < ee->num_ports; n++) { num_ports 1246 drivers/gpu/drm/i915/i915_gpu_error.c ee->num_ports = n; num_ports 153 drivers/gpu/drm/i915/i915_gpu_error.h unsigned int num_ports; num_ports 76 drivers/gpu/drm/omapdrm/dss/dss.c int num_ports; num_ports 1063 drivers/gpu/drm/omapdrm/dss/dss.c .num_ports = ARRAY_SIZE(omap2plus_ports), num_ports 1078 drivers/gpu/drm/omapdrm/dss/dss.c .num_ports = ARRAY_SIZE(omap34xx_ports), num_ports 1091 drivers/gpu/drm/omapdrm/dss/dss.c .num_ports = ARRAY_SIZE(omap2plus_ports), num_ports 1105 drivers/gpu/drm/omapdrm/dss/dss.c .num_ports = ARRAY_SIZE(omap2plus_ports), num_ports 1119 drivers/gpu/drm/omapdrm/dss/dss.c .num_ports = ARRAY_SIZE(omap2plus_ports), num_ports 1133 drivers/gpu/drm/omapdrm/dss/dss.c .num_ports = ARRAY_SIZE(omap2plus_ports), num_ports 1147 drivers/gpu/drm/omapdrm/dss/dss.c .num_ports = ARRAY_SIZE(dra7xx_ports), num_ports 1162 drivers/gpu/drm/omapdrm/dss/dss.c for (i = 0; i < dss->feat->num_ports; i++) { num_ports 1195 drivers/gpu/drm/omapdrm/dss/dss.c for (i = 0; i < dss->feat->num_ports; i++) { num_ports 36 drivers/gpu/drm/rcar-du/rcar_du_encoder.c unsigned int num_ports = 0; num_ports 44 drivers/gpu/drm/rcar-du/rcar_du_encoder.c num_ports++; num_ports 49 drivers/gpu/drm/rcar-du/rcar_du_encoder.c return num_ports; num_ports 282 drivers/hsi/controllers/omap_ssi_core.c for (i = 0; i < ssi->num_ports; i++) { num_ports 305 drivers/hsi/controllers/omap_ssi_core.c for (i = 0; i < ssi->num_ports; i++) { num_ports 386 drivers/hsi/controllers/omap_ssi_core.c omap_ssi->port = devm_kcalloc(&ssi->device, ssi->num_ports, num_ports 487 drivers/hsi/controllers/omap_ssi_core.c int num_ports; num_ports 494 drivers/hsi/controllers/omap_ssi_core.c num_ports = ssi_of_get_available_ports_count(np); num_ports 496 drivers/hsi/controllers/omap_ssi_core.c ssi = hsi_alloc_controller(num_ports, GFP_KERNEL); num_ports 532 drivers/hsi/controllers/omap_ssi_core.c ssi->id, num_ports); num_ports 1145 drivers/hsi/controllers/omap_ssi_port.c for (port_id = 0; port_id < ssi->num_ports && omap_ssi->port[port_id]; num_ports 1149 drivers/hsi/controllers/omap_ssi_port.c if (port_id >= ssi->num_ports) { num_ports 389 drivers/hsi/hsi_core.c for (i = 0; i < hsi->num_ports; i++) { num_ports 448 drivers/hsi/hsi_core.c for (i = 0; i < hsi->num_ports; i++) num_ports 479 drivers/hsi/hsi_core.c hsi->num_ports = n_ports; num_ports 625 drivers/infiniband/hw/hfi1/mad.c ni->num_ports = ibdev->phys_port_cnt; num_ports 662 drivers/infiniband/hw/hfi1/mad.c nip->num_ports = ibdev->phys_port_cnt; num_ports 809 drivers/infiniband/hw/hfi1/mad.c u32 num_ports = OPA_AM_NPORT(am); num_ports 814 drivers/infiniband/hw/hfi1/mad.c if (num_ports != 1 || smp_length_check(sizeof(*pi), max_len)) { num_ports 1369 drivers/infiniband/hw/hfi1/mad.c u32 num_ports = OPA_AM_NPORT(am); num_ports 1374 drivers/infiniband/hw/hfi1/mad.c if (num_ports != 1 || num_ports 2190 drivers/infiniband/hw/hfi1/mad.c u32 num_ports = OPA_AM_NPORT(am); num_ports 2196 drivers/infiniband/hw/hfi1/mad.c if (num_ports != 1 || smp_length_check(size, max_len)) { num_ports 2214 drivers/infiniband/hw/hfi1/mad.c u32 num_ports = OPA_AM_NPORT(am); num_ports 2219 drivers/infiniband/hw/hfi1/mad.c if (num_ports != 1 || smp_length_check(sizeof(*p), max_len)) { num_ports 2239 drivers/infiniband/hw/hfi1/mad.c u32 num_ports = OPA_AM_NPORT(am); num_ports 2244 drivers/infiniband/hw/hfi1/mad.c if (num_ports != 1 || smp_length_check(size, max_len)) { num_ports 2281 drivers/infiniband/hw/hfi1/mad.c u32 num_ports = OPA_AM_NPORT(am); num_ports 2286 drivers/infiniband/hw/hfi1/mad.c if (num_ports != 1 || smp_length_check(size, max_len)) { num_ports 2987 drivers/infiniband/hw/hfi1/mad.c u32 num_ports; num_ports 2998 drivers/infiniband/hw/hfi1/mad.c num_ports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; num_ports 3006 drivers/infiniband/hw/hfi1/mad.c if (num_ports != 1 || (vl_select_mask & ~VL_MASK_ALL)) { num_ports 3205 drivers/infiniband/hw/hfi1/mad.c u32 num_ports; num_ports 3218 drivers/infiniband/hw/hfi1/mad.c num_ports = be32_to_cpu(pmp->mad_hdr.attr_mod) >> 24; num_ports 3223 drivers/infiniband/hw/hfi1/mad.c if (num_ports != 1 || num_ports != num_pslm) { num_ports 3380 drivers/infiniband/hw/hfi1/mad.c u32 num_ports; num_ports 3388 drivers/infiniband/hw/hfi1/mad.c num_ports = OPA_AM_NPORT(be32_to_cpu(pmp->mad_hdr.attr_mod)); num_ports 3393 drivers/infiniband/hw/hfi1/mad.c if (num_ports != 1 || num_ports != num_pslm) { num_ports 3630 drivers/infiniband/hw/hfi1/mad.c u32 num_ports; num_ports 3638 drivers/infiniband/hw/hfi1/mad.c num_ports = OPA_AM_NPORT(be32_to_cpu(pmp->mad_hdr.attr_mod)); num_ports 3643 drivers/infiniband/hw/hfi1/mad.c if (num_ports != 1 || num_ports != num_pslm) { num_ports 797 drivers/infiniband/hw/hns/hns_roce_device.h u8 num_ports; num_ports 785 drivers/infiniband/hw/hns/hns_roce_hw_v1.c for (j = 0; j < caps->num_ports; j++) { num_ports 1560 drivers/infiniband/hw/hns/hns_roce_hw_v1.c for (i = 0; i < caps->num_ports; i++) num_ports 1563 drivers/infiniband/hw/hns/hns_roce_hw_v1.c for (i = 0; i < caps->num_ports; i++) { num_ports 1565 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (i >= (HNS_ROCE_V1_GID_NUM % caps->num_ports)) num_ports 1567 drivers/infiniband/hw/hns/hns_roce_hw_v1.c caps->num_ports; num_ports 1570 drivers/infiniband/hw/hns/hns_roce_hw_v1.c caps->num_ports + 1; num_ports 4602 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_dev->caps.num_ports = port_cnt; num_ports 6394 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_dev->caps.num_ports = 1; num_ports 58 drivers/infiniband/hw/hns/hns_roce_main.c return gid_index * hr_dev->caps.num_ports + port; num_ports 82 drivers/infiniband/hw/hns/hns_roce_main.c if (port >= hr_dev->caps.num_ports) num_ports 97 drivers/infiniband/hw/hns/hns_roce_main.c if (port >= hr_dev->caps.num_ports) num_ports 150 drivers/infiniband/hw/hns/hns_roce_main.c for (port = 0; port < hr_dev->caps.num_ports; port++) { num_ports 167 drivers/infiniband/hw/hns/hns_roce_main.c for (i = 0; i < hr_dev->caps.num_ports; i++) { num_ports 492 drivers/infiniband/hw/hns/hns_roce_main.c ib_dev->phys_port_cnt = hr_dev->caps.num_ports; num_ports 545 drivers/infiniband/hw/hns/hns_roce_main.c for (i = 0; i < hr_dev->caps.num_ports; i++) { num_ports 1135 drivers/infiniband/hw/hns/hns_roce_qp.c (attr->port_num == 0 || attr->port_num > hr_dev->caps.num_ports)) { num_ports 806 drivers/infiniband/hw/mlx4/alias_GUID.c for (i = 0 ; i < dev->num_ports; i++) { num_ports 825 drivers/infiniband/hw/mlx4/alias_GUID.c for (i = 0 ; i < dev->num_ports; i++) { num_ports 851 drivers/infiniband/hw/mlx4/alias_GUID.c for (i = 1; i <= dev->num_ports; ++i) { num_ports 858 drivers/infiniband/hw/mlx4/alias_GUID.c for (i = 0 ; i < dev->num_ports; i++) { num_ports 1038 drivers/infiniband/hw/mlx4/mad.c for (p = 0; p < dev->num_ports; ++p) { num_ports 1059 drivers/infiniband/hw/mlx4/mad.c for (p = 0; p < dev->num_ports; ++p) num_ports 1072 drivers/infiniband/hw/mlx4/mad.c for (p = 0; p < dev->num_ports; ++p) { num_ports 2275 drivers/infiniband/hw/mlx4/mad.c for (i = 0; i < dev->dev->caps.num_ports; i++) num_ports 2319 drivers/infiniband/hw/mlx4/mad.c for (i = 0; i < dev->num_ports; i++) { num_ports 2368 drivers/infiniband/hw/mlx4/mad.c for (i = 0; i < dev->num_ports; i++) { num_ports 945 drivers/infiniband/hw/mlx4/main.c for (i = 1; i <= mdev->dev->caps.num_ports; i++) { num_ports 2410 drivers/infiniband/hw/mlx4/main.c for (port = 1; port <= ibdev->dev->caps.num_ports; ++port) { num_ports 2424 drivers/infiniband/hw/mlx4/main.c for (port = 1; port <= ibdev->dev->caps.num_ports; ++port) { num_ports 2443 drivers/infiniband/hw/mlx4/main.c for (i = 1; i <= dev->caps.num_ports; i++) { num_ports 2621 drivers/infiniband/hw/mlx4/main.c int num_ports = 0; num_ports 2633 drivers/infiniband/hw/mlx4/main.c num_ports = 0; num_ports 2635 drivers/infiniband/hw/mlx4/main.c num_ports++; num_ports 2638 drivers/infiniband/hw/mlx4/main.c if (num_ports == 0) num_ports 2667 drivers/infiniband/hw/mlx4/main.c ibdev->num_ports = num_ports; num_ports 2669 drivers/infiniband/hw/mlx4/main.c 1 : ibdev->num_ports; num_ports 2758 drivers/infiniband/hw/mlx4/main.c for (i = 0; i < ibdev->num_ports; ++i) { num_ports 2764 drivers/infiniband/hw/mlx4/main.c num_req_counters = mlx4_is_bonded(dev) ? 1 : ibdev->num_ports; num_ports 2799 drivers/infiniband/hw/mlx4/main.c for (i = 1; i < ibdev->num_ports ; ++i) { num_ports 2853 drivers/infiniband/hw/mlx4/main.c for (j = 1; j <= ibdev->dev->caps.num_ports; j++) num_ports 2928 drivers/infiniband/hw/mlx4/main.c for (i = 0; i < ibdev->num_ports; ++i) num_ports 3040 drivers/infiniband/hw/mlx4/main.c for (p = 0; p < ibdev->num_ports; ++p) num_ports 3067 drivers/infiniband/hw/mlx4/main.c ports = bitmap_weight(actv_ports.ports, dev->caps.num_ports); num_ports 3068 drivers/infiniband/hw/mlx4/main.c first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); num_ports 3267 drivers/infiniband/hw/mlx4/main.c if (p > ibdev->num_ports) num_ports 3282 drivers/infiniband/hw/mlx4/main.c if (p > ibdev->num_ports) num_ports 3314 drivers/infiniband/hw/mlx4/main.c for (i = 1; i <= ibdev->num_ports; i++) { num_ports 3328 drivers/infiniband/hw/mlx4/main.c for (i = 1; i <= ibdev->num_ports; i++) { num_ports 585 drivers/infiniband/hw/mlx4/mlx4_ib.h int num_ports; num_ports 718 drivers/infiniband/hw/mlx4/mlx4_ib.h dev->bond_next_port = (dev->bond_next_port + 1) % dev->num_ports; num_ports 154 drivers/infiniband/hw/mlx4/qp.c for (i = 0; i < dev->dev->caps.num_ports; i++) { num_ports 182 drivers/infiniband/hw/mlx4/qp.c for (i = 0; i < dev->dev->caps.num_ports; i++) { num_ports 520 drivers/infiniband/hw/mlx4/qp.c for (i = 0; i < dev->caps.num_ports; i++) { num_ports 2358 drivers/infiniband/hw/mlx4/qp.c attr->alt_port_num > dev->dev->caps.num_ports) num_ports 2778 drivers/infiniband/hw/mlx4/qp.c (attr->port_num == 0 || attr->port_num > dev->num_ports)) { num_ports 2870 drivers/infiniband/hw/mlx4/qp.c for (i = 0; i < dev->caps.num_ports; i++) { num_ports 3996 drivers/infiniband/hw/mlx4/qp.c if (port_num == 0 || port_num > dev->caps.num_ports) num_ports 736 drivers/infiniband/hw/mlx4/sysfs.c for (port = 1; port <= dev->dev->caps.num_ports; ++port) { num_ports 859 drivers/infiniband/hw/mlx4/sysfs.c for (i = 0; i < device->dev->caps.num_ports; i++) { num_ports 32 drivers/infiniband/hw/mlx5/ib_rep.c int num_ports = mlx5_eswitch_get_total_vports(dev); num_ports 46 drivers/infiniband/hw/mlx5/ib_rep.c ibdev->port = kcalloc(num_ports, sizeof(*ibdev->port), num_ports 59 drivers/infiniband/hw/mlx5/ib_rep.c ibdev->num_ports = num_ports; num_ports 169 drivers/infiniband/hw/mlx5/main.c for (i = 0; i < dev->num_ports; i++) { num_ports 1889 drivers/infiniband/hw/mlx5/main.c resp.num_ports = dev->num_ports; num_ports 3836 drivers/infiniband/hw/mlx5/main.c flow_attr->port > dev->num_ports || num_ports 4729 drivers/infiniband/hw/mlx5/main.c for (port = 1; port <= dev->num_ports; port++) num_ports 5343 drivers/infiniband/hw/mlx5/main.c num_cnt_ports = is_mdev_switchdev_mode(dev->mdev) ? 1 : dev->num_ports; num_ports 5453 drivers/infiniband/hw/mlx5/main.c num_cnt_ports = is_mdev_switchdev_mode(dev->mdev) ? 1 : dev->num_ports; num_ports 5959 drivers/infiniband/hw/mlx5/main.c for (i = 0; i < dev->num_ports; i++) { num_ports 6018 drivers/infiniband/hw/mlx5/main.c for (i = 0; i < dev->num_ports; i++) { num_ports 6158 drivers/infiniband/hw/mlx5/main.c for (i = 0; i < dev->num_ports; i++) { num_ports 6177 drivers/infiniband/hw/mlx5/main.c for (i = 1; i <= dev->num_ports; i++) { num_ports 6193 drivers/infiniband/hw/mlx5/main.c dev->ib_dev.phys_port_cnt = dev->num_ports; num_ports 6900 drivers/infiniband/hw/mlx5/main.c int num_ports; num_ports 6917 drivers/infiniband/hw/mlx5/main.c num_ports = max(MLX5_CAP_GEN(mdev, num_ports), num_ports 6922 drivers/infiniband/hw/mlx5/main.c dev->port = kcalloc(num_ports, sizeof(*dev->port), num_ports 6930 drivers/infiniband/hw/mlx5/main.c dev->num_ports = num_ports; num_ports 957 drivers/infiniband/hw/mlx5/mlx5_ib.h int num_ports; num_ports 3822 drivers/infiniband/hw/mlx5/qp.c attr->port_num > MLX5_CAP_GEN(dev->mdev, num_ports)) { num_ports 3824 drivers/infiniband/hw/mlx5/qp.c attr->port_num, dev->num_ports); num_ports 3969 drivers/infiniband/hw/mlx5/qp.c attr->port_num > dev->num_ports)) { num_ports 3971 drivers/infiniband/hw/mlx5/qp.c attr->port_num, dev->num_ports); num_ports 5487 drivers/infiniband/hw/mlx5/qp.c if (!path->port || path->port > ibdev->num_ports) num_ports 1119 drivers/infiniband/hw/mthca/mthca_cmd.c dev_lim->num_ports = field & 0xf; num_ports 146 drivers/infiniband/hw/mthca/mthca_cmd.h int num_ports; num_ports 136 drivers/infiniband/hw/mthca/mthca_dev.h int num_ports; num_ports 303 drivers/infiniband/hw/mthca/mthca_mad.c for (p = 0; p < dev->limits.num_ports; ++p) num_ports 317 drivers/infiniband/hw/mthca/mthca_mad.c for (p = 1; p <= dev->limits.num_ports; ++p) { num_ports 329 drivers/infiniband/hw/mthca/mthca_mad.c for (p = 0; p < dev->limits.num_ports; ++p) num_ports 342 drivers/infiniband/hw/mthca/mthca_mad.c for (p = 0; p < dev->limits.num_ports; ++p) { num_ports 181 drivers/infiniband/hw/mthca/mthca_main.c if (dev_lim->num_ports > MTHCA_MAX_PORTS) { num_ports 184 drivers/infiniband/hw/mthca/mthca_main.c dev_lim->num_ports, MTHCA_MAX_PORTS); num_ports 196 drivers/infiniband/hw/mthca/mthca_main.c mdev->limits.num_ports = dev_lim->num_ports; num_ports 1090 drivers/infiniband/hw/mthca/mthca_main.c for (p = 1; p <= mdev->limits.num_ports; ++p) num_ports 1261 drivers/infiniband/hw/mthca/mthca_provider.c dev->ib_dev.phys_port_cnt = dev->limits.num_ports; num_ports 405 drivers/infiniband/hw/mthca/mthca_qp.c if (port_num == 0 || port_num > dev->limits.num_ports) num_ports 692 drivers/infiniband/hw/mthca/mthca_qp.c if (attr->alt_port_num == 0 || attr->alt_port_num > dev->limits.num_ports) { num_ports 896 drivers/infiniband/hw/mthca/mthca_qp.c (attr->port_num == 0 || attr->port_num > dev->limits.num_ports)) { num_ports 296 drivers/infiniband/hw/qib/qib_mad.c nip->num_ports = ibdev->phys_port_cnt; num_ports 173 drivers/infiniband/ulp/opa_vnic/opa_vnic_internal.h u8 num_ports; num_ports 705 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c if (port_num > cport->num_ports) num_ports 896 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c for (i = 1; i <= cport->num_ports; i++) { num_ports 937 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c for (i = 1; i <= cport->num_ports; i++) { num_ports 984 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c for (i = 1; i <= cport->num_ports; i++) num_ports 1007 drivers/infiniband/ulp/opa_vnic/opa_vnic_vema.c cport->num_ports = device->phys_port_cnt; num_ports 1168 drivers/media/v4l2-core/v4l2-fwnode.c unsigned int num_ports, num_ports 1198 drivers/media/v4l2-core/v4l2-fwnode.c for (i = 0; i < num_ports; i++) { num_ports 3314 drivers/message/fusion/mptsas.c ioc->num_ports = port_info->num_phys; num_ports 800 drivers/net/dsa/b53/b53_common.c memset(priv->ports, 0, sizeof(*priv->ports) * priv->num_ports); num_ports 977 drivers/net/dsa/b53/b53_common.c for (port = 0; port < dev->num_ports; port++) { num_ports 2344 drivers/net/dsa/b53/b53_common.c dev->num_ports = dev->cpu_port + 1; num_ports 2349 drivers/net/dsa/b53/b53_common.c for (i = 0; i < dev->num_ports; i++) { num_ports 2357 drivers/net/dsa/b53/b53_common.c dev->num_ports, sizeof(struct b53_port), num_ports 142 drivers/net/dsa/b53/b53_priv.h unsigned int num_ports; num_ports 704 drivers/net/dsa/bcm_sf2.c for (port = 0; port < ds->num_ports; port++) { num_ports 795 drivers/net/dsa/bcm_sf2.c for (port = 0; port < priv->hw_params.num_ports; port++) { num_ports 1185 drivers/net/dsa/bcm_sf2.c priv->hw_params.num_ports = core_readl(priv, CORE_IMP0_PRT_ID) + 1; num_ports 1186 drivers/net/dsa/bcm_sf2.c if (priv->hw_params.num_ports > DSA_MAX_PORTS) num_ports 1187 drivers/net/dsa/bcm_sf2.c priv->hw_params.num_ports = DSA_MAX_PORTS; num_ports 34 drivers/net/dsa/bcm_sf2.h u8 num_ports; num_ports 844 drivers/net/dsa/bcm_sf2_cfp.c port_num >= priv->hw_params.num_ports) num_ports 76 drivers/net/dsa/dsa_loop.c for (i = 0; i < ds->num_ports; i++) num_ports 998 drivers/net/dsa/microchip/ksz8795.c ds->num_ports = dev->port_cnt + 1; num_ports 1296 drivers/net/dsa/microchip/ksz9477.c ds->num_ports = dev->port_cnt; num_ports 1071 drivers/net/dsa/mv88e6xxx/chip.c if (!ds || port >= ds->num_ports) num_ports 2061 drivers/net/dsa/mv88e6xxx/chip.c for (port = 0; port < ds->num_ports; ++port) { num_ports 4180 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 10, num_ports 4202 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 11, num_ports 4222 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 11, num_ports 4244 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 3, num_ports 4266 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 8, num_ports 4286 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 6, num_ports 4309 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 6, num_ports 4332 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 6, num_ports 4355 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 7, num_ports 4377 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 7, num_ports 4400 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 7, num_ports 4422 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 7, num_ports 4445 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 10, num_ports 4465 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 11, /* 10 + Z80 */ num_ports 4488 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 11, /* 10 + Z80 */ num_ports 4511 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 11, /* 10 + Z80 */ num_ports 4538 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 7, num_ports 4561 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 7, num_ports 4585 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 7, num_ports 4607 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 11, /* 10 + Z80 */ num_ports 4631 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 7, num_ports 4655 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 7, num_ports 4679 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 6, num_ports 4702 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 7, num_ports 4724 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 7, num_ports 4746 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 7, num_ports 4769 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 11, /* 10 + Z80 */ num_ports 4792 drivers/net/dsa/mv88e6xxx/chip.c .num_ports = 11, /* 10 + Z80 */ num_ports 97 drivers/net/dsa/mv88e6xxx/chip.h unsigned int num_ports; num_ports 614 drivers/net/dsa/mv88e6xxx/chip.h return chip->info->num_ports; num_ports 487 drivers/net/dsa/mv88e6xxx/hwtstamp.c for (i = 0; i < ds->num_ports; i++) { num_ports 447 drivers/net/dsa/realtek-smi-core.c smi->ds = dsa_switch_alloc(dev, smi->num_ports); num_ports 60 drivers/net/dsa/realtek-smi-core.h unsigned int num_ports; num_ports 22 drivers/net/dsa/rtl8366.c for (i = 0; i < smi->num_ports; i++) { num_ports 268 drivers/net/dsa/rtl8366.c for (port = 0; port < smi->num_ports; port++) { num_ports 275 drivers/net/dsa/rtl8366.c mask = GENMASK(smi->num_ports - 1, 0); num_ports 472 drivers/net/dsa/rtl8366.c if (port >= smi->num_ports) num_ports 490 drivers/net/dsa/rtl8366.c if (port >= smi->num_ports) num_ports 503 drivers/net/dsa/rtl8366.c if (port >= smi->num_ports) num_ports 560 drivers/net/dsa/rtl8366rb.c for (i = 0; i < smi->num_ports; i++) num_ports 1239 drivers/net/dsa/rtl8366rb.c if (port >= smi->num_ports) num_ports 1255 drivers/net/dsa/rtl8366rb.c if (port >= smi->num_ports || index >= RTL8366RB_NUM_VLANS) num_ports 1401 drivers/net/dsa/rtl8366rb.c smi->num_ports = RTL8366RB_NUM_PORTS; num_ports 1986 drivers/net/ethernet/broadcom/bcm63xx_enet.c for (i = 0; i < priv->num_ports; i++) { num_ports 2158 drivers/net/ethernet/broadcom/bcm63xx_enet.c for (i = 0; i < priv->num_ports; i++) { num_ports 2253 drivers/net/ethernet/broadcom/bcm63xx_enet.c for (i = 0; i < priv->num_ports; i++) { num_ports 2392 drivers/net/ethernet/broadcom/bcm63xx_enet.c for (i = 0; i < priv->num_ports; ++i) { num_ports 2675 drivers/net/ethernet/broadcom/bcm63xx_enet.c priv->num_ports = pd->num_ports; num_ports 331 drivers/net/ethernet/broadcom/bcm63xx_enet.h int num_ports; num_ports 145 drivers/net/ethernet/ibm/ehea/ehea_main.c int num_ports = 0; num_ports 162 drivers/net/ethernet/ibm/ehea/ehea_main.c num_ports++; num_ports 168 drivers/net/ethernet/ibm/ehea/ehea_main.c num_ports * EHEA_NUM_PORT_FW_HANDLES + num_ports 186 drivers/net/ethernet/ibm/ehea/ehea_main.c (num_ports == 0)) num_ports 207 drivers/net/ethernet/ibm/ehea/ehea_main.c num_ports--; num_ports 142 drivers/net/ethernet/ibm/ehea/ehea_phyp.h u32 num_ports; /* 24 */ num_ports 3380 drivers/net/ethernet/intel/i40e/i40e_common.c hw->num_ports = 0; num_ports 3390 drivers/net/ethernet/intel/i40e/i40e_common.c hw->num_ports++; num_ports 3408 drivers/net/ethernet/intel/i40e/i40e_common.c hw->num_ports = 4; num_ports 3424 drivers/net/ethernet/intel/i40e/i40e_common.c if (hw->num_ports != 0) { num_ports 3425 drivers/net/ethernet/intel/i40e/i40e_common.c hw->partition_id = (hw->pf_id / hw->num_ports) + 1; num_ports 3426 drivers/net/ethernet/intel/i40e/i40e_common.c hw->num_partitions = num_functions / hw->num_ports; num_ports 594 drivers/net/ethernet/intel/i40e/i40e_type.h u16 num_ports; num_ports 925 drivers/net/ethernet/mellanox/mlx4/cmd.c if (port < 1 || port > dev->caps.num_ports) num_ports 2005 drivers/net/ethernet/mellanox/mlx4/cmd.c priv->dev.caps.num_ports) + 1; num_ports 2007 drivers/net/ethernet/mellanox/mlx4/cmd.c bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); num_ports 2071 drivers/net/ethernet/mellanox/mlx4/cmd.c priv->dev.caps.num_ports) + 1; num_ports 2073 drivers/net/ethernet/mellanox/mlx4/cmd.c bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); num_ports 2436 drivers/net/ethernet/mellanox/mlx4/cmd.c for (port = 1; port <= dev->caps.num_ports; port++) { num_ports 2777 drivers/net/ethernet/mellanox/mlx4/cmd.c bitmap_fill(actv_ports.ports, dev->caps.num_ports); num_ports 2787 drivers/net/ethernet/mellanox/mlx4/cmd.c dev->caps.num_ports)); num_ports 2797 drivers/net/ethernet/mellanox/mlx4/cmd.c unsigned m = bitmap_weight(actv_ports.ports, dev->caps.num_ports); num_ports 2802 drivers/net/ethernet/mellanox/mlx4/cmd.c n = find_first_bit(actv_ports.ports, dev->caps.num_ports); num_ports 2815 drivers/net/ethernet/mellanox/mlx4/cmd.c find_first_bit(actv_ports.ports, dev->caps.num_ports); num_ports 2829 drivers/net/ethernet/mellanox/mlx4/cmd.c if (port <= 0 || port > dev->caps.num_ports) num_ports 2856 drivers/net/ethernet/mellanox/mlx4/cmd.c dev->caps.num_ports)) num_ports 2867 drivers/net/ethernet/mellanox/mlx4/cmd.c int min_port = find_first_bit(actv_ports.ports, dev->caps.num_ports) num_ports 2870 drivers/net/ethernet/mellanox/mlx4/cmd.c bitmap_weight(actv_ports.ports, dev->caps.num_ports); num_ports 3410 drivers/net/ethernet/mellanox/mlx4/cmd.c priv->dev.caps.num_ports) + 1; num_ports 3412 drivers/net/ethernet/mellanox/mlx4/cmd.c bitmap_weight(actv_ports.ports, priv->dev.caps.num_ports); num_ports 3422 drivers/net/ethernet/mellanox/mlx4/cmd.c if (min_port == max_port && dev->caps.num_ports > 1) { num_ports 219 drivers/net/ethernet/mellanox/mlx4/en_main.c if (port < 1 || port > dev->caps.num_ports || num_ports 317 drivers/net/ethernet/mellanox/mlx4/eq.c if (slave >= dev->num_slaves || port > dev->caps.num_ports || num_ports 334 drivers/net/ethernet/mellanox/mlx4/eq.c if (slave >= dev->num_slaves || port > dev->caps.num_ports || num_ports 380 drivers/net/ethernet/mellanox/mlx4/eq.c if (slave >= dev->num_slaves || port > dev->caps.num_ports || num_ports 1231 drivers/net/ethernet/mellanox/mlx4/eq.c dev->caps.num_ports) + 1; num_ports 1233 drivers/net/ethernet/mellanox/mlx4/eq.c if (port <= dev->caps.num_ports) { num_ports 1309 drivers/net/ethernet/mellanox/mlx4/eq.c for (i = 1; i <= dev->caps.num_ports; i++) { num_ports 1341 drivers/net/ethernet/mellanox/mlx4/eq.c for (i = 1; i <= dev->caps.num_ports; i++) { num_ports 1442 drivers/net/ethernet/mellanox/mlx4/eq.c dev->caps.num_ports) > 1); num_ports 407 drivers/net/ethernet/mellanox/mlx4/fw.c find_first_bit(actv_ports.ports, dev->caps.num_ports); num_ports 465 drivers/net/ethernet/mellanox/mlx4/fw.c bitmap_weight(actv_ports.ports, dev->caps.num_ports), num_ports 466 drivers/net/ethernet/mellanox/mlx4/fw.c dev->caps.num_ports); num_ports 578 drivers/net/ethernet/mellanox/mlx4/fw.c func_cap->num_ports = field; num_ports 651 drivers/net/ethernet/mellanox/mlx4/fw.c if (gen_or_port > dev->caps.num_ports) { num_ports 897 drivers/net/ethernet/mellanox/mlx4/fw.c dev_cap->num_ports = field & 0xf; num_ports 1105 drivers/net/ethernet/mellanox/mlx4/fw.c for (i = 1; i <= dev_cap->num_ports; i++) { num_ports 1298 drivers/net/ethernet/mellanox/mlx4/fw.c first_port = find_first_bit(actv_ports.ports, dev->caps.num_ports); num_ports 1301 drivers/net/ethernet/mellanox/mlx4/fw.c bitmap_weight(actv_ports.ports, dev->caps.num_ports); num_ports 1308 drivers/net/ethernet/mellanox/mlx4/fw.c for (; slave_port < dev->caps.num_ports; ++slave_port) num_ports 1317 drivers/net/ethernet/mellanox/mlx4/fw.c field |= bitmap_weight(actv_ports.ports, dev->caps.num_ports) & 0x0F; num_ports 2654 drivers/net/ethernet/mellanox/mlx4/fw.c for (port = 1; port <= dev->caps.num_ports; port++) { num_ports 3100 drivers/net/ethernet/mellanox/mlx4/fw.c for (i = 1; i <= dev->caps.num_ports; ++i) num_ports 88 drivers/net/ethernet/mellanox/mlx4/fw.h int num_ports; num_ports 137 drivers/net/ethernet/mellanox/mlx4/fw.h u8 num_ports; num_ports 313 drivers/net/ethernet/mellanox/mlx4/main.c for (i = 0; i < dev->caps.num_ports - 1; i++) { num_ports 321 drivers/net/ethernet/mellanox/mlx4/main.c for (i = 0; i < dev->caps.num_ports; i++) { num_ports 335 drivers/net/ethernet/mellanox/mlx4/main.c for (i = 1; i <= dev->caps.num_ports; ++i) num_ports 474 drivers/net/ethernet/mellanox/mlx4/main.c if (dev_cap->num_ports > MLX4_MAX_PORTS) { num_ports 476 drivers/net/ethernet/mellanox/mlx4/main.c dev_cap->num_ports, MLX4_MAX_PORTS); num_ports 488 drivers/net/ethernet/mellanox/mlx4/main.c dev->caps.num_ports = dev_cap->num_ports; num_ports 493 drivers/net/ethernet/mellanox/mlx4/main.c for (i = 1; i <= dev->caps.num_ports; ++i) { num_ports 588 drivers/net/ethernet/mellanox/mlx4/main.c for (i = 1; i <= dev->caps.num_ports; ++i) { num_ports 647 drivers/net/ethernet/mellanox/mlx4/main.c if (mlx4_is_master(dev) && (dev->caps.num_ports == 2) && num_ports 662 drivers/net/ethernet/mellanox/mlx4/main.c dev->caps.num_ports; num_ports 871 drivers/net/ethernet/mellanox/mlx4/main.c caps->spec_qps = kcalloc(caps->num_ports, sizeof(*caps->spec_qps), GFP_KERNEL); num_ports 879 drivers/net/ethernet/mellanox/mlx4/main.c for (i = 1; i <= caps->num_ports; ++i) { num_ports 996 drivers/net/ethernet/mellanox/mlx4/main.c dev->caps.num_ports = func_cap->num_ports; num_ports 1013 drivers/net/ethernet/mellanox/mlx4/main.c if (dev->caps.num_ports > MLX4_MAX_PORTS) { num_ports 1015 drivers/net/ethernet/mellanox/mlx4/main.c dev->caps.num_ports, MLX4_MAX_PORTS); num_ports 1101 drivers/net/ethernet/mellanox/mlx4/main.c for (port = 1; port <= dev->caps.num_ports; port++) { num_ports 1125 drivers/net/ethernet/mellanox/mlx4/main.c for (port = 0; port < dev->caps.num_ports; port++) { num_ports 1133 drivers/net/ethernet/mellanox/mlx4/main.c for (port = 1; port <= dev->caps.num_ports; port++) { num_ports 1200 drivers/net/ethernet/mellanox/mlx4/main.c for (i = 0; i < mdev->caps.num_ports; i++) { num_ports 1209 drivers/net/ethernet/mellanox/mlx4/main.c for (i = 1; i <= mdev->caps.num_ports; i++) { num_ports 1230 drivers/net/ethernet/mellanox/mlx4/main.c for (i = 0; i < mdev->caps.num_ports; i++) num_ports 1352 drivers/net/ethernet/mellanox/mlx4/main.c for (port = 1; port <= mdev->caps.num_ports; port++) { num_ports 2116 drivers/net/ethernet/mellanox/mlx4/main.c for (i = 1; i <= dev->caps.num_ports; i++) { num_ports 2239 drivers/net/ethernet/mellanox/mlx4/main.c for (i = 1; i <= dev->caps.num_ports; i++) { num_ports 2534 drivers/net/ethernet/mellanox/mlx4/main.c for (port = 0; port < dev->caps.num_ports; port++) num_ports 2545 drivers/net/ethernet/mellanox/mlx4/main.c for (port = 0; port < dev->caps.num_ports; port++) num_ports 2548 drivers/net/ethernet/mellanox/mlx4/main.c for (port = 0; port < dev->caps.num_ports; port++) { num_ports 2818 drivers/net/ethernet/mellanox/mlx4/main.c for (port = 1; port <= dev->caps.num_ports; port++) { num_ports 2939 drivers/net/ethernet/mellanox/mlx4/main.c int nreq = min3(dev->caps.num_ports * num_ports 2966 drivers/net/ethernet/mellanox/mlx4/main.c dev->caps.num_ports); num_ports 2977 drivers/net/ethernet/mellanox/mlx4/main.c dev->caps.num_ports); num_ports 2997 drivers/net/ethernet/mellanox/mlx4/main.c if ((dev->caps.num_comp_vectors > dev->caps.num_ports) && num_ports 2999 drivers/net/ethernet/mellanox/mlx4/main.c (dev->caps.num_comp_vectors / dev->caps.num_ports)) == num_ports 3021 drivers/net/ethernet/mellanox/mlx4/main.c dev->caps.num_ports); num_ports 3108 drivers/net/ethernet/mellanox/mlx4/main.c int num_entries = dev->caps.num_ports; num_ports 3129 drivers/net/ethernet/mellanox/mlx4/main.c int num_entries = dev->caps.num_ports; num_ports 3537 drivers/net/ethernet/mellanox/mlx4/main.c if (dev->caps.num_ports < 2 && num_ports 3542 drivers/net/ethernet/mellanox/mlx4/main.c dev->caps.num_ports); num_ports 3555 drivers/net/ethernet/mellanox/mlx4/main.c dev->caps.num_ports; num_ports 3616 drivers/net/ethernet/mellanox/mlx4/main.c for (port = 1; port <= dev->caps.num_ports; port++) { num_ports 4054 drivers/net/ethernet/mellanox/mlx4/main.c for (i = 0; i < dev->caps.num_ports; i++) { num_ports 4065 drivers/net/ethernet/mellanox/mlx4/main.c for (p = 1; p <= dev->caps.num_ports; p++) { num_ports 4178 drivers/net/ethernet/mellanox/mlx4/main.c for (i = 0; i < dev->caps.num_ports; i++) num_ports 130 drivers/net/ethernet/mellanox/mlx4/mcg.c if (port < 1 || port > dev->caps.num_ports) num_ports 161 drivers/net/ethernet/mellanox/mlx4/mcg.c if (port < 1 || port > dev->caps.num_ports) num_ports 248 drivers/net/ethernet/mellanox/mlx4/mcg.c if (port < 1 || port > dev->caps.num_ports) num_ports 296 drivers/net/ethernet/mellanox/mlx4/mcg.c if (port < 1 || port > dev->caps.num_ports) num_ports 340 drivers/net/ethernet/mellanox/mlx4/mcg.c if (port < 1 || port > dev->caps.num_ports) num_ports 377 drivers/net/ethernet/mellanox/mlx4/mcg.c if (port < 1 || port > dev->caps.num_ports) num_ports 434 drivers/net/ethernet/mellanox/mlx4/mcg.c if (port < 1 || port > dev->caps.num_ports) num_ports 564 drivers/net/ethernet/mellanox/mlx4/mcg.c if (port < 1 || port > dev->caps.num_ports) num_ports 388 drivers/net/ethernet/mellanox/mlx4/port.c if (port < 1 || port > dev->caps.num_ports) { num_ports 1107 drivers/net/ethernet/mellanox/mlx4/port.c max_port_p_one = find_first_bit(actv_ports.ports, dev->caps.num_ports) + num_ports 1108 drivers/net/ethernet/mellanox/mlx4/port.c bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; num_ports 1113 drivers/net/ethernet/mellanox/mlx4/port.c bitmap_zero(exclusive_ports.ports, dev->caps.num_ports); num_ports 1144 drivers/net/ethernet/mellanox/mlx4/port.c max_port_p_one = find_first_bit(actv_ports.ports, dev->caps.num_ports) + num_ports 1145 drivers/net/ethernet/mellanox/mlx4/port.c bitmap_weight(actv_ports.ports, dev->caps.num_ports) + 1; num_ports 1150 drivers/net/ethernet/mellanox/mlx4/port.c bitmap_zero(exclusive_ports.ports, dev->caps.num_ports); num_ports 1216 drivers/net/ethernet/mellanox/mlx4/port.c for (i = 0, num_eth_ports = 0; i < dev->caps.num_ports; i++) { num_ports 1232 drivers/net/ethernet/mellanox/mlx4/port.c for (i = 0; i < dev->caps.num_ports; i++) { num_ports 1909 drivers/net/ethernet/mellanox/mlx4/port.c bitmap_zero(exclusive_ports.ports, dev->caps.num_ports); num_ports 1930 drivers/net/ethernet/mellanox/mlx4/port.c actv_ports.ports, dev->caps.num_ports) + num_ports 1932 drivers/net/ethernet/mellanox/mlx4/port.c dev->caps.num_ports) + 1; num_ports 1939 drivers/net/ethernet/mellanox/mlx4/port.c dev->caps.num_ports); num_ports 851 drivers/net/ethernet/mellanox/mlx4/qp.c dev->caps.spec_qps = kcalloc(dev->caps.num_ports, num_ports 859 drivers/net/ethernet/mellanox/mlx4/qp.c for (k = 0; k < dev->caps.num_ports; k++) { num_ports 484 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c return MLX4_PF_COUNTERS_PER_PORT * dev->caps.num_ports; num_ports 488 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c ports = bitmap_weight(actv_ports.ports, dev->caps.num_ports); num_ports 587 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c for (j = 0; j < dev->caps.num_ports; num_ports 593 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c dev->caps.num_ports) - 1; num_ports 631 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c for (j = 0; j < dev->caps.num_ports; j++) num_ports 2225 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c if (!in_port && port > 0 && port <= dev->caps.num_ports) { num_ports 72 drivers/net/ethernet/mellanox/mlx4/sense.c for (i = 1; i <= dev->caps.num_ports; i++) { num_ports 86 drivers/net/ethernet/mellanox/mlx4/sense.c for (i = 0; i < dev->caps.num_ports; i++) num_ports 139 drivers/net/ethernet/mellanox/mlx4/sense.c for (port = 1; port <= dev->caps.num_ports; port++) num_ports 735 drivers/net/ethernet/mellanox/mlx5/core/lag.c int num_ports; num_ports 748 drivers/net/ethernet/mellanox/mlx5/core/lag.c num_ports = MLX5_MAX_PORTS; num_ports 752 drivers/net/ethernet/mellanox/mlx5/core/lag.c num_ports = 1; num_ports 756 drivers/net/ethernet/mellanox/mlx5/core/lag.c for (i = 0; i < num_ports; ++i) { num_ports 46 drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.c int num_ports; num_ports 122 drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.c if (vxlan->num_ports >= mlx5_vxlan_max_udp_ports(vxlan->mdev)) { num_ports 147 drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.c vxlan->num_ports++; num_ports 185 drivers/net/ethernet/mellanox/mlx5/core/lib/vxlan.c vxlan->num_ports--; num_ports 271 drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c nvec = MLX5_CAP_GEN(dev, num_ports) * num_online_cpus() + num_ports 578 drivers/net/ethernet/mellanox/mlx5/core/vport.c if (MLX5_CAP_GEN(dev, num_ports) == 2) num_ports 643 drivers/net/ethernet/mellanox/mlx5/core/vport.c if (MLX5_CAP_GEN(dev, num_ports) == 2) num_ports 691 drivers/net/ethernet/mellanox/mlx5/core/vport.c if (MLX5_CAP_GEN(dev, num_ports) == 2) num_ports 997 drivers/net/ethernet/mellanox/mlx5/core/vport.c if (MLX5_CAP_GEN(dev, num_ports) == 2) num_ports 1062 drivers/net/ethernet/mellanox/mlx5/core/vport.c if (MLX5_CAP_GEN(dev, num_ports) > 1) num_ports 1311 drivers/net/ethernet/mellanox/mlxsw/reg.h MLXSW_ITEM32(reg, sldr, num_ports, 0x04, 24, 8); num_ports 44 drivers/net/ethernet/netronome/nfp/flower/cmsg.c nfp_flower_cmsg_mac_repr_start(struct nfp_app *app, unsigned int num_ports) num_ports 49 drivers/net/ethernet/netronome/nfp/flower/cmsg.c skb = nfp_flower_cmsg_alloc(app, struct_size(msg, ports, num_ports), num_ports 56 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->num_ports = num_ports; num_ports 494 drivers/net/ethernet/netronome/nfp/flower/cmsg.h u8 num_ports; num_ports 624 drivers/net/ethernet/netronome/nfp/flower/cmsg.h nfp_flower_cmsg_mac_repr_start(struct nfp_app *app, unsigned int num_ports); num_ports 765 drivers/net/ethernet/qlogic/qed/qed.h u8 num_ports; num_ports 1840 drivers/net/ethernet/qlogic/qed/qed_debug.c dev_data->num_ports = 1; num_ports 1842 drivers/net/ethernet/qlogic/qed/qed_debug.c dev_data->num_ports = 2; num_ports 1844 drivers/net/ethernet/qlogic/qed/qed_debug.c dev_data->num_ports = 4; num_ports 1848 drivers/net/ethernet/qlogic/qed/qed_debug.c num_pfs / dev_data->num_ports, num_ports 2531 drivers/net/ethernet/qlogic/qed/qed_debug.c pf_id = port_id + dev_data->num_ports * num_ports 2824 drivers/net/ethernet/qlogic/qed/qed_debug.c split_count = dev_data->num_ports; num_ports 2828 drivers/net/ethernet/qlogic/qed/qed_debug.c split_count = dev_data->num_ports * num_ports 4030 drivers/net/ethernet/qlogic/qed/qed_debug.c dump, "num-ports", dev_data->num_ports); num_ports 1581 drivers/net/ethernet/qlogic/qed/qed_dev.c u8 i, active_phys_tcs, num_ports = p_hwfn->cdev->num_ports_in_engine; num_ports 1584 drivers/net/ethernet/qlogic/qed/qed_dev.c active_phys_tcs = num_ports == MAX_NUM_PORTS_K2 ? num_ports 1588 drivers/net/ethernet/qlogic/qed/qed_dev.c for (i = 0; i < num_ports; i++) { num_ports 1594 drivers/net/ethernet/qlogic/qed/qed_dev.c p_qm_port->num_pbf_cmd_lines = PBF_MAX_CMD_LINES / num_ports; num_ports 1595 drivers/net/ethernet/qlogic/qed/qed_dev.c p_qm_port->num_btb_blocks = BTB_MAX_BLOCKS / num_ports; num_ports 4249 drivers/net/ethernet/qlogic/qed/qed_dev.c cdev->num_ports = 1; num_ports 4277 drivers/net/ethernet/qlogic/qed/qed_dev.c cdev->num_ports = (u8)qed_rd(p_hwfn, p_ptt, addr); num_ports 5461 drivers/net/ethernet/qlogic/qed/qed_dev.c return cdev->num_ports; num_ports 2575 drivers/net/ethernet/qlogic/qed/qed_hsi.h u8 num_ports; num_ports 3245 drivers/net/ethernet/sun/niu.c return np->clas.tcam_top + ((idx+1) * np->parent->num_ports); num_ports 8514 drivers/net/ethernet/sun/niu.c if (!parent->num_ports) { num_ports 8516 drivers/net/ethernet/sun/niu.c parent->num_ports = 2; num_ports 8518 drivers/net/ethernet/sun/niu.c parent->num_ports = niu_pci_vpd_get_nports(np); num_ports 8519 drivers/net/ethernet/sun/niu.c if (!parent->num_ports) { num_ports 8523 drivers/net/ethernet/sun/niu.c parent->num_ports = nr64(ESPC_NUM_PORTS_MACS) & num_ports 8529 drivers/net/ethernet/sun/niu.c if (!parent->num_ports) num_ports 8530 drivers/net/ethernet/sun/niu.c parent->num_ports = 4; num_ports 8535 drivers/net/ethernet/sun/niu.c if (np->port >= parent->num_ports) num_ports 8622 drivers/net/ethernet/sun/niu.c int num_ports = parent->num_ports; num_ports 8625 drivers/net/ethernet/sun/niu.c for (i = 0; i < num_ports; i++) { num_ports 8626 drivers/net/ethernet/sun/niu.c parent->rxchan_per_port[i] = (16 / num_ports); num_ports 8627 drivers/net/ethernet/sun/niu.c parent->txchan_per_port[i] = (16 / num_ports); num_ports 8639 drivers/net/ethernet/sun/niu.c int num_ports = parent->num_ports; num_ports 8646 drivers/net/ethernet/sun/niu.c (NIU_NUM_RXCHAN / num_ports); num_ports 8648 drivers/net/ethernet/sun/niu.c (NIU_NUM_TXCHAN / num_ports); num_ports 8662 drivers/net/ethernet/sun/niu.c for (i = 0; i < num_ports; i++) { num_ports 8683 drivers/net/ethernet/sun/niu.c for (i = 0; i < num_ports; i++) num_ports 8689 drivers/net/ethernet/sun/niu.c for (i = 0; i < num_ports; i++) num_ports 8701 drivers/net/ethernet/sun/niu.c int i, num_ports = parent->num_ports; num_ports 8706 drivers/net/ethernet/sun/niu.c rdc_groups_per_port = NIU_NUM_RDC_TABLES / num_ports; num_ports 8710 drivers/net/ethernet/sun/niu.c for (i = 0; i < num_ports; i++) { num_ports 8800 drivers/net/ethernet/sun/niu.c parent->num_ports = 4; num_ports 8808 drivers/net/ethernet/sun/niu.c parent->num_ports = 2; num_ports 8940 drivers/net/ethernet/sun/niu.c cp->tcam_sz = np->parent->tcam_num_entries / np->parent->num_ports; num_ports 9019 drivers/net/ethernet/sun/niu.c first_ldg = (NIU_NUM_LDG / parent->num_ports) * np->port; num_ports 9020 drivers/net/ethernet/sun/niu.c for (i = 0; i < (NIU_NUM_LDG / parent->num_ports); i++) num_ports 9026 drivers/net/ethernet/sun/niu.c BUG_ON(num_irqs > (NIU_NUM_LDG / parent->num_ports)); num_ports 9339 drivers/net/ethernet/sun/niu.c for (i = 0; i < p->num_ports; i++) { num_ports 9396 drivers/net/ethernet/sun/niu.c for (i = 0; i < p->num_ports; i++) { num_ports 9424 drivers/net/ethernet/sun/niu.c return sprintf(buf, "%d\n", p->num_ports); num_ports 9432 drivers/net/ethernet/sun/niu.c __ATTR(num_ports, 0444, show_num_ports, NULL), num_ports 3105 drivers/net/ethernet/sun/niu.h u8 num_ports; num_ports 97 drivers/parport/daisy.c int num_ports; num_ports 109 drivers/parport/daisy.c ((num_ports = num_mux_ports(port)) == 2 || num_ports == 4)) { num_ports 114 drivers/parport/daisy.c port->name, num_ports); num_ports 115 drivers/parport/daisy.c for (i = 1; i < num_ports; i++) { num_ports 128 drivers/parport/daisy.c extra->name, i + 1, th[i + 1], num_ports, num_ports 294 drivers/parport/parport_serial.c .num_ports = 1, num_ports 300 drivers/parport/parport_serial.c .num_ports = 2, num_ports 306 drivers/parport/parport_serial.c .num_ports = 1, num_ports 312 drivers/parport/parport_serial.c .num_ports = 1, num_ports 318 drivers/parport/parport_serial.c .num_ports = 1, num_ports 324 drivers/parport/parport_serial.c .num_ports = 1, num_ports 330 drivers/parport/parport_serial.c .num_ports = 0, num_ports 336 drivers/parport/parport_serial.c .num_ports = 0, num_ports 342 drivers/parport/parport_serial.c .num_ports = 1, num_ports 348 drivers/parport/parport_serial.c .num_ports = 1, num_ports 354 drivers/parport/parport_serial.c .num_ports = 2, num_ports 360 drivers/parport/parport_serial.c .num_ports = 1, num_ports 366 drivers/parport/parport_serial.c .num_ports = 1, num_ports 372 drivers/parport/parport_serial.c .num_ports = 1, num_ports 378 drivers/parport/parport_serial.c .num_ports = 1, num_ports 384 drivers/parport/parport_serial.c .num_ports = 1, num_ports 390 drivers/parport/parport_serial.c .num_ports = 1, num_ports 396 drivers/parport/parport_serial.c .num_ports = 1, num_ports 402 drivers/parport/parport_serial.c .num_ports = 1, num_ports 408 drivers/parport/parport_serial.c .num_ports = 1, num_ports 414 drivers/parport/parport_serial.c .num_ports = 1, num_ports 420 drivers/parport/parport_serial.c .num_ports = 1, num_ports 426 drivers/parport/parport_serial.c .num_ports = 1, num_ports 432 drivers/parport/parport_serial.c .num_ports = 1, num_ports 438 drivers/parport/parport_serial.c .num_ports = 1, num_ports 444 drivers/parport/parport_serial.c .num_ports = 1, num_ports 450 drivers/parport/parport_serial.c .num_ports = 1, num_ports 456 drivers/parport/parport_serial.c .num_ports = 1, num_ports 462 drivers/parport/parport_serial.c .num_ports = 1, num_ports 468 drivers/parport/parport_serial.c .num_ports = 1, num_ports 474 drivers/parport/parport_serial.c .num_ports = 1, num_ports 480 drivers/parport/parport_serial.c .num_ports = 1, num_ports 486 drivers/parport/parport_serial.c .num_ports = 1, num_ports 492 drivers/parport/parport_serial.c .num_ports = 1, num_ports 498 drivers/parport/parport_serial.c .num_ports = 1, num_ports 504 drivers/parport/parport_serial.c .num_ports = 2, num_ports 510 drivers/parport/parport_serial.c .num_ports = 0, num_ports 516 drivers/parport/parport_serial.c .num_ports = 2, num_ports 523 drivers/parport/parport_serial.c .num_ports = 5, num_ports 528 drivers/parport/parport_serial.c .num_ports = 0, num_ports 531 drivers/parport/parport_serial.c .num_ports = 1, num_ports 536 drivers/parport/parport_serial.c .num_ports = 2, num_ports 541 drivers/parport/parport_serial.c .num_ports = 4, num_ports 562 drivers/parport/parport_serial.c if (board->num_ports == 0) num_ports 308 drivers/pci/controller/pci-tegra.c unsigned int num_ports; num_ports 1322 drivers/pci/controller/pci-tegra.c if (soc->num_ports > 2) num_ports 2245 drivers/pci/controller/pci-tegra.c if (index < 1 || index > soc->num_ports) { num_ports 2499 drivers/pci/controller/pci-tegra.c .num_ports = 2, num_ports 2527 drivers/pci/controller/pci-tegra.c .num_ports = 3, num_ports 2551 drivers/pci/controller/pci-tegra.c .num_ports = 2, num_ports 2575 drivers/pci/controller/pci-tegra.c .num_ports = 2, num_ports 2617 drivers/pci/controller/pci-tegra.c .num_ports = 3, num_ports 269 drivers/perf/arm-ccn.c int num_ports; num_ports 288 drivers/perf/arm-ccn.c .num_ports = CCN_NUM_XP_PORTS, .num_vcs = CCN_NUM_VCS, \ num_ports 293 drivers/perf/arm-ccn.c .event = CCN_EVENT_WATCHPOINT, .num_ports = CCN_NUM_XP_PORTS, \ num_ports 298 drivers/perf/arm-ccn.c .event = CCN_EVENT_WATCHPOINT, .num_ports = CCN_NUM_XP_PORTS, \ num_ports 306 drivers/perf/arm-ccn.c .num_ports = CCN_NUM_XP_PORTS, .num_vcs = CCN_NUM_VCS, } num_ports 801 drivers/perf/arm-ccn.c if (e->num_ports && port >= e->num_ports) { num_ports 151 drivers/phy/rockchip/phy-rockchip-inno-usb2.c unsigned int num_ports; num_ports 1183 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (++index >= rphy->phy_cfg->num_ports) num_ports 1203 drivers/phy/rockchip/phy-rockchip-inno-usb2.c .num_ports = 2, num_ports 1239 drivers/phy/rockchip/phy-rockchip-inno-usb2.c .num_ports = 2, num_ports 1262 drivers/phy/rockchip/phy-rockchip-inno-usb2.c .num_ports = 2, num_ports 1305 drivers/phy/rockchip/phy-rockchip-inno-usb2.c .num_ports = 2, num_ports 1324 drivers/phy/rockchip/phy-rockchip-inno-usb2.c .num_ports = 2, num_ports 1359 drivers/phy/rockchip/phy-rockchip-inno-usb2.c .num_ports = 2, num_ports 1386 drivers/phy/rockchip/phy-rockchip-inno-usb2.c .num_ports = 2, num_ports 41 drivers/phy/ti/phy-gmii-sel.c u32 num_ports; num_ports 140 drivers/phy/ti/phy-gmii-sel.c .num_ports = 2, num_ports 162 drivers/phy/ti/phy-gmii-sel.c .num_ports = 2, num_ports 168 drivers/phy/ti/phy-gmii-sel.c .num_ports = 2, num_ports 212 drivers/phy/ti/phy-gmii-sel.c if (phy_id > priv->soc_data->num_ports) num_ports 231 drivers/phy/ti/phy-gmii-sel.c int i, num_ports, ret; num_ports 233 drivers/phy/ti/phy-gmii-sel.c num_ports = priv->soc_data->num_ports; num_ports 235 drivers/phy/ti/phy-gmii-sel.c if_phys = devm_kcalloc(priv->dev, num_ports, num_ports 239 drivers/phy/ti/phy-gmii-sel.c dev_dbg(dev, "%s %d\n", __func__, num_ports); num_ports 241 drivers/phy/ti/phy-gmii-sel.c for (i = 0; i < num_ports; i++) { num_ports 157 drivers/power/supply/cros_usbpd-charger.c return resp.num_ports; num_ports 1581 drivers/scsi/bfa/bfa_fc.h __be32 num_ports; /* number Of Port Entries */ num_ports 646 drivers/scsi/bfa/bfa_fcs.h __be32 num_ports; num_ports 669 drivers/scsi/bfa/bfa_fcs.h __be32 num_ports; num_ports 1917 drivers/scsi/bfa/bfa_fcs_lport.c rhba->port_list.num_ports = cpu_to_be32(1); num_ports 2113 drivers/scsi/bfa/bfa_fcs_lport.c templen = sizeof(fcs_hba_attr->num_ports); num_ports 2114 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_hba_attr->num_ports, templen); num_ports 2441 drivers/scsi/bfa/bfa_fcs_lport.c templen = sizeof(fcs_port_attr.num_ports); num_ports 2442 drivers/scsi/bfa/bfa_fcs_lport.c memcpy(attr->value, &fcs_port_attr.num_ports, templen); num_ports 2661 drivers/scsi/bfa/bfa_fcs_lport.c hba_attr->num_ports = num_ports 2751 drivers/scsi/bfa/bfa_fcs_lport.c port_attr->num_ports = cpu_to_be32(port->num_rports); num_ports 1778 drivers/scsi/cxlflash/main.c int i = 0, num_ports = 0; num_ports 1818 drivers/scsi/cxlflash/main.c num_ports = 0; num_ports 1822 drivers/scsi/cxlflash/main.c num_ports = cfg->num_fc_ports; num_ports 1825 drivers/scsi/cxlflash/main.c for (i = 0; i < num_ports; i++) { num_ports 735 drivers/scsi/esas2r/atioctl.h u8 num_ports; num_ports 833 drivers/scsi/esas2r/esas2r_ioctl.c gai->num_ports = ESAS2R_NUM_PHYS; num_ports 505 drivers/scsi/myrs.h unsigned char num_ports; /* Byte 10 */ num_ports 2670 drivers/scsi/qla2xxx/qla_def.h uint32_t num_ports; num_ports 2736 drivers/scsi/qla2xxx/qla_def.h uint32_t num_ports; num_ports 2156 drivers/scsi/qla2xxx/qla_gs.c eiter->a.num_ports = cpu_to_be32(1); num_ports 2161 drivers/scsi/qla2xxx/qla_gs.c "Port Num = %x.\n", eiter->a.num_ports); num_ports 2562 drivers/scsi/qla2xxx/qla_gs.c eiter->a.num_ports = cpu_to_be32(1); num_ports 2567 drivers/scsi/qla2xxx/qla_gs.c "Number of ports = %x.\n", eiter->a.num_ports); num_ports 932 drivers/slimbus/qcom-ngd-ctrl.c for (i = 0; i < rt->num_ports; i++) { num_ports 341 drivers/slimbus/slimbus.h int num_ports; num_ports 207 drivers/slimbus/stream.c int num_ports, i, port_id; num_ports 214 drivers/slimbus/stream.c num_ports = hweight32(cfg->port_mask); num_ports 215 drivers/slimbus/stream.c rt->ports = kcalloc(num_ports, sizeof(*port), GFP_KERNEL); num_ports 219 drivers/slimbus/stream.c rt->num_ports = num_ports; num_ports 362 drivers/slimbus/stream.c for (i = 0; i < stream->num_ports; i++) num_ports 373 drivers/slimbus/stream.c for (i = 0; i < stream->num_ports; i++) { num_ports 380 drivers/slimbus/stream.c for (i = 0; i < stream->num_ports; i++) { num_ports 417 drivers/slimbus/stream.c for (i = 0; i < stream->num_ports; i++) num_ports 441 drivers/slimbus/stream.c for (i = 0; i < stream->num_ports; i++) num_ports 446 drivers/slimbus/stream.c stream->num_ports = 0; num_ports 33 drivers/soc/fsl/qe/qe_io.c const u32 *num_ports; num_ports 41 drivers/soc/fsl/qe/qe_io.c num_ports = of_get_property(np, "num-ports", NULL); num_ports 42 drivers/soc/fsl/qe/qe_io.c if (num_ports) num_ports 43 drivers/soc/fsl/qe/qe_io.c num_par_io_ports = *num_ports; num_ports 253 drivers/soundwire/cadence_master.c int num_ports; num_ports 286 drivers/soundwire/cadence_master.c num_ports = cdns->num_ports + CDNS_PCM_PDI_OFFSET; num_ports 288 drivers/soundwire/cadence_master.c for (i = 0; i < num_ports; i++) { num_ports 298 drivers/soundwire/cadence_master.c for (i = 0; i < num_ports; i++) { num_ports 309 drivers/soundwire/cadence_master.c for (i = 0; i < num_ports; i++) num_ports 317 drivers/soundwire/cadence_master.c for (i = 0; i < num_ports; i++) num_ports 880 drivers/soundwire/cadence_master.c cdns->num_ports = stream->num_pdi; num_ports 906 drivers/soundwire/cadence_master.c cdns->num_ports += stream->num_pdi; num_ports 908 drivers/soundwire/cadence_master.c cdns->ports = devm_kcalloc(cdns->dev, cdns->num_ports, num_ports 915 drivers/soundwire/cadence_master.c for (i = 0; i < cdns->num_ports; i++) { num_ports 140 drivers/soundwire/cadence_master.h int num_ports; num_ports 619 drivers/soundwire/intel.c for (i = 0; i < cdns->num_ports; i++) { num_ports 1192 drivers/soundwire/stream.c unsigned int num_ports) num_ports 1198 drivers/soundwire/stream.c for (i = 0; i < num_ports; i++) { num_ports 1261 drivers/soundwire/stream.c unsigned int num_ports, num_ports 1294 drivers/soundwire/stream.c ret = sdw_master_port_config(bus, m_rt, port_config, num_ports); num_ports 1326 drivers/soundwire/stream.c unsigned int num_ports, num_ports 1363 drivers/soundwire/stream.c ret = sdw_slave_port_config(slave, s_rt, port_config, num_ports); num_ports 1400 drivers/soundwire/stream.c u8 num_ports; num_ports 1404 drivers/soundwire/stream.c num_ports = hweight32(slave->prop.source_ports); num_ports 1407 drivers/soundwire/stream.c num_ports = hweight32(slave->prop.sink_ports); num_ports 1411 drivers/soundwire/stream.c for (i = 0; i < num_ports; i++) { num_ports 278 drivers/staging/comedi/drivers/ni_65xx.c unsigned int num_ports = ni_65xx_num_ports(dev); num_ports 282 drivers/staging/comedi/drivers/ni_65xx.c for (i = 0; i < num_ports; ++i) num_ports 295 drivers/staging/comedi/drivers/ni_65xx.c unsigned int num_ports = ni_65xx_num_ports(dev); num_ports 298 drivers/staging/comedi/drivers/ni_65xx.c if (base_chan >= NI_65XX_PORT_TO_CHAN(num_ports)) num_ports 301 drivers/staging/comedi/drivers/ni_65xx.c for (port = NI_65XX_CHAN_TO_PORT(base_chan); port < num_ports; port++) { num_ports 67 drivers/staging/fwserial/fwserial.c #define loop_idx(port) (((port)->index) / num_ports) num_ports 68 drivers/staging/fwserial/fwserial.c #define table_idx(loop) ((loop) * num_ports + num_ttys) num_ports 71 drivers/staging/fwserial/fwserial.c static int num_ports; num_ports 843 drivers/staging/fwserial/fwserial.c for (i = 0; i + num_ports <= MAX_TOTAL_PORTS; i += num_ports) { num_ports 845 drivers/staging/fwserial/fwserial.c for (j = 0; j < num_ports; ++i, ++j) { num_ports 866 drivers/staging/fwserial/fwserial.c for (j = 0; j < num_ports; ++i, ++j) { num_ports 875 drivers/staging/fwserial/fwserial.c for (j = 0; j < num_ports; ++j) { num_ports 1471 drivers/staging/fwserial/fwserial.c for (i = 0; i < num_ports; ++i) { num_ports 1684 drivers/staging/fwserial/fwserial.c if (index < 0 || index >= num_ports) num_ports 2158 drivers/staging/fwserial/fwserial.c for (i = 0; i < num_ports; ++i) { num_ports 2753 drivers/staging/fwserial/fwserial.c num_ports = num_ttys + num_loops; num_ports 2779 drivers/staging/fwserial/fwserial.c fwloop_driver = tty_alloc_driver(MAX_TOTAL_PORTS / num_ports, num_ports 715 drivers/staging/octeon/ethernet.c int num_ports = cvmx_helper_ports_on_interface(interface); num_ports 719 drivers/staging/octeon/ethernet.c port < cvmx_helper_get_ipd_port(interface, num_ports); num_ports 811 drivers/staging/octeon/ethernet.c int num_ports = cvmx_helper_ports_on_interface(interface); num_ports 817 drivers/staging/octeon/ethernet.c port < cvmx_helper_get_ipd_port(interface, num_ports); num_ports 26 drivers/tty/serial/8250/8250_acorn.c unsigned int num_ports; num_ports 33 drivers/tty/serial/8250/8250_acorn.c unsigned int num_ports; num_ports 51 drivers/tty/serial/8250/8250_acorn.c info->num_ports = type->num_ports; num_ports 70 drivers/tty/serial/8250/8250_acorn.c for (i = 0; i < info->num_ports; i++) { num_ports 87 drivers/tty/serial/8250/8250_acorn.c for (i = 0; i < info->num_ports; i++) num_ports 95 drivers/tty/serial/8250/8250_acorn.c .num_ports = 3, num_ports 102 drivers/tty/serial/8250/8250_acorn.c .num_ports = 2, num_ports 127 drivers/tty/serial/8250/8250_exar.c unsigned int num_ports; num_ports 531 drivers/tty/serial/8250/8250_exar.c if (priv->board->num_ports > 8) num_ports 570 drivers/tty/serial/8250/8250_exar.c nr_ports = board->num_ports ? board->num_ports : pcidev->device & 0x0f; num_ports 670 drivers/tty/serial/8250/8250_exar.c .num_ports = 2, num_ports 675 drivers/tty/serial/8250/8250_exar.c .num_ports = 4, num_ports 680 drivers/tty/serial/8250/8250_exar.c .num_ports = 8, num_ports 686 drivers/tty/serial/8250/8250_exar.c .num_ports = 2, num_ports 691 drivers/tty/serial/8250/8250_exar.c .num_ports = 4, num_ports 696 drivers/tty/serial/8250/8250_exar.c .num_ports = 8, num_ports 705 drivers/tty/serial/8250/8250_exar.c .num_ports = 1, num_ports 719 drivers/tty/serial/8250/8250_exar.c .num_ports = 12, num_ports 725 drivers/tty/serial/8250/8250_exar.c .num_ports = 16, num_ports 59 drivers/tty/serial/8250/8250_hp300.c static unsigned int num_ports; num_ports 197 drivers/tty/serial/8250/8250_hp300.c num_ports++; num_ports 225 drivers/tty/serial/8250/8250_hp300.c if (!num_ports) num_ports 276 drivers/tty/serial/8250/8250_hp300.c num_ports++; num_ports 281 drivers/tty/serial/8250/8250_hp300.c if (!num_ports) num_ports 75 drivers/tty/serial/8250/8250_men_mcb.c int num_ports; num_ports 86 drivers/tty/serial/8250/8250_men_mcb.c num_ports = get_num_ports(mdev, membase); num_ports 89 drivers/tty/serial/8250/8250_men_mcb.c mdev->id, num_ports); num_ports 91 drivers/tty/serial/8250/8250_men_mcb.c if (num_ports <= 0 || num_ports > 4) { num_ports 93 drivers/tty/serial/8250/8250_men_mcb.c num_ports); num_ports 97 drivers/tty/serial/8250/8250_men_mcb.c data = devm_kcalloc(&mdev->dev, num_ports, num_ports 105 drivers/tty/serial/8250/8250_men_mcb.c for (i = 0; i < num_ports; i++) { num_ports 136 drivers/tty/serial/8250/8250_men_mcb.c int num_ports, i; num_ports 142 drivers/tty/serial/8250/8250_men_mcb.c num_ports = get_num_ports(mdev, data[0].uart.port.membase); num_ports 143 drivers/tty/serial/8250/8250_men_mcb.c if (num_ports < 0 || num_ports > 4) { num_ports 148 drivers/tty/serial/8250/8250_men_mcb.c for (i = 0; i < num_ports; i++) num_ports 760 drivers/tty/serial/8250/8250_pci.c if (idx >= board->num_ports) num_ports 1813 drivers/tty/serial/8250/8250_pci.c if (board->num_ports == 4 && idx == 3) num_ports 2951 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 2957 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 2963 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 2969 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 2975 drivers/tty/serial/8250/8250_pci.c .num_ports = 5, num_ports 2981 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 2987 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 2993 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 2999 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3006 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3013 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3020 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3027 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3033 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3040 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3047 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3053 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3059 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3065 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3072 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3078 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3084 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3091 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3097 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3103 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3109 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3116 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3122 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3128 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3134 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3140 drivers/tty/serial/8250/8250_pci.c .num_ports = 16, num_ports 3147 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3153 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3159 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3165 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3171 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3178 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3184 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3190 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3197 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3204 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3210 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3216 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3222 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3229 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3235 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3241 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3247 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3254 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3260 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3266 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3272 drivers/tty/serial/8250/8250_pci.c .num_ports = 16, num_ports 3279 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3285 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3291 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3298 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3305 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3311 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3317 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3324 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3330 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3337 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3343 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3349 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3356 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3362 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3368 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3382 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3389 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3396 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3405 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3420 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3432 drivers/tty/serial/8250/8250_pci.c .num_ports = 32, num_ports 3438 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3445 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3452 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3459 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3472 drivers/tty/serial/8250/8250_pci.c .num_ports = 32, num_ports 3480 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3492 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3500 drivers/tty/serial/8250/8250_pci.c .num_ports = 6, num_ports 3508 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3516 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3526 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3534 drivers/tty/serial/8250/8250_pci.c .num_ports = 16, num_ports 3541 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3548 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3555 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3565 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3572 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3579 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3586 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3593 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3599 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3605 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3610 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3615 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3621 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3627 drivers/tty/serial/8250/8250_pci.c .num_ports = 12, num_ports 3633 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3638 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3643 drivers/tty/serial/8250/8250_pci.c .num_ports = 12, num_ports 3649 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3656 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3666 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3672 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3678 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3684 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3689 drivers/tty/serial/8250/8250_pci.c .num_ports = 1, num_ports 3694 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3699 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3704 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3709 drivers/tty/serial/8250/8250_pci.c .num_ports = 16, num_ports 3715 drivers/tty/serial/8250/8250_pci.c .num_ports = 2, num_ports 3721 drivers/tty/serial/8250/8250_pci.c .num_ports = 4, num_ports 3727 drivers/tty/serial/8250/8250_pci.c .num_ports = 8, num_ports 3823 drivers/tty/serial/8250/8250_pci.c board->num_ports = pci_resource_len(dev, first_port) / 8; num_ports 3846 drivers/tty/serial/8250/8250_pci.c board->num_ports = num_port; num_ports 3858 drivers/tty/serial/8250/8250_pci.c board->num_ports == guessed->num_ports && num_ports 3873 drivers/tty/serial/8250/8250_pci.c nr_ports = board->num_ports; num_ports 1369 drivers/usb/core/devio.c if (++ci.num_ports <= ARRAY_SIZE(ci.ports)) num_ports 1370 drivers/usb/core/devio.c ci.ports[ARRAY_SIZE(ci.ports) - ci.num_ports] = num_ports 1375 drivers/usb/core/devio.c if (ci.num_ports < ARRAY_SIZE(ci.ports)) num_ports 1377 drivers/usb/core/devio.c &ci.ports[ARRAY_SIZE(ci.ports) - ci.num_ports], num_ports 1378 drivers/usb/core/devio.c ci.num_ports); num_ports 222 drivers/usb/host/ohci-at91.c ohci->num_ports = board->ports; num_ports 245 drivers/usb/host/ohci-da8xx.c ohci->num_ports = 1; num_ports 212 drivers/usb/host/ohci-dbg.c (temp & RH_A_NDP), controller->num_ports num_ports 234 drivers/usb/host/ohci-dbg.c for (i = 0; i < controller->num_ports; i++) { num_ports 509 drivers/usb/host/ohci-hcd.c if (ohci->num_ports == 0) num_ports 510 drivers/usb/host/ohci-hcd.c ohci->num_ports = roothub_a(ohci) & RH_A_NDP; num_ports 845 drivers/usb/host/ohci-hcd.c for (i = 0; i < ohci->num_ports; ++i) { num_ports 1157 drivers/usb/host/ohci-hcd.c for (port = 0; port < ohci->num_ports; port++) num_ports 104 drivers/usb/host/ohci-hub.c for (i = 0; i < ohci->num_ports; (++i, ++portstat)) { num_ports 491 drivers/usb/host/ohci-hub.c if (ohci->num_ports > 7) { num_ports 502 drivers/usb/host/ohci-hub.c for (i = 0; i < ohci->num_ports; i++) { num_ports 546 drivers/usb/host/ohci-hub.c desc->bNbrPorts = ohci->num_ports; num_ports 547 drivers/usb/host/ohci-hub.c temp = 1 + (ohci->num_ports / 8); num_ports 566 drivers/usb/host/ohci-hub.c if (ohci->num_ports > 7) { num_ports 682 drivers/usb/host/ohci-hub.c int ports = ohci->num_ports; num_ports 145 drivers/usb/host/ohci-platform.c &ohci->num_ports); num_ports 176 drivers/usb/host/ohci-platform.c if (pdata->num_ports) num_ports 177 drivers/usb/host/ohci-platform.c ohci->num_ports = pdata->num_ports; num_ports 492 drivers/usb/host/ohci-pxa27x.c ohci->num_ports = 3; num_ports 97 drivers/usb/host/ohci-tmio.c switch (ohci->num_ports) { num_ports 99 drivers/usb/host/ohci-tmio.c dev_err(&dev->dev, "Unsupported amount of ports: %d\n", ohci->num_ports); num_ports 402 drivers/usb/host/ohci.h int num_ports; num_ports 190 drivers/usb/host/u132-hcd.c int num_ports; num_ports 457 drivers/usb/host/u132-hcd.c int I = u132->num_ports; num_ports 1568 drivers/usb/host/u132-hcd.c if (u132->num_ports == 0) { num_ports 1573 drivers/usb/host/u132-hcd.c u132->num_ports = rh_a & RH_A_NDP; num_ports 1578 drivers/usb/host/u132-hcd.c if (u132->num_ports > MAX_U132_PORTS) num_ports 1645 drivers/usb/host/u132-hcd.c for (temp = 0; temp < u132->num_ports; temp++) { num_ports 2576 drivers/usb/host/u132-hcd.c desc->bNbrPorts = u132->num_ports; num_ports 2577 drivers/usb/host/u132-hcd.c temp = 1 + (u132->num_ports / 8); num_ports 2595 drivers/usb/host/u132-hcd.c if (u132->num_ports > 7) { num_ports 2613 drivers/usb/host/u132-hcd.c if (wIndex == 0 || wIndex > u132->num_ports) { num_ports 2687 drivers/usb/host/u132-hcd.c if (wIndex == 0 || wIndex > u132->num_ports) { num_ports 2711 drivers/usb/host/u132-hcd.c if (wIndex == 0 || wIndex > u132->num_ports) { num_ports 2783 drivers/usb/host/u132-hcd.c if (u132->num_ports > 7) { num_ports 2787 drivers/usb/host/u132-hcd.c for (i = 0; i < u132->num_ports; i++) { num_ports 107 drivers/usb/host/uhci-platform.c u32 num_ports; num_ports 109 drivers/usb/host/uhci-platform.c if (of_property_read_u32(np, "#ports", &num_ports) == 0) { num_ports 110 drivers/usb/host/uhci-platform.c uhci->rh_numports = num_ports; num_ports 113 drivers/usb/host/uhci-platform.c num_ports); num_ports 520 drivers/usb/host/xhci-debugfs.c unsigned int num_ports; num_ports 525 drivers/usb/host/xhci-debugfs.c num_ports = HCS_MAX_PORTS(xhci->hcs_params1); num_ports 529 drivers/usb/host/xhci-debugfs.c while (num_ports--) { num_ports 531 drivers/usb/host/xhci-debugfs.c num_ports + 1); num_ports 533 drivers/usb/host/xhci-debugfs.c port = &xhci->hw_ports[num_ports]; num_ports 204 drivers/usb/host/xhci-hub.c ports = rhub->num_ports; num_ports 257 drivers/usb/host/xhci-hub.c ports = rhub->num_ports; num_ports 639 drivers/usb/host/xhci-hub.c for (i = 0; i < xhci->usb3_rhub.num_ports; i++) num_ports 642 drivers/usb/host/xhci-hub.c for (i = 0; i < xhci->usb2_rhub.num_ports; i++) num_ports 798 drivers/usb/host/xhci-hub.c u32 all_ports_seen_u0 = ((1 << xhci->usb3_rhub.num_ports) - 1); num_ports 1106 drivers/usb/host/xhci-hub.c max_ports = rhub->num_ports; num_ports 1537 drivers/usb/host/xhci-hub.c max_ports = rhub->num_ports; num_ports 1598 drivers/usb/host/xhci-hub.c max_ports = rhub->num_ports; num_ports 1753 drivers/usb/host/xhci-hub.c max_ports = rhub->num_ports; num_ports 838 drivers/usb/host/xhci-mem.c unsigned int num_ports; num_ports 843 drivers/usb/host/xhci-mem.c num_ports = 1; num_ports 845 drivers/usb/host/xhci-mem.c num_ports = hdev->maxchild; num_ports 847 drivers/usb/host/xhci-mem.c for (i = 0; i < num_ports; i++, tt_info++) { num_ports 1843 drivers/usb/host/xhci-mem.c int i, j, num_ports; num_ports 1863 drivers/usb/host/xhci-mem.c num_ports = HCS_MAX_PORTS(xhci->hcs_params1); num_ports 1864 drivers/usb/host/xhci-mem.c for (i = 0; i < num_ports && xhci->rh_bw; i++) { num_ports 1904 drivers/usb/host/xhci-mem.c for (i = 0; i < num_ports; i++) { num_ports 1914 drivers/usb/host/xhci-mem.c xhci->usb2_rhub.num_ports = 0; num_ports 1915 drivers/usb/host/xhci-mem.c xhci->usb3_rhub.num_ports = 0; num_ports 2121 drivers/usb/host/xhci-mem.c static void xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports, num_ports 2160 drivers/usb/host/xhci-mem.c if (port_offset == 0 || (port_offset + port_count - 1) > num_ports) num_ports 2225 drivers/usb/host/xhci-mem.c hw_port->rhub->num_ports--; num_ports 2232 drivers/usb/host/xhci-mem.c rhub->num_ports++; num_ports 2244 drivers/usb/host/xhci-mem.c if (!rhub->num_ports) num_ports 2246 drivers/usb/host/xhci-mem.c rhub->ports = kcalloc_node(rhub->num_ports, sizeof(rhub->ports), flags, num_ports 2255 drivers/usb/host/xhci-mem.c if (port_index == rhub->num_ports) num_ports 2271 drivers/usb/host/xhci-mem.c unsigned int num_ports; num_ports 2277 drivers/usb/host/xhci-mem.c num_ports = HCS_MAX_PORTS(xhci->hcs_params1); num_ports 2278 drivers/usb/host/xhci-mem.c xhci->hw_ports = kcalloc_node(num_ports, sizeof(*xhci->hw_ports), num_ports 2283 drivers/usb/host/xhci-mem.c for (i = 0; i < num_ports; i++) { num_ports 2289 drivers/usb/host/xhci-mem.c xhci->rh_bw = kcalloc_node(num_ports, sizeof(*xhci->rh_bw), flags, num_ports 2293 drivers/usb/host/xhci-mem.c for (i = 0; i < num_ports; i++) { num_ports 2330 drivers/usb/host/xhci-mem.c xhci_add_in_port(xhci, num_ports, base + offset, cap_count); num_ports 2331 drivers/usb/host/xhci-mem.c if (xhci->usb2_rhub.num_ports + xhci->usb3_rhub.num_ports == num_ports 2332 drivers/usb/host/xhci-mem.c num_ports) num_ports 2337 drivers/usb/host/xhci-mem.c if (xhci->usb2_rhub.num_ports == 0 && xhci->usb3_rhub.num_ports == 0) { num_ports 2343 drivers/usb/host/xhci-mem.c xhci->usb2_rhub.num_ports, xhci->usb3_rhub.num_ports); num_ports 2348 drivers/usb/host/xhci-mem.c if (xhci->usb3_rhub.num_ports > USB_SS_MAXPORTS) { num_ports 2352 drivers/usb/host/xhci-mem.c xhci->usb3_rhub.num_ports = USB_SS_MAXPORTS; num_ports 2354 drivers/usb/host/xhci-mem.c if (xhci->usb2_rhub.num_ports > USB_MAXCHILDREN) { num_ports 2358 drivers/usb/host/xhci-mem.c xhci->usb2_rhub.num_ports = USB_MAXCHILDREN; num_ports 67 drivers/usb/host/xhci-mtk-sch.c bw_index = virt_dev->real_port + xhci->usb3_rhub.num_ports - 1; num_ports 571 drivers/usb/host/xhci-mtk-sch.c num_usb_bus = xhci->usb3_rhub.num_ports * 2 + xhci->usb2_rhub.num_ports; num_ports 486 drivers/usb/host/xhci.c for (i = 0; i < rhub->num_ports; i++) { num_ports 507 drivers/usb/host/xhci.c if (xhci->port_status_u0 != ((1 << rhub->num_ports) - 1)) num_ports 564 drivers/usb/host/xhci.c return (xhci->port_status_u0 == ((1 << xhci->usb3_rhub.num_ports) - 1)); num_ports 896 drivers/usb/host/xhci.c port_index = xhci->usb3_rhub.num_ports; num_ports 912 drivers/usb/host/xhci.c port_index = xhci->usb2_rhub.num_ports; num_ports 945 drivers/usb/host/xhci.c port_index = xhci->usb2_rhub.num_ports; num_ports 953 drivers/usb/host/xhci.c port_index = xhci->usb3_rhub.num_ports; num_ports 1724 drivers/usb/host/xhci.h unsigned int num_ports; num_ports 2196 drivers/usb/misc/ftdi-elan.c int num_ports; num_ports 2218 drivers/usb/misc/ftdi-elan.c num_ports = rh_a & RH_A_NDP; num_ports 2256 drivers/usb/misc/ftdi-elan.c for (temp = 0; temp < num_ports; temp++) { num_ports 2381 drivers/usb/misc/ftdi-elan.c for (temp = 0; temp < num_ports; temp++) { num_ports 631 drivers/usb/serial/ark3116.c .num_ports = 1, num_ports 73 drivers/usb/serial/belkin_sa.c .num_ports = 1, num_ports 679 drivers/usb/serial/ch341.c .num_ports = 1, num_ports 267 drivers/usb/serial/cp210x.c .num_ports = 1, num_ports 75 drivers/usb/serial/cyberjack.c .num_ports = 1, num_ports 144 drivers/usb/serial/cypress_m8.c .num_ports = 1, num_ports 171 drivers/usb/serial/cypress_m8.c .num_ports = 1, num_ports 197 drivers/usb/serial/cypress_m8.c .num_ports = 1, num_ports 271 drivers/usb/serial/digi_acceleport.c .num_ports = 3, num_ports 302 drivers/usb/serial/digi_acceleport.c .num_ports = 4, num_ports 1216 drivers/usb/serial/digi_acceleport.c for (i = 0; i < serial->type->num_ports + 1; i++) { num_ports 1262 drivers/usb/serial/digi_acceleport.c serial_priv->ds_oob_port_num = serial->type->num_ports; num_ports 1283 drivers/usb/serial/digi_acceleport.c for (i = 0; i < serial->type->num_ports + 1; i++) { num_ports 1495 drivers/usb/serial/digi_acceleport.c if (status != 0 || line >= serial->type->num_ports) num_ports 50 drivers/usb/serial/empeg.c .num_ports = 1, num_ports 803 drivers/usb/serial/f81232.c .num_ports = 1, num_ports 1539 drivers/usb/serial/f81534.c for (i = 0; i < serial->num_ports; i++) { num_ports 1102 drivers/usb/serial/ftdi_sio.c .num_ports = 1, num_ports 1421 drivers/usb/serial/garmin_gps.c .num_ports = 1, num_ports 52 drivers/usb/serial/generic.c int num_ports; num_ports 54 drivers/usb/serial/generic.c num_ports = max(epds->num_bulk_in, epds->num_bulk_out); num_ports 56 drivers/usb/serial/generic.c if (num_ports == 0) { num_ports 61 drivers/usb/serial/generic.c return num_ports; num_ports 641 drivers/usb/serial/generic.c for (i = 0; i < serial->num_ports; i++) { num_ports 714 drivers/usb/serial/io_edgeport.c (portNumber < edge_serial->serial->num_ports)) { num_ports 1825 drivers/usb/serial/io_edgeport.c if (rxLen && edge_serial->rxPort < serial->num_ports) { num_ports 1872 drivers/usb/serial/io_edgeport.c if (edge_serial->rxPort >= edge_serial->serial->num_ports) num_ports 2870 drivers/usb/serial/io_edgeport.c (edge_serial->product_info.NumPorts != serial->num_ports)) { num_ports 2874 drivers/usb/serial/io_edgeport.c serial->num_ports); num_ports 3098 drivers/usb/serial/io_edgeport.c .num_ports = 2, num_ports 3134 drivers/usb/serial/io_edgeport.c .num_ports = 4, num_ports 3170 drivers/usb/serial/io_edgeport.c .num_ports = 8, num_ports 3206 drivers/usb/serial/io_edgeport.c .num_ports = 1, num_ports 1674 drivers/usb/serial/io_ti.c if (port_number >= edge_serial->serial->num_ports) { num_ports 2511 drivers/usb/serial/io_ti.c unsigned char num_ports = serial->type->num_ports; num_ports 2515 drivers/usb/serial/io_ti.c if (epds->num_bulk_in < num_ports || num_ports 2516 drivers/usb/serial/io_ti.c epds->num_bulk_out < num_ports || num_ports 2523 drivers/usb/serial/io_ti.c return num_ports; num_ports 2710 drivers/usb/serial/io_ti.c .num_ports = 1, num_ports 2749 drivers/usb/serial/io_ti.c .num_ports = 2, num_ports 293 drivers/usb/serial/ipw.c .num_ports = 1, num_ports 78 drivers/usb/serial/ir-usb.c .num_ports = 1, num_ports 1159 drivers/usb/serial/iuu_phoenix.c .num_ports = 1, num_ports 162 drivers/usb/serial/keyspan.c int num_ports; num_ports 209 drivers/usb/serial/keyspan.c .num_ports = 1, num_ports 226 drivers/usb/serial/keyspan.c .num_ports = 1, num_ports 243 drivers/usb/serial/keyspan.c .num_ports = 1, num_ports 260 drivers/usb/serial/keyspan.c .num_ports = 1, num_ports 277 drivers/usb/serial/keyspan.c .num_ports = 1, num_ports 294 drivers/usb/serial/keyspan.c .num_ports = 1, num_ports 311 drivers/usb/serial/keyspan.c .num_ports = 1, num_ports 328 drivers/usb/serial/keyspan.c .num_ports = 2, num_ports 345 drivers/usb/serial/keyspan.c .num_ports = 2, num_ports 362 drivers/usb/serial/keyspan.c .num_ports = 2, num_ports 379 drivers/usb/serial/keyspan.c .num_ports = 2, num_ports 400 drivers/usb/serial/keyspan.c .num_ports = 4, num_ports 417 drivers/usb/serial/keyspan.c .num_ports = 4, num_ports 434 drivers/usb/serial/keyspan.c .num_ports = 4, num_ports 899 drivers/usb/serial/keyspan.c if (msg->port >= serial->num_ports) { num_ports 1019 drivers/usb/serial/keyspan.c if (msg->port >= serial->num_ports) { num_ports 1058 drivers/usb/serial/keyspan.c for (i = 0; i < serial->num_ports; ++i) { num_ports 1103 drivers/usb/serial/keyspan.c if (msg->portNumber >= serial->num_ports) { num_ports 1209 drivers/usb/serial/keyspan.c if (data[i] >= serial->num_ports) { num_ports 1429 drivers/usb/serial/keyspan.c if (msg->port >= serial->num_ports) { num_ports 1461 drivers/usb/serial/keyspan.c for (i = 0; i < serial->num_ports; ++i) { num_ports 3029 drivers/usb/serial/keyspan.c .num_ports = 1, num_ports 3040 drivers/usb/serial/keyspan.c .num_ports = 1, num_ports 3064 drivers/usb/serial/keyspan.c .num_ports = 2, num_ports 3088 drivers/usb/serial/keyspan.c .num_ports = 4, num_ports 746 drivers/usb/serial/keyspan_pda.c .num_ports = 1, num_ports 759 drivers/usb/serial/keyspan_pda.c .num_ports = 1, num_ports 771 drivers/usb/serial/keyspan_pda.c .num_ports = 1, num_ports 82 drivers/usb/serial/kl5kusb105.c .num_ports = 1, num_ports 84 drivers/usb/serial/kobil_sct.c .num_ports = 1, num_ports 76 drivers/usb/serial/mct_u232.c .num_ports = 1, num_ports 308 drivers/usb/serial/mos7840.c if (port->serial->num_ports == 2 && port->port_number != 0) num_ports 337 drivers/usb/serial/mos7840.c if (port->serial->num_ports == 2 && port->port_number != 0) num_ports 645 drivers/usb/serial/mos7840.c for (i = 0; i < serial->num_ports; i++) { num_ports 1064 drivers/usb/serial/mos7840.c if ((serial->num_ports == 2) && (((__u16)port->port_number % 2) != 0)) { num_ports 1341 drivers/usb/serial/mos7840.c if ((serial->num_ports == 2) && (((__u16)port->port_number % 2) != 0)) { num_ports 2071 drivers/usb/serial/mos7840.c int num_ports; num_ports 2074 drivers/usb/serial/mos7840.c num_ports = 3; num_ports 2076 drivers/usb/serial/mos7840.c num_ports = (device_type >> 4) & 0x000F; num_ports 2082 drivers/usb/serial/mos7840.c if (num_ports == 0) num_ports 2085 drivers/usb/serial/mos7840.c if (epds->num_bulk_in < num_ports || epds->num_bulk_out < num_ports) { num_ports 2090 drivers/usb/serial/mos7840.c return num_ports; num_ports 2135 drivers/usb/serial/mos7840.c if (serial->num_ports == 2) num_ports 2222 drivers/usb/serial/mos7840.c if ((mos7840_port->port_num != 1) && (serial->num_ports == 2)) { num_ports 2284 drivers/usb/serial/mos7840.c if (pnum == serial->num_ports - 1) { num_ports 489 drivers/usb/serial/mxuport.c if (rcv_port >= serial->num_ports) { num_ports 536 drivers/usb/serial/mxuport.c if (rcv_port >= serial->num_ports) { num_ports 949 drivers/usb/serial/mxuport.c int num_ports; num_ports 953 drivers/usb/serial/mxuport.c num_ports = 2; num_ports 955 drivers/usb/serial/mxuport.c num_ports = 4; num_ports 957 drivers/usb/serial/mxuport.c num_ports = 8; num_ports 959 drivers/usb/serial/mxuport.c num_ports = 16; num_ports 963 drivers/usb/serial/mxuport.c num_ports = 2; num_ports 972 drivers/usb/serial/mxuport.c for (i = 1; i < num_ports; ++i) num_ports 975 drivers/usb/serial/mxuport.c epds->num_bulk_out = num_ports; num_ports 977 drivers/usb/serial/mxuport.c return num_ports; num_ports 1273 drivers/usb/serial/mxuport.c for (i = 0; i < serial->num_ports; i++) { num_ports 102 drivers/usb/serial/navman.c .num_ports = 1, num_ports 378 drivers/usb/serial/opticon.c .num_ports = 1, num_ports 2046 drivers/usb/serial/option.c .num_ports = 1, num_ports 144 drivers/usb/serial/oti6858.c .num_ports = 1, num_ports 79 drivers/usb/serial/qcaux.c .num_ports = 1, num_ports 456 drivers/usb/serial/qcserial.c .num_ports = 1, num_ports 77 drivers/usb/serial/quatech2.c int num_ports; num_ports 82 drivers/usb/serial/quatech2.c .num_ports = (ports) num_ports 253 drivers/usb/serial/quatech2.c return d.num_ports; num_ports 558 drivers/usb/serial/quatech2.c if (newport > serial->num_ports) { num_ports 291 drivers/usb/serial/safe_serial.c .num_ports = 1, num_ports 88 drivers/usb/serial/sierra.c int num_ports = 0; num_ports 96 drivers/usb/serial/sierra.c num_ports = 0; num_ports 98 drivers/usb/serial/sierra.c num_ports = 1; num_ports 100 drivers/usb/serial/sierra.c num_ports = (numendpoints-1)/2; num_ports 101 drivers/usb/serial/sierra.c return num_ports; num_ports 324 drivers/usb/serial/sierra.c if (serial->num_ports == 1) { num_ports 898 drivers/usb/serial/sierra.c if (serial->num_ports == 1) { num_ports 943 drivers/usb/serial/sierra.c for (i = 0; i < serial->num_ports; ++i) { num_ports 1020 drivers/usb/serial/sierra.c for (i = 0; i < serial->num_ports; i++) { num_ports 470 drivers/usb/serial/spcp8x5.c .num_ports = 1, num_ports 538 drivers/usb/serial/ssu100.c .num_ports = 1, num_ports 178 drivers/usb/serial/symbolserial.c .num_ports = 1, num_ports 423 drivers/usb/serial/ti_usb_3410_5052.c .num_ports = 1, num_ports 457 drivers/usb/serial/ti_usb_3410_5052.c .num_ports = 2, num_ports 580 drivers/usb/serial/ti_usb_3410_5052.c if (serial->num_bulk_in < serial->num_ports || num_ports 581 drivers/usb/serial/ti_usb_3410_5052.c serial->num_bulk_out < serial->num_ports) { num_ports 1152 drivers/usb/serial/ti_usb_3410_5052.c if (port_number >= serial->num_ports) { num_ports 417 drivers/usb/serial/upd78f0730.c .num_ports = 1, num_ports 31 drivers/usb/serial/usb-serial-simple.c .num_ports = nport, \ num_ports 84 drivers/usb/serial/usb-serial.c static int allocate_minors(struct usb_serial *serial, int num_ports) num_ports 90 drivers/usb/serial/usb-serial.c dev_dbg(&serial->interface->dev, "%s %d\n", __func__, num_ports); num_ports 93 drivers/usb/serial/usb-serial.c for (i = 0; i < num_ports; ++i) { num_ports 118 drivers/usb/serial/usb-serial.c for (i = 0; i < serial->num_ports; ++i) num_ports 485 drivers/usb/serial/usb-serial.c seq_printf(m, " num_ports:%d", serial->num_ports); num_ports 876 drivers/usb/serial/usb-serial.c int num_ports = 0; num_ports 935 drivers/usb/serial/usb-serial.c num_ports = retval; num_ports 938 drivers/usb/serial/usb-serial.c if (!num_ports) num_ports 939 drivers/usb/serial/usb-serial.c num_ports = type->num_ports; num_ports 941 drivers/usb/serial/usb-serial.c if (num_ports > MAX_NUM_PORTS) { num_ports 942 drivers/usb/serial/usb-serial.c dev_warn(ddev, "too many ports requested: %d\n", num_ports); num_ports 943 drivers/usb/serial/usb-serial.c num_ports = MAX_NUM_PORTS; num_ports 946 drivers/usb/serial/usb-serial.c serial->num_ports = (unsigned char)num_ports; num_ports 961 drivers/usb/serial/usb-serial.c max_endpoints = max(max_endpoints, serial->num_ports); num_ports 1034 drivers/usb/serial/usb-serial.c serial->num_ports = 0; num_ports 1041 drivers/usb/serial/usb-serial.c retval = allocate_minors(serial, num_ports); num_ports 1048 drivers/usb/serial/usb-serial.c for (i = 0; i < num_ports; ++i) { num_ports 1059 drivers/usb/serial/usb-serial.c if (num_ports > 0) num_ports 1091 drivers/usb/serial/usb-serial.c for (i = 0; i < serial->num_ports; ++i) { num_ports 1132 drivers/usb/serial/usb-serial.c for (i = 0; i < serial->num_ports; ++i) num_ports 1143 drivers/usb/serial/usb-serial.c for (i = 0; i < serial->num_ports; ++i) num_ports 78 drivers/usb/serial/usb_debug.c .num_ports = 1, num_ports 90 drivers/usb/serial/usb_debug.c .num_ports = 1, num_ports 577 drivers/usb/serial/usb_wwan.c for (i = 0; i < serial->num_ports; ++i) { num_ports 656 drivers/usb/serial/usb_wwan.c for (i = 0; i < serial->num_ports; i++) { num_ports 169 drivers/usb/serial/visor.c .num_ports = 2, num_ports 188 drivers/usb/serial/visor.c .num_ports = 2, num_ports 208 drivers/usb/serial/visor.c .num_ports = 1, num_ports 320 drivers/usb/serial/visor.c int num_ports = 0; num_ports 346 drivers/usb/serial/visor.c num_ports = le16_to_cpu(connection_info->num_ports); num_ports 349 drivers/usb/serial/visor.c if (num_ports == 0 || num_ports > 2) { num_ports 352 drivers/usb/serial/visor.c num_ports = 2; num_ports 355 drivers/usb/serial/visor.c for (i = 0; i < num_ports; ++i) { num_ports 381 drivers/usb/serial/visor.c num_ports); num_ports 387 drivers/usb/serial/visor.c usb_set_serial_data(serial, (void *)(long)num_ports); num_ports 471 drivers/usb/serial/visor.c int num_ports = (int)(long)(usb_get_serial_data(serial)); num_ports 473 drivers/usb/serial/visor.c if (num_ports) num_ports 499 drivers/usb/serial/visor.c return num_ports; num_ports 518 drivers/usb/serial/visor.c return serial->type->num_ports; num_ports 101 drivers/usb/serial/visor.h __le16 num_ports; num_ports 145 drivers/usb/serial/visor.h __u8 num_ports; num_ports 102 drivers/usb/serial/whiteheat.c .num_ports = 1, num_ports 114 drivers/usb/serial/whiteheat.c .num_ports = 4, num_ports 77 drivers/usb/serial/wishbone-serial.c .num_ports = 1, num_ports 56 drivers/usb/serial/xsens_mt.c .num_ports = 1, num_ports 66 drivers/video/fbdev/omap2/omapfb/dss/dss.c int num_ports; num_ports 823 drivers/video/fbdev/omap2/omapfb/dss/dss.c .num_ports = ARRAY_SIZE(omap2plus_ports), num_ports 832 drivers/video/fbdev/omap2/omapfb/dss/dss.c .num_ports = ARRAY_SIZE(omap34xx_ports), num_ports 841 drivers/video/fbdev/omap2/omapfb/dss/dss.c .num_ports = ARRAY_SIZE(omap2plus_ports), num_ports 850 drivers/video/fbdev/omap2/omapfb/dss/dss.c .num_ports = ARRAY_SIZE(omap2plus_ports), num_ports 859 drivers/video/fbdev/omap2/omapfb/dss/dss.c .num_ports = ARRAY_SIZE(omap2plus_ports), num_ports 868 drivers/video/fbdev/omap2/omapfb/dss/dss.c .num_ports = ARRAY_SIZE(omap2plus_ports), num_ports 877 drivers/video/fbdev/omap2/omapfb/dss/dss.c .num_ports = ARRAY_SIZE(dra7xx_ports), num_ports 928 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (dss.feat->num_ports == 0) num_ports 939 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (reg >= dss.feat->num_ports) num_ports 975 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (dss.feat->num_ports == 0) num_ports 987 drivers/video/fbdev/omap2/omapfb/dss/dss.c if (reg >= dss.feat->num_ports) num_ports 148 include/drm/drm_dp_mst_helper.h int num_ports; num_ports 44 include/drm/intel_lpe_audio.h int num_ports; num_ports 25 include/linux/8250_pci.h unsigned int num_ports; num_ports 273 include/linux/hsi/hsi.h unsigned int num_ports; num_ports 313 include/linux/hsi/hsi.h return (num < hsi->num_ports) ? hsi->port[num] : NULL; num_ports 53 include/linux/mlx4/device.h (dev_cap).num_ports * MIN_MSIX_P_PORT) num_ports 537 include/linux/mlx4/device.h int num_ports; num_ports 1028 include/linux/mlx4/device.h for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ num_ports 1032 include/linux/mlx4/device.h for ((port) = 1; (port) <= (dev)->caps.num_ports; (port)++) \ num_ports 1236 include/linux/mlx5/mlx5_ifc.h u8 num_ports[0x8]; num_ports 4782 include/linux/platform_data/cros_ec_commands.h uint8_t num_ports; num_ports 860 include/linux/soundwire/sdw.h unsigned int num_ports, num_ports 865 include/linux/soundwire/sdw.h unsigned int num_ports, num_ports 38 include/linux/usb/ohci_pdriver.h unsigned int num_ports; num_ports 155 include/linux/usb/serial.h unsigned char num_ports; num_ports 247 include/linux/usb/serial.h unsigned char num_ports; num_ports 406 include/media/v4l2-fwnode.h unsigned int num_ports, num_ports 279 include/net/dsa.h size_t num_ports; num_ports 313 include/net/dsa.h for (p = 0; p < ds->num_ports; p++) num_ports 126 include/rdma/ib_smi.h u8 num_ports; num_ports 107 include/rdma/opa_smi.h u8 num_ports; num_ports 84 include/sound/emux_synth.h int num_ports; /* number of ports to be created */ num_ports 88 include/uapi/linux/usbdevice_fs.h __u8 num_ports; /* Number of ports the device is connected */ num_ports 137 include/uapi/rdma/mlx5-abi.h __u16 num_ports; num_ports 359 include/uapi/sound/asequencer.h int num_ports; /* RO: number of ports */ num_ports 257 net/dsa/dsa.c for (i = 0; i < ds->num_ports; i++) { num_ports 284 net/dsa/dsa.c for (i = 0; i < ds->num_ports; i++) { num_ports 123 net/dsa/dsa2.c for (port = 0; port < ds->num_ports; port++) { num_ports 165 net/dsa/dsa2.c for (i = 0; i < ds->num_ports; i++) { num_ports 208 net/dsa/dsa2.c for (port = 0; port < ds->num_ports; port++) { num_ports 238 net/dsa/dsa2.c for (port = 0; port < ds->num_ports; port++) { num_ports 459 net/dsa/dsa2.c for (port = 0; port < ds->num_ports; port++) { num_ports 476 net/dsa/dsa2.c for (port = 0; port < ds->num_ports; port++) { num_ports 499 net/dsa/dsa2.c for (port = 0; port < ds->num_ports; port++) { num_ports 700 net/dsa/dsa2.c if (reg >= ds->num_ports) { num_ports 853 net/dsa/dsa2.c ds->num_ports = n; num_ports 855 net/dsa/dsa2.c for (i = 0; i < ds->num_ports; ++i) { num_ports 117 net/dsa/dsa_priv.h if (port < 0 || port >= ds->num_ports) num_ports 191 net/dsa/port.c for (i = 0; i < ds->num_ports; i++) { num_ports 22 net/dsa/switch.c for (i = 0; i < ds->num_ports; ++i) { num_ports 89 net/dsa/switch.c for (i = 0; i < ds->num_ports; i++) { num_ports 151 net/dsa/switch.c for (port = 0; port < ds->num_ports; port++) { num_ports 173 net/dsa/switch.c for (port = 0; port < ds->num_ports; port++) num_ports 249 net/dsa/switch.c for (port = 0; port < ds->num_ports; port++) { num_ports 275 net/dsa/switch.c for (port = 0; port < ds->num_ports; port++) num_ports 239 net/dsa/tag_8021q.c for (i = 0; i < ds->num_ports; i++) { num_ports 1233 sound/core/seq/seq_clientmgr.c info->num_ports = cptr->num_ports; num_ports 45 sound/core/seq/seq_clientmgr.h int num_ports; /* number of ports */ num_ports 52 sound/core/seq/seq_midi.c int num_ports; num_ports 387 sound/core/seq/seq_midi.c client->num_ports++; num_ports 434 sound/core/seq/seq_midi.c client->num_ports--; num_ports 435 sound/core/seq/seq_midi.c if (client->num_ports <= 0) { num_ports 123 sound/core/seq/seq_ports.c if (client->num_ports >= SNDRV_SEQ_MAX_PORTS) { num_ports 153 sound/core/seq/seq_ports.c client->num_ports++; num_ports 278 sound/core/seq/seq_ports.c client->num_ports--; num_ports 308 sound/core/seq/seq_ports.c client->num_ports = 0; num_ports 133 sound/drivers/mtpav.c int num_ports; /* number of hw ports (1-8) */ num_ports 170 sound/drivers/mtpav.c else if (subdev < chip->num_ports) num_ports 172 sound/drivers/mtpav.c else if (subdev < chip->num_ports * 2) num_ports 173 sound/drivers/mtpav.c return subdev - chip->num_ports + 0x09; /* remote port */ num_ports 174 sound/drivers/mtpav.c else if (subdev == chip->num_ports * 2 + MTPAV_PIDX_COMPUTER) num_ports 176 sound/drivers/mtpav.c else if (subdev == chip->num_ports + MTPAV_PIDX_ADAT) num_ports 185 sound/drivers/mtpav.c return chip->num_ports + MTPAV_PIDX_BROADCAST; num_ports 188 sound/drivers/mtpav.c if (p >= chip->num_ports) num_ports 192 sound/drivers/mtpav.c p = hwport - 0x09 + chip->num_ports; num_ports 193 sound/drivers/mtpav.c if (p >= chip->num_ports * 2) num_ports 194 sound/drivers/mtpav.c p = chip->num_ports; num_ports 197 sound/drivers/mtpav.c return chip->num_ports + MTPAV_PIDX_COMPUTER; num_ports 199 sound/drivers/mtpav.c return chip->num_ports + MTPAV_PIDX_ADAT; num_ports 403 sound/drivers/mtpav.c for (p = 0; p <= chip->num_ports * 2 + MTPAV_PIDX_BROADCAST; p++) { num_ports 490 sound/drivers/mtpav.c if ((int)mcrd->inmidiport > mcrd->num_ports * 2 + MTPAV_PIDX_BROADCAST) num_ports 607 sound/drivers/mtpav.c if (substream->number >= 0 && substream->number < chip->num_ports) num_ports 608 sound/drivers/mtpav.c sprintf(substream->name, "MTP direct %d", (substream->number % chip->num_ports) + 1); num_ports 609 sound/drivers/mtpav.c else if (substream->number >= 8 && substream->number < chip->num_ports * 2) num_ports 610 sound/drivers/mtpav.c sprintf(substream->name, "MTP remote %d", (substream->number % chip->num_ports) + 1); num_ports 611 sound/drivers/mtpav.c else if (substream->number == chip->num_ports * 2) num_ports 613 sound/drivers/mtpav.c else if (substream->number == chip->num_ports * 2 + 1) num_ports 630 sound/drivers/mtpav.c mcard->num_ports = hwports; num_ports 633 sound/drivers/mtpav.c mcard->num_ports * 2 + MTPAV_PIDX_BROADCAST + 1, num_ports 634 sound/drivers/mtpav.c mcard->num_ports * 2 + MTPAV_PIDX_BROADCAST + 1, num_ports 702 sound/drivers/mtpav.c mtp_card->inmidiport = mtp_card->num_ports + MTPAV_PIDX_BROADCAST; num_ports 45 sound/isa/sb/emu8000_synth.c emu->num_ports = hw->seq_ports; num_ports 45 sound/pci/emu10k1/emu10k1_synth.c emux->num_ports = arg->seq_ports; num_ports 79 sound/soc/codecs/hdac_hdmi.c int num_ports; num_ports 140 sound/soc/codecs/hdac_hdmi.c int num_ports; num_ports 261 sound/soc/codecs/hdac_hdmi.c int num_ports; num_ports 267 sound/soc/codecs/hdac_hdmi.c num_ports = hdac_hdmi_get_port_len(hdev, port->pin->nid); num_ports 268 sound/soc/codecs/hdac_hdmi.c if (num_ports < 0) num_ports 274 sound/soc/codecs/hdac_hdmi.c if (num_ports + 1 < port->id) num_ports 1037 sound/soc/codecs/hdac_hdmi.c int mux_index = hdmi->num_cvt + hdmi->num_ports; num_ports 1040 sound/soc/codecs/hdac_hdmi.c for (i = 0; i < hdmi->num_ports; i++) { num_ports 1088 sound/soc/codecs/hdac_hdmi.c ((2 * hdmi->num_ports) + hdmi->num_cvt)), num_ports 1108 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { num_ports 1126 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { num_ports 1152 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { num_ports 1154 sound/soc/codecs/hdac_hdmi.c int src_index = sink_index + pin->num_ports * num_ports 1167 sound/soc/codecs/hdac_hdmi.c ((2 * hdmi->num_ports) + hdmi->num_cvt)); num_ports 1349 sound/soc/codecs/hdac_hdmi.c pin->num_ports = max_ports; num_ports 1372 sound/soc/codecs/hdac_hdmi.c hdmi->num_ports += pin->num_ports; num_ports 1638 sound/soc/codecs/hdac_hdmi.c for (i = 0; i < pin->num_ports; i++) { num_ports 1683 sound/soc/codecs/hdac_hdmi.c kc = devm_kcalloc(component->dev, hdmi->num_ports, num_ports 1690 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { num_ports 1726 sound/soc/codecs/hdac_hdmi.c widgets = devm_kcalloc(dapm->dev, hdmi->num_ports, num_ports 1732 sound/soc/codecs/hdac_hdmi.c route = devm_kcalloc(dapm->dev, hdmi->num_ports, num_ports 1739 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) { num_ports 1761 sound/soc/codecs/hdac_hdmi.c ret = snd_soc_dapm_new_controls(dapm, widgets, hdmi->num_ports); num_ports 1765 sound/soc/codecs/hdac_hdmi.c ret = snd_soc_dapm_add_routes(dapm, route, hdmi->num_ports); num_ports 1781 sound/soc/codecs/hdac_hdmi.c for (j = 0; j < pin->num_ports; j++) num_ports 1845 sound/soc/codecs/hdac_hdmi.c for (i = 0; i < pin->num_ports; i++) { num_ports 2118 sound/soc/codecs/hdac_hdmi.c for (i = 0; i < pin->num_ports; i++) num_ports 63 sound/synth/emux/emux_hwdep.c for (i = 0; i < emu->num_ports; i++) num_ports 66 sound/synth/emux/emux_hwdep.c if (info.port < emu->num_ports) { num_ports 67 sound/synth/emux/emux_hwdep.c info.port = array_index_nospec(info.port, emu->num_ports); num_ports 25 sound/synth/emux/emux_proc.c snd_iprintf(buf, "Ports: %d\n", emu->num_ports); num_ports 27 sound/synth/emux/emux_proc.c for (i = 0; i < emu->num_ports; i++) num_ports 68 sound/synth/emux/emux_seq.c if (emu->num_ports < 0) { num_ports 70 sound/synth/emux/emux_seq.c emu->num_ports = 1; num_ports 71 sound/synth/emux/emux_seq.c } else if (emu->num_ports >= SNDRV_EMUX_MAX_PORTS) { num_ports 74 sound/synth/emux/emux_seq.c emu->num_ports = SNDRV_EMUX_MAX_PORTS; num_ports 83 sound/synth/emux/emux_seq.c for (i = 0; i < emu->num_ports; i++) { num_ports 39 sound/x86/intel_hdmi_audio.c for ((port) = 0; (port) < (card_ctx)->num_ports; (port)++) num_ports 1742 sound/x86/intel_hdmi_audio.c card_ctx->num_ports = single_port ? 1 : pdata->num_ports; num_ports 1785 sound/x86/intel_hdmi_audio.c card_ctx->num_ports = single_port ? 1 : pdata->num_ports; num_ports 142 sound/x86/intel_hdmi_audio.h int num_ports; num_ports 88 tools/include/uapi/linux/usbdevice_fs.h __u8 num_ports; /* Number of ports the device is connected */