/drivers/usb/gadget/legacy/ |
D | serial.c | 99 static unsigned n_ports = 1; variable 100 module_param(n_ports, uint, 0); 101 MODULE_PARM_DESC(n_ports, "number of ports to create, default=1"); 125 for (i = 0; i < n_ports; i++) { in serial_register_ports() 226 for (i = 0; i < n_ports; i++) { in gs_unbind()
|
/drivers/net/wan/ |
D | pc300too.c | 100 int n_ports; /* 1 or 2 ports */ member 114 #define get_port(card, port) ((port) < (card)->n_ports ? \ 368 card->n_ports = 1; in pc300_pci_init_one() 370 card->n_ports = 2; in pc300_pci_init_one() 372 for (i = 0; i < card->n_ports; i++) in pc300_pci_init_one() 408 i = ramsize / (card->n_ports * (sizeof(pkt_desc) + HDLC_MAX_MRU)); in pc300_pci_init_one() 412 card->buff_offset = card->n_ports * sizeof(pkt_desc) * in pc300_pci_init_one() 445 for (i = 0; i < card->n_ports; i++) { in pc300_pci_init_one()
|
D | wanxl.c | 75 int n_ports; /* 1, 2 or 4 ports */ member 201 if ((desc->stat & PACKET_PORT_MASK) > card->n_ports) in wanxl_rx_intr() 258 for (i = 0; i < card->n_ports; i++) { in wanxl_intr() 517 for (i = 0; i < card->n_ports; i++) { in wanxl_pci_remove_one() 797 card->n_ports++; in wanxl_pci_init_one()
|
/drivers/ata/ |
D | sata_sil.c | 530 for (i = 0; i < host->n_ports; i++) { in sil_interrupt() 678 for (i = 0; i < host->n_ports; i++) in sil_init_controller() 689 for (i = 0, cnt = 0; i < host->n_ports; i++) { in sil_init_controller() 701 if (host->n_ports == 4) { in sil_init_controller() 743 int n_ports, rc; in sil_init_one() local 749 n_ports = 2; in sil_init_one() 751 n_ports = 4; in sil_init_one() 760 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in sil_init_one() 785 for (i = 0; i < host->n_ports; i++) { in sil_init_one()
|
D | sata_highbank.c | 84 u32 n_ports; member 174 for (i = 0; i < (SGPIO_SIGNALS * pdata->n_ports); i++) { in ecx_transmit_led_message() 214 pdata->n_ports); in highbank_set_em_messages() 475 u32 n_ports; in ahci_highbank_probe() local 533 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_highbank_probe() 535 pdata->n_ports = n_ports; in ahci_highbank_probe() 539 host = ata_host_alloc_pinfo(dev, ppi, n_ports); in ahci_highbank_probe() 550 for (i = 0; i < host->n_ports; i++) { in ahci_highbank_probe()
|
D | sata_uli.c | 153 int n_ports, rc; in uli_init_one() local 161 n_ports = 2; in uli_init_one() 163 n_ports = 4; in uli_init_one() 166 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in uli_init_one()
|
D | pata_pcmcia.c | 206 int n_ports = 1; in pcmcia_init_one() local 252 n_ports = 2; in pcmcia_init_one() 261 host = ata_host_alloc(&pdev->dev, n_ports); in pcmcia_init_one() 265 for (p = 0; p < n_ports; p++) { in pcmcia_init_one()
|
D | sata_mv.c | 556 int n_ports; member 1107 unsigned int clks, is_dual_hc = hpriv->n_ports > MV_PORTS_PER_HC; in mv_set_irq_coalescing() 1600 for (port = 0; port < hpriv->n_ports; port++) { in mv_soc_led_blink_disable() 2906 for (port = 0; port < hpriv->n_ports; port++) { in mv_host_intr() 2941 if ((port + p) >= hpriv->n_ports) in mv_host_intr() 2979 for (i = 0; i < host->n_ports; i++) { in mv_pci_error() 3496 for (port = 0; port < hpriv->n_ports; port++) in mv_soc_reset_hc() 3962 for (port = 0; port < host->n_ports; port++) in mv_init_host() 3974 for (port = 0; port < host->n_ports; port++) { in mv_init_host() 4070 int n_ports = 0, irq = 0; in mv_platform_probe() local [all …]
|
D | sata_svw.c | 431 int n_ports, i, rc, bar_pos; in k2_sata_init_one() local 436 n_ports = 4; in k2_sata_init_one() 438 n_ports = 8; in k2_sata_init_one() 440 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in k2_sata_init_one() 480 for (i = 0; i < host->n_ports; i++) { in k2_sata_init_one()
|
D | acard-ahci.c | 411 int n_ports, i, rc; in acard_ahci_init_one() local 462 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in acard_ahci_init_one() 464 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in acard_ahci_init_one() 474 for (i = 0; i < host->n_ports; i++) { in acard_ahci_init_one()
|
D | libahci_platform.c | 513 int i, irq, n_ports, rc; in ahci_platform_init_host() local 542 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_platform_init_host() 544 host = ata_host_alloc_pinfo(dev, ppi, n_ports); in ahci_platform_init_host() 558 for (i = 0; i < host->n_ports; i++) { in ahci_platform_init_host()
|
D | sata_promise.c | 984 for (i = 0; i < host->n_ports; i++) { in pdc_interrupt() 1191 int n_ports, i, rc; in pdc_ata_init_one() local 1209 n_ports = 2; in pdc_ata_init_one() 1211 n_ports = 4; in pdc_ata_init_one() 1212 for (i = 0; i < n_ports; i++) in pdc_ata_init_one() 1218 ppi[n_ports++] = pi + 1; in pdc_ata_init_one() 1221 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in pdc_ata_init_one() 1234 for (i = 0; i < host->n_ports; i++) { in pdc_ata_init_one()
|
D | ahci.c | 1357 for (i = 0; i < host->n_ports; i++) { in ahci_gtf_filter_workaround() 1449 static int ahci_init_msi(struct pci_dev *pdev, unsigned int n_ports, in ahci_init_msi() argument 1462 if (n_ports > 1) { in ahci_init_msi() 1463 nvec = pci_alloc_irq_vectors(pdev, n_ports, INT_MAX, in ahci_init_msi() 1500 int n_ports, i, rc; in ahci_init_one() local 1650 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_init_one() 1652 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in ahci_init_one() 1657 if (ahci_init_msi(pdev, n_ports, hpriv) < 0) { in ahci_init_one() 1671 for (i = 0; i < host->n_ports; i++) { in ahci_init_one()
|
D | sata_qstor.c | 417 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_intr_mmio() 523 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_host_init() 531 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_host_init() 618 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_ata_init_one()
|
D | sata_vsc.c | 282 for (i = 0; i < host->n_ports; i++) { in vsc_sata_interrupt() 377 for (i = 0; i < host->n_ports; i++) { in vsc_sata_init_one()
|
D | libata-core.c | 5899 for (i = 0; i < host->n_ports; i++) { in ata_host_release() 5961 host->n_ports = max_ports; in ata_host_alloc() 6001 int n_ports) in ata_host_alloc_pinfo() argument 6007 host = ata_host_alloc(dev, n_ports); in ata_host_alloc_pinfo() 6011 for (i = 0, j = 0, pi = NULL; i < host->n_ports; i++) { in ata_host_alloc_pinfo() 6100 for (i = 0; i < host->n_ports; i++) { in ata_host_stop() 6188 for (i = 0; i < host->n_ports; i++) { in ata_host_start() 6209 for (i = 0; i < host->n_ports; i++) { in ata_host_start() 6348 for (i = host->n_ports; host->ports[i]; i++) in ata_host_register() 6352 for (i = 0; i < host->n_ports; i++) { in ata_host_register() [all …]
|
D | pata_hpt3x3.c | 233 for (i = 0; i < host->n_ports; i++) { in hpt3x3_init_one()
|
D | sata_via.c | 514 for (i = 0; i < host->n_ports; i++) in vt6421_prepare_host() 545 for (i = 0; i < host->n_ports; i++) in vt8251_prepare_host()
|
D | pdc_adma.c | 429 for (port_no = 0; port_no < host->n_ports; ++port_no) { in adma_intr_pkt() 479 for (port_no = 0; port_no < host->n_ports; ++port_no) { in adma_intr_mmio()
|
D | sata_nv.c | 912 for (i = 0; i < host->n_ports; i++) { in nv_adma_interrupt() 1323 for (i = 0; i < host->n_ports; i++) in nv_adma_host_init() 1485 for (i = 0; i < host->n_ports; i++) { in nv_generic_interrupt() 1510 for (i = 0; i < host->n_ports; i++) { in nv_do_interrupt() 2333 for (i = 0; i < host->n_ports; i++) { in nv_swncq_interrupt()
|
/drivers/tty/serial/ |
D | rp2.c | 194 int n_ports; member 217 static int rp2_alloc_ports(int n_ports) in rp2_alloc_ports() argument 222 if (rp2_minor_next + n_ports <= CONFIG_SERIAL_RP2_NR_UARTS) { in rp2_alloc_ports() 225 rp2_minor_next += n_ports; in rp2_alloc_ports() 508 if (card->n_ports >= PORTS_PER_ASIC) in rp2_uart_interrupt() 627 if (card->n_ports >= PORTS_PER_ASIC) in rp2_init_card() 684 for (i = 0; i < card->n_ports; i++) { in rp2_fw_cb() 768 rp2_decode_cap(id, &card->n_ports, &card->smpte); in rp2_probe() 769 dev_info(&pdev->dev, "found new card with %d ports\n", card->n_ports); in rp2_probe() 771 card->minor_start = rp2_alloc_ports(card->n_ports); in rp2_probe() [all …]
|
/drivers/hsi/ |
D | hsi_core.c | 476 struct hsi_controller *hsi_alloc_controller(unsigned int n_ports, gfp_t flags) in hsi_alloc_controller() argument 482 if (!n_ports) in hsi_alloc_controller() 488 port = kzalloc(sizeof(*port)*n_ports, flags); in hsi_alloc_controller() 493 hsi->num_ports = n_ports; in hsi_alloc_controller() 498 for (i = 0; i < n_ports; i++) { in hsi_alloc_controller()
|
/drivers/ide/ |
D | setup-pci.c | 543 int ret, i, n_ports = dev2 ? 4 : 2; in ide_pci_init_two() local 546 for (i = 0; i < n_ports / 2; i++) { in ide_pci_init_two() 554 host = ide_host_alloc(d, hws, n_ports); in ide_pci_init_two() 571 for (i = 0; i < n_ports / 2; i++) { in ide_pci_init_two()
|
D | ide-probe.c | 1282 struct ide_hw **hws, unsigned int n_ports) in ide_host_alloc() argument 1293 for (i = 0; i < n_ports; i++) { in ide_host_alloc() 1323 host->n_ports++; in ide_host_alloc() 1326 if (host->n_ports == 0) { in ide_host_alloc() 1362 host->n_ports--; in ide_disable_port() 1466 unsigned int n_ports, struct ide_host **hostp) in ide_host_add() argument 1471 host = ide_host_alloc(d, hws, n_ports); in ide_host_add()
|
/drivers/usb/early/ |
D | ehci-dbgp.c | 759 u32 debug_port, new_debug_port = 0, n_ports; in ehci_setup() local 774 n_ports = HCS_N_PORTS(hcs_params); in ehci_setup() 777 dbgp_printk("n_ports: %d\n", n_ports); in ehci_setup() 780 for (i = 1; i <= n_ports; i++) { in ehci_setup() 817 new_debug_port = ((debug_port-1+1)%n_ports) + 1; in ehci_setup() 818 if (port_map_tried != ((1<<n_ports) - 1)) { in ehci_setup()
|