/linux/samples/vfio-mdev/ |
H A D | mtty.c | 136 u32 nr_ports; member 167 int nr_ports; member 179 int nr_ports; member 181 { .nr_ports = 1, .type.sysfs_name = "1", 183 { .nr_ports = 2, .type.sysfs_name = "2", 274 if (mdev_state->nr_ports == 2) { in mtty_create_config_space() 336 if ((mdev_state->nr_ports == 1) && (bar_index == 1)) { in handle_pci_cfg_write() 780 (mdev_state->nr_ports * sizeof(struct serial_port)); in mtty_data_size() 938 for (i = 0; i < mdev_state->nr_ports; i++) { in mtty_save_state() 963 for (i = 0; i < mdev_state->nr_ports; i++) in mtty_load_state() [all …]
|
/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()
|
/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()
|
/linux/drivers/ata/ |
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_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 | pata_icside.c | 70 unsigned int nr_ports; member 389 info->nr_ports = 1; in pata_icside_register_v5() 430 info->nr_ports = 2; in pata_icside_register_v6() 458 host = ata_host_alloc(&ec->dev, info->nr_ports); in pata_icside_add_ports() 465 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()
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_pci1xxxx.c | 701 unsigned int nr_ports, i; in pci1xxxx_serial_probe() local 712 nr_ports = pci1xxxx_get_num_ports(pdev); in pci1xxxx_serial_probe() 714 priv = devm_kzalloc(dev, struct_size(priv, line, nr_ports), GFP_KERNEL); in pci1xxxx_serial_probe() 728 priv->nr = nr_ports; in pci1xxxx_serial_probe() 746 for (i = 0; i < nr_ports; i++) { in pci1xxxx_serial_probe()
|
H A D | 8250_exar.c | 1448 unsigned int nr_ports, i, bar = 0, maxnr; in exar_pci_probe() local 1464 nr_ports = exar_get_nr_ports(board, pcidev); in exar_pci_probe() 1465 if (nr_ports == 0) in exar_pci_probe() 1468 priv = devm_kzalloc(&pcidev->dev, struct_size(priv, line, nr_ports), GFP_KERNEL); in exar_pci_probe() 1498 for (i = 0; i < nr_ports && i < maxnr; i++) { in exar_pci_probe()
|
H A D | 8250_pci.c | 4113 int rc, nr_ports, i; in pciserial_init_ports() local 4115 nr_ports = board->num_ports; in pciserial_init_ports() 4136 nr_ports = rc; in pciserial_init_ports() 4139 priv = kzalloc(struct_size(priv, line, nr_ports), GFP_KERNEL); in pciserial_init_ports() 4175 for (i = 0; i < nr_ports; i++) { in pciserial_init_ports()
|
/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
|
/linux/drivers/char/ |
H A D | virtio_console.c | 1808 u32 i, j, nr_ports, nr_queues; in init_vqs() local 1811 nr_ports = portdev->max_nr_ports; in init_vqs() 1812 nr_queues = use_multiport(portdev) ? (nr_ports + 1) * 2 : 2; in init_vqs() 1816 portdev->in_vqs = kmalloc_array(nr_ports, sizeof(struct virtqueue *), in init_vqs() 1818 portdev->out_vqs = kmalloc_array(nr_ports, sizeof(struct virtqueue *), in init_vqs() 1842 for (i = 1; i < nr_ports; i++) { in init_vqs() 1863 for (i = 1; i < nr_ports; i++) { in init_vqs()
|
/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()
|
/linux/arch/x86/kvm/ |
H A D | xen.h | 238 unsigned int nr_ports; member
|
/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | xen_shinfo_test.c | 97 unsigned int nr_ports; member 306 .nr_ports = 1, in guest_code() 355 .nr_ports = 1, in guest_code()
|
/linux/arch/x86/xen/ |
H A D | enlighten_pv.c | 955 .nr_ports = 0, in xen_invalidate_io_bitmap() 972 iobitmap.nr_ports = 0; in xen_update_io_bitmap() 974 iobitmap.nr_ports = IO_BITMAP_BITS; in xen_update_io_bitmap()
|
/linux/drivers/tty/serial/ |
H A D | qcom_geni_serial.c | 254 int nr_ports = console ? GENI_UART_CONS_PORTS : GENI_UART_PORTS; in get_port_from_line() local 256 if (line < 0 || line >= nr_ports) in get_port_from_line()
|