| /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 = kzalloc_objs(struct sh7786_pcie_port, nr_ports); in sh7786_pcie_init() 591 printk(KERN_NOTICE "PCI: probing %d ports.\n", nr_ports); in sh7786_pcie_init() 593 for (i = 0; i < nr_ports; i++) { in sh7786_pcie_init()
|
| /linux/samples/vfio-mdev/ |
| H A D | mtty.c | 139 u32 nr_ports; 170 int nr_ports; 182 int nr_ports; 184 { .nr_ports = 1, .type.sysfs_name = "1", 186 { .nr_ports = 2, .type.sysfs_name = "2", 277 if (mdev_state->nr_ports == 2) { in mtty_create_config_space() 339 if ((mdev_state->nr_ports == 1) && (bar_index == 1)) { in handle_pci_cfg_write() 783 (mdev_state->nr_ports * sizeof(struct serial_port)); in mtty_disable_file() 935 for (i = 0; i < mdev_state->nr_ports; i++) { in mtty_save_state() 960 for (i = 0; i < mdev_state->nr_ports; in mtty_load_state() 136 u32 nr_ports; global() member 167 int nr_ports; global() member 179 int nr_ports; global() member [all...] |
| /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 | pata_buddha.c | 158 unsigned int nr_ports = (type == BOARD_CATWEASEL) ? 3 : 2; in pata_buddha_probe() local 187 host = ata_host_alloc(&z->dev, nr_ports); in pata_buddha_probe() 199 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()
|
| /linux/drivers/gpio/ |
| H A D | gpio-dwapb.c | 116 unsigned int nr_ports; member 121 struct dwapb_gpio_port ports[] __counted_by(nr_ports); 172 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_offs_to_port() 748 gpio->nr_ports = pdata->nports; in dwapb_gpio_probe() 765 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_probe() 785 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_suspend() 821 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_suspend_noirq() 869 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_resume()
|
| /linux/drivers/tty/serial/8250/ |
| H A D | 8250_pci1xxxx.c | 769 unsigned int nr_ports, i; in pci1xxxx_serial_probe() local 780 nr_ports = pci1xxxx_get_num_ports(pdev); in pci1xxxx_serial_probe() 782 priv = devm_kzalloc(dev, struct_size(priv, line, nr_ports), GFP_KERNEL); in pci1xxxx_serial_probe() 796 priv->nr = nr_ports; in pci1xxxx_serial_probe() 814 for (i = 0; i < nr_ports; i++) { in pci1xxxx_serial_probe()
|
| /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 | 1887 u32 i, j, nr_ports, nr_queues; in init_vqs() local 1890 nr_ports = portdev->max_nr_ports; in init_vqs() 1891 nr_queues = use_multiport(portdev) ? (nr_ports + 1) * 2 : 2; in init_vqs() 1895 portdev->in_vqs = kmalloc_objs(struct virtqueue *, nr_ports); in init_vqs() 1896 portdev->out_vqs = kmalloc_objs(struct virtqueue *, nr_ports); in init_vqs() 1919 for (i = 1; i < nr_ports; i++) { in init_vqs() 1940 for (i = 1; i < nr_ports; i++) { in init_vqs()
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | xen_shinfo_test.c | 97 unsigned int nr_ports; member 303 .nr_ports = 1, in guest_code() 352 .nr_ports = 1, in guest_code()
|