Home
last modified time | relevance | path

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

/openbmc/linux/arch/sh/drivers/pci/
H A Dpcie-sh7786.c33 static unsigned int nr_ports; variable
555 nr_ports = sh7786_pcie_hwops->core_init(); in sh7786_pcie_init()
556 BUG_ON(nr_ports > ARRAY_SIZE(sh7786_pci_channels)); in sh7786_pcie_init()
558 if (unlikely(nr_ports == 0)) in sh7786_pcie_init()
561 sh7786_pcie_ports = kcalloc(nr_ports, sizeof(struct sh7786_pcie_port), in sh7786_pcie_init()
592 printk(KERN_NOTICE "PCI: probing %d ports.\n", nr_ports); in sh7786_pcie_init()
594 for (i = 0; i < nr_ports; i++) { in sh7786_pcie_init()
/openbmc/linux/samples/vfio-mdev/
H A Dmtty.c142 int nr_ports; member
148 int nr_ports; member
150 { .nr_ports = 1, .type.sysfs_name = "1",
152 { .nr_ports = 2, .type.sysfs_name = "2",
243 if (mdev_state->nr_ports == 2) { in mtty_create_config_space()
757 if (avail_ports < type->nr_ports) in mtty_init_dev()
761 avail_ports - type->nr_ports)); in mtty_init_dev()
763 mdev_state->nr_ports = type->nr_ports; in mtty_init_dev()
781 atomic_add(type->nr_ports, &mdev_avail_ports); in mtty_init_dev()
811 atomic_add(mdev_state->nr_ports, &mdev_avail_ports); in mtty_release_dev()
[all …]
/openbmc/linux/drivers/ssb/
H 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()
H 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()
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_pci1xxxx.c380 unsigned int nr_ports, i; in pci1xxxx_serial_probe() local
390 nr_ports = pci1xxxx_get_num_ports(pdev); in pci1xxxx_serial_probe()
392 priv = devm_kzalloc(dev, struct_size(priv, line, nr_ports), GFP_KERNEL); in pci1xxxx_serial_probe()
402 priv->nr = nr_ports; in pci1xxxx_serial_probe()
421 for (i = 0; i < nr_ports; i++) { in pci1xxxx_serial_probe()
H A D8250_exar.c678 unsigned int nr_ports, i, bar = 0, maxnr; in exar_pci_probe() local
695 nr_ports = BIT(((pcidev->device & 0x38) >> 3) - 1); in exar_pci_probe()
697 nr_ports = board->num_ports; in exar_pci_probe()
699 nr_ports = pcidev->device & 0xff; in exar_pci_probe()
701 nr_ports = pcidev->device & 0x0f; in exar_pci_probe()
703 priv = devm_kzalloc(&pcidev->dev, struct_size(priv, line, nr_ports), GFP_KERNEL); in exar_pci_probe()
731 for (i = 0; i < nr_ports && i < maxnr; i++) { in exar_pci_probe()
H A D8250_pci.c3955 int rc, nr_ports, i; in pciserial_init_ports() local
3957 nr_ports = board->num_ports; in pciserial_init_ports()
3978 nr_ports = rc; in pciserial_init_ports()
3981 priv = kzalloc(struct_size(priv, line, nr_ports), GFP_KERNEL); in pciserial_init_ports()
4017 for (i = 0; i < nr_ports; i++) { in pciserial_init_ports()
/openbmc/linux/drivers/ata/
H A Dpata_buddha.c159 unsigned int nr_ports = (type == BOARD_CATWEASEL) ? 3 : 2; in pata_buddha_probe() local
188 host = ata_host_alloc(&z->dev, nr_ports); in pata_buddha_probe()
200 for (i = 0; i < nr_ports; i++) { in pata_buddha_probe()
H 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()
H 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()
H A Dsata_promise.c685 unsigned int nr_ports = pdc_sata_nr_ports(ap); in pdc_sata_ata_port_to_ata_no() local
688 for (i = 0; i < nr_ports && host->ports[i] != ap; ++i) in pdc_sata_ata_port_to_ata_no()
690 BUG_ON(i >= nr_ports); in pdc_sata_ata_port_to_ata_no()
/openbmc/linux/drivers/gpio/
H A Dgpio-dwapb.c118 unsigned int nr_ports; member
172 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_offs_to_port()
714 gpio->nr_ports = pdata->nports; in dwapb_gpio_probe()
720 gpio->ports = devm_kcalloc(&pdev->dev, gpio->nr_ports, in dwapb_gpio_probe()
735 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_probe()
755 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_suspend()
802 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_resume()
/openbmc/linux/include/xen/interface/
H A Dsched.h123 unsigned int nr_ports; member
H A Dphysdev.h82 uint32_t nr_ports; member
/openbmc/qemu/include/hw/xen/interface/
H A Dsched.h126 unsigned int nr_ports; member
H A Dphysdev.h99 uint32_t nr_ports; member
/openbmc/qemu/hw/i386/kvm/
H A Dxen_evtchn.c148 uint32_t nr_ports; member
209 for (i = 0; i < s->nr_ports; i++) { in xen_evtchn_post_load()
260 VMSTATE_UINT32(nr_ports, XenEvtchnState),
606 for (i = 1; i < s->nr_ports; i++) { in unbind_backend_ports()
986 if (s->nr_ports == port + 1) { in free_port()
988 s->nr_ports--; in free_port()
989 } while (s->nr_ports && in free_port()
1010 if (s->nr_ports < p + 1) { in allocate_port()
1011 s->nr_ports = p + 1; in allocate_port()
1111 for (i = 0; i < s->nr_ports; i++) { in xen_evtchn_soft_reset()
[all …]
/openbmc/linux/arch/x86/kvm/
H A Dxen.c1167 static bool wait_pending_event(struct kvm_vcpu *vcpu, int nr_ports, in wait_pending_event() argument
1191 for (i = 0; i < nr_ports; i++) { in wait_pending_event()
1234 sched_poll.nr_ports = sp32.nr_ports; in kvm_xen_schedop_poll()
1244 if (unlikely(sched_poll.nr_ports > 1)) { in kvm_xen_schedop_poll()
1246 if (sched_poll.nr_ports > 128) { in kvm_xen_schedop_poll()
1251 ports = kmalloc_array(sched_poll.nr_ports, in kvm_xen_schedop_poll()
1261 sched_poll.nr_ports * sizeof(*ports), &e)) { in kvm_xen_schedop_poll()
1266 for (i = 0; i < sched_poll.nr_ports; i++) { in kvm_xen_schedop_poll()
1273 if (sched_poll.nr_ports == 1) in kvm_xen_schedop_poll()
1280 if (!wait_pending_event(vcpu, sched_poll.nr_ports, ports)) { in kvm_xen_schedop_poll()
[all …]
H A Dxen.h238 unsigned int nr_ports; member
/openbmc/linux/drivers/char/
H A Dvirtio_console.c1842 u32 i, j, nr_ports, nr_queues; in init_vqs() local
1845 nr_ports = portdev->max_nr_ports; in init_vqs()
1846 nr_queues = use_multiport(portdev) ? (nr_ports + 1) * 2 : 2; in init_vqs()
1852 portdev->in_vqs = kmalloc_array(nr_ports, sizeof(struct virtqueue *), in init_vqs()
1854 portdev->out_vqs = kmalloc_array(nr_ports, sizeof(struct virtqueue *), in init_vqs()
1880 for (i = 1; i < nr_ports; i++) { in init_vqs()
1903 for (i = 1; i < nr_ports; i++) { in init_vqs()
/openbmc/linux/drivers/atm/
H 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()
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dxen_shinfo_test.c96 unsigned int nr_ports; member
304 .nr_ports = 1, in guest_code()
349 .nr_ports = 1, in guest_code()
/openbmc/linux/arch/x86/xen/
H A Denlighten_pv.c947 .nr_ports = 0, in xen_invalidate_io_bitmap()
964 iobitmap.nr_ports = 0; in xen_update_io_bitmap()
966 iobitmap.nr_ports = IO_BITMAP_BITS; in xen_update_io_bitmap()
/openbmc/linux/drivers/tty/serial/
H A Dqcom_geni_serial.c251 int nr_ports = console ? GENI_UART_CONS_PORTS : GENI_UART_PORTS; in get_port_from_line() local
253 if (line < 0 || line >= nr_ports) in get_port_from_line()
/openbmc/linux/drivers/xen/events/
H A Devents_base.c2059 poll.nr_ports = 1; in xen_poll_irq_timeout()