Searched defs:n_ports (Results 1 - 19 of 19) sorted by relevance

/drivers/ata/
H A Dlibahci_platform.c418 int i, irq, n_ports, rc; local
444 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
446 host = ata_host_alloc_pinfo(dev, ppi, n_ports);
460 for (i = 0; i < host->n_ports; i++) {
H A Dpata_pcmcia.c206 int n_ports = 1; local
252 n_ports = 2;
261 host = ata_host_alloc(&pdev->dev, n_ports);
265 for (p = 0; p < n_ports; p++) {
H A Dsata_uli.c153 int n_ports, rc; local
161 n_ports = 2;
163 n_ports = 4;
166 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports);
H A Dacard-ahci.c411 int n_ports, i, rc; local
460 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
462 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports);
472 for (i = 0; i < host->n_ports; i++) {
H A Dsata_svw.c440 int n_ports, i, rc, bar_pos; local
445 n_ports = 4;
447 n_ports = 8;
449 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports);
489 for (i = 0; i < host->n_ports; i++) {
H A Dahci.c1190 for (i = 0; i < host->n_ports; i++) {
1205 static int ahci_init_interrupts(struct pci_dev *pdev, unsigned int n_ports, argument
1222 if (nvec < n_ports)
1261 int n_ports, i, rc; local
1412 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
1414 ahci_init_interrupts(pdev, n_ports, hpriv);
1416 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports);
1429 for (i = 0; i < host->n_ports; i++) {
H A Dsata_highbank.c84 u32 n_ports; member in struct:ecx_plat_data
174 for (i = 0; i < (SGPIO_SIGNALS * pdata->n_ports); i++) {
214 pdata->n_ports);
475 u32 n_ports; local
532 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
534 pdata->n_ports = n_ports;
538 host = ata_host_alloc_pinfo(dev, ppi, n_ports);
549 for (i = 0; i < host->n_ports; i++) {
H A Dsata_sil.c530 for (i = 0; i < host->n_ports; i++) {
675 for (i = 0; i < host->n_ports; i++)
686 for (i = 0, cnt = 0; i < host->n_ports; i++) {
698 if (host->n_ports == 4) {
740 int n_ports, rc; local
746 n_ports = 2;
748 n_ports = 4;
757 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports);
782 for (i = 0; i < host->n_ports; i++) {
H A Dsata_promise.c984 for (i = 0; i < host->n_ports; i++) {
1191 int n_ports, i, rc; local
1209 n_ports = 2;
1211 n_ports = 4;
1212 for (i = 0; i < n_ports; i++)
1218 ppi[n_ports++] = pi + 1;
1221 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports);
1234 for (i = 0; i < host->n_ports; i++) {
H A Dlibata-core.c5676 for (i = 0; i < host->n_ports; i++) {
5703 * @max_ports ports are allocated and host->n_ports is
5705 * host->n_ports before calling ata_host_register(). The unused
5738 host->n_ports = max_ports;
5764 * @n_ports: number of ATA ports attached to this host
5767 * terminated, @ppi may contain fewer entries than @n_ports. The
5778 int n_ports)
5784 host = ata_host_alloc(dev, n_ports);
5788 for (i = 0, j = 0, pi = NULL; i < host->n_ports; i++) {
5877 for (i = 0; i < host->n_ports;
5776 ata_host_alloc_pinfo(struct device *dev, const struct ata_port_info * const * ppi, int n_ports) argument
[all...]
H A Dsata_mv.c551 int n_ports; member in struct:mv_host_priv
1102 unsigned int clks, is_dual_hc = hpriv->n_ports > MV_PORTS_PER_HC;
1588 for (port = 0; port < hpriv->n_ports; port++) {
2896 for (port = 0; port < hpriv->n_ports; port++) {
2931 if ((port + p) >= hpriv->n_ports)
2969 for (i = 0; i < host->n_ports; i++) {
3486 for (port = 0; port < hpriv->n_ports; port++)
3952 for (port = 0; port < host->n_ports; port++)
3964 for (port = 0; port < host->n_ports; port++) {
4060 int n_ports local
4397 int n_ports, port, rc; local
[all...]
/drivers/usb/gadget/legacy/
H A Dserial.c113 static unsigned n_ports = 1; variable
114 module_param(n_ports, uint, 0);
115 MODULE_PARM_DESC(n_ports, "number of ports to create, default=1");
139 for (i = 0; i < n_ports; i++) {
226 for (i = 0; i < n_ports; i++) {
/drivers/ide/
H A Dsetup-pci.c543 int ret, i, n_ports = dev2 ? 4 : 2; local
546 for (i = 0; i < n_ports / 2; i++) {
554 host = ide_host_alloc(d, hws, n_ports);
571 for (i = 0; i < n_ports / 2; i++) {
H A Dide-probe.c1282 struct ide_hw **hws, unsigned int n_ports)
1293 for (i = 0; i < n_ports; i++) {
1323 host->n_ports++;
1326 if (host->n_ports == 0) {
1362 host->n_ports--;
1466 unsigned int n_ports, struct ide_host **hostp)
1471 host = ide_host_alloc(d, hws, n_ports);
1281 ide_host_alloc(const struct ide_port_info *d, struct ide_hw **hws, unsigned int n_ports) argument
1465 ide_host_add(const struct ide_port_info *d, struct ide_hw **hws, unsigned int n_ports, struct ide_host **hostp) argument
/drivers/hsi/
H A Dhsi.c462 * @n_ports: Number of ports on the HSI controller
467 struct hsi_controller *hsi_alloc_controller(unsigned int n_ports, gfp_t flags) argument
473 if (!n_ports)
479 port = kzalloc(sizeof(*port)*n_ports, flags);
484 hsi->num_ports = n_ports;
489 for (i = 0; i < n_ports; i++) {
/drivers/net/wan/
H A Dpc300too.c100 int n_ports; /* 1 or 2 ports */ member in struct:card_s
114 #define get_port(card, port) ((port) < (card)->n_ports ? \
367 card->n_ports = 1;
369 card->n_ports = 2;
371 for (i = 0; i < card->n_ports; i++)
407 i = ramsize / (card->n_ports * (sizeof(pkt_desc) + HDLC_MAX_MRU));
411 card->buff_offset = card->n_ports * sizeof(pkt_desc) *
444 for (i = 0; i < card->n_ports; i++) {
H A Dwanxl.c75 int n_ports; /* 1, 2 or 4 ports */ member in struct:card
201 if ((desc->stat & PACKET_PORT_MASK) > card->n_ports)
258 for (i = 0; i < card->n_ports; i++) {
517 for (i = 0; i < card->n_ports; i++) {
796 card->n_ports++;
/drivers/tty/serial/
H A Drp2.c194 int n_ports; member in struct:rp2_card
217 static int rp2_alloc_ports(int n_ports) argument
222 if (rp2_minor_next + n_ports <= CONFIG_SERIAL_RP2_NR_UARTS) {
225 rp2_minor_next += n_ports;
508 if (card->n_ports >= PORTS_PER_ASIC)
627 if (card->n_ports >= PORTS_PER_ASIC)
684 for (i = 0; i < card->n_ports; i++) {
768 rp2_decode_cap(id, &card->n_ports, &card->smpte);
769 dev_info(&pdev->dev, "found new card with %d ports\n", card->n_ports);
771 card->minor_start = rp2_alloc_ports(card->n_ports);
[all...]
/drivers/usb/early/
H A Dehci-dbgp.c760 u32 debug_port, new_debug_port = 0, n_ports; local
775 n_ports = HCS_N_PORTS(hcs_params);
778 dbgp_printk("n_ports: %d\n", n_ports);
781 for (i = 1; i <= n_ports; i++) {
818 new_debug_port = ((debug_port-1+1)%n_ports) + 1;
819 if (port_map_tried != ((1<<n_ports) - 1)) {

Completed in 1573 milliseconds