Home
last modified time | relevance | path

Searched refs:nr_ports (Results 1 – 18 of 18) sorted by relevance

/linux/arch/sh/drivers/pci/
A Dpcie-sh7786.c33 static unsigned int nr_ports; variable
556 nr_ports = sh7786_pcie_hwops->core_init(); in sh7786_pcie_init()
557 BUG_ON(nr_ports > ARRAY_SIZE(sh7786_pci_channels)); in sh7786_pcie_init()
559 if (unlikely(nr_ports == 0)) in sh7786_pcie_init()
562 sh7786_pcie_ports = kcalloc(nr_ports, sizeof(struct sh7786_pcie_port), in sh7786_pcie_init()
593 printk(KERN_NOTICE "PCI: probing %d ports.\n", nr_ports); in sh7786_pcie_init()
595 for (i = 0; i < nr_ports; i++) { in sh7786_pcie_init()
/linux/samples/vfio-mdev/
A Dmtty.c144 int nr_ports; member
203 if (mdev_state->nr_ports == 2) { in mtty_create_config_space()
265 if ((mdev_state->nr_ports == 1) && (bar_index == 1)) { in handle_pci_cfg_write()
709 int nr_ports = mdev_get_type_group_id(mdev) + 1; in mtty_probe() local
714 if (avail_ports < nr_ports) in mtty_probe()
717 &avail_ports, avail_ports - nr_ports)); in mtty_probe()
727 mdev_state->nr_ports = nr_ports; in mtty_probe()
756 atomic_add(nr_ports, &mdev_avail_ports); in mtty_probe()
763 int nr_ports = mdev_state->nr_ports; in mtty_remove() local
770 atomic_add(nr_ports, &mdev_avail_ports); in mtty_remove()
[all …]
/linux/drivers/ata/
A Dlibata-pmp.c266 int nr_ports, rc; in sata_pmp_configure() local
268 nr_ports = sata_pmp_gscr_ports(gscr); in sata_pmp_configure()
270 if (nr_ports <= 0 || nr_ports > SATA_PMP_MAX_PORTS) { in sata_pmp_configure()
318 nr_ports, gscr[SATA_PMP_GSCR_FEAT_EN], in sata_pmp_configure()
336 static int sata_pmp_init_links (struct ata_port *ap, int nr_ports) in sata_pmp_init_links() argument
360 for (i = 0; i < nr_ports; i++) { in sata_pmp_init_links()
A Dpata_buddha.c160 unsigned int nr_ports = (type == BOARD_CATWEASEL) ? 3 : 2; in pata_buddha_probe() local
189 host = ata_host_alloc(&z->dev, nr_ports); in pata_buddha_probe()
201 for (i = 0; i < nr_ports; i++) { in pata_buddha_probe()
A Dpata_icside.c70 unsigned int nr_ports; member
391 info->nr_ports = 1; in pata_icside_register_v5()
432 info->nr_ports = 2; in pata_icside_register_v6()
460 host = ata_host_alloc(&ec->dev, info->nr_ports); in pata_icside_add_ports()
467 for (i = 0; i < info->nr_ports; i++) { in pata_icside_add_ports()
A Dsata_promise.c687 unsigned int nr_ports = pdc_sata_nr_ports(ap); in pdc_sata_ata_port_to_ata_no() local
690 for (i = 0; i < nr_ports && host->ports[i] != ap; ++i) in pdc_sata_ata_port_to_ata_no()
692 BUG_ON(i >= nr_ports); in pdc_sata_ata_port_to_ata_no()
/linux/drivers/ssb/
A Ddriver_extif.c57 u32 i, nr_ports = 0; in ssb_extif_serial_init() local
73 nr_ports++; in ssb_extif_serial_init()
82 return nr_ports; in ssb_extif_serial_init()
A Ddriver_chipcommon.c605 int nr_ports = 0; in ssb_chipco_serial_init() local
688 nr_ports++; in ssb_chipco_serial_init()
695 return nr_ports; in ssb_chipco_serial_init()
/linux/drivers/gpio/
A Dgpio-dwapb.c118 unsigned int nr_ports; member
172 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_offs_to_port()
702 gpio->nr_ports = pdata->nports; in dwapb_gpio_probe()
708 gpio->ports = devm_kcalloc(&pdev->dev, gpio->nr_ports, in dwapb_gpio_probe()
723 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_probe()
743 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_suspend()
790 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_resume()
/linux/include/xen/interface/
A Dsched.h123 unsigned int nr_ports; member
A Dphysdev.h82 uint32_t nr_ports; member
/linux/drivers/tty/serial/8250/
A D8250_exar.c610 unsigned int nr_ports, i, bar = 0, maxnr; in exar_pci_probe() local
626 nr_ports = board->num_ports ? board->num_ports : pcidev->device & 0x0f; in exar_pci_probe()
628 priv = devm_kzalloc(&pcidev->dev, struct_size(priv, line, nr_ports), GFP_KERNEL); in exar_pci_probe()
656 for (i = 0; i < nr_ports && i < maxnr; i++) { in exar_pci_probe()
A D8250_pci.c3943 int rc, nr_ports, i; in pciserial_init_ports() local
3945 nr_ports = board->num_ports; in pciserial_init_ports()
3966 nr_ports = rc; in pciserial_init_ports()
3969 priv = kzalloc(struct_size(priv, line, nr_ports), GFP_KERNEL); in pciserial_init_ports()
4005 for (i = 0; i < nr_ports; i++) { in pciserial_init_ports()
/linux/drivers/char/
A Dvirtio_console.c1846 u32 i, j, nr_ports, nr_queues; in init_vqs() local
1849 nr_ports = portdev->max_nr_ports; in init_vqs()
1850 nr_queues = use_multiport(portdev) ? (nr_ports + 1) * 2 : 2; in init_vqs()
1856 portdev->in_vqs = kmalloc_array(nr_ports, sizeof(struct virtqueue *), in init_vqs()
1858 portdev->out_vqs = kmalloc_array(nr_ports, sizeof(struct virtqueue *), in init_vqs()
1884 for (i = 1; i < nr_ports; i++) { in init_vqs()
1907 for (i = 1; i < nr_ports; i++) { in init_vqs()
/linux/drivers/atm/
A Dsolos-pci.c108 int nr_ports; member
771 for (port = 0; port < card->nr_ports; port++) { in solos_bh()
1273 card->nr_ports = (data32 & 0x000000FF); in fpga_probe()
1280 card->dma_bounce = kmalloc_array(card->nr_ports, in fpga_probe()
1356 for (i = 0; i < card->nr_ports; i++) { in atm_init()
1404 for (i = 0; i < card->nr_ports; i++) { in atm_remove()
/linux/arch/x86/xen/
A Denlighten_pv.c847 .nr_ports = 0, in xen_invalidate_io_bitmap()
864 iobitmap.nr_ports = 0; in xen_update_io_bitmap()
866 iobitmap.nr_ports = IO_BITMAP_BITS; in xen_update_io_bitmap()
/linux/drivers/tty/serial/
A Dqcom_geni_serial.c258 int nr_ports = console ? GENI_UART_CONS_PORTS : GENI_UART_PORTS; in get_port_from_line() local
260 if (line < 0 || line >= nr_ports) in get_port_from_line()
/linux/drivers/xen/events/
A Devents_base.c2068 poll.nr_ports = 1; in xen_poll_irq_timeout()

Completed in 82 milliseconds