/drivers/usb/gadget/ |
D | serial.c | 134 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()
|
D | u_serial.c | 124 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()
|
D | u_serial.h | 55 int gserial_setup(struct usb_gadget *g, unsigned n_ports);
|
/drivers/net/wan/ |
D | pc300too.c | 98 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()
|
D | wanxl.c | 72 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/ |
D | sata_sil.c | 531 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()
|
D | sata_uli.c | 155 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()
|
D | sata_svw.c | 426 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()
|
D | pata_pcmcia.c | 226 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()
|
D | sata_mv.c | 461 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 …]
|
D | sata_promise.c | 860 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()
|
D | sata_qstor.c | 436 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()
|
D | libata-core.c | 1179 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 …]
|
D | sata_vsc.c | 284 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()
|
D | sata_via.c | 488 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()
|
D | pata_hpt3x3.c | 236 for (i = 0; i < host->n_ports; i++) { in hpt3x3_init_one()
|
D | pdc_adma.c | 431 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()
|
D | ahci.c | 1501 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()
|
D | libata-acpi.c | 270 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()
|
D | sata_nv.c | 909 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()
|
D | sata_sil24.c | 1145 for (i = 0; i < host->n_ports; i++) in sil24_interrupt() 1223 for (i = 0; i < host->n_ports; i++) { in sil24_init_controller()
|
D | pata_octeon_cf.c | 646 for (i = 0; i < host->n_ports; i++) { in octeon_cf_interrupt()
|
D | sata_sx4.c | 836 if (port_no >= host->n_ports) in pdc20621_interrupt()
|
D | pata_bf54x.c | 1440 for (i = 0; i < host->n_ports; i++) { in bfin_ata_interrupt()
|
/drivers/ide/ |
D | ide-probe.c | 1456 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()
|