/Linux-v6.1/arch/sh/drivers/pci/ |
D | pcie-sh7786.c | 33 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-v6.1/samples/vfio-mdev/ |
D | mtty.c | 143 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", 217 if (mdev_state->nr_ports == 2) { in mtty_create_config_space() 279 if ((mdev_state->nr_ports == 1) && (bar_index == 1)) { in handle_pci_cfg_write() 731 if (avail_ports < type->nr_ports) in mtty_init_dev() 735 avail_ports - type->nr_ports)); in mtty_init_dev() 737 mdev_state->nr_ports = type->nr_ports; in mtty_init_dev() 755 atomic_add(type->nr_ports, &mdev_avail_ports); in mtty_init_dev() [all …]
|
/Linux-v6.1/drivers/ssb/ |
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()
|
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()
|
/Linux-v6.1/drivers/ata/ |
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()
|
D | pata_buddha.c | 160 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()
|
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()
|
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()
|
/Linux-v6.1/drivers/gpio/ |
D | gpio-dwapb.c | 118 unsigned int nr_ports; member 172 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_offs_to_port() 710 gpio->nr_ports = pdata->nports; in dwapb_gpio_probe() 716 gpio->ports = devm_kcalloc(&pdev->dev, gpio->nr_ports, in dwapb_gpio_probe() 731 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_probe() 751 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_suspend() 798 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_resume()
|
/Linux-v6.1/drivers/tty/serial/8250/ |
D | 8250_exar.c | 621 unsigned int nr_ports, i, bar = 0, maxnr; in exar_pci_probe() local 638 nr_ports = BIT(((pcidev->device & 0x38) >> 3) - 1); in exar_pci_probe() 640 nr_ports = board->num_ports; in exar_pci_probe() 642 nr_ports = pcidev->device & 0x0f; in exar_pci_probe() 644 priv = devm_kzalloc(&pcidev->dev, struct_size(priv, line, nr_ports), GFP_KERNEL); in exar_pci_probe() 672 for (i = 0; i < nr_ports && i < maxnr; i++) { in exar_pci_probe()
|
D | 8250_pci.c | 3843 int rc, nr_ports, i; in pciserial_init_ports() local 3845 nr_ports = board->num_ports; in pciserial_init_ports() 3866 nr_ports = rc; in pciserial_init_ports() 3869 priv = kzalloc(struct_size(priv, line, nr_ports), GFP_KERNEL); in pciserial_init_ports() 3905 for (i = 0; i < nr_ports; i++) { in pciserial_init_ports()
|
/Linux-v6.1/include/xen/interface/ |
D | sched.h | 123 unsigned int nr_ports; member
|
D | physdev.h | 82 uint32_t nr_ports; member
|
/Linux-v6.1/arch/x86/kvm/ |
D | xen.c | 965 static bool wait_pending_event(struct kvm_vcpu *vcpu, int nr_ports, in wait_pending_event() argument 989 for (i = 0; i < nr_ports; i++) { in wait_pending_event() 1025 if (unlikely(sched_poll.nr_ports > 1)) { in kvm_xen_schedop_poll() 1027 if (sched_poll.nr_ports > 128) { in kvm_xen_schedop_poll() 1032 ports = kmalloc_array(sched_poll.nr_ports, in kvm_xen_schedop_poll() 1041 for (i = 0; i < sched_poll.nr_ports; i++) { in kvm_xen_schedop_poll() 1059 if (sched_poll.nr_ports == 1) in kvm_xen_schedop_poll() 1066 if (!wait_pending_event(vcpu, sched_poll.nr_ports, ports)) { in kvm_xen_schedop_poll() 1087 if (unlikely(sched_poll.nr_ports > 1)) in kvm_xen_schedop_poll()
|
/Linux-v6.1/drivers/char/ |
D | virtio_console.c | 1846 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-v6.1/drivers/atm/ |
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()
|
/Linux-v6.1/tools/testing/selftests/kvm/x86_64/ |
D | xen_shinfo_test.c | 69 unsigned int nr_ports; member 277 .nr_ports = 1, in guest_code() 346 .nr_ports = 1, in guest_code()
|
/Linux-v6.1/arch/x86/xen/ |
D | enlighten_pv.c | 866 .nr_ports = 0, in xen_invalidate_io_bitmap() 883 iobitmap.nr_ports = 0; in xen_update_io_bitmap() 885 iobitmap.nr_ports = IO_BITMAP_BITS; in xen_update_io_bitmap()
|
/Linux-v6.1/drivers/tty/serial/ |
D | qcom_geni_serial.c | 256 int nr_ports = console ? GENI_UART_CONS_PORTS : GENI_UART_PORTS; in get_port_from_line() local 258 if (line < 0 || line >= nr_ports) in get_port_from_line()
|
/Linux-v6.1/drivers/xen/events/ |
D | events_base.c | 2070 poll.nr_ports = 1; in xen_poll_irq_timeout()
|