Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/arch/sh/drivers/pci/
H A Dpcie-sh7786.c33 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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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()
305 if ((mdev_state->nr_ports == 1) && (bar_index == 1)) { in handle_pci_cfg_write()
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()
[all...]
/kernel/linux/linux-5.10/drivers/ata/
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()
272 reason = "invalid nr_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()
626 "Port Multiplier nr_ports mismatch '0x%x' != '0x%x'\n", in sata_pmp_same_pmp()
H A Dpata_buddha.c160 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()
H A Dpata_icside.c70 unsigned int nr_ports; member
386 info->nr_ports = 1; in pata_icside_register_v5()
427 info->nr_ports = 2; in pata_icside_register_v6()
455 host = ata_host_alloc(&ec->dev, info->nr_ports); in pata_icside_add_ports()
462 for (i = 0; i < info->nr_ports; i++) { in pata_icside_add_ports()
/kernel/linux/linux-6.6/drivers/ata/
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()
272 reason = "invalid nr_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()
626 "Port Multiplier nr_ports mismatch '0x%x' != '0x%x'\n", in sata_pmp_same_pmp()
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 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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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.c636 unsigned int nr_ports, i, bar = 0, maxnr; in exar_pci_probe() local
653 nr_ports = BIT(((pcidev->device & 0x38) >> 3) - 1); in exar_pci_probe()
655 nr_ports = board->num_ports; in exar_pci_probe()
657 nr_ports = pcidev->device & 0xff; in exar_pci_probe()
659 nr_ports = pcidev->device & 0x0f; in exar_pci_probe()
661 priv = devm_kzalloc(&pcidev->dev, struct_size(priv, line, nr_ports), GFP_KERNEL); in exar_pci_probe()
689 for (i = 0; i < nr_ports && i < maxnr; i++) { in exar_pci_probe()
/kernel/linux/linux-5.10/samples/vfio-mdev/
H A Dmtty.c143 int nr_ports; member
201 if (mdev_state->nr_ports == 2) { in mtty_create_config_space()
263 if ((mdev_state->nr_ports == 1) && (bar_index == 1)) { in handle_pci_cfg_write()
715 int nr_ports = 0, i; in mtty_create() local
724 nr_ports = i + 1; in mtty_create()
729 if (!nr_ports) in mtty_create()
736 mdev_state->nr_ports = nr_ports; in mtty_create()
1072 if (mdev_state->nr_ports == 2) in mtty_get_region_info()
1351 used += mds->nr_ports; in available_instances_show()
[all...]
/kernel/linux/linux-5.10/drivers/gpio/
H A Dgpio-dwapb.c107 unsigned int nr_ports; member
161 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_offs_to_port()
699 gpio->nr_ports = pdata->nports; in dwapb_gpio_probe()
705 gpio->ports = devm_kcalloc(&pdev->dev, gpio->nr_ports, in dwapb_gpio_probe()
720 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_probe()
740 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_suspend()
787 for (i = 0; i < gpio->nr_ports; i++) { in dwapb_gpio_resume()
/kernel/linux/linux-5.10/drivers/tty/serial/8250/
H A D8250_exar.c606 unsigned int nr_ports, i, bar = 0, maxnr; in exar_pci_probe() local
623 nr_ports = BIT(((pcidev->device & 0x38) >> 3) - 1); in exar_pci_probe()
625 nr_ports = board->num_ports; in exar_pci_probe()
627 nr_ports = pcidev->device & 0xff; in exar_pci_probe()
629 nr_ports = pcidev->device & 0x0f; in exar_pci_probe()
631 priv = devm_kzalloc(&pcidev->dev, struct_size(priv, line, nr_ports), GFP_KERNEL); in exar_pci_probe()
659 for (i = 0; i < nr_ports && i < maxnr; i++) { in exar_pci_probe()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/include/xen/interface/
H A Dsched.h140 unsigned int nr_ports; member
H A Dphysdev.h100 uint32_t nr_ports; member
/kernel/linux/linux-6.6/include/xen/interface/
H A Dsched.h123 unsigned int nr_ports; member
H A Dphysdev.h82 uint32_t nr_ports; member
/kernel/linux/linux-6.6/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 in kvm_xen_schedop_poll()
[all...]
H A Dxen.h238 unsigned int nr_ports; member

Completed in 35 milliseconds

12