/openbmc/linux/arch/sh/drivers/pci/ |
H A D | pcie-sh7786.c | 33 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 D | mtty.c | 142 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 D | driver_extif.c | 57 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 D | driver_chipcommon.c | 605 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 D | 8250_pci1xxxx.c | 380 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 D | 8250_exar.c | 678 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 D | 8250_pci.c | 3955 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 D | pata_buddha.c | 159 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 D | libata-pmp.c | 266 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 D | pata_icside.c | 70 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 D | sata_promise.c | 685 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 D | gpio-dwapb.c | 118 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 D | sched.h | 123 unsigned int nr_ports; member
|
H A D | physdev.h | 82 uint32_t nr_ports; member
|
/openbmc/qemu/include/hw/xen/interface/ |
H A D | sched.h | 126 unsigned int nr_ports; member
|
H A D | physdev.h | 99 uint32_t nr_ports; member
|
/openbmc/qemu/hw/i386/kvm/ |
H A D | xen_evtchn.c | 148 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 D | xen.c | 1167 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 D | xen.h | 238 unsigned int nr_ports; member
|
/openbmc/linux/drivers/char/ |
H A D | virtio_console.c | 1842 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 D | solos-pci.c | 108 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 D | xen_shinfo_test.c | 96 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 D | enlighten_pv.c | 947 .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 D | qcom_geni_serial.c | 251 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 D | events_base.c | 2059 poll.nr_ports = 1; in xen_poll_irq_timeout()
|