Home
last modified time | relevance | path

Searched refs:n_ports (Results 1 – 25 of 30) sorted by relevance

12

/linux/drivers/usb/gadget/legacy/
H A Dserial.c97 static unsigned n_ports = 1; variable
98 module_param(n_ports, uint, 0);
99 MODULE_PARM_DESC(n_ports, "number of ports to create, default=1");
153 for (i = 0; i < n_ports; i++) { in serial_register_ports()
254 for (i = 0; i < n_ports; i++) { in gs_unbind()
/linux/drivers/ata/
H A Dpata_pcmcia.c193 int n_ports = 1; in pcmcia_init_one() local
239 n_ports = 2; in pcmcia_init_one()
248 host = ata_host_alloc(&pdev->dev, n_ports); in pcmcia_init_one()
252 for (p = 0; p < n_ports; p++) { in pcmcia_init_one()
H A Dsata_mv.c543 int n_ports; member
1067 unsigned int clks, is_dual_hc = hpriv->n_ports > MV_PORTS_PER_HC; in mv_set_irq_coalescing()
1552 for (port = 0; port < hpriv->n_ports; port++) { in mv_soc_led_blink_disable()
2860 for (port = 0; port < hpriv->n_ports; port++) { in mv_host_intr()
2895 if ((port + p) >= hpriv->n_ports) in mv_host_intr()
2933 for (i = 0; i < host->n_ports; i++) { in mv_pci_error()
3452 for (port = 0; port < hpriv->n_ports; port++) in mv_soc_reset_hc()
3913 for (port = 0; port < host->n_ports; port++) in mv_init_host()
3925 for (port = 0; port < host->n_ports; port++) { in mv_init_host()
4021 int n_ports = 0, irq = 0; in mv_platform_probe() local
[all …]
H A Dlibahci_platform.c704 int i, irq, n_ports, rc; in ahci_platform_init_host() local
732 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_platform_init_host()
734 host = ata_host_alloc_pinfo(dev, ppi, n_ports); in ahci_platform_init_host()
748 for (i = 0; i < host->n_ports; i++) { in ahci_platform_init_host()
805 for (i = 0; i < host->n_ports; i++) { in ahci_platform_shutdown()
820 writel(GENMASK(host->n_ports, 0), mmio + HOST_IRQ_STAT); in ahci_platform_shutdown()
H A Dahci.c2532 for (i = 0; i < host->n_ports; i++) { in ahci_gtf_filter_workaround()
2709 static void ahci_init_irq(struct pci_dev *pdev, unsigned int n_ports, in ahci_init_irq() argument
2724 if (n_ports > 1) { in ahci_init_irq()
2725 nvec = pci_alloc_irq_vectors(pdev, n_ports, INT_MAX, in ahci_init_irq()
2890 int n_ports, i, rc; in ahci_init_one() local
3069 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_init_one()
3071 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in ahci_init_one()
3078 ahci_init_irq(pdev, n_ports, hpriv); in ahci_init_one()
3099 for (i = 0; i < host->n_ports; i++) { in ahci_init_one()
H A Dlibata-core.c5826 for (i = 0; i < host->n_ports; i++) { in ata_devres_release()
5846 for (i = 0; i < host->n_ports; i++) { in ata_host_release()
5867 * @n_ports: the number of ATA ports associated with this host
5879 struct ata_host *ata_host_alloc(struct device *dev, int n_ports) in ata_host_alloc()
5887 sz = sizeof(struct ata_host) + n_ports * sizeof(void *); in ata_host_alloc()
5909 host->n_ports = n_ports; in ata_host_alloc()
5913 for (i = 0; i < n_ports; i++) { in ata_host_alloc()
5937 * @n_ports: number of ATA ports attached to this host
5940 * terminated, @ppi may contain fewer entries than @n_ports
5878 ata_host_alloc(struct device * dev,int n_ports) ata_host_alloc() argument
5950 ata_host_alloc_pinfo(struct device * dev,const struct ata_port_info * const * ppi,int n_ports) ata_host_alloc_pinfo() argument
[all...]
H A Dpata_hpt3x3.c230 for (i = 0; i < host->n_ports; i++) { in hpt3x3_init_one()
H A Dlibahci.c1313 for (i = 0; i < host->n_ports; i++) { in ahci_init_controller()
1997 for (i = 0; i < host->n_ports; i++) { in ahci_handle_port_intr()
2505 if (ap->host->n_ports > 1) { in ahci_port_start()
2725 for (i = 0; i < host->n_ports; i++) { in ahci_host_activate_multi_irqs()
H A Dlibata-acpi.c332 for (i = 0; i < host->n_ports; i++) { in ata_acpi_dissociate()
H A Dpata_octeon_cf.c648 for (i = 0; i < host->n_ports; i++) { in octeon_cf_interrupt()
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_netdev.c307 for (portno = 0; portno < sparx5->data->consts->n_ports; portno++) in sparx5_register_netdevs()
326 for (portno = 0; portno < sparx5->data->consts->n_ports; portno++) { in sparx5_destroy_netdevs()
344 for (portno = 0; portno < sparx5->data->consts->n_ports; portno++) in sparx5_unregister_netdevs()
H A Dsparx5_vcap_impl.c1792 for (portno = 0; portno < consts->n_ports; ++portno) { in sparx5_vcap_is0_port_key_selection()
1818 for (portno = 0; portno < consts->n_ports; ++portno) { in sparx5_vcap_is2_port_key_selection()
1824 for (portno = 0; portno < consts->n_ports; ++portno) in sparx5_vcap_is2_port_key_selection()
1840 for (portno = 0; portno < consts->n_ports; ++portno) in sparx5_vcap_es0_port_key_selection()
1860 for (portno = 0; portno < consts->n_ports; ++portno) in sparx5_vcap_es2_port_key_selection()
1898 for (portno = 0; portno < consts->n_ports; ++portno) in sparx5_vcap_port_key_deselection()
1905 for (portno = 0; portno < consts->n_ports; ++portno) in sparx5_vcap_port_key_deselection()
1917 for (portno = 0; portno < consts->n_ports; ++portno) in sparx5_vcap_port_key_deselection()
2078 for (idx = 0; idx < consts->n_ports; ++idx) in sparx5_vcap_init()
H A Dsparx5_mirror.c202 sparx5->data->consts->n_ports); in sparx5_mirror_del()
H A Dsparx5_vlan.c171 for (port = 0; port < sparx5->data->consts->n_ports; port++) { in sparx5_update_fwd()
H A Dsparx5_switchdev.c575 for (i = 0; i < spx5->data->consts->n_ports; i++) in sparx5_handle_port_mdb_add()
H A Dsparx5_main.h306 u32 n_ports; /* Number of front ports */ member
/linux/include/linux/
H A Data_platform.h29 int n_ports; /* number of sata ports */ member
H A Dlibata.h633 unsigned int n_ports; member
1144 extern struct ata_host *ata_host_alloc(struct device *dev, int n_ports);
1146 const struct ata_port_info * const * ppi, int n_ports);
/linux/drivers/usb/early/
H A Dehci-dbgp.c754 u32 debug_port, new_debug_port = 0, n_ports; in ehci_setup() local
769 n_ports = HCS_N_PORTS(hcs_params); in ehci_setup()
772 dbgp_printk("n_ports: %d\n", n_ports); in ehci_setup()
775 for (i = 1; i <= n_ports; i++) { in ehci_setup()
812 new_debug_port = ((debug_port-1+1)%n_ports) + 1; in ehci_setup()
813 if (port_map_tried != ((1<<n_ports) - 1)) { in ehci_setup()
/linux/drivers/net/wan/
H A Dwanxl.c68 int n_ports; /* 1, 2 or 4 ports */ member
196 if ((desc->stat & PACKET_PORT_MASK) > card->n_ports) { in wanxl_rx_intr()
251 for (i = 0; i < card->n_ports; i++) { in wanxl_intr()
491 for (i = 0; i < card->n_ports; i++) { in wanxl_pci_remove_one()
777 card->n_ports++; in wanxl_pci_init_one()
/linux/arch/arm/mach-dove/
H A Dcm-a510.c30 .n_ports = 1,
/linux/drivers/net/ethernet/microchip/sparx5/lan969x/
H A Dlan969x_fdma.c115 port = fi.src_port < consts->n_ports ? sparx5->ports[fi.src_port] : in lan969x_fdma_rx_get_frame()
220 for (int idx = 0; idx < sparx5->data->consts->n_ports; ++idx) { in lan969x_fdma_rx_init()
H A Dlan969x.c308 .n_ports = 30,
/linux/drivers/net/phy/
H A Dphy_device.c1581 if (phydev->n_ports == 1) in phy_sfp_module_insert()
1598 if (phydev->n_ports == 1) in phy_sfp_module_remove()
1635 if (phydev->n_ports == phydev->max_n_ports) in phy_add_port()
1661 phydev->n_ports++; in phy_add_port()
1668 if (!phydev->n_ports) in phy_del_port()
1673 phydev->n_ports--; in phy_del_port()
3553 if (phydev->n_ports < phydev->max_n_ports) { in phy_setup_ports()
/linux/arch/arm/mach-orion5x/
H A Dts78xx-setup.c72 .n_ports = 2,

12