Searched refs:n_ports (Results 1 - 25 of 34) sorted by relevance

12

/drivers/usb/gadget/
H A 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++) {
169 status = gserial_setup(cdev->gadget, n_ports);
H A Du_serial.h53 int gserial_setup(struct usb_gadget *g, unsigned n_ports);
H A Du_serial.c131 static unsigned n_ports; variable
1121 n_ports = count;
1184 for (i = 0; i < n_ports; i++)
1187 for (i = 0; i < n_ports; i++) {
1203 n_ports = 0;
1239 if (!gs_tty_driver || port_num >= n_ports)
/drivers/ata/
H A Dahci_platform.c87 int n_ports; local
150 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
152 host = ata_host_alloc_pinfo(dev, ppi, n_ports);
168 for (i = 0; i < host->n_ports; i++) {
H A Dsata_uli.c154 int n_ports, rc; local
162 n_ports = 2;
164 n_ports = 4;
167 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports);
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 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_svw.c421 int n_ports, i, rc, bar_pos; local
426 n_ports = 4;
428 n_ports = 8;
430 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports);
470 for (i = 0; i < host->n_ports; i++) {
H A Dacard-ahci.c412 int n_ports, i, rc; local
461 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
463 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports);
473 for (i = 0; i < host->n_ports; i++) {
H A Dsata_qstor.c418 for (port_no = 0; port_no < host->n_ports; ++port_no) {
524 for (port_no = 0; port_no < host->n_ports; ++port_no) {
532 for (port_no = 0; port_no < host->n_ports; ++port_no) {
619 for (port_no = 0; port_no < host->n_ports; ++port_no) {
H A Dsata_promise.c980 for (i = 0; i < host->n_ports; i++) {
1186 int n_ports, i, rc; local
1204 n_ports = 2;
1206 n_ports = 4;
1207 for (i = 0; i < n_ports; i++)
1213 ppi[n_ports++] = pi + 1;
1216 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports);
1224 for (i = 0; i < host->n_ports; i++) {
H A Dsata_mv.c546 int n_ports; member in struct:mv_host_priv
1084 unsigned int clks, is_dual_hc = hpriv->n_ports > MV_PORTS_PER_HC;
1556 for (port = 0; port < hpriv->n_ports; port++) {
2864 for (port = 0; port < hpriv->n_ports; port++) {
2899 if ((port + p) >= hpriv->n_ports)
2937 for (i = 0; i < host->n_ports; i++) {
3454 for (port = 0; port < hpriv->n_ports; port++)
3920 for (port = 0; port < host->n_ports; port++)
3932 for (port = 0; port < host->n_ports; port++) {
4028 int n_ports local
4296 int n_ports, port, rc; local
[all...]
H A Dahci.c1024 for (i = 0; i < host->n_ports; i++) {
1047 int n_ports, i, rc; local
1181 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map));
1183 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports);
1196 for (i = 0; i < host->n_ports; i++) {
H A Dsata_vsc.c283 for (i = 0; i < host->n_ports; i++) {
379 for (i = 0; i < host->n_ports; i++) {
H A Dpata_hpt3x3.c234 for (i = 0; i < host->n_ports; i++) {
H A Dlibata-core.c5581 for (i = 0; i < host->n_ports; i++) {
5608 * @max_ports ports are allocated and host->n_ports is
5610 * host->n_ports before calling ata_host_register(). The unused
5643 host->n_ports = max_ports;
5669 * @n_ports: number of ATA ports attached to this host
5672 * terminated, @ppi may contain fewer entries than @n_ports. The
5683 int n_ports)
5689 host = ata_host_alloc(dev, n_ports);
5693 for (i = 0, j = 0, pi = NULL; i < host->n_ports; i++) {
5782 for (i = 0; i < host->n_ports;
5681 ata_host_alloc_pinfo(struct device *dev, const struct ata_port_info * const * ppi, int n_ports) argument
[all...]
H A Dlibata-acpi.c255 for (i = 0; i < host->n_ports; i++) {
298 for (i = 0; i < host->n_ports; i++) {
H A Dpdc_adma.c430 for (port_no = 0; port_no < host->n_ports; ++port_no) {
480 for (port_no = 0; port_no < host->n_ports; ++port_no) {
H A Dsata_via.c503 for (i = 0; i < host->n_ports; i++)
534 for (i = 0; i < host->n_ports; i++)
/drivers/hsi/
H A Dhsi.c223 * @n_ports: Number of ports on the HSI controller
228 struct hsi_controller *hsi_alloc_controller(unsigned int n_ports, gfp_t flags) argument
234 if (!n_ports)
240 port = kzalloc(sizeof(*port)*n_ports, flags);
245 hsi->num_ports = n_ports;
250 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 ? \
368 card->n_ports = 1;
370 card->n_ports = 2;
372 for (i = 0; i < card->n_ports; i++)
408 i = ramsize / (card->n_ports * (sizeof(pkt_desc) + HDLC_MAX_MRU));
412 card->buff_offset = card->n_ports * sizeof(pkt_desc) *
445 for (i = 0; i < card->n_ports; i++) {
H A Dwanxl.c75 int n_ports; /* 1, 2 or 4 ports */ member in struct:card_t
201 if ((desc->stat & PACKET_PORT_MASK) > card->n_ports)
258 for (i = 0; i < card->n_ports; i++) {
516 for (i = 0; i < card->n_ports; i++) {
795 card->n_ports++;
/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.c1281 struct ide_hw **hws, unsigned int n_ports)
1292 for (i = 0; i < n_ports; i++) {
1322 host->n_ports++;
1325 if (host->n_ports == 0) {
1361 host->n_ports--;
1465 unsigned int n_ports, struct ide_host **hostp)
1470 host = ide_host_alloc(d, hws, n_ports);
1280 ide_host_alloc(const struct ide_port_info *d, struct ide_hw **hws, unsigned int n_ports) argument
1464 ide_host_add(const struct ide_port_info *d, struct ide_hw **hws, unsigned int n_ports, struct ide_host **hostp) argument
/drivers/usb/early/
H A Dehci-dbgp.c764 u32 debug_port, new_debug_port = 0, n_ports; local
779 n_ports = HCS_N_PORTS(hcs_params);
782 dbgp_printk("n_ports: %d\n", n_ports);
785 for (i = 1; i <= n_ports; i++) {
822 new_debug_port = ((debug_port-1+1)%n_ports) + 1;
823 if (port_map_tried != ((1<<n_ports) - 1)) {

Completed in 350 milliseconds

12