Lines Matching defs:devices
44 "Disable support for PCI 2.3 style INTx masking. If this resolves problems for specific devices, report lspci -vvvxxx to linux-pci@vger.kernel.org so the device can be fixed automatically via the broken_intx_masking flag.");
55 "Disable using the PCI D3 low power state for idle, unused devices");
65 MODULE_PARM_DESC(disable_denylist, "Disable use of device denylist. Disabling the denylist allows binding to devices with known errata that may lead to exploitable stability or security issues when accessed by untrusted users.");
275 * pci_set_power_state() wrapper handling devices which perform a soft reset on
662 struct vfio_pci_dependent_device *devices;
675 return -EPERM; /* Cannot reset non-isolated devices */
677 fill->devices[fill->cur].group_id = iommu_group_id(iommu_group);
678 fill->devices[fill->cur].segment = pci_domain_nr(pdev->bus);
679 fill->devices[fill->cur].bus = pdev->bus->number;
680 fill->devices[fill->cur].devfn = pdev->devfn;
795 struct vfio_device **devices;
1096 struct vfio_pci_dependent_device *devices = NULL;
1116 /* How many devices are affected? */
1127 * -ENOSPC and the number of devices affected.
1129 if (hdr.argsz < sizeof(hdr) + (fill.max * sizeof(*devices))) {
1135 devices = kcalloc(fill.max, sizeof(*devices), GFP_KERNEL);
1136 if (!devices)
1139 fill.devices = devices;
1158 if (copy_to_user((void __user *)(arg + minsz), devices,
1159 hdr.count * sizeof(*devices)))
1163 kfree(devices);
1192 * could be. Note groups can have multiple devices so
1255 * Test whether all the affected devices are contained
1265 devs.devices = kcalloc(count, sizeof(struct vfio_device *),
1267 if (!devs.devices) {
1273 * We need to get memory_lock for each device, but devices
1287 tmp = vfio_device_data(devs.devices[mem_idx]);
1305 device = devs.devices[i];
1314 kfree(devs.devices);
2299 devs->devices[devs->cur_index++] = device;
2324 * Locking multiple devices is prone to deadlock, runaway and
2332 devs->devices[devs->cur_index++] = device;
2338 * - All of the devices affected by that bus or slot reset are unused
2340 * - At least one of the affected devices is marked dirty via
2347 * NB: vfio-core considers a group to be viable even if some devices are
2348 * bound to drivers like pci-stub or pcieport. Here we require all devices
2369 devs.devices = kcalloc(i, sizeof(struct vfio_device *), GFP_KERNEL);
2370 if (!devs.devices)
2380 tmp = vfio_device_data(devs.devices[i]);
2389 tmp = vfio_device_data(devs.devices[i]);
2392 * If reset was successful, affected devices no longer need
2393 * a reset and we should return all the collateral devices
2405 vfio_device_put(devs.devices[i]);
2408 kfree(devs.devices);
2462 /* Allocate shared config space permision data used by all devices */
2467 /* Register and scan for devices */