/openbmc/linux/drivers/usb/gadget/legacy/ |
H A D | serial.c | 97 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()
|
/openbmc/linux/drivers/net/wan/ |
H A D | pc300too.c | 91 int n_ports; /* 1 or 2 ports */ member 104 #define get_port(card, port) ((port) < (card)->n_ports ? \ 349 card->n_ports = 1; in pc300_pci_init_one() 351 card->n_ports = 2; in pc300_pci_init_one() 353 for (i = 0; i < card->n_ports; i++) { in pc300_pci_init_one() 391 i = ramsize / (card->n_ports * (sizeof(pkt_desc) + HDLC_MAX_MRU)); in pc300_pci_init_one() 395 card->buff_offset = card->n_ports * sizeof(pkt_desc) * in pc300_pci_init_one() 428 for (i = 0; i < card->n_ports; i++) { in pc300_pci_init_one()
|
H A D | wanxl.c | 69 int n_ports; /* 1, 2 or 4 ports */ member 213 if ((desc->stat & PACKET_PORT_MASK) > card->n_ports) { in wanxl_rx_intr() 268 for (i = 0; i < card->n_ports; i++) { in wanxl_intr() 508 for (i = 0; i < card->n_ports; i++) { in wanxl_pci_remove_one() 793 card->n_ports++; in wanxl_pci_init_one()
|
/openbmc/linux/drivers/ata/ |
H A D | sata_uli.c | 137 int n_ports, rc; in uli_init_one() local 145 n_ports = 2; in uli_init_one() 147 n_ports = 4; in uli_init_one() 150 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in uli_init_one()
|
H A D | sata_highbank.c | 72 u32 n_ports; member 162 for (i = 0; i < (SGPIO_SIGNALS * pdata->n_ports); i++) { in ecx_transmit_led_message() 200 pdata->n_ports); in highbank_set_em_messages() 461 u32 n_ports; in ahci_highbank_probe() local 519 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_highbank_probe() 521 pdata->n_ports = n_ports; in ahci_highbank_probe() 525 host = ata_host_alloc_pinfo(dev, ppi, n_ports); in ahci_highbank_probe() 536 for (i = 0; i < host->n_ports; i++) { in ahci_highbank_probe()
|
H A D | sata_sil.c | 515 for (i = 0; i < host->n_ports; i++) { in sil_interrupt() 663 for (i = 0; i < host->n_ports; i++) in sil_init_controller() 674 for (i = 0, cnt = 0; i < host->n_ports; i++) { in sil_init_controller() 686 if (host->n_ports == 4) { in sil_init_controller() 728 int n_ports, rc; in sil_init_one() local 734 n_ports = 2; in sil_init_one() 736 n_ports = 4; in sil_init_one() 745 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in sil_init_one() 767 for (i = 0; i < host->n_ports; i++) { in sil_init_one()
|
H A D | pata_pcmcia.c | 193 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 D | sata_svw.c | 417 int n_ports, i, rc, bar_pos; in k2_sata_init_one() local 422 n_ports = 4; in k2_sata_init_one() 424 n_ports = 8; in k2_sata_init_one() 426 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in k2_sata_init_one() 466 for (i = 0; i < host->n_ports; i++) { in k2_sata_init_one()
|
H A D | acard-ahci.c | 359 int n_ports, i, rc; in acard_ahci_init_one() local 408 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in acard_ahci_init_one() 410 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in acard_ahci_init_one() 420 for (i = 0; i < host->n_ports; i++) { in acard_ahci_init_one()
|
H A D | sata_mv.c | 543 int n_ports; member 4020 int n_ports = 0, irq = 0; in mv_platform_probe() local 4044 &n_ports); in mv_platform_probe() 4051 if (n_ports <= 0) { in mv_platform_probe() 4053 n_ports); in mv_platform_probe() 4060 n_ports = mv_platform_data->n_ports; in mv_platform_probe() 4074 n_ports, sizeof(struct clk *), in mv_platform_probe() 4117 hpriv->n_ports = port; in mv_platform_probe() 4124 hpriv->n_ports = n_ports; in mv_platform_probe() 4372 int n_ports, port, rc; in mv_pci_init_one() local [all …]
|
H A D | libahci_platform.c | 690 int i, irq, n_ports, rc; in ahci_platform_init_host() local 718 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_platform_init_host() 720 host = ata_host_alloc_pinfo(dev, ppi, n_ports); in ahci_platform_init_host() 734 for (i = 0; i < host->n_ports; i++) { in ahci_platform_init_host() 791 for (i = 0; i < host->n_ports; i++) { in ahci_platform_shutdown() 806 writel(GENMASK(host->n_ports, 0), mmio + HOST_IRQ_STAT); in ahci_platform_shutdown()
|
H A D | sata_promise.c | 954 for (i = 0; i < host->n_ports; i++) { in pdc_interrupt() 1156 int n_ports, i, rc; in pdc_ata_init_one() local 1174 n_ports = 2; in pdc_ata_init_one() 1176 n_ports = 4; in pdc_ata_init_one() 1177 for (i = 0; i < n_ports; i++) in pdc_ata_init_one() 1183 ppi[n_ports++] = pi + 1; in pdc_ata_init_one() 1186 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in pdc_ata_init_one() 1199 for (i = 0; i < host->n_ports; i++) { in pdc_ata_init_one()
|
H A D | sata_qstor.c | 396 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_intr_mmio() 497 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_host_init() 505 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_host_init() 572 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_ata_init_one()
|
H A D | ahci.c | 1549 for (i = 0; i < host->n_ports; i++) { in ahci_gtf_filter_workaround() 1681 static int ahci_init_msi(struct pci_dev *pdev, unsigned int n_ports, in ahci_init_msi() argument 1694 if (n_ports > 1) { in ahci_init_msi() 1695 nvec = pci_alloc_irq_vectors(pdev, n_ports, INT_MAX, in ahci_init_msi() 1802 int n_ports, i, rc; in ahci_init_one() local 1975 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_init_one() 1977 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in ahci_init_one() 1984 if (ahci_init_msi(pdev, n_ports, hpriv) < 0) { in ahci_init_one() 2007 for (i = 0; i < host->n_ports; i++) { in ahci_init_one()
|
H A D | sata_vsc.c | 266 for (i = 0; i < host->n_ports; i++) { in vsc_sata_interrupt() 361 for (i = 0; i < host->n_ports; i++) { in vsc_sata_init_one()
|
/openbmc/linux/drivers/tty/serial/ |
H A D | rp2.c | 191 int n_ports; member 213 static int rp2_alloc_ports(int n_ports) in rp2_alloc_ports() argument 218 if (rp2_minor_next + n_ports <= CONFIG_SERIAL_RP2_NR_UARTS) { in rp2_alloc_ports() 221 rp2_minor_next += n_ports; in rp2_alloc_ports() 482 if (card->n_ports >= PORTS_PER_ASIC) in rp2_uart_interrupt() 601 if (card->n_ports >= PORTS_PER_ASIC) in rp2_init_card() 651 for (i = 0; i < card->n_ports; i++) { in rp2_load_firmware() 724 rp2_decode_cap(id, &card->n_ports, &card->smpte); in rp2_probe() 725 dev_info(&pdev->dev, "found new card with %d ports\n", card->n_ports); in rp2_probe() 727 card->minor_start = rp2_alloc_ports(card->n_ports); in rp2_probe() [all …]
|
/openbmc/linux/include/linux/ |
H A D | ata_platform.h | 29 int n_ports; /* number of sata ports */ member
|
/openbmc/linux/drivers/hsi/ |
H A D | hsi_core.c | 462 struct hsi_controller *hsi_alloc_controller(unsigned int n_ports, gfp_t flags) in hsi_alloc_controller() argument 468 if (!n_ports) in hsi_alloc_controller() 474 port = kcalloc(n_ports, sizeof(*port), flags); in hsi_alloc_controller() 479 hsi->num_ports = n_ports; in hsi_alloc_controller() 484 for (i = 0; i < n_ports; i++) { in hsi_alloc_controller()
|
/openbmc/u-boot/drivers/ata/ |
H A D | ahci.c | 228 uc_priv->n_ports = (uc_priv->cap & 0x1f) + 1; in ahci_host_init() 231 uc_priv->cap, uc_priv->port_map, uc_priv->n_ports); in ahci_host_init() 234 if (uc_priv->n_ports > CONFIG_SYS_SCSI_MAX_SCSI_ID) in ahci_host_init() 235 uc_priv->n_ports = CONFIG_SYS_SCSI_MAX_SCSI_ID; in ahci_host_init() 238 for (i = 0; i < uc_priv->n_ports; i++) { in ahci_host_init() 646 if (port > uc_priv->n_ports) { in ahci_device_data_io() 985 for (i = 0; i < uc_priv->n_ports; i++) { in ahci_start_ports()
|
/openbmc/linux/arch/arm/mach-dove/ |
H A D | cm-a510.c | 30 .n_ports = 1,
|
/openbmc/linux/drivers/usb/early/ |
H A D | ehci-dbgp.c | 754 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()
|
/openbmc/linux/arch/arm/mach-mv78xx0/ |
H A D | buffalo-wxl-setup.c | 46 .n_ports = 2,
|
/openbmc/linux/arch/arm/mach-orion5x/ |
H A D | mv2120-setup.c | 45 .n_ports = 2,
|
H A D | ts209-setup.c | 235 .n_ports = 2,
|
/openbmc/u-boot/include/ |
H A D | ahci.h | 165 u32 n_ports; member
|