Home
last modified time | relevance | path

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

12

/drivers/usb/gadget/
Dserial.c134 static unsigned n_ports = 1; variable
135 module_param(n_ports, uint, 0);
136 MODULE_PARM_DESC(n_ports, "number of ports to create, default=1");
145 for (i = 0; i < n_ports && status == 0; i++) { in serial_bind_config()
170 status = gserial_setup(cdev->gadget, n_ports); in gs_bind()
Du_serial.c124 static unsigned n_ports; variable
709 if (port_num < 0 || port_num >= n_ports) in gs_open()
1111 n_ports = count; in gserial_setup()
1175 for (i = 0; i < n_ports; i++) in gserial_cleanup()
1178 for (i = 0; i < n_ports; i++) { in gserial_cleanup()
1194 n_ports = 0; in gserial_cleanup()
1229 if (!gs_tty_driver || port_num >= n_ports) in gserial_connect()
Du_serial.h55 int gserial_setup(struct usb_gadget *g, unsigned n_ports);
/drivers/net/wan/
Dpc300too.c98 int n_ports; /* 1 or 2 ports */ member
112 #define get_port(card, port) ((port) < (card)->n_ports ? \
361 card->n_ports = 1; in pc300_pci_init_one()
363 card->n_ports = 2; in pc300_pci_init_one()
365 for (i = 0; i < card->n_ports; i++) in pc300_pci_init_one()
401 i = ramsize / (card->n_ports * (sizeof(pkt_desc) + HDLC_MAX_MRU)); in pc300_pci_init_one()
405 card->buff_offset = card->n_ports * sizeof(pkt_desc) * in pc300_pci_init_one()
440 for (i = 0; i < card->n_ports; i++) { in pc300_pci_init_one()
Dwanxl.c72 int n_ports; /* 1, 2 or 4 ports */ member
199 if ((desc->stat & PACKET_PORT_MASK) > card->n_ports) in wanxl_rx_intr()
256 for (i = 0; i < card->n_ports; i++) { in wanxl_intr()
515 for (i = 0; i < card->n_ports; i++) { in wanxl_pci_remove_one()
796 card->n_ports++; in wanxl_pci_init_one()
/drivers/ata/
Dsata_sil.c531 for (i = 0; i < host->n_ports; i++) { in sil_interrupt()
666 for (i = 0; i < host->n_ports; i++) in sil_init_controller()
677 for (i = 0, cnt = 0; i < host->n_ports; i++) { in sil_init_controller()
690 if (host->n_ports == 4) { in sil_init_controller()
733 int n_ports, rc; in sil_init_one() local
740 n_ports = 2; in sil_init_one()
742 n_ports = 4; in sil_init_one()
751 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in sil_init_one()
776 for (i = 0; i < host->n_ports; i++) { in sil_init_one()
Dsata_uli.c155 int n_ports, rc; in uli_init_one() local
164 n_ports = 2; in uli_init_one()
166 n_ports = 4; in uli_init_one()
169 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in uli_init_one()
Dsata_svw.c426 int n_ports, i, rc, bar_pos; in k2_sata_init_one() local
432 n_ports = 4; in k2_sata_init_one()
434 n_ports = 8; in k2_sata_init_one()
436 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in k2_sata_init_one()
476 for (i = 0; i < host->n_ports; i++) { in k2_sata_init_one()
Dpata_pcmcia.c226 int n_ports = 1; in pcmcia_init_one() local
285 n_ports = 2; in pcmcia_init_one()
294 host = ata_host_alloc(&pdev->dev, n_ports); in pcmcia_init_one()
298 for (p = 0; p < n_ports; p++) { in pcmcia_init_one()
Dsata_mv.c461 int n_ports; member
2087 for (port = 0; port < hpriv->n_ports; port++) { in mv_host_intr()
2120 if ((port + p) >= hpriv->n_ports) in mv_host_intr()
2159 for (i = 0; i < host->n_ports; i++) { in mv_pci_error()
2675 for (port = 0; port < hpriv->n_ports; port++) in mv_soc_reset_hc()
3080 for (port = 0; port < host->n_ports; port++) in mv_init_host()
3091 for (port = 0; port < host->n_ports; port++) { in mv_init_host()
3191 int n_ports, rc; in mv_platform_probe() local
3213 n_ports = mv_platform_data->n_ports; in mv_platform_probe()
3215 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in mv_platform_probe()
[all …]
Dsata_promise.c860 for (i = 0; i < host->n_ports; i++) { in pdc_interrupt()
1067 int n_ports, i, rc; in pdc_ata_init_one() local
1086 n_ports = 2; in pdc_ata_init_one()
1088 n_ports = 4; in pdc_ata_init_one()
1089 for (i = 0; i < n_ports; i++) in pdc_ata_init_one()
1095 ppi[n_ports++] = pi + 1; in pdc_ata_init_one()
1098 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in pdc_ata_init_one()
1106 for (i = 0; i < host->n_ports; i++) { in pdc_ata_init_one()
Dsata_qstor.c436 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_intr_mmio()
549 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_host_init()
557 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_host_init()
647 for (port_no = 0; port_no < host->n_ports; ++port_no) { in qs_ata_init_one()
Dlibata-core.c1179 for (i = 0; i < host->n_ports; i++) { in ata_lpm_enable()
1192 for (i = 0; i < host->n_ports; i++) { in ata_lpm_disable()
5317 for (i = 0; i < host->n_ports; i++) { in ata_host_request_pm()
5608 for (i = 0; i < host->n_ports; i++) { in ata_host_release()
5669 host->n_ports = max_ports; in ata_host_alloc()
5709 int n_ports) in ata_host_alloc_pinfo() argument
5715 host = ata_host_alloc(dev, n_ports); in ata_host_alloc_pinfo()
5719 for (i = 0, j = 0, pi = NULL; i < host->n_ports; i++) { in ata_host_alloc_pinfo()
5808 for (i = 0; i < host->n_ports; i++) { in ata_host_stop()
5896 for (i = 0; i < host->n_ports; i++) { in ata_host_start()
[all …]
Dsata_vsc.c284 for (i = 0; i < host->n_ports; i++) { in vsc_sata_interrupt()
386 for (i = 0; i < host->n_ports; i++) { in vsc_sata_init_one()
Dsata_via.c488 for (i = 0; i < host->n_ports; i++) in vt6421_prepare_host()
519 for (i = 0; i < host->n_ports; i++) in vt8251_prepare_host()
Dpata_hpt3x3.c236 for (i = 0; i < host->n_ports; i++) { in hpt3x3_init_one()
Dpdc_adma.c431 for (port_no = 0; port_no < host->n_ports; ++port_no) { in adma_intr_pkt()
483 for (port_no = 0; port_no < host->n_ports; ++port_no) { in adma_intr_mmio()
Dahci.c1501 for (i = 0; i < host->n_ports; i++) { in ahci_init_controller()
2124 for (i = 0; i < host->n_ports; i++) { in ahci_interrupt()
2591 int n_ports, i, rc; in ahci_init_one() local
2692 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); in ahci_init_one()
2694 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); in ahci_init_one()
2708 for (i = 0; i < host->n_ports; i++) { in ahci_init_one()
Dlibata-acpi.c270 for (i = 0; i < host->n_ports; i++) { in ata_acpi_associate()
313 for (i = 0; i < host->n_ports; i++) { in ata_acpi_dissociate()
Dsata_nv.c909 for (i = 0; i < host->n_ports; i++) { in nv_adma_interrupt()
1312 for (i = 0; i < host->n_ports; i++) in nv_adma_host_init()
1475 for (i = 0; i < host->n_ports; i++) { in nv_generic_interrupt()
1503 for (i = 0; i < host->n_ports; i++) { in nv_do_interrupt()
2334 for (i = 0; i < host->n_ports; i++) { in nv_swncq_interrupt()
Dsata_sil24.c1145 for (i = 0; i < host->n_ports; i++) in sil24_interrupt()
1223 for (i = 0; i < host->n_ports; i++) { in sil24_init_controller()
Dpata_octeon_cf.c646 for (i = 0; i < host->n_ports; i++) { in octeon_cf_interrupt()
Dsata_sx4.c836 if (port_no >= host->n_ports) in pdc20621_interrupt()
Dpata_bf54x.c1440 for (i = 0; i < host->n_ports; i++) { in bfin_ata_interrupt()
/drivers/ide/
Dide-probe.c1456 host->n_ports++; in ide_host_alloc()
1459 if (host->n_ports == 0) { in ide_host_alloc()
1492 host->n_ports--; in ide_disable_port()

12